mirror of
https://github.com/Relintai/scons_gd.git
synced 2025-02-10 16:40:14 +01:00
22 lines
567 B
Plaintext
22 lines
567 B
Plaintext
SetOption('experimental','ninja')
|
|
DefaultEnvironment(tools=[])
|
|
|
|
import sys
|
|
|
|
env = Environment()
|
|
|
|
conf = Configure(env)
|
|
env.Tool('ninja')
|
|
|
|
# create a conf test that will fail. A failing conftest
|
|
# should not affect ninja generation and build from taking place.
|
|
if sys.platform == "win32":
|
|
conf.env.Append(
|
|
CCFLAGS="/DEBUG /Z7 /INCREMENTAL:NO",
|
|
LINKFLAGS="/DEBUG /INCREMENTAL:NO",
|
|
PDB='${TARGET.base}.pdb')
|
|
conf.TryRun("int main( int argc, char* argv[] ){return fail;}", '.c')
|
|
env = conf.Finish()
|
|
|
|
env.Program(target='foo', source='foo.c')
|