Update build system and modules.

This commit is contained in:
josh committed 2020-12-24 17:34:42 -05:00
1 parent 6255cafefc
commit 7eb9b9c291
9 files changed
+40 -19

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
configure do
check_d_compiler
end
build do
Environment.new do |env|
sources = []
dirs = [
"source",
"modules/DerelictUtil/source",
"modules/DerelictSDL2/source",
"modules/DerelictGL3/source",
"modules/gl3n/gl3n",
"modules/glamour/glamour",
].each do |dir|
sources += glob("#{dir}/**/*.d")
end
env["D_IMPORT_PATH"] += [
"modules/DerelictUtil/source",
"modules/DerelictSDL2/source",
"modules/DerelictGL3/source",
"modules/gl3n",
"modules/glamour",
]
env["DFLAGS"] += ["-fversion=Derelict3", "-fversion=gl3n", "-fversion=SDLImage"]
env["LDFLAGS"] += ["-static-libgcc"]
env.Program("app", sources)
end
end