Skip to content

Instantly share code, notes, and snippets.

@charlie5
Created November 30, 2017 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlie5/17eeefcb967a9d97585479a877749747 to your computer and use it in GitHub Desktop.
Save charlie5/17eeefcb967a9d97585479a877749747 to your computer and use it in GitHub Desktop.
with "config";
project Lumen is
case Config.OS is
when "Windows_NT" =>
for Source_Dirs use ("src","src/win32");
when "Linux"|"MacOSX" =>
for Source_Dirs use ("src","src/x11");
end case;
for Object_Dir use "obj";
-- for Library_Name use "lumen";
-- for Library_Dir use "lib";
for Languages use ("Ada");
package Ide is
for Vcs_Kind use "Git";
end Ide;
package Builder is
for Default_Switches ("ada") use ("-s");
end Builder;
package Compiler is
for Default_Switches ("ada") use ("-gnat05", "-gnatn", "-fstack-check");
end Compiler;
package Linker is
case Config.Os is
when "Windows_NT" =>
for Linker_Options use ("-lopengl32","-lgdi32");
when "Linux" =>
for Linker_Options use ("-lGL","-lX11");
when "MacOSX" =>
for Linker_Options use ("-Wl,-framework,OpenGL","-lX11");
end case;
end Linker;
end Lumen;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment