1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := GYP
6LOCAL_MODULE := printing_printing_jni_headers_gyp
7LOCAL_MODULE_STEM := printing_jni_headers
8LOCAL_MODULE_SUFFIX := .stamp
9LOCAL_MODULE_TAGS := optional
10LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
11gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
12gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
13
14# Make sure our deps are built first.
15GYP_TARGET_DEPENDENCIES := \
16	$(call intermediates-dir-for,GYP,build_android_android_exports_gyp,,,$(GYP_VAR_PREFIX))/android_exports.stamp
17
18
19### Generated for rule "printing_printing_gyp_printing_jni_headers_target_generate_jni_headers":
20# "{'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)/printing/jni/%(INPUT_ROOT)s_jni.h'], 'rule_name': 'generate_jni_headers', 'rule_sources': ['android/java/src/org/chromium/printing/PrintingContext.java'], 'action': ['../base/android/jni_generator/jni_generator.py', '--input_file', '$(RULE_SOURCES)', '--output_dir', '$(gyp_shared_intermediate_dir)/printing/jni', '--includes', 'base/android/jni_generator/jni_generator_helper.h', '--optimize_generation', '0', '--jarjar', '../android_webview/build/jarjar-rules.txt', '--ptr_type', 'long', '--native_exports'], 'message': 'Generating JNI bindings from $(RULE_SOURCES)'}":
21$(gyp_shared_intermediate_dir)/printing/jni/PrintingContext_jni.h: gyp_local_path := $(LOCAL_PATH)
22$(gyp_shared_intermediate_dir)/printing/jni/PrintingContext_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX)
23$(gyp_shared_intermediate_dir)/printing/jni/PrintingContext_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
24$(gyp_shared_intermediate_dir)/printing/jni/PrintingContext_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
25$(gyp_shared_intermediate_dir)/printing/jni/PrintingContext_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
26$(gyp_shared_intermediate_dir)/printing/jni/PrintingContext_jni.h: $(LOCAL_PATH)/printing/android/java/src/org/chromium/printing/PrintingContext.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
27	mkdir -p $(gyp_shared_intermediate_dir)/printing/jni; cd $(gyp_local_path)/printing; ../base/android/jni_generator/jni_generator.py --input_file android/java/src/org/chromium/printing/PrintingContext.java --output_dir "$(gyp_shared_intermediate_dir)/printing/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports
28
29
30
31GYP_GENERATED_OUTPUTS := \
32	$(gyp_shared_intermediate_dir)/printing/jni/PrintingContext_jni.h
33
34# Make sure our deps and generated files are built first.
35LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
36
37LOCAL_GENERATED_SOURCES := \
38	$(gyp_shared_intermediate_dir)/printing/jni/PrintingContext_jni.h
39
40GYP_COPIED_SOURCE_ORIGIN_DIRS :=
41
42LOCAL_SRC_FILES :=
43
44
45# Flags passed to both C and C++ files.
46MY_CFLAGS_Debug := \
47	-fstack-protector \
48	--param=ssp-buffer-size=4 \
49	 \
50	-fno-exceptions \
51	-fno-strict-aliasing \
52	-Wall \
53	-Wno-unused-parameter \
54	-Wno-missing-field-initializers \
55	-fvisibility=hidden \
56	-pipe \
57	-fPIC \
58	-Wno-unused-local-typedefs \
59	-EL \
60	-mhard-float \
61	-ffunction-sections \
62	-funwind-tables \
63	-g \
64	-fstack-protector \
65	-fno-short-enums \
66	-finline-limit=64 \
67	-Wa,--noexecstack \
68	-U_FORTIFY_SOURCE \
69	-Wno-extra \
70	-Wno-ignored-qualifiers \
71	-Wno-type-limits \
72	-Wno-unused-but-set-variable \
73	-Os \
74	-g \
75	-fdata-sections \
76	-ffunction-sections \
77	-fomit-frame-pointer \
78	-funwind-tables
79
80MY_DEFS_Debug := \
81	'-DV8_DEPRECATION_WARNINGS' \
82	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
83	'-D_FILE_OFFSET_BITS=64' \
84	'-DNO_TCMALLOC' \
85	'-DDISABLE_NACL' \
86	'-DCHROMIUM_BUILD' \
87	'-DUSE_LIBJPEG_TURBO=1' \
88	'-DENABLE_WEBRTC=1' \
89	'-DUSE_PROPRIETARY_CODECS' \
90	'-DENABLE_BROWSER_CDMS' \
91	'-DENABLE_CONFIGURATION_POLICY' \
92	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
93	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
94	'-DENABLE_EGLIMAGE=1' \
95	'-DCLD_VERSION=1' \
96	'-DENABLE_PRINTING=1' \
97	'-DENABLE_MANAGED_USERS=1' \
98	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
99	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
100	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
101	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
102	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
103	'-DVIDEO_HOLE=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-rtti \
129	-fno-threadsafe-statics \
130	-fvisibility-inlines-hidden \
131	-Wsign-compare \
132	-Wno-uninitialized \
133	-Wno-non-virtual-dtor \
134	-Wno-sign-promo
135
136
137LOCAL_FDO_SUPPORT_Debug := false
138
139# Flags passed to both C and C++ files.
140MY_CFLAGS_Release := \
141	-fstack-protector \
142	--param=ssp-buffer-size=4 \
143	 \
144	-fno-exceptions \
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	-EL \
154	-mhard-float \
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	'-DV8_DEPRECATION_WARNINGS' \
176	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
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="http://proxy-dev.googlezip.net:80/"' \
194	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
195	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
196	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
197	'-DVIDEO_HOLE=1' \
198	'-DUSE_OPENSSL=1' \
199	'-DUSE_OPENSSL_CERTS=1' \
200	'-D__STDC_CONSTANT_MACROS' \
201	'-D__STDC_FORMAT_MACROS' \
202	'-DANDROID' \
203	'-D__GNU_SOURCE=1' \
204	'-DUSE_STLPORT=1' \
205	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
206	'-DCHROME_BUILD_ID=""' \
207	'-DNDEBUG' \
208	'-DNVALGRIND' \
209	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
210	'-D_FORTIFY_SOURCE=2'
211
212
213# Include paths placed before CFLAGS/CPPFLAGS
214LOCAL_C_INCLUDES_Release := \
215	$(gyp_shared_intermediate_dir) \
216	$(PWD)/frameworks/wilhelm/include \
217	$(PWD)/bionic \
218	$(PWD)/external/stlport/stlport
219
220
221# Flags passed to only C++ (and not C) files.
222LOCAL_CPPFLAGS_Release := \
223	-fno-rtti \
224	-fno-threadsafe-statics \
225	-fvisibility-inlines-hidden \
226	-Wsign-compare \
227	-Wno-uninitialized \
228	-Wno-non-virtual-dtor \
229	-Wno-sign-promo
230
231
232LOCAL_FDO_SUPPORT_Release := false
233
234LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
235LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
236LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
237LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
238LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
239### Rules for final target.
240# Add target alias to "gyp_all_modules" target.
241.PHONY: gyp_all_modules
242gyp_all_modules: printing_printing_jni_headers_gyp
243
244# Alias gyp target name.
245.PHONY: printing_jni_headers
246printing_jni_headers: printing_printing_jni_headers_gyp
247
248LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
249LOCAL_UNINSTALLABLE_MODULE := true
250LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX)
251
252include $(BUILD_SYSTEM)/base_rules.mk
253
254$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
255	$(hide) echo "Gyp timestamp: $@"
256	$(hide) mkdir -p $(dir $@)
257	$(hide) touch $@
258
259LOCAL_2ND_ARCH_VAR_PREFIX :=
260