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