• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_qcms_qcms_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_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/qcms/src/chain.c \
26	third_party/qcms/src/iccread.c \
27	third_party/qcms/src/matrix.c \
28	third_party/qcms/src/transform.c \
29	third_party/qcms/src/transform_util.c
30
31
32# Flags passed to both C and C++ files.
33MY_CFLAGS_Debug := \
34	-fstack-protector \
35	--param=ssp-buffer-size=4 \
36	-fno-exceptions \
37	-fno-strict-aliasing \
38	-Wno-unused-parameter \
39	-Wno-missing-field-initializers \
40	-fvisibility=hidden \
41	-pipe \
42	-fPIC \
43	-Wno-format \
44	-fno-tree-sra \
45	-fuse-ld=gold \
46	-Wno-psabi \
47	-ffunction-sections \
48	-funwind-tables \
49	-g \
50	-fstack-protector \
51	-fno-short-enums \
52	-finline-limit=64 \
53	-Wa,--noexecstack \
54	-U_FORTIFY_SOURCE \
55	-Wno-extra \
56	-Wno-ignored-qualifiers \
57	-Wno-type-limits \
58	-Wno-address \
59	-Wno-format-security \
60	-Wno-return-type \
61	-Wno-sequence-point \
62	-Os \
63	-g \
64	-fomit-frame-pointer \
65	-fdata-sections \
66	-ffunction-sections
67
68MY_DEFS_Debug := \
69	'-DV8_DEPRECATION_WARNINGS' \
70	'-D_FILE_OFFSET_BITS=64' \
71	'-DNO_TCMALLOC' \
72	'-DDISABLE_NACL' \
73	'-DCHROMIUM_BUILD' \
74	'-DUSE_LIBJPEG_TURBO=1' \
75	'-DUSE_PROPRIETARY_CODECS' \
76	'-DENABLE_CONFIGURATION_POLICY' \
77	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
78	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
79	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
80	'-DUSE_OPENSSL=1' \
81	'-DENABLE_EGLIMAGE=1' \
82	'-DCLD_VERSION=1' \
83	'-DENABLE_PRINTING=1' \
84	'-DENABLE_MANAGED_USERS=1' \
85	'-DANDROID' \
86	'-D__GNU_SOURCE=1' \
87	'-DUSE_STLPORT=1' \
88	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
89	'-DCHROME_BUILD_ID=""' \
90	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
91	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
92	'-D_DEBUG'
93
94
95# Include paths placed before CFLAGS/CPPFLAGS
96LOCAL_C_INCLUDES_Debug := \
97	$(PWD)/frameworks/wilhelm/include \
98	$(PWD)/bionic \
99	$(PWD)/external/stlport/stlport
100
101
102# Flags passed to only C++ (and not C) files.
103LOCAL_CPPFLAGS_Debug := \
104	-fno-rtti \
105	-fno-threadsafe-statics \
106	-fvisibility-inlines-hidden \
107	-Wno-deprecated \
108	-Wno-abi \
109	-Wno-error=c++0x-compat \
110	-Wno-non-virtual-dtor \
111	-Wno-sign-promo \
112	-Wno-non-virtual-dtor
113
114
115# Flags passed to both C and C++ files.
116MY_CFLAGS_Release := \
117	-fstack-protector \
118	--param=ssp-buffer-size=4 \
119	-fno-exceptions \
120	-fno-strict-aliasing \
121	-Wno-unused-parameter \
122	-Wno-missing-field-initializers \
123	-fvisibility=hidden \
124	-pipe \
125	-fPIC \
126	-Wno-format \
127	-fno-tree-sra \
128	-fuse-ld=gold \
129	-Wno-psabi \
130	-ffunction-sections \
131	-funwind-tables \
132	-g \
133	-fstack-protector \
134	-fno-short-enums \
135	-finline-limit=64 \
136	-Wa,--noexecstack \
137	-U_FORTIFY_SOURCE \
138	-Wno-extra \
139	-Wno-ignored-qualifiers \
140	-Wno-type-limits \
141	-Wno-address \
142	-Wno-format-security \
143	-Wno-return-type \
144	-Wno-sequence-point \
145	-Os \
146	-fno-ident \
147	-fdata-sections \
148	-ffunction-sections \
149	-fomit-frame-pointer
150
151MY_DEFS_Release := \
152	'-DV8_DEPRECATION_WARNINGS' \
153	'-D_FILE_OFFSET_BITS=64' \
154	'-DNO_TCMALLOC' \
155	'-DDISABLE_NACL' \
156	'-DCHROMIUM_BUILD' \
157	'-DUSE_LIBJPEG_TURBO=1' \
158	'-DUSE_PROPRIETARY_CODECS' \
159	'-DENABLE_CONFIGURATION_POLICY' \
160	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
161	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
162	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
163	'-DUSE_OPENSSL=1' \
164	'-DENABLE_EGLIMAGE=1' \
165	'-DCLD_VERSION=1' \
166	'-DENABLE_PRINTING=1' \
167	'-DENABLE_MANAGED_USERS=1' \
168	'-DANDROID' \
169	'-D__GNU_SOURCE=1' \
170	'-DUSE_STLPORT=1' \
171	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
172	'-DCHROME_BUILD_ID=""' \
173	'-DNDEBUG' \
174	'-DNVALGRIND' \
175	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
176
177
178# Include paths placed before CFLAGS/CPPFLAGS
179LOCAL_C_INCLUDES_Release := \
180	$(PWD)/frameworks/wilhelm/include \
181	$(PWD)/bionic \
182	$(PWD)/external/stlport/stlport
183
184
185# Flags passed to only C++ (and not C) files.
186LOCAL_CPPFLAGS_Release := \
187	-fno-rtti \
188	-fno-threadsafe-statics \
189	-fvisibility-inlines-hidden \
190	-Wno-deprecated \
191	-Wno-abi \
192	-Wno-error=c++0x-compat \
193	-Wno-non-virtual-dtor \
194	-Wno-sign-promo \
195	-Wno-non-virtual-dtor
196
197
198LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
199LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
200LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
201### Rules for final target.
202
203LOCAL_LDFLAGS_Debug := \
204	-Wl,-z,now \
205	-Wl,-z,relro \
206	-Wl,-z,noexecstack \
207	-fPIC \
208	-Wl,-z,relro \
209	-Wl,-z,now \
210	-fuse-ld=gold \
211	-nostdlib \
212	-Wl,--no-undefined \
213	-Wl,--exclude-libs=ALL \
214	-Wl,--icf=safe \
215	-Wl,--fatal-warnings \
216	-Wl,--gc-sections \
217	-Wl,--warn-shared-textrel \
218	-Wl,-O1 \
219	-Wl,--as-needed
220
221
222LOCAL_LDFLAGS_Release := \
223	-Wl,-z,now \
224	-Wl,-z,relro \
225	-Wl,-z,noexecstack \
226	-fPIC \
227	-Wl,-z,relro \
228	-Wl,-z,now \
229	-fuse-ld=gold \
230	-nostdlib \
231	-Wl,--no-undefined \
232	-Wl,--exclude-libs=ALL \
233	-Wl,--icf=safe \
234	-Wl,-O1 \
235	-Wl,--as-needed \
236	-Wl,--gc-sections \
237	-Wl,--fatal-warnings \
238	-Wl,--warn-shared-textrel
239
240
241LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
242
243LOCAL_STATIC_LIBRARIES :=
244
245# Enable grouping to fix circular references
246LOCAL_GROUP_STATIC_LIBRARIES := true
247
248LOCAL_SHARED_LIBRARIES := \
249	libstlport \
250	libdl
251
252# Add target alias to "gyp_all_modules" target.
253.PHONY: gyp_all_modules
254gyp_all_modules: third_party_qcms_qcms_gyp
255
256# Alias gyp target name.
257.PHONY: qcms
258qcms: third_party_qcms_qcms_gyp
259
260include $(BUILD_STATIC_LIBRARY)
261