diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-08-03 00:24:44 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-08-03 00:24:44 +0300 |
commit | 0707eb0fc0d96e5d99b552323626c36360b596b1 (patch) | |
tree | eb1b52b8a86b056e6fdd4963fcf57487e8d09587 | |
parent | aa43d84e9590d34a096a28043eef3ca14ae4cd5f (diff) |
Make gb_Module_add_check_target a no-op for iOS
-rw-r--r-- | solenv/gbuild/Module.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/solenv/gbuild/Module.mk b/solenv/gbuild/Module.mk index 85078e88b..7ecd947c6 100644 --- a/solenv/gbuild/Module.mk +++ b/solenv/gbuild/Module.mk @@ -152,11 +152,25 @@ $(call gb_Module_get_clean_target,$(1)) : $$(gb_Module_CURRENTCLEANTARGET) endef +# We don't build normal unit test dynamic libraries (CppUnit +# "plugins") for iOS, but instead statically linked unit test +# executables, so make gb_Module_add_check_target a no-op for iOS. + +# As such we could build normal "plugins", as dynamic loading of +# modules presumably does work on iOS, it is just not allowed in apps +# distributed through the App Store. Unit testing at LO development +# time obviously is not anything that would be distributed as +# apps. But let's not, as we have to make this stuff work without +# dynamic loading anyway if the App Store is an eventual target, and +# why shouldn't it be. + define gb_Module_add_check_target +$(if $(filter-out IOS,$(OS)),\ $(call gb_Module__read_targetfile,$(1),$(2),check target) $(call gb_Module_get_check_target,$(1)) : $$(gb_Module_CURRENTTARGET) $(call gb_Module_get_clean_target,$(1)) : $$(gb_Module_CURRENTCLEANTARGET) +) endef |