/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. with "aws";
  22. with "gnatcoll_postgres";
  23. with "gnatcoll_sqlite";
  24. with "yolk";
  25. project Yolk_Demo is
  26. type Build_Type is ("Debug", "Production");
  27. Build : Build_Type := External ("BUILDTYPE", "Production");
  28. Source_Options := ("src");
  29. for Source_Dirs use Source_Options;
  30. for Main use ("yolk_demo.adb");
  31. for Exec_Dir use "exe";
  32. case Build is
  33. when "Production" =>
  34. for Object_Dir use "build_production";
  35. when "Debug" =>
  36. for Object_Dir use "build_debug";
  37. end case;
  38. package Ide is
  39. -- Adjust this to point to the compiler you want to use.
  40. for Compiler_Command ("ada") use "gnatmake";
  41. end Ide;
  42. package Compiler is
  43. case Build is
  44. when "Production" =>
  45. for Default_Switches ("Ada")
  46. use ("-fstack-check",
  47. "-gnata",
  48. "-gnatf",
  49. "-gnato",
  50. "-gnatwa",
  51. "-gnaty3abcdefhiklmnoprstux",
  52. "-Wall",
  53. "-O2",
  54. "-gnat2012");
  55. when "Debug" =>
  56. for Default_Switches ("Ada")
  57. use ("-fstack-check",
  58. "-gnata",
  59. "-gnatf",
  60. "-gnato",
  61. "-gnatwa",
  62. "-gnatVa",
  63. "-Wall",
  64. "-O1",
  65. "-gnat2012",
  66. "-g");
  67. end case;
  68. end Compiler;
  69. end Yolk_Demo;