Update to rscons 3.1.0

This commit is contained in:
Josh Holtrop 2023-01-07 19:44:23 -05:00
parent 8f56588744
commit 3f25e11eec
3 changed files with 52 additions and 31 deletions

2
.gitignore vendored
View File

@ -1,4 +1,2 @@
/app
/app.exe
/build/ /build/
/.rscons* /.rscons*

View File

@ -3,30 +3,28 @@ configure do
check_cfg package: "freetype2" check_cfg package: "freetype2"
end end
build do env "app" do |env|
Environment.new do |env| sources = []
sources = [] dirs = [
dirs = [ "src",
"src", "modules/DerelictUtil/source",
"modules/DerelictUtil/source", "modules/DerelictSDL2/source",
"modules/DerelictSDL2/source", "modules/DerelictGL3/source",
"modules/DerelictGL3/source", "modules/gl3n/gl3n",
"modules/gl3n/gl3n", "modules/glamour/glamour",
"modules/glamour/glamour", "modules/dft/src",
"modules/dft/src", ].each do |dir|
].each do |dir| sources += glob("#{dir}/**/*.{d,c}")
sources += glob("#{dir}/**/*.{d,c}")
end
env["D_IMPORT_PATH"] += [
"modules/DerelictUtil/source",
"modules/DerelictSDL2/source",
"modules/DerelictGL3/source",
"modules/gl3n",
"modules/glamour",
"modules/dft/src",
]
env["DFLAGS"] += ["-fversion=Derelict3", "-fversion=gl3n", "-fversion=SDLImage2"]
env["LDFLAGS"] += ["-static-libgcc"]
env.Program("app", sources)
end end
env["D_IMPORT_PATH"] += [
"modules/DerelictUtil/source",
"modules/DerelictSDL2/source",
"modules/DerelictGL3/source",
"modules/gl3n",
"modules/glamour",
"modules/dft/src",
]
env["DFLAGS"] += ["-fversion=Derelict3", "-fversion=gl3n", "-fversion=SDLImage2"]
env["LDFLAGS"] += ["-static-libgcc"]
env.Program("^/app", sources)
end end

33
rscons

File diff suppressed because one or more lines are too long