blob: 6319edf404fd954066957099ac29ce973b78fe3c (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
## $Id$
## Proxy Makefile.am to build graphite2 for TeX Live.
##
## Copyright 2016-2017 Karl Berry <tex-live@tug.org>
## Copyright 2012-2015 Peter Breitenlohner <tex-live@tug.org>
##
## This file is free software; the copyright holder
## gives unlimited permission to copy and/or distribute it,
## with or without modifications, as long as this notice is preserved.
##
## We want to re-distribute the whole original graphite2 source tree.
##
EXTRA_DIST = $(GRAPHITE2_TREE)
## Changes applied to the original source tree
##
EXTRA_DIST += TLpatches
GRAPHITE2_SRC = $(GRAPHITE2_TREE)/src
GRAPHITE2_INC = $(GRAPHITE2_TREE)/include
# Files not to be distributed
include $(srcdir)/../../am/dist_hook.am
NEVER_NAMES += $(NEVER_NAMES_SUB)
SUBDIRS = . include/graphite2
noinst_LIBRARIES = libgraphite2.a
## common
AM_CPPFLAGS = -I$(top_srcdir)/$(GRAPHITE2_SRC) -I$(top_srcdir)/$(GRAPHITE2_INC)
AM_CPPFLAGS += -DGRAPHITE2_STATIC -DGRAPHITE2_CUSTOM_HEADER='<config.h>'
libgraphite2_a_SOURCES = \
@GRAPHITE2_TREE@/src/CachedFace.cpp \
@GRAPHITE2_TREE@/src/CmapCache.cpp \
@GRAPHITE2_TREE@/src/Code.cpp \
@GRAPHITE2_TREE@/src/Collider.cpp \
@GRAPHITE2_TREE@/src/Decompressor.cpp \
@GRAPHITE2_TREE@/src/Face.cpp \
@GRAPHITE2_TREE@/src/FeatureMap.cpp \
@GRAPHITE2_TREE@/src/Font.cpp \
@GRAPHITE2_TREE@/src/GlyphCache.cpp \
@GRAPHITE2_TREE@/src/GlyphFace.cpp \
@GRAPHITE2_TREE@/src/Intervals.cpp \
@GRAPHITE2_TREE@/src/Justifier.cpp \
@GRAPHITE2_TREE@/src/NameTable.cpp \
@GRAPHITE2_TREE@/src/Pass.cpp \
@GRAPHITE2_TREE@/src/Position.cpp \
@GRAPHITE2_TREE@/src/Segment.cpp \
@GRAPHITE2_TREE@/src/Silf.cpp \
@GRAPHITE2_TREE@/src/Slot.cpp \
@GRAPHITE2_TREE@/src/Sparse.cpp \
@GRAPHITE2_TREE@/src/TtfUtil.cpp \
@GRAPHITE2_TREE@/src/UtfCodec.cpp \
@GRAPHITE2_TREE@/src/gr_char_info.cpp \
@GRAPHITE2_TREE@/src/gr_face.cpp \
@GRAPHITE2_TREE@/src/gr_features.cpp \
@GRAPHITE2_TREE@/src/gr_font.cpp \
@GRAPHITE2_TREE@/src/gr_logging.cpp \
@GRAPHITE2_TREE@/src/gr_segment.cpp \
@GRAPHITE2_TREE@/src/gr_slot.cpp
if DIRECT_TYPE
libgraphite2_a_SOURCES += @GRAPHITE2_TREE@/src/direct_machine.cpp
else !DIRECT_TYPE
libgraphite2_a_SOURCES += @GRAPHITE2_TREE@/src/call_machine.cpp
endif !DIRECT_TYPE
if WITH_SEGCACHE
libgraphite2_a_SOURCES += \
@GRAPHITE2_TREE@/src/SegCache.cpp \
@GRAPHITE2_TREE@/src/SegCacheEntry.cpp \
@GRAPHITE2_TREE@/src/SegCacheStore.cpp
else !WITH_SEGCACHE
AM_CPPFLAGS += -DGRAPHITE2_NSEGCACHE
endif !WITH_SEGCACHE
if WITH_FILEFACE
libgraphite2_a_SOURCES += @GRAPHITE2_TREE@/src/FileFace.cpp
else !WITH_FILEFACE
AM_CPPFLAGS += -DGRAPHITE2_NFILEFACE
endif !WITH_FILEFACE
if WITH_TRACING
libgraphite2_a_SOURCES += @GRAPHITE2_TREE@/src/json.cpp
else !WITH_TRACING
AM_CPPFLAGS += -DGRAPHITE2_NTRACING
endif !WITH_TRACING
if build
check_PROGRAMS = gr2test
dist_check_SCRIPTS = graphite2.test
TESTS = graphite2.test
endif build
graphite2.log: gr2test$(EXEEXT)
gr2test_SOURCES = gr2test.c
# Force Automake to use CXXLD for linking
nodist_EXTRA_gr2test_SOURCES = dummy.cxx
gr2test_CPPFLAGS = -Iinclude -DGRAPHITE2_STATIC
LDADD = libgraphite2.a
# Rebuild
rebuild_prereq =
rebuild_target = all
CLEANFILES =
include $(srcdir)/../../am/rebuild.am
|