diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-23 19:06:58 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-26 18:45:04 +0200 |
commit | 5a5c8e253abbef5626dab70f8978275ac3c742f8 (patch) | |
tree | 86c65cdfbff8ea0140937dee1311f65619f9aaf7 /solenv/gbuild/Helper.mk | |
parent | 3ee3e7946c4a772fd13eada4b235479581190dce (diff) |
Check feature test macros instead of ANDROID and/or IOS
Pass -DLIBO_FEATURE_FOO to compiler for some elements in BUILD_TYPE.
BUILD_TYPE has at least two kinds of elements: Those that indicate
building a bundled copy of some 3rd-party library, and those that
indicate some specific feature of the LibreOffice platform or
build-time configuration choice. This is for the latter kind.
Change many of the checks for Android and/or iOS in the source code to
check LIBO_FEATURE_DESKTOP, LIBO_FEATURE_HELP or DISABLE_EXTENSIONS
instead, in cases where that is what is meant, not Android or iOS
specifically.
Change-Id: I2cd3f3bb99e953c7754dcea76a426f8f9d61e4db
Diffstat (limited to 'solenv/gbuild/Helper.mk')
-rw-r--r-- | solenv/gbuild/Helper.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/gbuild/Helper.mk b/solenv/gbuild/Helper.mk index 0a732c2270db..0b32fc79a468 100644 --- a/solenv/gbuild/Helper.mk +++ b/solenv/gbuild/Helper.mk @@ -218,6 +218,10 @@ define gb_Helper_define_if_set $(foreach def,$(1),$(if $(filter TRUE YES,$($(def))),-D$(def))) endef +define gb_Helper_define_if_in +$(foreach def,$(1),$(if $(filter $(def),$(2)),-DLIBO_FEATURE_$(def))) +endef + define gb_Helper_execute $(call gb_Executable_get_command,$(firstword $(1))) $(wordlist 2,$(words $(1)),$(1)) endef |