gfx/harfbuzz/src/Makefile.am

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # Process this file with automake to produce Makefile.in
michael@0 2
michael@0 3 NULL =
michael@0 4 SUBDIRS =
michael@0 5 DIST_SUBDIRS =
michael@0 6 BUILT_SOURCES =
michael@0 7 EXTRA_DIST =
michael@0 8 CLEANFILES =
michael@0 9 DISTCLEANFILES =
michael@0 10 MAINTAINERCLEANFILES =
michael@0 11 DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
michael@0 12
michael@0 13 # The following warning options are useful for debugging: -Wpadded
michael@0 14 #AM_CXXFLAGS =
michael@0 15
michael@0 16 lib_LTLIBRARIES = libharfbuzz.la
michael@0 17
michael@0 18 HBCFLAGS =
michael@0 19 HBLIBS =
michael@0 20 HBSOURCES = \
michael@0 21 hb-atomic-private.hh \
michael@0 22 hb-blob.cc \
michael@0 23 hb-buffer-deserialize-json.hh \
michael@0 24 hb-buffer-deserialize-text.hh \
michael@0 25 hb-buffer-private.hh \
michael@0 26 hb-buffer-serialize.cc \
michael@0 27 hb-buffer.cc \
michael@0 28 hb-cache-private.hh \
michael@0 29 hb-common.cc \
michael@0 30 hb-face-private.hh \
michael@0 31 hb-face.cc \
michael@0 32 hb-font-private.hh \
michael@0 33 hb-font.cc \
michael@0 34 hb-mutex-private.hh \
michael@0 35 hb-object-private.hh \
michael@0 36 hb-open-file-private.hh \
michael@0 37 hb-open-type-private.hh \
michael@0 38 hb-ot-head-table.hh \
michael@0 39 hb-ot-hhea-table.hh \
michael@0 40 hb-ot-hmtx-table.hh \
michael@0 41 hb-ot-maxp-table.hh \
michael@0 42 hb-ot-name-table.hh \
michael@0 43 hb-ot-tag.cc \
michael@0 44 hb-private.hh \
michael@0 45 hb-set-private.hh \
michael@0 46 hb-set.cc \
michael@0 47 hb-shape.cc \
michael@0 48 hb-shape-plan-private.hh \
michael@0 49 hb-shape-plan.cc \
michael@0 50 hb-shaper-list.hh \
michael@0 51 hb-shaper-impl-private.hh \
michael@0 52 hb-shaper-private.hh \
michael@0 53 hb-shaper.cc \
michael@0 54 hb-tt-font.cc \
michael@0 55 hb-unicode-private.hh \
michael@0 56 hb-unicode.cc \
michael@0 57 hb-utf-private.hh \
michael@0 58 hb-warning.cc \
michael@0 59 $(NULL)
michael@0 60 HBHEADERS = \
michael@0 61 hb.h \
michael@0 62 hb-blob.h \
michael@0 63 hb-buffer.h \
michael@0 64 hb-common.h \
michael@0 65 hb-deprecated.h \
michael@0 66 hb-face.h \
michael@0 67 hb-font.h \
michael@0 68 hb-set.h \
michael@0 69 hb-shape.h \
michael@0 70 hb-shape-plan.h \
michael@0 71 hb-unicode.h \
michael@0 72 $(NULL)
michael@0 73 HBNODISTHEADERS = \
michael@0 74 hb-version.h \
michael@0 75 $(NULL)
michael@0 76
michael@0 77 if HAVE_OT
michael@0 78 HBSOURCES += \
michael@0 79 hb-ot-layout.cc \
michael@0 80 hb-ot-layout-common-private.hh \
michael@0 81 hb-ot-layout-gdef-table.hh \
michael@0 82 hb-ot-layout-gpos-table.hh \
michael@0 83 hb-ot-layout-gsubgpos-private.hh \
michael@0 84 hb-ot-layout-gsub-table.hh \
michael@0 85 hb-ot-layout-jstf-table.hh \
michael@0 86 hb-ot-layout-private.hh \
michael@0 87 hb-ot-map.cc \
michael@0 88 hb-ot-map-private.hh \
michael@0 89 hb-ot-shape.cc \
michael@0 90 hb-ot-shape-complex-arabic.cc \
michael@0 91 hb-ot-shape-complex-arabic-fallback.hh \
michael@0 92 hb-ot-shape-complex-arabic-table.hh \
michael@0 93 hb-ot-shape-complex-default.cc \
michael@0 94 hb-ot-shape-complex-hangul.cc \
michael@0 95 hb-ot-shape-complex-hebrew.cc \
michael@0 96 hb-ot-shape-complex-indic.cc \
michael@0 97 hb-ot-shape-complex-indic-machine.hh \
michael@0 98 hb-ot-shape-complex-indic-private.hh \
michael@0 99 hb-ot-shape-complex-indic-table.cc \
michael@0 100 hb-ot-shape-complex-myanmar.cc \
michael@0 101 hb-ot-shape-complex-myanmar-machine.hh \
michael@0 102 hb-ot-shape-complex-sea.cc \
michael@0 103 hb-ot-shape-complex-sea-machine.hh \
michael@0 104 hb-ot-shape-complex-thai.cc \
michael@0 105 hb-ot-shape-complex-tibetan.cc \
michael@0 106 hb-ot-shape-complex-private.hh \
michael@0 107 hb-ot-shape-normalize-private.hh \
michael@0 108 hb-ot-shape-normalize.cc \
michael@0 109 hb-ot-shape-fallback-private.hh \
michael@0 110 hb-ot-shape-fallback.cc \
michael@0 111 hb-ot-shape-private.hh \
michael@0 112 $(NULL)
michael@0 113 HBHEADERS += \
michael@0 114 hb-ot.h \
michael@0 115 hb-ot-layout.h \
michael@0 116 hb-ot-shape.h \
michael@0 117 hb-ot-tag.h \
michael@0 118 $(NULL)
michael@0 119 endif
michael@0 120
michael@0 121 if HAVE_FALLBACK
michael@0 122 HBSOURCES += hb-fallback-shape.cc
michael@0 123 endif
michael@0 124
michael@0 125 if HAVE_PTHREAD
michael@0 126 HBCFLAGS += $(PTHREAD_CFLAGS)
michael@0 127 HBLIBS += $(PTHREAD_LIBS)
michael@0 128 endif
michael@0 129
michael@0 130 if HAVE_GLIB
michael@0 131 HBCFLAGS += $(GLIB_CFLAGS)
michael@0 132 HBLIBS += $(GLIB_LIBS)
michael@0 133 HBSOURCES += hb-glib.cc
michael@0 134 HBHEADERS += hb-glib.h
michael@0 135 endif
michael@0 136
michael@0 137 if HAVE_FREETYPE
michael@0 138 HBCFLAGS += $(FREETYPE_CFLAGS)
michael@0 139 HBLIBS += $(FREETYPE_LIBS)
michael@0 140 HBSOURCES += hb-ft.cc
michael@0 141 HBHEADERS += hb-ft.h
michael@0 142 endif
michael@0 143
michael@0 144 if HAVE_GRAPHITE2
michael@0 145 HBCFLAGS += $(GRAPHITE2_CFLAGS)
michael@0 146 HBLIBS += $(GRAPHITE2_LIBS)
michael@0 147 HBSOURCES += hb-graphite2.cc
michael@0 148 HBHEADERS += hb-graphite2.h
michael@0 149 endif
michael@0 150
michael@0 151 if HAVE_UNISCRIBE
michael@0 152 HBCFLAGS += $(UNISCRIBE_CFLAGS)
michael@0 153 HBLIBS += $(UNISCRIBE_LIBS)
michael@0 154 HBSOURCES += hb-uniscribe.cc
michael@0 155 HBHEADERS += hb-uniscribe.h
michael@0 156 endif
michael@0 157
michael@0 158 if HAVE_CORETEXT
michael@0 159 HBCFLAGS += $(CORETEXT_CFLAGS)
michael@0 160 HBLIBS += $(CORETEXT_LIBS)
michael@0 161 HBSOURCES += hb-coretext.cc
michael@0 162 HBHEADERS += hb-coretext.h
michael@0 163 endif
michael@0 164
michael@0 165 if HAVE_UCDN
michael@0 166 SUBDIRS += hb-ucdn
michael@0 167 HBCFLAGS += -I$(srcdir)/hb-ucdn
michael@0 168 HBLIBS += hb-ucdn/libhb-ucdn.la
michael@0 169 HBSOURCES += hb-ucdn.cc
michael@0 170 endif
michael@0 171 DIST_SUBDIRS += hb-ucdn
michael@0 172
michael@0 173
michael@0 174 # Put the library together
michael@0 175
michael@0 176 if OS_WIN32
michael@0 177 export_symbols = -export-symbols harfbuzz.def
michael@0 178 harfbuzz_def_dependency = harfbuzz.def
michael@0 179 libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
michael@0 180 else
michael@0 181 # Use a C linker for GCC, not C++; Don't link to libstdc++
michael@0 182 if HAVE_GCC
michael@0 183 libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)
michael@0 184 else
michael@0 185 libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
michael@0 186 endif
michael@0 187 endif
michael@0 188
michael@0 189 libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS) $(HBNODISTHEADERS)
michael@0 190 libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
michael@0 191 libharfbuzz_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) $(export_symbols) -no-undefined
michael@0 192 libharfbuzz_la_LIBADD = $(HBLIBS)
michael@0 193 EXTRA_libharfbuzz_la_DEPENDENCIES = $(harfbuzz_def_dependency)
michael@0 194 pkginclude_HEADERS = $(HBHEADERS)
michael@0 195 nodist_pkginclude_HEADERS = $(HBNODISTHEADERS)
michael@0 196 pkgconfigdir = $(libdir)/pkgconfig
michael@0 197 pkgconfig_DATA = harfbuzz.pc
michael@0 198 EXTRA_DIST += harfbuzz.pc.in
michael@0 199
michael@0 200 if HAVE_ICU
michael@0 201 lib_LTLIBRARIES += libharfbuzz-icu.la
michael@0 202 libharfbuzz_icu_la_SOURCES = hb-icu.cc
michael@0 203 libharfbuzz_icu_la_CPPFLAGS = $(ICU_CFLAGS)
michael@0 204 libharfbuzz_icu_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
michael@0 205 libharfbuzz_icu_la_LIBADD = $(ICU_LIBS) libharfbuzz.la
michael@0 206 pkginclude_HEADERS += hb-icu.h
michael@0 207 pkgconfig_DATA += harfbuzz-icu.pc
michael@0 208 endif
michael@0 209 EXTRA_DIST += harfbuzz-icu.pc.in
michael@0 210
michael@0 211 if HAVE_GOBJECT
michael@0 212 lib_LTLIBRARIES += libharfbuzz-gobject.la
michael@0 213 libharfbuzz_gobject_la_SOURCES = hb-gobject-structs.cc
michael@0 214 nodist_libharfbuzz_gobject_la_SOURCES = hb-gobject-enums.cc
michael@0 215 libharfbuzz_gobject_la_CPPFLAGS = $(GOBJECT_CFLAGS)
michael@0 216 libharfbuzz_gobject_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
michael@0 217 libharfbuzz_gobject_la_LIBADD = $(GOBJECT_LIBS) libharfbuzz.la
michael@0 218 pkginclude_HEADERS += hb-gobject.h hb-gobject-structs.h
michael@0 219 nodist_pkginclude_HEADERS += hb-gobject-enums.h
michael@0 220 pkgconfig_DATA += harfbuzz-gobject.pc
michael@0 221
michael@0 222 BUILT_SOURCES += \
michael@0 223 hb-gobject-enums.cc \
michael@0 224 hb-gobject-enums.h \
michael@0 225 $(NULL)
michael@0 226 DISTCLEANFILES += \
michael@0 227 hb-gobject-enums.cc \
michael@0 228 hb-gobject-enums.h \
michael@0 229 $(NULL)
michael@0 230 hb-gobject-enums.%: hb-gobject-enums.%.tmpl $(HBHEADERS)
michael@0 231 $(AM_V_GEN) $(GLIB_MKENUMS) \
michael@0 232 --identifier-prefix hb_ --symbol-prefix hb_gobject \
michael@0 233 --template $^ | \
michael@0 234 sed 's/_t_get_type/_get_type/g; s/_T (/ (/g' > "$@.tmp" && \
michael@0 235 mv "$@.tmp" "$@" || ( $(RM) "@.tmp" && false )
michael@0 236 endif
michael@0 237 EXTRA_DIST += \
michael@0 238 harfbuzz-gobject.pc.in \
michael@0 239 hb-gobject-enums.cc.tmpl \
michael@0 240 hb-gobject-enums.h.tmpl \
michael@0 241 $(NULL)
michael@0 242
michael@0 243
michael@0 244 %.pc: %.pc.in $(top_builddir)/config.status
michael@0 245 $(AM_V_GEN) \
michael@0 246 $(SED) -e 's@%prefix%@$(prefix)@g' \
michael@0 247 -e 's@%exec_prefix%@$(exec_prefix)@g' \
michael@0 248 -e 's@%libdir%@$(libdir)@g' \
michael@0 249 -e 's@%includedir%@$(includedir)@g' \
michael@0 250 -e 's@%VERSION%@$(VERSION)@g' \
michael@0 251 "$<" \
michael@0 252 > "$@.tmp" && mv "$@.tmp" "$@" || ( $(RM) "$@.tmp"; false )
michael@0 253
michael@0 254 CLEANFILES += $(pkgconfig_DATA)
michael@0 255
michael@0 256
michael@0 257 CLEANFILES += harfbuzz.def
michael@0 258 harfbuzz.def: $(HBHEADERS) $(HBNODISTHEADERS)
michael@0 259 $(AM_V_GEN) (echo EXPORTS; \
michael@0 260 (cat $^ || echo 'hb_ERROR ()' ) | \
michael@0 261 $(EGREP) '^hb_.* \(' | \
michael@0 262 sed -e 's/ (.*//' | \
michael@0 263 LANG=C sort; \
michael@0 264 echo LIBRARY libharfbuzz-$(HB_VERSION_MAJOR).dll; \
michael@0 265 ) >"$@.tmp"
michael@0 266 @ ! grep -q hb_ERROR "$@.tmp" && mv "$@.tmp" "$@" || ($(RM) "$@"; false)
michael@0 267
michael@0 268
michael@0 269 GENERATORS = \
michael@0 270 gen-arabic-table.py \
michael@0 271 gen-indic-table.py \
michael@0 272 $(NULL)
michael@0 273 EXTRA_DIST += $(GENERATORS)
michael@0 274
michael@0 275 unicode-tables: arabic-table indic-table
michael@0 276
michael@0 277 indic-table: gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Blocks.txt
michael@0 278 $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-indic-table.cc.tmp && \
michael@0 279 mv hb-ot-shape-complex-indic-table.cc.tmp $(srcdir)/hb-ot-shape-complex-indic-table.cc || \
michael@0 280 ($(RM) hb-ot-shape-complex-indic-table.cc.tmp; false)
michael@0 281
michael@0 282 arabic-table: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt
michael@0 283 $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-arabic-table.hh.tmp && \
michael@0 284 mv hb-ot-shape-complex-arabic-table.hh.tmp $(srcdir)/hb-ot-shape-complex-arabic-table.hh || \
michael@0 285 ($(RM) hb-ot-shape-complex-arabic-table.hh.tmp; false)
michael@0 286
michael@0 287
michael@0 288 .PHONY: unicode-tables arabic-table indic-table
michael@0 289
michael@0 290 BUILT_SOURCES += \
michael@0 291 hb-buffer-deserialize-json.hh \
michael@0 292 hb-buffer-deserialize-text.hh \
michael@0 293 hb-ot-shape-complex-indic-machine.hh \
michael@0 294 hb-ot-shape-complex-myanmar-machine.hh \
michael@0 295 hb-ot-shape-complex-sea-machine.hh \
michael@0 296 $(NULL)
michael@0 297 EXTRA_DIST += \
michael@0 298 hb-buffer-deserialize-json.rl \
michael@0 299 hb-buffer-deserialize-text.rl \
michael@0 300 hb-ot-shape-complex-indic-machine.rl \
michael@0 301 hb-ot-shape-complex-myanmar-machine.rl \
michael@0 302 hb-ot-shape-complex-sea-machine.rl \
michael@0 303 $(NULL)
michael@0 304 .rl.hh:
michael@0 305 $(AM_V_GEN)$(top_srcdir)/missing --run ragel -e -F1 -o "$@.tmp" "$<" && \
michael@0 306 mv "$@.tmp" "$@" || ( $(RM) "$@.tmp" && false )
michael@0 307
michael@0 308 noinst_PROGRAMS = \
michael@0 309 main \
michael@0 310 test \
michael@0 311 test-buffer-serialize \
michael@0 312 test-size-params \
michael@0 313 test-would-substitute \
michael@0 314 $(NULL)
michael@0 315 bin_PROGRAMS =
michael@0 316
michael@0 317 main_SOURCES = main.cc
michael@0 318 main_CPPFLAGS = $(HBCFLAGS)
michael@0 319 main_LDADD = libharfbuzz.la $(HBLIBS)
michael@0 320
michael@0 321 test_SOURCES = test.cc
michael@0 322 test_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
michael@0 323 test_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
michael@0 324
michael@0 325 test_would_substitute_SOURCES = test-would-substitute.cc
michael@0 326 test_would_substitute_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
michael@0 327 test_would_substitute_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
michael@0 328
michael@0 329 test_size_params_SOURCES = test-size-params.cc
michael@0 330 test_size_params_CPPFLAGS = $(HBCFLAGS)
michael@0 331 test_size_params_LDADD = libharfbuzz.la $(HBLIBS)
michael@0 332
michael@0 333 test_buffer_serialize_SOURCES = test-buffer-serialize.cc
michael@0 334 test_buffer_serialize_CPPFLAGS = $(HBCFLAGS)
michael@0 335 test_buffer_serialize_LDADD = libharfbuzz.la $(HBLIBS)
michael@0 336
michael@0 337 dist_check_SCRIPTS = \
michael@0 338 check-c-linkage-decls.sh \
michael@0 339 check-defs.sh \
michael@0 340 check-header-guards.sh \
michael@0 341 check-includes.sh \
michael@0 342 check-libstdc++.sh \
michael@0 343 check-static-inits.sh \
michael@0 344 check-symbols.sh \
michael@0 345 $(NULL)
michael@0 346
michael@0 347 TESTS = $(dist_check_SCRIPTS)
michael@0 348 TESTS_ENVIRONMENT = \
michael@0 349 srcdir="$(srcdir)" \
michael@0 350 MAKE="$(MAKE) $(AM_MAKEFLAGS)" \
michael@0 351 HBSOURCES="$(HBSOURCES)" \
michael@0 352 HBHEADERS="$(HBHEADERS) $(HBNODISTHEADERS)" \
michael@0 353 $(NULL)
michael@0 354
michael@0 355 if HAVE_INTROSPECTION
michael@0 356
michael@0 357 -include $(INTROSPECTION_MAKEFILE)
michael@0 358 INTROSPECTION_GIRS = HarfBuzz-$(HB_VERSION_MAJOR).0.gir # What does the 0 mean anyway?!
michael@0 359 INTROSPECTION_SCANNER_ARGS = -I$(srcdir) -n hb --identifier-prefix=hb_ --warn-all
michael@0 360 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
michael@0 361
michael@0 362 HarfBuzz-0.0.gir: libharfbuzz.la libharfbuzz-gobject.la
michael@0 363 HarfBuzz_0_0_gir_INCLUDES = GObject-2.0
michael@0 364 HarfBuzz_0_0_gir_CFLAGS = \
michael@0 365 $(INCLUDES) \
michael@0 366 $(HBCFLAGS) \
michael@0 367 -DHB_H \
michael@0 368 -DHB_H_IN \
michael@0 369 -DHB_OT_H \
michael@0 370 -DHB_OT_H_IN \
michael@0 371 -DHB_GOBJECT_H \
michael@0 372 -DHB_GOBJECT_H_IN \
michael@0 373 $(NULL)
michael@0 374 HarfBuzz_0_0_gir_LIBS = \
michael@0 375 libharfbuzz.la \
michael@0 376 libharfbuzz-gobject.la \
michael@0 377 $(NULL)
michael@0 378 HarfBuzz_0_0_gir_FILES = \
michael@0 379 $(HBHEADERS) \
michael@0 380 $(HBNODISTHEADERS) \
michael@0 381 $(HBSOURCES) \
michael@0 382 hb-gobject-enums.cc \
michael@0 383 hb-gobject-enums.h \
michael@0 384 hb-gobject-structs.cc \
michael@0 385 hb-gobject-structs.h \
michael@0 386 $(NULL)
michael@0 387
michael@0 388 girdir = $(datadir)/gir-1.0
michael@0 389 gir_DATA = $(INTROSPECTION_GIRS)
michael@0 390
michael@0 391 typelibdir = $(libdir)/girepository-1.0
michael@0 392 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
michael@0 393
michael@0 394 CLEANFILES += $(gir_DATA) $(typelib_DATA)
michael@0 395
michael@0 396 endif
michael@0 397
michael@0 398 -include $(top_srcdir)/git.mk

mercurial