diff --git a/Source/UnitTests/SConscript b/Source/UnitTests/SConscript new file mode 100644 index 0000000000..5757534fdb --- /dev/null +++ b/Source/UnitTests/SConscript @@ -0,0 +1,19 @@ +# -*- python -*- + +Import('env') +import sys + +unitenv = env.Clone() + +files = [ + "AudioJitTests.cpp", + "DSPJitTester.cpp", + "UnitTests.cpp", + ] + +libs = [ + 'dspcore', 'common', +] + +unitenv.Append( LIBS = libs) +unitenv.Program(env['binary_dir'] + 'tester', files) diff --git a/Source/UnitTests/UnitTests.cpp b/Source/UnitTests/UnitTests.cpp index 54f5e67555..4273f99b46 100644 --- a/Source/UnitTests/UnitTests.cpp +++ b/Source/UnitTests/UnitTests.cpp @@ -100,11 +100,8 @@ void StringTests() EXPECT_EQ(TabsToSpaces(4, "a\tb"), "a b"); } -#ifdef _WIN32 -int main(int argc, _TCHAR* argv[]) -#else + int main(int argc, char* argv[]) -#endif { AudioJitTests();