summaryrefslogtreecommitdiff
path: root/ios/CustomTarget_iOS_prelink.mk
blob: 2588e72110ca2865178b635a467df43ec2274089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- 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 ------------------------------------------------------------------------
IOSDEV = /Applications/Xcode.app/Contents/Developer/
IOSLD = $(IOSDEV)Toolchains/XcodeDefault.xctoolchain/usr/bin/ld

ifeq ($(ENABLE_DEBUG),TRUE)
IOSKIT = $(SRCDIR)/ios/generated/LibreOfficeKit_$(CPUNAME)_debug.o
else
IOSKIT = $(SRCDIR)/ios/generated/LibreOfficeKit_$(CPUNAME).o
endif



#- Top level  -----------------------------------------------------------------
$(eval $(call gb_CustomTarget_CustomTarget,ios/iOS_prelink))

$(call gb_CustomTarget_get_target,ios/iOS_prelink): $(IOSKIT)



#- build  ---------------------------------------------------------------------
.PHONY: FORCE
FORCE:

$(IOSKIT): $(call gb_StaticLibrary_get_target,iOS_kitBridge) FORCE
	$(IOSLD) -r -ios_version_min 11.1 \
	    -syslibroot $(MACOSX_SDK_PATH) \
	    -arch `echo $(CPUNAME) |  tr '[:upper:]' '[:lower:]'` \
	    -o $(IOSKIT) \
	    $(WORKDIR)/CObject/ios/source/LibreOfficeKit.o  \
	    `$(SRCDIR)/bin/lo-all-static-libs`



# prelink parms: -ios_version_min 11.0 -lz -liconv -g -Wl
#	    -e "s'@SYMROOT@'$(WORKDIR)/ios/build'g" \
#	        -sdk $(IOS_SDK) \



#- clean ios  -----------------------------------------------------------------
$(call gb_CustomTarget_get_clean_target,ios/iOS_prelink):
	rm $(IOSKIT)



# vim: set noet sw=4 ts=4: