1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 $(eval
$(call gb_CustomTarget_CustomTarget
,ios
/Lo_Xcconfig
))
11 LO_XCCONFIG
= $(BUILDDIR
)/ios
/lo.xcconfig
13 $(call gb_CustomTarget_get_target
,ios
/Lo_Xcconfig
): $(LO_XCCONFIG
)
15 .PHONY
: $(LO_XCCONFIG
)
18 # Edit the Xcode configuration file:
19 # - the list of all our (static) libs
22 all_libs
=`$(SRCDIR)/bin/lo-all-static-libs`; \
24 sed
-e
"s;^\(LINK_LDFLAGS =\).*$$;\1 -Wl,-map,$(WORKDIR)/\$$(TARGET_NAME).map $$all_libs;" \
25 -e
"s,^\(OTHER_CFLAGS =\).*$$,\1 $(gb_GLOBALDEFS)," \
26 -e
"s,^\(OTHER_CPLUSPLUSFLAGS =\).*$$,\1 $(gb_GLOBALDEFS)," \
27 < $(LO_XCCONFIG
) > $(LO_XCCONFIG
).new
&& mv
$(LO_XCCONFIG
).new
$(LO_XCCONFIG
)
29 # When SRCDIR!=BUILDDIR, Xcode is used on the project in the
30 # *source* tree (because that is where the source files are). Copy
31 # the configuration file to the corresponding source dir so that
33 if
test $(SRCDIR
) != $(BUILDDIR
); then \
34 cp
$(LO_XCCONFIG
) $(SRCDIR
)/ios
; \
37 # Do *not* remove $(LO_XCCONFIG) in a clean target. It is created
38 # during configury, not in this custom gbuild makefile.
40 # vim: set noet sw=4 ts=4: