build: Check for tests/ directory

I don't include unit tests in the tarball for releases, so I need to
check for this directory when telling Scons what to build.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-01-17 09:26:01 -05:00
parent cb6d8b3e29
commit 452e5228af
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ core = SConscript("core/Sconscript")
lib = SConscript("lib/Sconscript")
gui = SConscript("gui/Sconscript")
tests = SConscript("tests/Sconscript")
if os.path.isdir("tests"):
tests = SConscript("tests/Sconscript")
ocarina = env.Program("bin/ocarina", core + lib + gui)