/demo/yolk_demo.gpr
http://github.com/ThomasLocke/yolk · Unknown · 88 lines · 69 code · 19 blank · 0 comment · 0 complexity · 568ac604dd246f996fede9085546b48e MD5 · raw file
- -------------------------------------------------------------------------------
- -- --
- -- Yolk Demo --
- -- --
- -- Yolk Demo Project File --
- -- --
- -- Copyright (C) 2010-2012, Thomas Løcke --
- -- --
- -- This is free software; you can redistribute it and/or modify it --
- -- under terms of the GNU General Public License as published by the --
- -- Free Software Foundation; either version 3, or (at your option) any --
- -- later version. This library is distributed in the hope that it will be --
- -- useful, but WITHOUT ANY WARRANTY; without even the implied warranty of --
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --
- -- You should have received a copy of the GNU General Public License and --
- -- a copy of the GCC Runtime Library Exception along with this program; --
- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
- -- <http://www.gnu.org/licenses/>. --
- -- --
- -------------------------------------------------------------------------------
- with "aws";
- with "gnatcoll_postgres";
- with "gnatcoll_sqlite";
- with "yolk";
- project Yolk_Demo is
- type Build_Type is ("Debug", "Production");
- Build : Build_Type := External ("BUILDTYPE", "Production");
- Source_Options := ("src");
- for Source_Dirs use Source_Options;
- for Main use ("yolk_demo.adb");
- for Exec_Dir use "exe";
- case Build is
- when "Production" =>
- for Object_Dir use "build_production";
- when "Debug" =>
- for Object_Dir use "build_debug";
- end case;
- package Ide is
- -- Adjust this to point to the compiler you want to use.
- for Compiler_Command ("ada") use "gnatmake";
- end Ide;
- package Compiler is
- case Build is
- when "Production" =>
- for Default_Switches ("Ada")
- use ("-fstack-check",
- "-gnata",
- "-gnatf",
- "-gnato",
- "-gnatwa",
- "-gnaty3abcdefhiklmnoprstux",
- "-Wall",
- "-O2",
- "-gnat2012");
- when "Debug" =>
- for Default_Switches ("Ada")
- use ("-fstack-check",
- "-gnata",
- "-gnatf",
- "-gnato",
- "-gnatwa",
- "-gnatVa",
- "-Wall",
- "-O1",
- "-gnat2012",
- "-g");
- end case;
- end Compiler;
- end Yolk_Demo;