mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Add preprocessor define passing to scons build script.
This commit is contained in:
parent
4b861deacd
commit
cf75937b65
|
@ -85,6 +85,11 @@ else:
|
||||||
env_x86.MergeFlags('-m32 -O2 -lm')
|
env_x86.MergeFlags('-m32 -O2 -lm')
|
||||||
env_x64.MergeFlags('-m64 -O2 -lm')
|
env_x64.MergeFlags('-m64 -O2 -lm')
|
||||||
|
|
||||||
|
preprocessor_defines = ARGUMENTS.get('D', '')
|
||||||
|
if preprocessor_defines:
|
||||||
|
for define in preprocessor_defines.split():
|
||||||
|
env_x86.MergeFlags('-D' + define)
|
||||||
|
env_x64.MergeFlags('-D' + define)
|
||||||
|
|
||||||
# Declare build targets.
|
# Declare build targets.
|
||||||
x86 = SConscript('src/SConscript',
|
x86 = SConscript('src/SConscript',
|
||||||
|
|
Loading…
Reference in a new issue