• 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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
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	 \
37	-fno-strict-aliasing \
38	-Wno-unused-parameter \
39	-Wno-missing-field-initializers \
40	-fvisibility=hidden \
41	-pipe \
42	-fPIC \
43	-Wno-unused-local-typedefs \
44	-Wno-format \
45	-ffunction-sections \
46	-funwind-tables \
47	-g \
48	-fstack-protector \
49	-fno-short-enums \
50	-finline-limit=64 \
51	-Wa,--noexecstack \
52	-U_FORTIFY_SOURCE \
53	-Wno-extra \
54	-Wno-ignored-qualifiers \
55	-Wno-type-limits \
56	-Wno-unused-but-set-variable \
57	-Wno-address \
58	-Wno-format-security \
59	-Wno-return-type \
60	-Wno-sequence-point \
61	-Os \
62	-g \
63	-gdwarf-4 \
64	-fdata-sections \
65	-ffunction-sections \
66	-fomit-frame-pointer \
67	-funwind-tables
68
69MY_DEFS_Debug := \
70	'-DV8_DEPRECATION_WARNINGS' \
71	'-D_FILE_OFFSET_BITS=64' \
72	'-DNO_TCMALLOC' \
73	'-DDISABLE_NACL' \
74	'-DCHROMIUM_BUILD' \
75	'-DUSE_LIBJPEG_TURBO=1' \
76	'-DENABLE_WEBRTC=1' \
77	'-DUSE_PROPRIETARY_CODECS' \
78	'-DENABLE_BROWSER_CDMS' \
79	'-DENABLE_CONFIGURATION_POLICY' \
80	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
81	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
82	'-DENABLE_EGLIMAGE=1' \
83	'-DCLD_VERSION=1' \
84	'-DENABLE_PRINTING=1' \
85	'-DENABLE_MANAGED_USERS=1' \
86	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
87	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
88	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
89	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
90	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
91	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
92	'-DVIDEO_HOLE=1' \
93	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
94	'-DUSE_OPENSSL=1' \
95	'-DUSE_OPENSSL_CERTS=1' \
96	'-DANDROID' \
97	'-D__GNU_SOURCE=1' \
98	'-DUSE_STLPORT=1' \
99	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
100	'-DCHROME_BUILD_ID=""' \
101	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
102	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
103	'-D_DEBUG'
104
105
106# Include paths placed before CFLAGS/CPPFLAGS
107LOCAL_C_INCLUDES_Debug := \
108	$(gyp_shared_intermediate_dir) \
109	$(PWD)/frameworks/wilhelm/include \
110	$(PWD)/bionic \
111	$(PWD)/external/stlport/stlport
112
113
114# Flags passed to only C++ (and not C) files.
115LOCAL_CPPFLAGS_Debug := \
116	-fno-exceptions \
117	-fno-rtti \
118	-fno-threadsafe-statics \
119	-fvisibility-inlines-hidden \
120	-Wno-deprecated \
121	-Wno-uninitialized \
122	-std=gnu++11 \
123	-Wno-narrowing \
124	-Wno-literal-suffix \
125	-Wno-non-virtual-dtor \
126	-Wno-sign-promo \
127	-Wno-non-virtual-dtor
128
129
130# Flags passed to both C and C++ files.
131MY_CFLAGS_Release := \
132	-fstack-protector \
133	--param=ssp-buffer-size=4 \
134	 \
135	-fno-strict-aliasing \
136	-Wno-unused-parameter \
137	-Wno-missing-field-initializers \
138	-fvisibility=hidden \
139	-pipe \
140	-fPIC \
141	-Wno-unused-local-typedefs \
142	-Wno-format \
143	-ffunction-sections \
144	-funwind-tables \
145	-g \
146	-fstack-protector \
147	-fno-short-enums \
148	-finline-limit=64 \
149	-Wa,--noexecstack \
150	-U_FORTIFY_SOURCE \
151	-Wno-extra \
152	-Wno-ignored-qualifiers \
153	-Wno-type-limits \
154	-Wno-unused-but-set-variable \
155	-Wno-address \
156	-Wno-format-security \
157	-Wno-return-type \
158	-Wno-sequence-point \
159	-Os \
160	-fno-ident \
161	-fdata-sections \
162	-ffunction-sections \
163	-fomit-frame-pointer \
164	-funwind-tables
165
166MY_DEFS_Release := \
167	'-DV8_DEPRECATION_WARNINGS' \
168	'-D_FILE_OFFSET_BITS=64' \
169	'-DNO_TCMALLOC' \
170	'-DDISABLE_NACL' \
171	'-DCHROMIUM_BUILD' \
172	'-DUSE_LIBJPEG_TURBO=1' \
173	'-DENABLE_WEBRTC=1' \
174	'-DUSE_PROPRIETARY_CODECS' \
175	'-DENABLE_BROWSER_CDMS' \
176	'-DENABLE_CONFIGURATION_POLICY' \
177	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
178	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
179	'-DENABLE_EGLIMAGE=1' \
180	'-DCLD_VERSION=1' \
181	'-DENABLE_PRINTING=1' \
182	'-DENABLE_MANAGED_USERS=1' \
183	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
184	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
185	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
186	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
187	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
188	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
189	'-DVIDEO_HOLE=1' \
190	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
191	'-DUSE_OPENSSL=1' \
192	'-DUSE_OPENSSL_CERTS=1' \
193	'-DANDROID' \
194	'-D__GNU_SOURCE=1' \
195	'-DUSE_STLPORT=1' \
196	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
197	'-DCHROME_BUILD_ID=""' \
198	'-DNDEBUG' \
199	'-DNVALGRIND' \
200	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
201
202
203# Include paths placed before CFLAGS/CPPFLAGS
204LOCAL_C_INCLUDES_Release := \
205	$(gyp_shared_intermediate_dir) \
206	$(PWD)/frameworks/wilhelm/include \
207	$(PWD)/bionic \
208	$(PWD)/external/stlport/stlport
209
210
211# Flags passed to only C++ (and not C) files.
212LOCAL_CPPFLAGS_Release := \
213	-fno-exceptions \
214	-fno-rtti \
215	-fno-threadsafe-statics \
216	-fvisibility-inlines-hidden \
217	-Wno-deprecated \
218	-Wno-uninitialized \
219	-std=gnu++11 \
220	-Wno-narrowing \
221	-Wno-literal-suffix \
222	-Wno-non-virtual-dtor \
223	-Wno-sign-promo \
224	-Wno-non-virtual-dtor
225
226
227LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
228LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
229LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
230LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
231### Rules for final target.
232
233LOCAL_SHARED_LIBRARIES := \
234	libstlport \
235	libdl
236
237# Add target alias to "gyp_all_modules" target.
238.PHONY: gyp_all_modules
239gyp_all_modules: third_party_qcms_qcms_gyp
240
241# Alias gyp target name.
242.PHONY: qcms
243qcms: third_party_qcms_qcms_gyp
244
245include $(BUILD_STATIC_LIBRARY)
246