blob: 92214c168aa9973d0849aff541110f62a7c34cc5 [file] [log] [blame]
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +01001# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := webkit_renderer_compositor_bindings_webkit_compositor_bindings_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,gpu_gpu_gyp)/gpu.stamp \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +010015 $(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
16 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp)/skia_skia_library_gyp.a \
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +010017 $(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_gyp)/blink.stamp \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010018 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a
19
20GYP_GENERATED_OUTPUTS :=
21
22# Make sure our deps and generated files are built first.
23LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
24
25LOCAL_CPP_EXTENSION := .cc
26LOCAL_GENERATED_SOURCES :=
27
28GYP_COPIED_SOURCE_ORIGIN_DIRS :=
29
30LOCAL_SRC_FILES := \
31 webkit/renderer/compositor_bindings/scrollbar_impl.cc \
32 webkit/renderer/compositor_bindings/web_animation_curve_common.cc \
33 webkit/renderer/compositor_bindings/web_animation_impl.cc \
34 webkit/renderer/compositor_bindings/web_compositing_reasons.cc \
35 webkit/renderer/compositor_bindings/web_content_layer_impl.cc \
Ben Murdoch7dbb3d52013-07-17 14:55:54 +010036 webkit/renderer/compositor_bindings/web_external_bitmap_impl.cc \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010037 webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc \
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +010038 webkit/renderer/compositor_bindings/web_filter_animation_curve_impl.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +010039 webkit/renderer/compositor_bindings/web_filter_operations_impl.cc \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010040 webkit/renderer/compositor_bindings/web_float_animation_curve_impl.cc \
41 webkit/renderer/compositor_bindings/web_image_layer_impl.cc \
42 webkit/renderer/compositor_bindings/web_layer_impl.cc \
43 webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.cc \
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +010044 webkit/renderer/compositor_bindings/web_nine_patch_layer_impl.cc \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010045 webkit/renderer/compositor_bindings/web_scrollbar_layer_impl.cc \
46 webkit/renderer/compositor_bindings/web_solid_color_layer_impl.cc \
Ben Murdochca12bfa2013-07-23 11:17:05 +010047 webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc \
48 webkit/renderer/compositor_bindings/web_transform_animation_curve_impl.cc \
49 webkit/renderer/compositor_bindings/web_transform_operations_impl.cc
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010050
51
52# Flags passed to both C and C++ files.
Ben Murdocheb525c52013-07-10 11:40:50 +010053MY_CFLAGS_Debug := \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010054 --param=ssp-buffer-size=4 \
55 -Werror \
56 -fno-exceptions \
57 -fno-strict-aliasing \
58 -Wall \
59 -Wno-unused-parameter \
60 -Wno-missing-field-initializers \
61 -fvisibility=hidden \
62 -pipe \
63 -fPIC \
64 -m32 \
65 -mmmx \
66 -march=pentium4 \
67 -msse2 \
68 -mfpmath=sse \
69 -fuse-ld=gold \
70 -ffunction-sections \
71 -funwind-tables \
72 -g \
73 -fno-short-enums \
74 -finline-limit=64 \
75 -Wa,--noexecstack \
76 -U_FORTIFY_SOURCE \
77 -Wno-extra \
78 -Wno-ignored-qualifiers \
79 -Wno-type-limits \
80 -fno-stack-protector \
81 -Os \
82 -g \
83 -fomit-frame-pointer \
84 -fdata-sections \
85 -ffunction-sections
86
Ben Murdocheb525c52013-07-10 11:40:50 +010087MY_DEFS_Debug := \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010088 '-DANGLE_DX11' \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010089 '-D_FILE_OFFSET_BITS=64' \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010090 '-DNO_TCMALLOC' \
Ben Murdoch7dbb3d52013-07-17 14:55:54 +010091 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
92 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010093 '-DDISABLE_NACL' \
94 '-DCHROMIUM_BUILD' \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010095 '-DUSE_LIBJPEG_TURBO=1' \
96 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +010097 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010098 '-DUSE_OPENSSL=1' \
99 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100100 '-DCLD_VERSION=1' \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100101 '-DWEBKIT_COMPOSITOR_BINDINGS_IMPLEMENTATION=1' \
102 '-DMEDIA_DISABLE_LIBVPX' \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100103 '-DSK_ENABLE_INST_COUNT=0' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100104 '-DSK_SUPPORT_GPU=1' \
105 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
Torne (Richard Coles)68043e12013-09-26 13:24:57 +0100106 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100107 '-DSK_BUILD_FOR_ANDROID' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100108 '-DSK_USE_POSIX_THREADS' \
Ben Murdochba5b9a62013-08-12 14:20:17 +0100109 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100110 '-DU_USING_ICU_NAMESPACE=0' \
111 '-D__STDC_CONSTANT_MACROS' \
112 '-D__STDC_FORMAT_MACROS' \
113 '-DANDROID' \
114 '-D__GNU_SOURCE=1' \
115 '-DUSE_STLPORT=1' \
116 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
117 '-DCHROME_BUILD_ID=""' \
118 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
119 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
120 '-D_DEBUG'
121
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100122
123# Include paths placed before CFLAGS/CPPFLAGS
Ben Murdocheb525c52013-07-10 11:40:50 +0100124LOCAL_C_INCLUDES_Debug := \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100125 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
126 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100127 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
128 $(LOCAL_PATH) \
129 $(LOCAL_PATH)/third_party/khronos \
130 $(LOCAL_PATH)/gpu \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100131 $(LOCAL_PATH)/third_party/skia/src/core \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100132 $(LOCAL_PATH)/skia/config \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100133 $(LOCAL_PATH)/third_party/skia/include/config \
134 $(LOCAL_PATH)/third_party/skia/include/core \
135 $(LOCAL_PATH)/third_party/skia/include/effects \
136 $(LOCAL_PATH)/third_party/skia/include/pdf \
137 $(LOCAL_PATH)/third_party/skia/include/gpu \
Ben Murdocheb525c52013-07-10 11:40:50 +0100138 $(LOCAL_PATH)/third_party/skia/include/lazy \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100139 $(LOCAL_PATH)/third_party/skia/include/pathops \
140 $(LOCAL_PATH)/third_party/skia/include/pipe \
141 $(LOCAL_PATH)/third_party/skia/include/ports \
142 $(LOCAL_PATH)/third_party/skia/include/utils \
143 $(LOCAL_PATH)/skia/ext \
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100144 $(LOCAL_PATH)/third_party/WebKit \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100145 $(PWD)/external/icu4c/common \
146 $(PWD)/external/icu4c/i18n \
147 $(LOCAL_PATH)/third_party/npapi \
148 $(LOCAL_PATH)/third_party/npapi/bindings \
149 $(LOCAL_PATH)/v8/include \
150 $(PWD)/frameworks/wilhelm/include \
151 $(PWD)/bionic \
152 $(PWD)/external/stlport/stlport
153
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100154
155# Flags passed to only C++ (and not C) files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100156LOCAL_CPPFLAGS_Debug := \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100157 -fno-rtti \
158 -fno-threadsafe-statics \
159 -fvisibility-inlines-hidden \
160 -Wsign-compare \
161 -Wno-error=c++0x-compat \
162 -Wno-non-virtual-dtor \
163 -Wno-sign-promo
164
Ben Murdocheb525c52013-07-10 11:40:50 +0100165
166# Flags passed to both C and C++ files.
167MY_CFLAGS_Release := \
168 --param=ssp-buffer-size=4 \
169 -Werror \
170 -fno-exceptions \
171 -fno-strict-aliasing \
172 -Wall \
173 -Wno-unused-parameter \
174 -Wno-missing-field-initializers \
175 -fvisibility=hidden \
176 -pipe \
177 -fPIC \
178 -m32 \
179 -mmmx \
180 -march=pentium4 \
181 -msse2 \
182 -mfpmath=sse \
183 -fuse-ld=gold \
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 -fno-stack-protector \
195 -Os \
196 -fno-ident \
197 -fdata-sections \
198 -ffunction-sections \
199 -fomit-frame-pointer \
200 -fno-unwind-tables \
201 -fno-asynchronous-unwind-tables
202
203MY_DEFS_Release := \
204 '-DANGLE_DX11' \
205 '-D_FILE_OFFSET_BITS=64' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100206 '-DNO_TCMALLOC' \
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100207 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
208 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100209 '-DDISABLE_NACL' \
210 '-DCHROMIUM_BUILD' \
211 '-DUSE_LIBJPEG_TURBO=1' \
212 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100213 '-DENABLE_CONFIGURATION_POLICY' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100214 '-DUSE_OPENSSL=1' \
215 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100216 '-DCLD_VERSION=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100217 '-DWEBKIT_COMPOSITOR_BINDINGS_IMPLEMENTATION=1' \
218 '-DMEDIA_DISABLE_LIBVPX' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100219 '-DSK_ENABLE_INST_COUNT=0' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100220 '-DSK_SUPPORT_GPU=1' \
221 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
Torne (Richard Coles)68043e12013-09-26 13:24:57 +0100222 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100223 '-DSK_BUILD_FOR_ANDROID' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100224 '-DSK_USE_POSIX_THREADS' \
Ben Murdochba5b9a62013-08-12 14:20:17 +0100225 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100226 '-DU_USING_ICU_NAMESPACE=0' \
227 '-D__STDC_CONSTANT_MACROS' \
228 '-D__STDC_FORMAT_MACROS' \
229 '-DANDROID' \
230 '-D__GNU_SOURCE=1' \
231 '-DUSE_STLPORT=1' \
232 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
233 '-DCHROME_BUILD_ID=""' \
234 '-DNDEBUG' \
235 '-DNVALGRIND' \
236 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
237 '-D_FORTIFY_SOURCE=2'
238
239
240# Include paths placed before CFLAGS/CPPFLAGS
241LOCAL_C_INCLUDES_Release := \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100242 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
243 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
Ben Murdocheb525c52013-07-10 11:40:50 +0100244 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
245 $(LOCAL_PATH) \
246 $(LOCAL_PATH)/third_party/khronos \
247 $(LOCAL_PATH)/gpu \
Ben Murdocheb525c52013-07-10 11:40:50 +0100248 $(LOCAL_PATH)/third_party/skia/src/core \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100249 $(LOCAL_PATH)/skia/config \
Ben Murdocheb525c52013-07-10 11:40:50 +0100250 $(LOCAL_PATH)/third_party/skia/include/config \
251 $(LOCAL_PATH)/third_party/skia/include/core \
252 $(LOCAL_PATH)/third_party/skia/include/effects \
253 $(LOCAL_PATH)/third_party/skia/include/pdf \
254 $(LOCAL_PATH)/third_party/skia/include/gpu \
Ben Murdocheb525c52013-07-10 11:40:50 +0100255 $(LOCAL_PATH)/third_party/skia/include/lazy \
256 $(LOCAL_PATH)/third_party/skia/include/pathops \
257 $(LOCAL_PATH)/third_party/skia/include/pipe \
258 $(LOCAL_PATH)/third_party/skia/include/ports \
259 $(LOCAL_PATH)/third_party/skia/include/utils \
260 $(LOCAL_PATH)/skia/ext \
261 $(LOCAL_PATH)/third_party/WebKit \
262 $(PWD)/external/icu4c/common \
263 $(PWD)/external/icu4c/i18n \
264 $(LOCAL_PATH)/third_party/npapi \
265 $(LOCAL_PATH)/third_party/npapi/bindings \
266 $(LOCAL_PATH)/v8/include \
267 $(PWD)/frameworks/wilhelm/include \
268 $(PWD)/bionic \
269 $(PWD)/external/stlport/stlport
270
271
272# Flags passed to only C++ (and not C) files.
273LOCAL_CPPFLAGS_Release := \
274 -fno-rtti \
275 -fno-threadsafe-statics \
276 -fvisibility-inlines-hidden \
277 -Wsign-compare \
278 -Wno-error=c++0x-compat \
279 -Wno-non-virtual-dtor \
280 -Wno-sign-promo
281
282
283LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
284LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
285LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100286### Rules for final target.
287
Ben Murdocheb525c52013-07-10 11:40:50 +0100288LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100289 -Wl,-z,now \
290 -Wl,-z,relro \
291 -Wl,-z,noexecstack \
292 -fPIC \
293 -m32 \
294 -fuse-ld=gold \
295 -nostdlib \
296 -Wl,--no-undefined \
297 -Wl,--exclude-libs=ALL \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100298 -Wl,--fatal-warnings \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100299 -Wl,--gc-sections \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100300 -Wl,--warn-shared-textrel \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100301 -Wl,-O1 \
302 -Wl,--as-needed
303
304
Ben Murdocheb525c52013-07-10 11:40:50 +0100305LOCAL_LDFLAGS_Release := \
306 -Wl,-z,now \
307 -Wl,-z,relro \
308 -Wl,-z,noexecstack \
309 -fPIC \
310 -m32 \
311 -fuse-ld=gold \
312 -nostdlib \
313 -Wl,--no-undefined \
314 -Wl,--exclude-libs=ALL \
315 -Wl,-O1 \
316 -Wl,--as-needed \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100317 -Wl,--gc-sections \
318 -Wl,--fatal-warnings \
319 -Wl,--warn-shared-textrel
Ben Murdocheb525c52013-07-10 11:40:50 +0100320
321
322LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
323
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100324LOCAL_STATIC_LIBRARIES := \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100325 skia_skia_library_gyp \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100326 ui_ui_gyp
327
328# Enable grouping to fix circular references
329LOCAL_GROUP_STATIC_LIBRARIES := true
330
331LOCAL_SHARED_LIBRARIES := \
332 libstlport \
333 libdl
334
335# Add target alias to "gyp_all_modules" target.
336.PHONY: gyp_all_modules
337gyp_all_modules: webkit_renderer_compositor_bindings_webkit_compositor_bindings_gyp
338
339# Alias gyp target name.
340.PHONY: webkit_compositor_bindings
341webkit_compositor_bindings: webkit_renderer_compositor_bindings_webkit_compositor_bindings_gyp
342
343include $(BUILD_STATIC_LIBRARY)