1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := GYP
6LOCAL_MODULE := ui_gl_gl_jni_headers_gyp
7LOCAL_MODULE_STEM := gl_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	$(call intermediates-dir-for,GYP,ui_gl_surface_jni_headers_gyp)/surface_jni_headers.stamp
16
17
18### Generated for rule "ui_gl_gl_gyp_gl_jni_headers_target_generate_jni_headers":
19# "{'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)/ui/gl/jni/%(INPUT_ROOT)s_jni.h'], 'rule_name': 'generate_jni_headers', 'rule_sources': ['../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java', '../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java'], 'action': ['../../base/android/jni_generator/jni_generator.py', '--input_file', '$(RULE_SOURCES)', '--output_dir', '$(gyp_shared_intermediate_dir)/ui/gl/jni', '--optimize_generation', '0', '--jarjar', '../../android_webview/build/jarjar-rules.txt', '--ptr_type', 'long'], 'message': 'Generating JNI bindings from $(RULE_SOURCES)'}":
20$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTexturePlatformWrapper_jni.h: gyp_local_path := $(LOCAL_PATH)
21$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTexturePlatformWrapper_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
22$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTexturePlatformWrapper_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
23$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTexturePlatformWrapper_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
24$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTexturePlatformWrapper_jni.h: $(LOCAL_PATH)/ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
25	mkdir -p $(gyp_shared_intermediate_dir)/ui/gl/jni; cd $(gyp_local_path)/ui/gl; ../../base/android/jni_generator/jni_generator.py --input_file ../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java --output_dir "$(gyp_shared_intermediate_dir)/ui/gl/jni" --optimize_generation 0 --jarjar ../../android_webview/build/jarjar-rules.txt --ptr_type long
26
27.PHONY: ui_gl_gl_jni_headers_gyp_rule_trigger
28ui_gl_gl_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTexturePlatformWrapper_jni.h
29
30$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTextureListener_jni.h: gyp_local_path := $(LOCAL_PATH)
31$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTextureListener_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
32$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTextureListener_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
33$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTextureListener_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
34$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTextureListener_jni.h: $(LOCAL_PATH)/ui/android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
35	mkdir -p $(gyp_shared_intermediate_dir)/ui/gl/jni; cd $(gyp_local_path)/ui/gl; ../../base/android/jni_generator/jni_generator.py --input_file ../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java --output_dir "$(gyp_shared_intermediate_dir)/ui/gl/jni" --optimize_generation 0 --jarjar ../../android_webview/build/jarjar-rules.txt --ptr_type long
36
37.PHONY: ui_gl_gl_jni_headers_gyp_rule_trigger
38ui_gl_gl_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTextureListener_jni.h
39
40### Finished generating for all rules
41
42GYP_GENERATED_OUTPUTS := \
43	$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTexturePlatformWrapper_jni.h \
44	$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTextureListener_jni.h
45
46# Make sure our deps and generated files are built first.
47LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
48
49LOCAL_GENERATED_SOURCES := \
50	$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTexturePlatformWrapper_jni.h \
51	$(gyp_shared_intermediate_dir)/ui/gl/jni/SurfaceTextureListener_jni.h \
52	ui_gl_gl_jni_headers_gyp_rule_trigger
53
54GYP_COPIED_SOURCE_ORIGIN_DIRS :=
55
56LOCAL_SRC_FILES :=
57
58
59# Flags passed to both C and C++ files.
60MY_CFLAGS_Debug := \
61	-fstack-protector \
62	--param=ssp-buffer-size=4 \
63	 \
64	-fno-exceptions \
65	-fno-strict-aliasing \
66	-Wall \
67	-Wno-unused-parameter \
68	-Wno-missing-field-initializers \
69	-fvisibility=hidden \
70	-pipe \
71	-fPIC \
72	-EL \
73	-mhard-float \
74	-ffunction-sections \
75	-funwind-tables \
76	-g \
77	-fstack-protector \
78	-fno-short-enums \
79	-finline-limit=64 \
80	-Wa,--noexecstack \
81	-U_FORTIFY_SOURCE \
82	-Wno-extra \
83	-Wno-ignored-qualifiers \
84	-Wno-type-limits \
85	-Os \
86	-g \
87	-fomit-frame-pointer \
88	-fdata-sections \
89	-ffunction-sections
90
91MY_DEFS_Debug := \
92	'-DV8_DEPRECATION_WARNINGS' \
93	'-D_FILE_OFFSET_BITS=64' \
94	'-DNO_TCMALLOC' \
95	'-DDISABLE_NACL' \
96	'-DCHROMIUM_BUILD' \
97	'-DUSE_LIBJPEG_TURBO=1' \
98	'-DUSE_PROPRIETARY_CODECS' \
99	'-DENABLE_CONFIGURATION_POLICY' \
100	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
101	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
102	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
103	'-DUSE_OPENSSL=1' \
104	'-DENABLE_EGLIMAGE=1' \
105	'-DCLD_VERSION=1' \
106	'-DENABLE_PRINTING=1' \
107	'-DENABLE_MANAGED_USERS=1' \
108	'-D__STDC_CONSTANT_MACROS' \
109	'-D__STDC_FORMAT_MACROS' \
110	'-DANDROID' \
111	'-D__GNU_SOURCE=1' \
112	'-DUSE_STLPORT=1' \
113	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
114	'-DCHROME_BUILD_ID=""' \
115	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
116	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
117	'-D_DEBUG'
118
119
120# Include paths placed before CFLAGS/CPPFLAGS
121LOCAL_C_INCLUDES_Debug := \
122	$(PWD)/frameworks/wilhelm/include \
123	$(PWD)/bionic \
124	$(PWD)/external/stlport/stlport
125
126
127# Flags passed to only C++ (and not C) files.
128LOCAL_CPPFLAGS_Debug := \
129	-fno-rtti \
130	-fno-threadsafe-statics \
131	-fvisibility-inlines-hidden \
132	-Wsign-compare \
133	-Wno-uninitialized \
134	-Wno-error=c++0x-compat \
135	-Wno-non-virtual-dtor \
136	-Wno-sign-promo
137
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	-EL \
153	-mhard-float \
154	-ffunction-sections \
155	-funwind-tables \
156	-g \
157	-fstack-protector \
158	-fno-short-enums \
159	-finline-limit=64 \
160	-Wa,--noexecstack \
161	-U_FORTIFY_SOURCE \
162	-Wno-extra \
163	-Wno-ignored-qualifiers \
164	-Wno-type-limits \
165	-Os \
166	-fno-ident \
167	-fdata-sections \
168	-ffunction-sections \
169	-fomit-frame-pointer
170
171MY_DEFS_Release := \
172	'-DV8_DEPRECATION_WARNINGS' \
173	'-D_FILE_OFFSET_BITS=64' \
174	'-DNO_TCMALLOC' \
175	'-DDISABLE_NACL' \
176	'-DCHROMIUM_BUILD' \
177	'-DUSE_LIBJPEG_TURBO=1' \
178	'-DUSE_PROPRIETARY_CODECS' \
179	'-DENABLE_CONFIGURATION_POLICY' \
180	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
181	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
182	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
183	'-DUSE_OPENSSL=1' \
184	'-DENABLE_EGLIMAGE=1' \
185	'-DCLD_VERSION=1' \
186	'-DENABLE_PRINTING=1' \
187	'-DENABLE_MANAGED_USERS=1' \
188	'-D__STDC_CONSTANT_MACROS' \
189	'-D__STDC_FORMAT_MACROS' \
190	'-DANDROID' \
191	'-D__GNU_SOURCE=1' \
192	'-DUSE_STLPORT=1' \
193	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
194	'-DCHROME_BUILD_ID=""' \
195	'-DNDEBUG' \
196	'-DNVALGRIND' \
197	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
198	'-D_FORTIFY_SOURCE=2'
199
200
201# Include paths placed before CFLAGS/CPPFLAGS
202LOCAL_C_INCLUDES_Release := \
203	$(PWD)/frameworks/wilhelm/include \
204	$(PWD)/bionic \
205	$(PWD)/external/stlport/stlport
206
207
208# Flags passed to only C++ (and not C) files.
209LOCAL_CPPFLAGS_Release := \
210	-fno-rtti \
211	-fno-threadsafe-statics \
212	-fvisibility-inlines-hidden \
213	-Wsign-compare \
214	-Wno-uninitialized \
215	-Wno-error=c++0x-compat \
216	-Wno-non-virtual-dtor \
217	-Wno-sign-promo
218
219
220LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
221LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
222LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
223### Rules for final target.
224# Add target alias to "gyp_all_modules" target.
225.PHONY: gyp_all_modules
226gyp_all_modules: ui_gl_gl_jni_headers_gyp
227
228# Alias gyp target name.
229.PHONY: gl_jni_headers
230gl_jni_headers: ui_gl_gl_jni_headers_gyp
231
232LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
233LOCAL_UNINSTALLABLE_MODULE := true
234
235include $(BUILD_SYSTEM)/base_rules.mk
236
237$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
238	$(hide) echo "Gyp timestamp: $@"
239	$(hide) mkdir -p $(dir $@)
240	$(hide) touch $@
241