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