summaryrefslogtreecommitdiff
path: root/ios/Executable_Viewer.mk
blob: 79a5aa92b8a9bf27b234116f4e175fe36c38e78c (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
54
55
56
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
$(eval $(call gb_Executable_Executable,Viewer))

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

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

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

$(eval $(call gb_Executable_add_objcxxobjects,Viewer,\
    ios/experimental/Viewer/Viewer/lo-viewer \
    ios/experimental/Viewer/Viewer/LOViewerAppDelegate \
    ios/experimental/Viewer/Viewer/main \
))

$(eval $(call gb_Executable_add_objcobjects,Viewer,\
    ios/experimental/Viewer/Viewer/LOViewerWindow \
))

# The executables built for iOS link to all LO libs statically. The
# link command just uses the wildcard function to list all of them.
# Instead of tediously here declare dependencies on the transitive
# closure of those from which some object ends up being linked in, we
# list a few libraries that are high in the dependency forest to make
# it likely that all necessary libraries are built before this
# executable is.
$(eval $(call gb_Executable_use_libraries,Viewer,\
	msword \
	sal \
	sc \
	scfilt \
	sdfilt \
	swui \
))

# 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".

$(call gb_LinkTarget_get_target,Executable/Viewer) : $(wildcard $(OUTDIR)/lib/lib*.a)

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