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 | 4ce9196674cd838d55d374f0dc43f82bab1db3d0 (patch) | |
tree | eedcd93870df6ae9269e429f6d1256b0a3db538b /solenv/gbuild/Module.mk | |
parent | a4052965895648cb3629701b405747c406c77799 (diff) |
Make gb_Module_add_check_target a no-op for iOS
Diffstat (limited to 'solenv/gbuild/Module.mk')
-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 85078e88bb94..7ecd947c6867 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 |