Created
November 30, 2017 12:20
-
-
Save charlie5/17eeefcb967a9d97585479a877749747 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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