base_jni_headers.target.linux-x86.mk revision eb525c5499e34cc9c4b825d6d9e75bb07cc06ace
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := GYP
6LOCAL_MODULE := base_base_jni_headers_gyp
7LOCAL_MODULE_STEM := base_jni_headers
8LOCAL_MODULE_SUFFIX := .stamp
9LOCAL_MODULE_TAGS := optional
10gyp_intermediate_dir := $(call local-intermediates-dir)
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES :=
15
16
17### Generated for rule "base_base_gyp_base_jni_headers_target_generate_jni_headers":
18# "{'inputs': ['../base/android/jni_generator/jni_generator.py', '../android_webview/build/jarjar-rules.txt'], 'process_outputs_as_sources': '1', 'extension': 'java', 'outputs': ['$(gyp_shared_intermediate_dir)/base/jni/%(INPUT_ROOT)s_jni.h'], 'rule_name': 'generate_jni_headers', 'rule_sources': ['android/java/src/org/chromium/base/ActivityStatus.java', 'android/java/src/org/chromium/base/BuildInfo.java', 'android/java/src/org/chromium/base/CpuFeatures.java', 'android/java/src/org/chromium/base/ImportantFileWriterAndroid.java', 'android/java/src/org/chromium/base/MemoryPressureListener.java', 'android/java/src/org/chromium/base/PathService.java', 'android/java/src/org/chromium/base/PathUtils.java', 'android/java/src/org/chromium/base/PowerMonitor.java', 'android/java/src/org/chromium/base/SystemMessageHandler.java', 'android/java/src/org/chromium/base/SysUtils.java', 'android/java/src/org/chromium/base/ThreadUtils.java'], 'action': ['../base/android/jni_generator/jni_generator.py', '--input_file', '$(RULE_SOURCES)', '--output_dir', '$(gyp_shared_intermediate_dir)/base/jni', '--optimize_generation', '0', '--jarjar', '../android_webview/build/jarjar-rules.txt'], 'message': 'Generating JNI bindings from $(RULE_SOURCES)'}":
19$(gyp_shared_intermediate_dir)/base/jni/ActivityStatus_jni.h: gyp_local_path := $(LOCAL_PATH)
20$(gyp_shared_intermediate_dir)/base/jni/ActivityStatus_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
21$(gyp_shared_intermediate_dir)/base/jni/ActivityStatus_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
22$(gyp_shared_intermediate_dir)/base/jni/ActivityStatus_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
23$(gyp_shared_intermediate_dir)/base/jni/ActivityStatus_jni.h: $(LOCAL_PATH)/base/android/java/src/org/chromium/base/ActivityStatus.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
24	mkdir -p $(gyp_shared_intermediate_dir)/base/jni; cd $(gyp_local_path)/base; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/base/ActivityStatus.java --output_dir "$(gyp_shared_intermediate_dir)/base/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
25
26.PHONY: base_base_jni_headers_gyp_rule_trigger
27base_base_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/base/jni/ActivityStatus_jni.h
28
29$(gyp_shared_intermediate_dir)/base/jni/BuildInfo_jni.h: gyp_local_path := $(LOCAL_PATH)
30$(gyp_shared_intermediate_dir)/base/jni/BuildInfo_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
31$(gyp_shared_intermediate_dir)/base/jni/BuildInfo_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
32$(gyp_shared_intermediate_dir)/base/jni/BuildInfo_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
33$(gyp_shared_intermediate_dir)/base/jni/BuildInfo_jni.h: $(LOCAL_PATH)/base/android/java/src/org/chromium/base/BuildInfo.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
34	mkdir -p $(gyp_shared_intermediate_dir)/base/jni; cd $(gyp_local_path)/base; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/base/BuildInfo.java --output_dir "$(gyp_shared_intermediate_dir)/base/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
35
36.PHONY: base_base_jni_headers_gyp_rule_trigger
37base_base_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/base/jni/BuildInfo_jni.h
38
39$(gyp_shared_intermediate_dir)/base/jni/CpuFeatures_jni.h: gyp_local_path := $(LOCAL_PATH)
40$(gyp_shared_intermediate_dir)/base/jni/CpuFeatures_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
41$(gyp_shared_intermediate_dir)/base/jni/CpuFeatures_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
42$(gyp_shared_intermediate_dir)/base/jni/CpuFeatures_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
43$(gyp_shared_intermediate_dir)/base/jni/CpuFeatures_jni.h: $(LOCAL_PATH)/base/android/java/src/org/chromium/base/CpuFeatures.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
44	mkdir -p $(gyp_shared_intermediate_dir)/base/jni; cd $(gyp_local_path)/base; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/base/CpuFeatures.java --output_dir "$(gyp_shared_intermediate_dir)/base/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
45
46.PHONY: base_base_jni_headers_gyp_rule_trigger
47base_base_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/base/jni/CpuFeatures_jni.h
48
49$(gyp_shared_intermediate_dir)/base/jni/ImportantFileWriterAndroid_jni.h: gyp_local_path := $(LOCAL_PATH)
50$(gyp_shared_intermediate_dir)/base/jni/ImportantFileWriterAndroid_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
51$(gyp_shared_intermediate_dir)/base/jni/ImportantFileWriterAndroid_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
52$(gyp_shared_intermediate_dir)/base/jni/ImportantFileWriterAndroid_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
53$(gyp_shared_intermediate_dir)/base/jni/ImportantFileWriterAndroid_jni.h: $(LOCAL_PATH)/base/android/java/src/org/chromium/base/ImportantFileWriterAndroid.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
54	mkdir -p $(gyp_shared_intermediate_dir)/base/jni; cd $(gyp_local_path)/base; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/base/ImportantFileWriterAndroid.java --output_dir "$(gyp_shared_intermediate_dir)/base/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
55
56.PHONY: base_base_jni_headers_gyp_rule_trigger
57base_base_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/base/jni/ImportantFileWriterAndroid_jni.h
58
59$(gyp_shared_intermediate_dir)/base/jni/MemoryPressureListener_jni.h: gyp_local_path := $(LOCAL_PATH)
60$(gyp_shared_intermediate_dir)/base/jni/MemoryPressureListener_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
61$(gyp_shared_intermediate_dir)/base/jni/MemoryPressureListener_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
62$(gyp_shared_intermediate_dir)/base/jni/MemoryPressureListener_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
63$(gyp_shared_intermediate_dir)/base/jni/MemoryPressureListener_jni.h: $(LOCAL_PATH)/base/android/java/src/org/chromium/base/MemoryPressureListener.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
64	mkdir -p $(gyp_shared_intermediate_dir)/base/jni; cd $(gyp_local_path)/base; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/base/MemoryPressureListener.java --output_dir "$(gyp_shared_intermediate_dir)/base/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
65
66.PHONY: base_base_jni_headers_gyp_rule_trigger
67base_base_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/base/jni/MemoryPressureListener_jni.h
68
69$(gyp_shared_intermediate_dir)/base/jni/PathService_jni.h: gyp_local_path := $(LOCAL_PATH)
70$(gyp_shared_intermediate_dir)/base/jni/PathService_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
71$(gyp_shared_intermediate_dir)/base/jni/PathService_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
72$(gyp_shared_intermediate_dir)/base/jni/PathService_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
73$(gyp_shared_intermediate_dir)/base/jni/PathService_jni.h: $(LOCAL_PATH)/base/android/java/src/org/chromium/base/PathService.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
74	mkdir -p $(gyp_shared_intermediate_dir)/base/jni; cd $(gyp_local_path)/base; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/base/PathService.java --output_dir "$(gyp_shared_intermediate_dir)/base/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
75
76.PHONY: base_base_jni_headers_gyp_rule_trigger
77base_base_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/base/jni/PathService_jni.h
78
79$(gyp_shared_intermediate_dir)/base/jni/PathUtils_jni.h: gyp_local_path := $(LOCAL_PATH)
80$(gyp_shared_intermediate_dir)/base/jni/PathUtils_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
81$(gyp_shared_intermediate_dir)/base/jni/PathUtils_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
82$(gyp_shared_intermediate_dir)/base/jni/PathUtils_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
83$(gyp_shared_intermediate_dir)/base/jni/PathUtils_jni.h: $(LOCAL_PATH)/base/android/java/src/org/chromium/base/PathUtils.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
84	mkdir -p $(gyp_shared_intermediate_dir)/base/jni; cd $(gyp_local_path)/base; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/base/PathUtils.java --output_dir "$(gyp_shared_intermediate_dir)/base/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
85
86.PHONY: base_base_jni_headers_gyp_rule_trigger
87base_base_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/base/jni/PathUtils_jni.h
88
89$(gyp_shared_intermediate_dir)/base/jni/PowerMonitor_jni.h: gyp_local_path := $(LOCAL_PATH)
90$(gyp_shared_intermediate_dir)/base/jni/PowerMonitor_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
91$(gyp_shared_intermediate_dir)/base/jni/PowerMonitor_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
92$(gyp_shared_intermediate_dir)/base/jni/PowerMonitor_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
93$(gyp_shared_intermediate_dir)/base/jni/PowerMonitor_jni.h: $(LOCAL_PATH)/base/android/java/src/org/chromium/base/PowerMonitor.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
94	mkdir -p $(gyp_shared_intermediate_dir)/base/jni; cd $(gyp_local_path)/base; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/base/PowerMonitor.java --output_dir "$(gyp_shared_intermediate_dir)/base/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
95
96.PHONY: base_base_jni_headers_gyp_rule_trigger
97base_base_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/base/jni/PowerMonitor_jni.h
98
99$(gyp_shared_intermediate_dir)/base/jni/SystemMessageHandler_jni.h: gyp_local_path := $(LOCAL_PATH)
100$(gyp_shared_intermediate_dir)/base/jni/SystemMessageHandler_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
101$(gyp_shared_intermediate_dir)/base/jni/SystemMessageHandler_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
102$(gyp_shared_intermediate_dir)/base/jni/SystemMessageHandler_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
103$(gyp_shared_intermediate_dir)/base/jni/SystemMessageHandler_jni.h: $(LOCAL_PATH)/base/android/java/src/org/chromium/base/SystemMessageHandler.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
104	mkdir -p $(gyp_shared_intermediate_dir)/base/jni; cd $(gyp_local_path)/base; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/base/SystemMessageHandler.java --output_dir "$(gyp_shared_intermediate_dir)/base/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
105
106.PHONY: base_base_jni_headers_gyp_rule_trigger
107base_base_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/base/jni/SystemMessageHandler_jni.h
108
109$(gyp_shared_intermediate_dir)/base/jni/SysUtils_jni.h: gyp_local_path := $(LOCAL_PATH)
110$(gyp_shared_intermediate_dir)/base/jni/SysUtils_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
111$(gyp_shared_intermediate_dir)/base/jni/SysUtils_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
112$(gyp_shared_intermediate_dir)/base/jni/SysUtils_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
113$(gyp_shared_intermediate_dir)/base/jni/SysUtils_jni.h: $(LOCAL_PATH)/base/android/java/src/org/chromium/base/SysUtils.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
114	mkdir -p $(gyp_shared_intermediate_dir)/base/jni; cd $(gyp_local_path)/base; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/base/SysUtils.java --output_dir "$(gyp_shared_intermediate_dir)/base/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
115
116.PHONY: base_base_jni_headers_gyp_rule_trigger
117base_base_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/base/jni/SysUtils_jni.h
118
119$(gyp_shared_intermediate_dir)/base/jni/ThreadUtils_jni.h: gyp_local_path := $(LOCAL_PATH)
120$(gyp_shared_intermediate_dir)/base/jni/ThreadUtils_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
121$(gyp_shared_intermediate_dir)/base/jni/ThreadUtils_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
122$(gyp_shared_intermediate_dir)/base/jni/ThreadUtils_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
123$(gyp_shared_intermediate_dir)/base/jni/ThreadUtils_jni.h: $(LOCAL_PATH)/base/android/java/src/org/chromium/base/ThreadUtils.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
124	mkdir -p $(gyp_shared_intermediate_dir)/base/jni; cd $(gyp_local_path)/base; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/base/ThreadUtils.java --output_dir "$(gyp_shared_intermediate_dir)/base/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt
125
126.PHONY: base_base_jni_headers_gyp_rule_trigger
127base_base_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/base/jni/ThreadUtils_jni.h
128
129### Finished generating for all rules
130
131GYP_GENERATED_OUTPUTS := \
132	$(gyp_shared_intermediate_dir)/base/jni/ActivityStatus_jni.h \
133	$(gyp_shared_intermediate_dir)/base/jni/BuildInfo_jni.h \
134	$(gyp_shared_intermediate_dir)/base/jni/CpuFeatures_jni.h \
135	$(gyp_shared_intermediate_dir)/base/jni/ImportantFileWriterAndroid_jni.h \
136	$(gyp_shared_intermediate_dir)/base/jni/MemoryPressureListener_jni.h \
137	$(gyp_shared_intermediate_dir)/base/jni/PathService_jni.h \
138	$(gyp_shared_intermediate_dir)/base/jni/PathUtils_jni.h \
139	$(gyp_shared_intermediate_dir)/base/jni/PowerMonitor_jni.h \
140	$(gyp_shared_intermediate_dir)/base/jni/SystemMessageHandler_jni.h \
141	$(gyp_shared_intermediate_dir)/base/jni/SysUtils_jni.h \
142	$(gyp_shared_intermediate_dir)/base/jni/ThreadUtils_jni.h
143
144# Make sure our deps and generated files are built first.
145LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
146
147LOCAL_GENERATED_SOURCES := \
148	$(gyp_shared_intermediate_dir)/base/jni/ActivityStatus_jni.h \
149	$(gyp_shared_intermediate_dir)/base/jni/BuildInfo_jni.h \
150	$(gyp_shared_intermediate_dir)/base/jni/CpuFeatures_jni.h \
151	$(gyp_shared_intermediate_dir)/base/jni/ImportantFileWriterAndroid_jni.h \
152	$(gyp_shared_intermediate_dir)/base/jni/MemoryPressureListener_jni.h \
153	$(gyp_shared_intermediate_dir)/base/jni/PathService_jni.h \
154	$(gyp_shared_intermediate_dir)/base/jni/PathUtils_jni.h \
155	$(gyp_shared_intermediate_dir)/base/jni/PowerMonitor_jni.h \
156	$(gyp_shared_intermediate_dir)/base/jni/SystemMessageHandler_jni.h \
157	$(gyp_shared_intermediate_dir)/base/jni/SysUtils_jni.h \
158	$(gyp_shared_intermediate_dir)/base/jni/ThreadUtils_jni.h \
159	base_base_jni_headers_gyp_rule_trigger
160
161GYP_COPIED_SOURCE_ORIGIN_DIRS :=
162
163LOCAL_SRC_FILES :=
164
165
166# Flags passed to both C and C++ files.
167MY_CFLAGS_Debug := \
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	-g \
197	-fomit-frame-pointer \
198	-fdata-sections \
199	-ffunction-sections
200
201MY_DEFS_Debug := \
202	'-DANGLE_DX11' \
203	'-D_FILE_OFFSET_BITS=64' \
204	'-DUSE_LINUX_BREAKPAD' \
205	'-DNO_TCMALLOC' \
206	'-DDISABLE_NACL' \
207	'-DCHROMIUM_BUILD' \
208	'-DUSE_LIBJPEG_TURBO=1' \
209	'-DUSE_PROPRIETARY_CODECS' \
210	'-DENABLE_GPU=1' \
211	'-DUSE_OPENSSL=1' \
212	'-DENABLE_EGLIMAGE=1' \
213	'-DENABLE_LANGUAGE_DETECTION=1' \
214	'-D__STDC_CONSTANT_MACROS' \
215	'-D__STDC_FORMAT_MACROS' \
216	'-DANDROID' \
217	'-D__GNU_SOURCE=1' \
218	'-DUSE_STLPORT=1' \
219	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
220	'-DCHROME_BUILD_ID=""' \
221	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
222	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
223	'-D_DEBUG'
224
225
226# Include paths placed before CFLAGS/CPPFLAGS
227LOCAL_C_INCLUDES_Debug := \
228	$(PWD)/frameworks/wilhelm/include \
229	$(PWD)/bionic \
230	$(PWD)/external/stlport/stlport
231
232
233# Flags passed to only C++ (and not C) files.
234LOCAL_CPPFLAGS_Debug := \
235	-fno-rtti \
236	-fno-threadsafe-statics \
237	-fvisibility-inlines-hidden \
238	-Wsign-compare \
239	-Wno-error=c++0x-compat \
240	-Wno-non-virtual-dtor \
241	-Wno-sign-promo
242
243
244# Flags passed to both C and C++ files.
245MY_CFLAGS_Release := \
246	--param=ssp-buffer-size=4 \
247	-Werror \
248	-fno-exceptions \
249	-fno-strict-aliasing \
250	-Wall \
251	-Wno-unused-parameter \
252	-Wno-missing-field-initializers \
253	-fvisibility=hidden \
254	-pipe \
255	-fPIC \
256	-m32 \
257	-mmmx \
258	-march=pentium4 \
259	-msse2 \
260	-mfpmath=sse \
261	-fuse-ld=gold \
262	-ffunction-sections \
263	-funwind-tables \
264	-g \
265	-fno-short-enums \
266	-finline-limit=64 \
267	-Wa,--noexecstack \
268	-U_FORTIFY_SOURCE \
269	-Wno-extra \
270	-Wno-ignored-qualifiers \
271	-Wno-type-limits \
272	-fno-stack-protector \
273	-Os \
274	-fno-ident \
275	-fdata-sections \
276	-ffunction-sections \
277	-fomit-frame-pointer \
278	-fno-unwind-tables \
279	-fno-asynchronous-unwind-tables
280
281MY_DEFS_Release := \
282	'-DANGLE_DX11' \
283	'-D_FILE_OFFSET_BITS=64' \
284	'-DUSE_LINUX_BREAKPAD' \
285	'-DNO_TCMALLOC' \
286	'-DDISABLE_NACL' \
287	'-DCHROMIUM_BUILD' \
288	'-DUSE_LIBJPEG_TURBO=1' \
289	'-DUSE_PROPRIETARY_CODECS' \
290	'-DENABLE_GPU=1' \
291	'-DUSE_OPENSSL=1' \
292	'-DENABLE_EGLIMAGE=1' \
293	'-DENABLE_LANGUAGE_DETECTION=1' \
294	'-D__STDC_CONSTANT_MACROS' \
295	'-D__STDC_FORMAT_MACROS' \
296	'-DANDROID' \
297	'-D__GNU_SOURCE=1' \
298	'-DUSE_STLPORT=1' \
299	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
300	'-DCHROME_BUILD_ID=""' \
301	'-DNDEBUG' \
302	'-DNVALGRIND' \
303	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
304	'-D_FORTIFY_SOURCE=2'
305
306
307# Include paths placed before CFLAGS/CPPFLAGS
308LOCAL_C_INCLUDES_Release := \
309	$(PWD)/frameworks/wilhelm/include \
310	$(PWD)/bionic \
311	$(PWD)/external/stlport/stlport
312
313
314# Flags passed to only C++ (and not C) files.
315LOCAL_CPPFLAGS_Release := \
316	-fno-rtti \
317	-fno-threadsafe-statics \
318	-fvisibility-inlines-hidden \
319	-Wsign-compare \
320	-Wno-error=c++0x-compat \
321	-Wno-non-virtual-dtor \
322	-Wno-sign-promo
323
324
325LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
326LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
327LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
328### Rules for final target.
329# Add target alias to "gyp_all_modules" target.
330.PHONY: gyp_all_modules
331gyp_all_modules: base_base_jni_headers_gyp
332
333# Alias gyp target name.
334.PHONY: base_jni_headers
335base_jni_headers: base_base_jni_headers_gyp
336
337LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
338LOCAL_UNINSTALLABLE_MODULE := true
339
340include $(BUILD_SYSTEM)/base_rules.mk
341
342$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
343	$(hide) echo "Gyp timestamp: $@"
344	$(hide) mkdir -p $(dir $@)
345	$(hide) touch $@
346