diff options
author | jan Iversen <jani@libreoffice.org> | 2017-09-27 13:51:39 +0200 |
---|---|---|
committer | jan Iversen <jani@libreoffice.org> | 2017-09-27 13:55:47 +0200 |
commit | 9313fb9b5b872d7c888993ac186effcdcf9f8f57 (patch) | |
tree | d68c7a780556c3c4e7d38b744994eb76c2c06113 /ios | |
parent | 176b161ac654c50eb5c128ebdb681fcf20509b35 (diff) |
iOS, remove xcconfig generation from configure.ac
Moved generation of the xcconfig files out of configure.ac
and into the regular ios make.
Change-Id: If675eac9e86c4c4a0ff98f84815b0a83555d90a8
Diffstat (limited to 'ios')
-rw-r--r-- | ios/CustomTarget_setup.mk | 79 | ||||
-rw-r--r-- | ios/LibreOfficeKit/lo_kit.xcconfig.in | 32 | ||||
-rw-r--r-- | ios/LibreOfficeLight/lo_app.xcconfig.in | 32 | ||||
-rw-r--r-- | ios/Module_ios.mk | 3 |
4 files changed, 80 insertions, 66 deletions
diff --git a/ios/CustomTarget_setup.mk b/ios/CustomTarget_setup.mk new file mode 100644 index 000000000000..d0c64d799d32 --- /dev/null +++ b/ios/CustomTarget_setup.mk @@ -0,0 +1,79 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +#- Env ------------------------------------------------------------------------ +IOSGEN := $(SRCDIR)/ios/generated +IOSKIT := $(IOSGEN)/loKit.xcconfig +IOSAPP := $(IOSGEN)/loApp.xcconfig + + +#- Top level ----------------------------------------------------------------- +$(eval $(call gb_CustomTarget_CustomTarget,ios/setup)) + +$(call gb_CustomTarget_get_target,ios/setup): $(IOSKIT) $(IOSAPP) + + +#- Generate xcconfig files --------------------------------------------------- +$(IOSKIT) : $(BUILDDIR)/config_host.mk + $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ENV,2) + @mkdir -p $(IOSGEN); + @echo "// Xcode configuration properties" > $(IOSKIT) + @echo "// To avoid confusion, the LO-specific ones that aren't as such used" >> $(IOSKIT) + @echo "// Xcode (but only expanded in option values) are prefixed with" >> $(IOSKIT) + @echo "// LO_.\n" >> $(IOSKIT) + @echo "LO_BUILDDIR = $(BUILDDIR)" >> $(IOSKIT) + @echo "LO_INSTDIR = $(INSTDIR)" >> $(IOSKIT) + @echo "LO_SRCDIR = $(SRC_ROOT)" >> $(IOSKIT) + @echo "LO_WORKDIR = $(WORKDIR)" >> $(IOSKIT) + @echo "\n// These are actual Xcode-known settings. The corresponding autoconf" >> $(IOSKIT) + @echo "// variables are prefixed with XCODE_ to make it clear in configure.ac" >> $(IOSKIT) + @echo "// what they will be used for." >> $(IOSKIT) + @echo "ARCHS = $(XCODE_ARCHS)" >> $(IOSKIT) + @echo "VALID_ARCHS = $(XCODE_ARCHS)" >> $(IOSKIT) + @echo "CLANG_CXX_LIBRARY = $(XCODE_CLANG_CXX_LIBRARY)" >> $(IOSKIT) + @echo "DEBUG_INFORMATION_FORMAT=$(XCODE_DEBUG_INFORMATION_FORMAT)" >> $(IOSKIT) + @echo "\n// These settings are edited in CustomTarget_Lo_Xcconfig.mk." >> $(IOSKIT) + + @echo "OTHER_CFLAGS = $(gb_GLOBALDEFS)" >> $(IOSKIT) + @echo "OTHER_CPLUSPLUSFLAGS = $(gb_GLOBALDEFS)" >> $(IOSKIT) + @echo "LINK_LDFLAGS = -Wl,-lz,-liconv,-map,$(WORKDIR)/iosKit.map " \ + "`$(SRCDIR)/bin/lo-all-static-libs`" >> $(IOSKIT) + @echo "SYMROOT = $(WORKDIR)/ios/build\n" >> $(IOSKIT) + +$(IOSAPP) : $(BUILDDIR)/config_host.mk + $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ENV,2) + @mkdir -p $(IOSGEN); + @echo "// Xcode configuration properties" > $(IOSAPP) + @echo "// To avoid confusion, the LO-specific ones that aren't as such used" >> $(IOSAPP) + @echo "// Xcode (but only expanded in option values) are prefixed with" >> $(IOSAPP) + @echo "// LO_.\n" >> $(IOSAPP) + @echo "LO_BUILDDIR = $(BUILDDIR)" >> $(IOSAPP) + @echo "LO_INSTDIR = $(INSTDIR)" >> $(IOSAPP) + @echo "LO_SRCDIR = $(SRC_ROOT)" >> $(IOSAPP) + @echo "LO_WORKDIR = $(WORKDIR)" >> $(IOSAPP) + @echo "\n// These are actual Xcode-known settings. The corresponding autoconf" >> $(IOSAPP) + @echo "// variables are prefixed with XCODE_ to make it clear in configure.ac" >> $(IOSAPP) + @echo "// what they will be used for." >> $(IOSAPP) + @echo "ARCHS = $(XCODE_ARCHS)" >> $(IOSAPP) + @echo "VALID_ARCHS = $(XCODE_ARCHS)" >> $(IOSAPP) + @echo "CLANG_CXX_LIBRARY = $(XCODE_CLANG_CXX_LIBRARY)" >> $(IOSAPP) + @echo "DEBUG_INFORMATION_FORMAT=$(XCODE_DEBUG_INFORMATION_FORMAT)" >> $(IOSAPP) + @echo "\n// These settings are edited in CustomTarget_Lo_Xcconfig.mk." >> $(IOSAPP) + + @echo "OTHER_CFLAGS = $(gb_GLOBALDEFS)" >> $(IOSAPP) + @echo "OTHER_CPLUSPLUSFLAGS = $(gb_GLOBALDEFS)" >> $(IOSAPP) + @echo "LINK_LDFLAGS = -Wl,-lz,-liconv,-map,$(WORKDIR)/iosApp.map " >> $(IOSAPP) + @echo "SYMROOT = $(WORKDIR)/ios/build\n" >> $(IOSAPP) + + + +$(call gb_CustomTarget_get_clean_target,ios/setup): + $(call gb_Output_announce,$(subst $(WORKDIR)/Clean/,,$@),$(false),ENV,2) + rm -rf $(IOSGEN) + + +# vim: set noet sw=4 ts=4: diff --git a/ios/LibreOfficeKit/lo_kit.xcconfig.in b/ios/LibreOfficeKit/lo_kit.xcconfig.in deleted file mode 100644 index 08623d8a9067..000000000000 --- a/ios/LibreOfficeKit/lo_kit.xcconfig.in +++ /dev/null @@ -1,32 +0,0 @@ -// -*- Mode: text; tab-width: 4; indent-tabs-mode: nil; word-wrap: nil -*- -// -// This file is part of the LibreOffice project. -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -// Xcode configuration properties - -// To avoid confusion, the LO-specific ones that aren't as such used -// by Xcode (but only expanded in option values) are prefixed with -// LO_. - -LO_BUILDDIR = @BUILDDIR@ -LO_INSTDIR = @INSTDIR@ -LO_SRCDIR = @SRC_ROOT@ -LO_WORKDIR = @WORKDIR@ - -// These are actual Xcode-known settings. The corresponding autoconf -// variables are prefixed with XCODE_ to make it clear in configure.ac -// what they will be used for. -ARCHS = @XCODE_ARCHS@ -VALID_ARCHS = @XCODE_ARCHS@ -CLANG_CXX_LIBRARY = @XCODE_CLANG_CXX_LIBRARY@ -DEBUG_INFORMATION_FORMAT=@XCODE_DEBUG_INFORMATION_FORMAT@ - -// These settings are edited in CustomTarget_Lo_Xcconfig.mk. -LINK_LDFLAGS = -OTHER_CFLAGS = -OTHER_CPLUSPLUSFLAGS = -SYMROOT = @WORKDIR@/ios/build diff --git a/ios/LibreOfficeLight/lo_app.xcconfig.in b/ios/LibreOfficeLight/lo_app.xcconfig.in deleted file mode 100644 index 08623d8a9067..000000000000 --- a/ios/LibreOfficeLight/lo_app.xcconfig.in +++ /dev/null @@ -1,32 +0,0 @@ -// -*- Mode: text; tab-width: 4; indent-tabs-mode: nil; word-wrap: nil -*- -// -// This file is part of the LibreOffice project. -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -// Xcode configuration properties - -// To avoid confusion, the LO-specific ones that aren't as such used -// by Xcode (but only expanded in option values) are prefixed with -// LO_. - -LO_BUILDDIR = @BUILDDIR@ -LO_INSTDIR = @INSTDIR@ -LO_SRCDIR = @SRC_ROOT@ -LO_WORKDIR = @WORKDIR@ - -// These are actual Xcode-known settings. The corresponding autoconf -// variables are prefixed with XCODE_ to make it clear in configure.ac -// what they will be used for. -ARCHS = @XCODE_ARCHS@ -VALID_ARCHS = @XCODE_ARCHS@ -CLANG_CXX_LIBRARY = @XCODE_CLANG_CXX_LIBRARY@ -DEBUG_INFORMATION_FORMAT=@XCODE_DEBUG_INFORMATION_FORMAT@ - -// These settings are edited in CustomTarget_Lo_Xcconfig.mk. -LINK_LDFLAGS = -OTHER_CFLAGS = -OTHER_CPLUSPLUSFLAGS = -SYMROOT = @WORKDIR@/ios/build diff --git a/ios/Module_ios.mk b/ios/Module_ios.mk index 8213054e8717..6cce1200b69c 100644 --- a/ios/Module_ios.mk +++ b/ios/Module_ios.mk @@ -11,8 +11,7 @@ $(eval $(call gb_Module_Module,ios)) ifeq ($(OS),IOS) $(eval $(call gb_Module_add_targets,ios,\ - CustomTarget_Lo_Xcconfig \ - CustomTarget_LibreOfficeLight_app \ + CustomTarget_setup \ )) endif |