summaryrefslogtreecommitdiff
path: root/ios/Executable_LibreOffice.mk
blob: ccf69c7fb38d39a8fc3941b4c8bd72dc2e87768c (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
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
$(eval $(call gb_Executable_Executable,LibreOffice))

$(eval $(call gb_Executable_use_api,LibreOffice,\
    udkapi \
    offapi \
))

$(eval $(call gb_Executable_use_externals,LibreOffice,\
    boost_headers \
    iconv \
    zlib \
))

$(eval $(call gb_Executable_use_system_darwin_frameworks,LibreOffice,\
    Foundation \
    CoreFoundation \
    CoreGraphics \
    CoreText \
    UIKit \
))

$(eval $(call gb_Executable_add_generated_cxxobjects,LibreOffice,\
    CustomTarget/ios/LibreOffice/native-code \
))

$(call gb_CustomTarget_get_workdir,ios/LibreOffice)/native-code.cxx :
	mkdir -p `dirname $@`
	$(SRCDIR)/solenv/bin/native-code.py \
		-g extended_core -g writer \
		> $@

$(eval $(call gb_Executable_add_objcxxobjects,LibreOffice,\
    ios/experimental/LibreOffice/LibreOffice/lo \
))

$(eval $(call gb_Executable_add_objcobjects,LibreOffice,\
    ios/experimental/LibreOffice/LibreOffice/AppDelegate \
    ios/experimental/LibreOffice/LibreOffice/main \
    ios/experimental/LibreOffice/LibreOffice/View \
    ios/experimental/LibreOffice/LibreOffice/ViewController \
))

# Mark the executable as depending on all libraries so that it gets
# rebuilt if any library has been rebuilt. Avoids need for "make
# ios.clean".

$(WORKDIR)/LinkTarget/Executable/LibreOffice : $(shell $(SRCDIR)/bin/lo-all-static-libs)

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