• 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 := webkit_common_gpu_webkit_gpu_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	$(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
15	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_minimal_gyp)/blink_minimal.stamp \
16	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a
17
18GYP_GENERATED_OUTPUTS :=
19
20# Make sure our deps and generated files are built first.
21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
22
23LOCAL_CPP_EXTENSION := .cc
24LOCAL_GENERATED_SOURCES :=
25
26GYP_COPIED_SOURCE_ORIGIN_DIRS :=
27
28LOCAL_SRC_FILES := \
29	webkit/common/gpu/context_provider_in_process.cc \
30	webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc \
31	webkit/common/gpu/test_context_provider_factory.cc \
32	webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc \
33	webkit/common/gpu/webgraphicscontext3d_provider_impl.cc
34
35
36# Flags passed to both C and C++ files.
37MY_CFLAGS_Debug := \
38	--param=ssp-buffer-size=4 \
39	-fno-exceptions \
40	-fno-strict-aliasing \
41	-Wno-unused-parameter \
42	-Wno-missing-field-initializers \
43	-fvisibility=hidden \
44	-pipe \
45	-fPIC \
46	-Wno-unknown-pragmas \
47	-Wno-format \
48	-m32 \
49	-mmmx \
50	-march=pentium4 \
51	-msse2 \
52	-mfpmath=sse \
53	-fuse-ld=gold \
54	-ffunction-sections \
55	-funwind-tables \
56	-g \
57	-fno-short-enums \
58	-finline-limit=64 \
59	-Wa,--noexecstack \
60	-U_FORTIFY_SOURCE \
61	-Wno-extra \
62	-Wno-ignored-qualifiers \
63	-Wno-type-limits \
64	-fno-stack-protector \
65	-Wno-address \
66	-Wno-format-security \
67	-Wno-return-type \
68	-Wno-sequence-point \
69	-Os \
70	-g \
71	-fomit-frame-pointer \
72	-fdata-sections \
73	-ffunction-sections
74
75MY_DEFS_Debug := \
76	'-DV8_DEPRECATION_WARNINGS' \
77	'-D_FILE_OFFSET_BITS=64' \
78	'-DNO_TCMALLOC' \
79	'-DDISABLE_NACL' \
80	'-DCHROMIUM_BUILD' \
81	'-DUSE_LIBJPEG_TURBO=1' \
82	'-DUSE_PROPRIETARY_CODECS' \
83	'-DENABLE_CONFIGURATION_POLICY' \
84	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
85	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
86	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
87	'-DUSE_OPENSSL=1' \
88	'-DENABLE_EGLIMAGE=1' \
89	'-DCLD_VERSION=1' \
90	'-DENABLE_PRINTING=1' \
91	'-DENABLE_MANAGED_USERS=1' \
92	'-DWEBKIT_GPU_IMPLEMENTATION' \
93	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
94	'-DMESA_EGL_NO_X11_HEADERS' \
95	'-DU_USING_ICU_NAMESPACE=0' \
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)/shim_headers/skia_library/target \
109	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
110	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
111	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
112	$(LOCAL_PATH) \
113	$(LOCAL_PATH)/third_party/khronos \
114	$(LOCAL_PATH)/gpu \
115	$(LOCAL_PATH)/skia/config \
116	$(LOCAL_PATH)/third_party/WebKit/Source \
117	$(PWD)/external/skia/include \
118	$(PWD)/external/skia/include/core \
119	$(LOCAL_PATH)/third_party/skia/src/core \
120	$(LOCAL_PATH)/skia/ext \
121	$(gyp_shared_intermediate_dir)/ui/gl \
122	$(LOCAL_PATH)/third_party/mesa/src/include \
123	$(PWD)/external/icu4c/common \
124	$(PWD)/external/icu4c/i18n \
125	$(PWD)/frameworks/wilhelm/include \
126	$(PWD)/bionic \
127	$(PWD)/external/stlport/stlport
128
129
130# Flags passed to only C++ (and not C) files.
131LOCAL_CPPFLAGS_Debug := \
132	-fno-rtti \
133	-fno-threadsafe-statics \
134	-fvisibility-inlines-hidden \
135	-Wno-deprecated \
136	-Wno-error=c++0x-compat \
137	-Wno-non-virtual-dtor \
138	-Wno-sign-promo \
139	-Wno-non-virtual-dtor
140
141
142# Flags passed to both C and C++ files.
143MY_CFLAGS_Release := \
144	--param=ssp-buffer-size=4 \
145	-fno-exceptions \
146	-fno-strict-aliasing \
147	-Wno-unused-parameter \
148	-Wno-missing-field-initializers \
149	-fvisibility=hidden \
150	-pipe \
151	-fPIC \
152	-Wno-unknown-pragmas \
153	-Wno-format \
154	-m32 \
155	-mmmx \
156	-march=pentium4 \
157	-msse2 \
158	-mfpmath=sse \
159	-fuse-ld=gold \
160	-ffunction-sections \
161	-funwind-tables \
162	-g \
163	-fno-short-enums \
164	-finline-limit=64 \
165	-Wa,--noexecstack \
166	-U_FORTIFY_SOURCE \
167	-Wno-extra \
168	-Wno-ignored-qualifiers \
169	-Wno-type-limits \
170	-fno-stack-protector \
171	-Wno-address \
172	-Wno-format-security \
173	-Wno-return-type \
174	-Wno-sequence-point \
175	-Os \
176	-fno-ident \
177	-fdata-sections \
178	-ffunction-sections \
179	-fomit-frame-pointer \
180	-fno-unwind-tables \
181	-fno-asynchronous-unwind-tables
182
183MY_DEFS_Release := \
184	'-DV8_DEPRECATION_WARNINGS' \
185	'-D_FILE_OFFSET_BITS=64' \
186	'-DNO_TCMALLOC' \
187	'-DDISABLE_NACL' \
188	'-DCHROMIUM_BUILD' \
189	'-DUSE_LIBJPEG_TURBO=1' \
190	'-DUSE_PROPRIETARY_CODECS' \
191	'-DENABLE_CONFIGURATION_POLICY' \
192	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
193	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
194	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
195	'-DUSE_OPENSSL=1' \
196	'-DENABLE_EGLIMAGE=1' \
197	'-DCLD_VERSION=1' \
198	'-DENABLE_PRINTING=1' \
199	'-DENABLE_MANAGED_USERS=1' \
200	'-DWEBKIT_GPU_IMPLEMENTATION' \
201	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
202	'-DMESA_EGL_NO_X11_HEADERS' \
203	'-DU_USING_ICU_NAMESPACE=0' \
204	'-DANDROID' \
205	'-D__GNU_SOURCE=1' \
206	'-DUSE_STLPORT=1' \
207	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
208	'-DCHROME_BUILD_ID=""' \
209	'-DNDEBUG' \
210	'-DNVALGRIND' \
211	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
212
213
214# Include paths placed before CFLAGS/CPPFLAGS
215LOCAL_C_INCLUDES_Release := \
216	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
217	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
218	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
219	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
220	$(LOCAL_PATH) \
221	$(LOCAL_PATH)/third_party/khronos \
222	$(LOCAL_PATH)/gpu \
223	$(LOCAL_PATH)/skia/config \
224	$(LOCAL_PATH)/third_party/WebKit/Source \
225	$(PWD)/external/skia/include \
226	$(PWD)/external/skia/include/core \
227	$(LOCAL_PATH)/third_party/skia/src/core \
228	$(LOCAL_PATH)/skia/ext \
229	$(gyp_shared_intermediate_dir)/ui/gl \
230	$(LOCAL_PATH)/third_party/mesa/src/include \
231	$(PWD)/external/icu4c/common \
232	$(PWD)/external/icu4c/i18n \
233	$(PWD)/frameworks/wilhelm/include \
234	$(PWD)/bionic \
235	$(PWD)/external/stlport/stlport
236
237
238# Flags passed to only C++ (and not C) files.
239LOCAL_CPPFLAGS_Release := \
240	-fno-rtti \
241	-fno-threadsafe-statics \
242	-fvisibility-inlines-hidden \
243	-Wno-deprecated \
244	-Wno-error=c++0x-compat \
245	-Wno-non-virtual-dtor \
246	-Wno-sign-promo \
247	-Wno-non-virtual-dtor
248
249
250LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
251LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
252LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
253### Rules for final target.
254
255LOCAL_LDFLAGS_Debug := \
256	-Wl,-z,now \
257	-Wl,-z,relro \
258	-Wl,-z,noexecstack \
259	-fPIC \
260	-m32 \
261	-fuse-ld=gold \
262	-nostdlib \
263	-Wl,--no-undefined \
264	-Wl,--exclude-libs=ALL \
265	-Wl,--fatal-warnings \
266	-Wl,--gc-sections \
267	-Wl,--warn-shared-textrel \
268	-Wl,-O1 \
269	-Wl,--as-needed
270
271
272LOCAL_LDFLAGS_Release := \
273	-Wl,-z,now \
274	-Wl,-z,relro \
275	-Wl,-z,noexecstack \
276	-fPIC \
277	-m32 \
278	-fuse-ld=gold \
279	-nostdlib \
280	-Wl,--no-undefined \
281	-Wl,--exclude-libs=ALL \
282	-Wl,-O1 \
283	-Wl,--as-needed \
284	-Wl,--gc-sections \
285	-Wl,--fatal-warnings \
286	-Wl,--warn-shared-textrel
287
288
289LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
290
291LOCAL_STATIC_LIBRARIES := \
292	ui_gl_gl_gyp
293
294# Enable grouping to fix circular references
295LOCAL_GROUP_STATIC_LIBRARIES := true
296
297LOCAL_SHARED_LIBRARIES := \
298	libskia \
299	libstlport \
300	libdl
301
302# Add target alias to "gyp_all_modules" target.
303.PHONY: gyp_all_modules
304gyp_all_modules: webkit_common_gpu_webkit_gpu_gyp
305
306# Alias gyp target name.
307.PHONY: webkit_gpu
308webkit_gpu: webkit_common_gpu_webkit_gpu_gyp
309
310include $(BUILD_STATIC_LIBRARY)
311