• 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 := cc_cc_surfaces_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	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
15	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_CPP_EXTENSION := .cc
23LOCAL_GENERATED_SOURCES :=
24
25GYP_COPIED_SOURCE_ORIGIN_DIRS :=
26
27LOCAL_SRC_FILES := \
28	cc/surfaces/display.cc \
29	cc/surfaces/surface.cc \
30	cc/surfaces/surface_aggregator.cc \
31	cc/surfaces/surface_factory.cc \
32	cc/surfaces/surface_id_allocator.cc \
33	cc/surfaces/surface_manager.cc \
34	cc/surfaces/surface_resource_holder.cc
35
36
37# Flags passed to both C and C++ files.
38MY_CFLAGS_Debug := \
39	--param=ssp-buffer-size=4 \
40	-Werror \
41	-fno-strict-aliasing \
42	-Wall \
43	-Wno-unused-parameter \
44	-Wno-missing-field-initializers \
45	-fvisibility=hidden \
46	-pipe \
47	-fPIC \
48	-Wno-unused-local-typedefs \
49	-msse2 \
50	-mfpmath=sse \
51	-mmmx \
52	-m32 \
53	-ffunction-sections \
54	-funwind-tables \
55	-g \
56	-fno-short-enums \
57	-finline-limit=64 \
58	-Wa,--noexecstack \
59	-U_FORTIFY_SOURCE \
60	-Wno-extra \
61	-Wno-ignored-qualifiers \
62	-Wno-type-limits \
63	-Wno-unused-but-set-variable \
64	-fno-stack-protector \
65	-Os \
66	-g \
67	-gdwarf-4 \
68	-fdata-sections \
69	-ffunction-sections \
70	-fomit-frame-pointer \
71	-funwind-tables
72
73MY_DEFS_Debug := \
74	'-DV8_DEPRECATION_WARNINGS' \
75	'-D_FILE_OFFSET_BITS=64' \
76	'-DNO_TCMALLOC' \
77	'-DDISABLE_NACL' \
78	'-DCHROMIUM_BUILD' \
79	'-DUSE_LIBJPEG_TURBO=1' \
80	'-DENABLE_WEBRTC=1' \
81	'-DUSE_PROPRIETARY_CODECS' \
82	'-DENABLE_BROWSER_CDMS' \
83	'-DENABLE_CONFIGURATION_POLICY' \
84	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
85	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
86	'-DENABLE_EGLIMAGE=1' \
87	'-DCLD_VERSION=1' \
88	'-DENABLE_PRINTING=1' \
89	'-DENABLE_MANAGED_USERS=1' \
90	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
91	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
92	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
93	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
94	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
95	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
96	'-DVIDEO_HOLE=1' \
97	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
98	'-DCC_SURFACES_IMPLEMENTATION=1' \
99	'-DSK_ENABLE_INST_COUNT=0' \
100	'-DSK_SUPPORT_GPU=1' \
101	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
102	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
103	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
104	'-DGR_GL_IGNORE_ES3_MSAA=0' \
105	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
106	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
107	'-DSK_BUILD_FOR_ANDROID' \
108	'-DSK_USE_POSIX_THREADS' \
109	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
110	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
111	'-DU_USING_ICU_NAMESPACE=0' \
112	'-DU_ENABLE_DYLOAD=0' \
113	'-DUSE_OPENSSL=1' \
114	'-DUSE_OPENSSL_CERTS=1' \
115	'-D__STDC_CONSTANT_MACROS' \
116	'-D__STDC_FORMAT_MACROS' \
117	'-DANDROID' \
118	'-D__GNU_SOURCE=1' \
119	'-DUSE_STLPORT=1' \
120	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
121	'-DCHROME_BUILD_ID=""' \
122	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
123	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
124	'-D_DEBUG'
125
126
127# Include paths placed before CFLAGS/CPPFLAGS
128LOCAL_C_INCLUDES_Debug := \
129	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
130	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
131	$(gyp_shared_intermediate_dir) \
132	$(LOCAL_PATH) \
133	$(LOCAL_PATH)/third_party/khronos \
134	$(LOCAL_PATH)/gpu \
135	$(LOCAL_PATH)/skia/config \
136	$(LOCAL_PATH)/third_party/skia/src/core \
137	$(LOCAL_PATH)/third_party/skia/include/core \
138	$(LOCAL_PATH)/third_party/skia/include/effects \
139	$(LOCAL_PATH)/third_party/skia/include/pdf \
140	$(LOCAL_PATH)/third_party/skia/include/gpu \
141	$(LOCAL_PATH)/third_party/skia/include/lazy \
142	$(LOCAL_PATH)/third_party/skia/include/pathops \
143	$(LOCAL_PATH)/third_party/skia/include/pipe \
144	$(LOCAL_PATH)/third_party/skia/include/ports \
145	$(LOCAL_PATH)/third_party/skia/include/utils \
146	$(LOCAL_PATH)/skia/ext \
147	$(PWD)/external/icu/icu4c/source/common \
148	$(PWD)/external/icu/icu4c/source/i18n \
149	$(PWD)/frameworks/wilhelm/include \
150	$(PWD)/bionic \
151	$(PWD)/external/stlport/stlport
152
153
154# Flags passed to only C++ (and not C) files.
155LOCAL_CPPFLAGS_Debug := \
156	-fno-exceptions \
157	-fno-rtti \
158	-fno-threadsafe-statics \
159	-fvisibility-inlines-hidden \
160	-Wsign-compare \
161	-std=gnu++11 \
162	-Wno-narrowing \
163	-Wno-literal-suffix \
164	-Wno-non-virtual-dtor \
165	-Wno-sign-promo
166
167
168# Flags passed to both C and C++ files.
169MY_CFLAGS_Release := \
170	--param=ssp-buffer-size=4 \
171	-Werror \
172	-fno-strict-aliasing \
173	-Wall \
174	-Wno-unused-parameter \
175	-Wno-missing-field-initializers \
176	-fvisibility=hidden \
177	-pipe \
178	-fPIC \
179	-Wno-unused-local-typedefs \
180	-msse2 \
181	-mfpmath=sse \
182	-mmmx \
183	-m32 \
184	-ffunction-sections \
185	-funwind-tables \
186	-g \
187	-fno-short-enums \
188	-finline-limit=64 \
189	-Wa,--noexecstack \
190	-U_FORTIFY_SOURCE \
191	-Wno-extra \
192	-Wno-ignored-qualifiers \
193	-Wno-type-limits \
194	-Wno-unused-but-set-variable \
195	-fno-stack-protector \
196	-fno-ident \
197	-fdata-sections \
198	-ffunction-sections \
199	-fomit-frame-pointer \
200	-funwind-tables \
201	-O2
202
203MY_DEFS_Release := \
204	'-DV8_DEPRECATION_WARNINGS' \
205	'-D_FILE_OFFSET_BITS=64' \
206	'-DNO_TCMALLOC' \
207	'-DDISABLE_NACL' \
208	'-DCHROMIUM_BUILD' \
209	'-DUSE_LIBJPEG_TURBO=1' \
210	'-DENABLE_WEBRTC=1' \
211	'-DUSE_PROPRIETARY_CODECS' \
212	'-DENABLE_BROWSER_CDMS' \
213	'-DENABLE_CONFIGURATION_POLICY' \
214	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
215	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
216	'-DENABLE_EGLIMAGE=1' \
217	'-DCLD_VERSION=1' \
218	'-DENABLE_PRINTING=1' \
219	'-DENABLE_MANAGED_USERS=1' \
220	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
221	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
222	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
223	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
224	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
225	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
226	'-DVIDEO_HOLE=1' \
227	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
228	'-DCC_SURFACES_IMPLEMENTATION=1' \
229	'-DSK_ENABLE_INST_COUNT=0' \
230	'-DSK_SUPPORT_GPU=1' \
231	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
232	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
233	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
234	'-DGR_GL_IGNORE_ES3_MSAA=0' \
235	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
236	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
237	'-DSK_BUILD_FOR_ANDROID' \
238	'-DSK_USE_POSIX_THREADS' \
239	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
240	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
241	'-DU_USING_ICU_NAMESPACE=0' \
242	'-DU_ENABLE_DYLOAD=0' \
243	'-DUSE_OPENSSL=1' \
244	'-DUSE_OPENSSL_CERTS=1' \
245	'-D__STDC_CONSTANT_MACROS' \
246	'-D__STDC_FORMAT_MACROS' \
247	'-DANDROID' \
248	'-D__GNU_SOURCE=1' \
249	'-DUSE_STLPORT=1' \
250	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
251	'-DCHROME_BUILD_ID=""' \
252	'-DNDEBUG' \
253	'-DNVALGRIND' \
254	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
255	'-D_FORTIFY_SOURCE=2'
256
257
258# Include paths placed before CFLAGS/CPPFLAGS
259LOCAL_C_INCLUDES_Release := \
260	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
261	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
262	$(gyp_shared_intermediate_dir) \
263	$(LOCAL_PATH) \
264	$(LOCAL_PATH)/third_party/khronos \
265	$(LOCAL_PATH)/gpu \
266	$(LOCAL_PATH)/skia/config \
267	$(LOCAL_PATH)/third_party/skia/src/core \
268	$(LOCAL_PATH)/third_party/skia/include/core \
269	$(LOCAL_PATH)/third_party/skia/include/effects \
270	$(LOCAL_PATH)/third_party/skia/include/pdf \
271	$(LOCAL_PATH)/third_party/skia/include/gpu \
272	$(LOCAL_PATH)/third_party/skia/include/lazy \
273	$(LOCAL_PATH)/third_party/skia/include/pathops \
274	$(LOCAL_PATH)/third_party/skia/include/pipe \
275	$(LOCAL_PATH)/third_party/skia/include/ports \
276	$(LOCAL_PATH)/third_party/skia/include/utils \
277	$(LOCAL_PATH)/skia/ext \
278	$(PWD)/external/icu/icu4c/source/common \
279	$(PWD)/external/icu/icu4c/source/i18n \
280	$(PWD)/frameworks/wilhelm/include \
281	$(PWD)/bionic \
282	$(PWD)/external/stlport/stlport
283
284
285# Flags passed to only C++ (and not C) files.
286LOCAL_CPPFLAGS_Release := \
287	-fno-exceptions \
288	-fno-rtti \
289	-fno-threadsafe-statics \
290	-fvisibility-inlines-hidden \
291	-Wsign-compare \
292	-std=gnu++11 \
293	-Wno-narrowing \
294	-Wno-literal-suffix \
295	-Wno-non-virtual-dtor \
296	-Wno-sign-promo
297
298
299LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
300LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
301LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
302LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
303### Rules for final target.
304
305LOCAL_SHARED_LIBRARIES := \
306	libstlport \
307	libdl
308
309# Add target alias to "gyp_all_modules" target.
310.PHONY: gyp_all_modules
311gyp_all_modules: cc_cc_surfaces_gyp
312
313# Alias gyp target name.
314.PHONY: cc_surfaces
315cc_surfaces: cc_cc_surfaces_gyp
316
317include $(BUILD_STATIC_LIBRARY)
318