blob: 2024b1c76d01f8e17df1605cde630c3858db86fd [file] [log] [blame]
Android Chromium Automerger5bf41e72013-04-18 15:10:02 +00001# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_ots_ots_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES :=
14
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_CPP_EXTENSION := .cc
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26 third_party/ots/src/cff.cc \
27 third_party/ots/src/cff_type2_charstring.cc \
28 third_party/ots/src/cmap.cc \
29 third_party/ots/src/cvt.cc \
30 third_party/ots/src/fpgm.cc \
31 third_party/ots/src/gasp.cc \
32 third_party/ots/src/gdef.cc \
33 third_party/ots/src/glyf.cc \
34 third_party/ots/src/gpos.cc \
35 third_party/ots/src/gsub.cc \
36 third_party/ots/src/hdmx.cc \
37 third_party/ots/src/head.cc \
38 third_party/ots/src/hhea.cc \
39 third_party/ots/src/hmtx.cc \
40 third_party/ots/src/kern.cc \
41 third_party/ots/src/layout.cc \
42 third_party/ots/src/loca.cc \
43 third_party/ots/src/ltsh.cc \
44 third_party/ots/src/maxp.cc \
45 third_party/ots/src/metrics.cc \
46 third_party/ots/src/name.cc \
47 third_party/ots/src/os2.cc \
48 third_party/ots/src/ots.cc \
49 third_party/ots/src/post.cc \
50 third_party/ots/src/prep.cc \
51 third_party/ots/src/vdmx.cc \
52 third_party/ots/src/vhea.cc \
53 third_party/ots/src/vmtx.cc \
54 third_party/ots/src/vorg.cc
55
56
57# Flags passed to both C and C++ files.
58MY_CFLAGS := \
59 --param=ssp-buffer-size=4 \
60 -Werror \
61 -fno-exceptions \
62 -fno-strict-aliasing \
63 -Wall \
64 -Wno-unused-parameter \
65 -Wno-missing-field-initializers \
66 -fvisibility=hidden \
67 -pipe \
68 -fPIC \
69 -m32 \
70 -mmmx \
71 -march=pentium4 \
72 -msse2 \
73 -mfpmath=sse \
74 -fuse-ld=gold \
75 -ffunction-sections \
76 -funwind-tables \
77 -g \
78 -fno-short-enums \
79 -finline-limit=64 \
80 -Wa,--noexecstack \
81 -U_FORTIFY_SOURCE \
82 -Wno-extra \
83 -Wno-ignored-qualifiers \
84 -Wno-type-limits \
85 -fno-stack-protector \
86 -Os \
87 -g \
88 -fomit-frame-pointer \
89 -fdata-sections \
90 -ffunction-sections
91
92MY_CFLAGS_C :=
93
94MY_DEFS := \
95 '-D_FILE_OFFSET_BITS=64' \
96 '-DUSE_LINUX_BREAKPAD' \
97 '-DNO_TCMALLOC' \
98 '-DDISABLE_NACL' \
99 '-DCHROMIUM_BUILD' \
100 '-DUSE_LIBJPEG_TURBO=1' \
101 '-DUSE_PROPRIETARY_CODECS' \
102 '-DENABLE_GPU=1' \
103 '-DUSE_OPENSSL=1' \
104 '-DENABLE_EGLIMAGE=1' \
105 '-DENABLE_LANGUAGE_DETECTION=1' \
106 '-D__STDC_CONSTANT_MACROS' \
107 '-D__STDC_FORMAT_MACROS' \
108 '-DANDROID' \
109 '-D__GNU_SOURCE=1' \
110 '-DUSE_STLPORT=1' \
111 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
112 '-DCHROME_BUILD_ID=""' \
113 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
114 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
115 '-D_DEBUG'
116
117LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
118
119# Include paths placed before CFLAGS/CPPFLAGS
120LOCAL_C_INCLUDES := \
121 $(LOCAL_PATH)/third_party/ots/include \
122 $(LOCAL_PATH)/third_party/zlib \
123 $(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \
124 $(GYP_ABS_ANDROID_TOP_DIR)/bionic \
125 $(GYP_ABS_ANDROID_TOP_DIR)/external/stlport/stlport
126
127LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
128
129# Flags passed to only C++ (and not C) files.
130LOCAL_CPPFLAGS := \
131 -fno-rtti \
132 -fno-threadsafe-statics \
133 -fvisibility-inlines-hidden \
134 -Wsign-compare \
135 -Wno-error=c++0x-compat \
136 -Wno-non-virtual-dtor \
137 -Wno-sign-promo
138
139### Rules for final target.
140
141LOCAL_LDFLAGS := \
142 -Wl,-z,now \
143 -Wl,-z,relro \
144 -Wl,-z,noexecstack \
145 -fPIC \
146 -m32 \
147 -fuse-ld=gold \
148 -nostdlib \
149 -Wl,--no-undefined \
150 -Wl,--exclude-libs=ALL \
151 -Wl,--gc-sections \
152 -Wl,-O1 \
153 -Wl,--as-needed
154
155
156LOCAL_STATIC_LIBRARIES :=
157
158# Enable grouping to fix circular references
159LOCAL_GROUP_STATIC_LIBRARIES := true
160
161LOCAL_SHARED_LIBRARIES := \
162 libstlport \
163 libdl
164
165# Add target alias to "gyp_all_modules" target.
166.PHONY: gyp_all_modules
167gyp_all_modules: third_party_ots_ots_gyp
168
169# Alias gyp target name.
170.PHONY: ots
171ots: third_party_ots_ots_gyp
172
173include $(BUILD_STATIC_LIBRARY)