smoketest: fix build with MSVC:

Linking an empty CppunitTest against smoketest Library does not work,
the linker complains aboutunresolved external symbol DllMainCRTstartup
or something like that; building a static library has the same result;
so just build the cxx file twice via a dummy smoketest_too.cxx.

Change-Id: I11a29d4ec134f67a7de896ff8c669ed5b47782a7
This commit is contained in:
Michael Stahl
2012-07-15 22:20:50 +02:00
parent 111e10bd40
commit d8b6225d97
2 changed files with 9 additions and 1 deletions

View File

@@ -29,13 +29,20 @@ $(eval $(call gb_CppunitTest_CppunitTest,smoketest))
$(eval $(call gb_CppunitTest_abort_on_assertion,smoketest))
$(eval $(call gb_CppunitTest_add_exception_objects,smoketest,\
smoketest/smoketest_too \
))
$(eval $(call gb_CppunitTest_use_api,smoketest,\
offapi \
udkapi \
))
$(eval $(call gb_CppunitTest_use_libraries,smoketest,\
smoketest \
cppu \
cppuhelper \
sal \
unotest \
))
ifeq ($(OS),MACOSX)

View File

@@ -0,0 +1 @@
#include <smoketest.cxx>