scons: fix duplicate environments with test flag (#23702)

* fix duplicate environments when built with --test

* lib

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e5005b8f44
This commit is contained in:
Shane Smiskol
2022-02-06 14:08:02 -08:00
committed by GitHub
parent 8e9f3ae789
commit 85b57ccbfc
2 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ asset_obj = qt_env.Object("assets", assets)
qt_env.Program("soundd/_soundd", ["soundd/main.cc", "soundd/sound.cc"], LIBS=qt_libs)
if GetOption('test'):
qt_env.Program("tests/playsound", "tests/playsound.cc", LIBS=base_libs)
qt_env.Program('tests/test_sound', ['tests/test_runner.cc', 'soundd/sound.cc', 'tests/test_sound.cc'], LIBS=[base_libs])
qt_env.Program('tests/test_sound', ['tests/test_runner.cc', 'soundd/sound.cc', 'tests/test_sound.cc'], LIBS=qt_libs)
qt_env.SharedLibrary("qt/python_helpers", ["qt/qt_window.cc"], LIBS=qt_libs)