summaryrefslogtreecommitdiff
path: root/sal/qa/rtl/crc32/makefile.mk
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/crc32/makefile.mk
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/crc32/makefile.mk')
-rwxr-xr-xsal/qa/rtl/crc32/makefile.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/qa/rtl/crc32/makefile.mk b/sal/qa/rtl/crc32/makefile.mk
index 23e7fd2aa724..c8682277075a 100755
--- a/sal/qa/rtl/crc32/makefile.mk
+++ b/sal/qa/rtl/crc32/makefile.mk
@@ -35,7 +35,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)
@@ -63,8 +65,6 @@ SHL1VERSIONMAP= $(PRJ)$/qa$/export.map
# do this here, so we get right dependencies
# SLOFILES=$(SHL1OBJS)
-.ENDIF
-
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk