PageRenderTime 27ms CodeModel.GetById 14ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/demo/yolk_demo.gpr

http://github.com/ThomasLocke/yolk
Unknown | 88 lines | 69 code | 19 blank | 0 comment | 0 complexity | 568ac604dd246f996fede9085546b48e MD5 | raw file
 1-------------------------------------------------------------------------------
 2--                                                                           --
 3--                               Yolk Demo                                   --
 4--                                                                           --
 5--                         Yolk Demo Project File                            --
 6--                                                                           --
 7--                   Copyright (C) 2010-2012, Thomas ¸cke                   --
 8--                                                                           --
 9--  This is free software;  you can redistribute it and/or modify it         --
10--  under terms of the  GNU General Public License  as published by the      --
11--  Free Software  Foundation;  either version 3,  or (at your  option) any  --
12--  later version. This library is distributed in the hope that it will be   --
13--  useful, but WITHOUT ANY WARRANTY;  without even the implied warranty of  --
14--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     --
15--  You should have received a copy of the GNU General Public License and    --
16--  a copy of the GCC Runtime Library Exception along with this program;     --
17--  see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
18--  <http://www.gnu.org/licenses/>.                                          --
19--                                                                           --
20-------------------------------------------------------------------------------
21
22with "aws";
23with "gnatcoll_postgres";
24with "gnatcoll_sqlite";
25with "yolk";
26
27project Yolk_Demo is
28
29   type Build_Type is ("Debug", "Production");
30   Build : Build_Type := External ("BUILDTYPE", "Production");
31
32   Source_Options := ("src");
33   for Source_Dirs use Source_Options;
34
35   for Main use ("yolk_demo.adb");
36
37   for Exec_Dir use "exe";
38
39   case Build is
40
41      when "Production" =>
42         for Object_Dir use "build_production";
43      when "Debug" =>
44         for Object_Dir use "build_debug";
45
46   end case;
47
48   package Ide is
49
50      --  Adjust this to point to the compiler you want to use.
51      for Compiler_Command ("ada") use "gnatmake";
52
53   end Ide;
54
55   package Compiler is
56
57      case Build is
58
59         when "Production" =>
60            for Default_Switches ("Ada")
61            use ("-fstack-check",
62                 "-gnata",
63                 "-gnatf",
64                 "-gnato",
65                 "-gnatwa",
66                 "-gnaty3abcdefhiklmnoprstux",
67                 "-Wall",
68                 "-O2",
69                 "-gnat2012");
70
71         when "Debug" =>
72            for Default_Switches ("Ada")
73            use ("-fstack-check",
74                 "-gnata",
75                 "-gnatf",
76                 "-gnato",
77                 "-gnatwa",
78                 "-gnatVa",
79                 "-Wall",
80                 "-O1",
81                 "-gnat2012",
82                 "-g");
83
84      end case;
85
86   end Compiler;
87
88end Yolk_Demo;