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