summaryrefslogtreecommitdiff
path: root/sal/qa/rtl/oustringbuffer
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-07-10 14:43:03 +0300
committerTor Lillqvist <tml@iki.fi>2011-07-10 14:43:03 +0300
commit6ab96ee3d57f1bdf79f58f02a1f2a455f72f3a5a (patch)
tree50d7baa0fc07d7f1cccd7a7f8c9e7492e98bb699 /sal/qa/rtl/oustringbuffer
parent7e8ce369a76f0f9bda24a24a998137fbc2dd8b23 (diff)
Do build sal unit tests for iOS, too
We can't run them in the normal way, but we build the tests as static archives, which we link into the single sal_cppunittester_all executable. (Work in progress, so far just a part of the tests are linked into it.) There is no makefilery yet to actually construct a complete iOS app bundle (.app directory), so just copy (in this case) the sal_cppunittester_all iOS executable on top of the executbale some dummy iOS app you build in Xcode... works fine, can be debugged that way.
Diffstat (limited to 'sal/qa/rtl/oustringbuffer')
-rw-r--r--sal/qa/rtl/oustringbuffer/makefile.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/qa/rtl/oustringbuffer/makefile.mk b/sal/qa/rtl/oustringbuffer/makefile.mk
index 32583c2ff25a..0db90281a929 100644
--- a/sal/qa/rtl/oustringbuffer/makefile.mk
+++ b/sal/qa/rtl/oustringbuffer/makefile.mk
@@ -34,7 +34,9 @@ ENABLE_EXCEPTIONS := TRUE
.INCLUDE: settings.mk
-.IF "$(CROSS_COMPILING)"!="YES"
+.IF "$(OS)" == "IOS"
+CFLAGSCXX += -DCPPUNIT_PLUGIN_EXPORTED_NAME=cppunitTest_$(TARGET)
+.ENDIF
CFLAGS+= $(LFS_CFLAGS)
CXXFLAGS+= $(LFS_CFLAGS)
@@ -51,7 +53,5 @@ SHL1STDLIBS := $(SALLIB) $(CPPUNITLIB)
SHL1VERSIONMAP := $(PRJ)$/qa$/export.map
DEF1NAME := $(SHL1TARGET)
-.ENDIF
-
.INCLUDE: target.mk
.INCLUDE: $(PRJ)$/qa$/cppunit_local.mk