1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := GYP
6LOCAL_MODULE := content_motionevent_jni_headers_gyp
7LOCAL_MODULE_STEM := motionevent_jni_headers
8LOCAL_MODULE_SUFFIX := .stamp
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES := \
15	$(call intermediates-dir-for,GYP,build_android_android_exports_gyp,,,$(GYP_VAR_PREFIX))/android_exports.stamp
16
17### Rules for action "generate_jni_headers_from_jar_file":
18$(gyp_shared_intermediate_dir)/content/jni/MotionEvent_jni.h: gyp_local_path := $(LOCAL_PATH)
19$(gyp_shared_intermediate_dir)/content/jni/MotionEvent_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX)
20$(gyp_shared_intermediate_dir)/content/jni/MotionEvent_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
21$(gyp_shared_intermediate_dir)/content/jni/MotionEvent_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
22$(gyp_shared_intermediate_dir)/content/jni/MotionEvent_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
23$(gyp_shared_intermediate_dir)/content/jni/MotionEvent_jni.h: $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(PWD)/prebuilts/sdk/18/android.jar $(GYP_TARGET_DEPENDENCIES)
24	@echo "Gyp action: Generating JNI bindings from  $(PWD)/prebuilts/sdk/18/android.jar/android/view/MotionEvent.class ($@)"
25	$(hide)cd $(gyp_local_path)/content; mkdir -p $(gyp_shared_intermediate_dir)/content/jni; ../base/android/jni_generator/jni_generator.py -j "$(PWD)/prebuilts/sdk/18/android.jar" --input_file android/view/MotionEvent.class --output_dir "$(gyp_shared_intermediate_dir)/content/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --native_exports
26
27
28
29GYP_GENERATED_OUTPUTS := \
30	$(gyp_shared_intermediate_dir)/content/jni/MotionEvent_jni.h
31
32# Make sure our deps and generated files are built first.
33LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
34
35LOCAL_GENERATED_SOURCES := \
36	$(gyp_shared_intermediate_dir)/content/jni/MotionEvent_jni.h
37
38GYP_COPIED_SOURCE_ORIGIN_DIRS :=
39
40LOCAL_SRC_FILES :=
41
42
43# Flags passed to both C and C++ files.
44MY_CFLAGS_Debug := \
45	-fstack-protector \
46	--param=ssp-buffer-size=4 \
47	-Werror \
48	-fno-strict-aliasing \
49	-Wall \
50	-Wno-unused-parameter \
51	-Wno-missing-field-initializers \
52	-fvisibility=hidden \
53	-pipe \
54	-fPIC \
55	-Wno-unused-local-typedefs \
56	-m64 \
57	-march=x86-64 \
58	-ffunction-sections \
59	-funwind-tables \
60	-g \
61	-fstack-protector \
62	-fno-short-enums \
63	-finline-limit=64 \
64	-Wa,--noexecstack \
65	-U_FORTIFY_SOURCE \
66	-Wno-extra \
67	-Wno-ignored-qualifiers \
68	-Wno-type-limits \
69	-Wno-unused-but-set-variable \
70	-Os \
71	-g \
72	-gdwarf-4 \
73	-fdata-sections \
74	-ffunction-sections \
75	-fomit-frame-pointer \
76	-funwind-tables
77
78MY_DEFS_Debug := \
79	'-DCONTENT_IMPLEMENTATION' \
80	'-DV8_DEPRECATION_WARNINGS' \
81	'-D_FILE_OFFSET_BITS=64' \
82	'-DNO_TCMALLOC' \
83	'-DDISABLE_NACL' \
84	'-DCHROMIUM_BUILD' \
85	'-DUSE_LIBJPEG_TURBO=1' \
86	'-DENABLE_WEBRTC=1' \
87	'-DUSE_PROPRIETARY_CODECS' \
88	'-DENABLE_BROWSER_CDMS' \
89	'-DENABLE_CONFIGURATION_POLICY' \
90	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
91	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
92	'-DENABLE_EGLIMAGE=1' \
93	'-DCLD_VERSION=1' \
94	'-DENABLE_PRINTING=1' \
95	'-DENABLE_MANAGED_USERS=1' \
96	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
97	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
98	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
99	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
100	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
101	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
102	'-DVIDEO_HOLE=1' \
103	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
104	'-DUSE_OPENSSL=1' \
105	'-DUSE_OPENSSL_CERTS=1' \
106	'-D__STDC_CONSTANT_MACROS' \
107	'-D__STDC_FORMAT_MACROS' \
108	'-DANDROID' \
109	'-D__GNU_SOURCE=1' \
110	'-DUSE_STLPORT=1' \
111	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
112	'-DCHROME_BUILD_ID=""' \
113	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
114	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
115	'-D_DEBUG'
116
117
118# Include paths placed before CFLAGS/CPPFLAGS
119LOCAL_C_INCLUDES_Debug := \
120	$(gyp_shared_intermediate_dir) \
121	$(PWD)/frameworks/wilhelm/include \
122	$(PWD)/bionic \
123	$(PWD)/external/stlport/stlport
124
125
126# Flags passed to only C++ (and not C) files.
127LOCAL_CPPFLAGS_Debug := \
128	-fno-exceptions \
129	-fno-rtti \
130	-fno-threadsafe-statics \
131	-fvisibility-inlines-hidden \
132	-Wsign-compare \
133	-std=gnu++11 \
134	-Wno-narrowing \
135	-Wno-literal-suffix \
136	-Wno-non-virtual-dtor \
137	-Wno-sign-promo
138
139
140# Flags passed to both C and C++ files.
141MY_CFLAGS_Release := \
142	-fstack-protector \
143	--param=ssp-buffer-size=4 \
144	-Werror \
145	-fno-strict-aliasing \
146	-Wall \
147	-Wno-unused-parameter \
148	-Wno-missing-field-initializers \
149	-fvisibility=hidden \
150	-pipe \
151	-fPIC \
152	-Wno-unused-local-typedefs \
153	-m64 \
154	-march=x86-64 \
155	-ffunction-sections \
156	-funwind-tables \
157	-g \
158	-fstack-protector \
159	-fno-short-enums \
160	-finline-limit=64 \
161	-Wa,--noexecstack \
162	-U_FORTIFY_SOURCE \
163	-Wno-extra \
164	-Wno-ignored-qualifiers \
165	-Wno-type-limits \
166	-Wno-unused-but-set-variable \
167	-Os \
168	-fno-ident \
169	-fdata-sections \
170	-ffunction-sections \
171	-fomit-frame-pointer \
172	-funwind-tables
173
174MY_DEFS_Release := \
175	'-DCONTENT_IMPLEMENTATION' \
176	'-DV8_DEPRECATION_WARNINGS' \
177	'-D_FILE_OFFSET_BITS=64' \
178	'-DNO_TCMALLOC' \
179	'-DDISABLE_NACL' \
180	'-DCHROMIUM_BUILD' \
181	'-DUSE_LIBJPEG_TURBO=1' \
182	'-DENABLE_WEBRTC=1' \
183	'-DUSE_PROPRIETARY_CODECS' \
184	'-DENABLE_BROWSER_CDMS' \
185	'-DENABLE_CONFIGURATION_POLICY' \
186	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
187	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
188	'-DENABLE_EGLIMAGE=1' \
189	'-DCLD_VERSION=1' \
190	'-DENABLE_PRINTING=1' \
191	'-DENABLE_MANAGED_USERS=1' \
192	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
193	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
194	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
195	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
196	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
197	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
198	'-DVIDEO_HOLE=1' \
199	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
200	'-DUSE_OPENSSL=1' \
201	'-DUSE_OPENSSL_CERTS=1' \
202	'-D__STDC_CONSTANT_MACROS' \
203	'-D__STDC_FORMAT_MACROS' \
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	'-D_FORTIFY_SOURCE=2'
213
214
215# Include paths placed before CFLAGS/CPPFLAGS
216LOCAL_C_INCLUDES_Release := \
217	$(gyp_shared_intermediate_dir) \
218	$(PWD)/frameworks/wilhelm/include \
219	$(PWD)/bionic \
220	$(PWD)/external/stlport/stlport
221
222
223# Flags passed to only C++ (and not C) files.
224LOCAL_CPPFLAGS_Release := \
225	-fno-exceptions \
226	-fno-rtti \
227	-fno-threadsafe-statics \
228	-fvisibility-inlines-hidden \
229	-Wsign-compare \
230	-std=gnu++11 \
231	-Wno-narrowing \
232	-Wno-literal-suffix \
233	-Wno-non-virtual-dtor \
234	-Wno-sign-promo
235
236
237LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
238LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
239LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
240LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
241### Rules for final target.
242# Add target alias to "gyp_all_modules" target.
243.PHONY: gyp_all_modules
244gyp_all_modules: content_motionevent_jni_headers_gyp
245
246# Alias gyp target name.
247.PHONY: motionevent_jni_headers
248motionevent_jni_headers: content_motionevent_jni_headers_gyp
249
250LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
251LOCAL_UNINSTALLABLE_MODULE := true
252LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX)
253
254include $(BUILD_SYSTEM)/base_rules.mk
255
256$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
257	$(hide) echo "Gyp timestamp: $@"
258	$(hide) mkdir -p $(dir $@)
259	$(hide) touch $@
260
261LOCAL_2ND_ARCH_VAR_PREFIX :=
262