Build binaries in src/ with "base" build variant.
This commit is contained in:
parent
0f6eee22ee
commit
2ed55122df
2 changed files with 8 additions and 3 deletions
|
@ -17,8 +17,10 @@ from os import access, F_OK
|
|||
for dir in ["release", "debug", "profile"]:
|
||||
if glob(os.path.join("build", dir, "*.cpp")):
|
||||
shutil.rmtree(os.path.join("build", dir), True)
|
||||
for base_file in glob("src/*-base"):
|
||||
os.remove(base_file)
|
||||
try:
|
||||
os.remove("wesnoth-base")
|
||||
except:
|
||||
pass
|
||||
|
||||
SConsignFile("build/sconsign.dblite")
|
||||
|
||||
|
|
|
@ -294,7 +294,10 @@ libwesnoth_extras = env.Library("wesnoth_extras", wesnoth_sources)
|
|||
|
||||
def WesnothProgram(env, target, source, can_build, **kw):
|
||||
if can_build:
|
||||
bin = env.Program("#/" + target + build_suffix, source, **kw)
|
||||
if env["build"] == "base":
|
||||
bin = env.Program(target, source, **kw)
|
||||
else:
|
||||
bin = env.Program("#/" + target + build_suffix, source, **kw)
|
||||
else:
|
||||
bin = None
|
||||
env.Alias(target, bin)
|
||||
|
|
Loading…
Add table
Reference in a new issue