1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := content_browser_speech_proto_speech_proto_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(gyp_shared_intermediate_dir)/protoc
15
16
17### Generated for rule "content_browser_speech_proto_speech_proto_gyp_speech_proto_target_genproto":
18# "{'inputs': ['../../../../tools/protoc_wrapper/protoc_wrapper.py', '$(gyp_shared_intermediate_dir)/protoc'], 'msvs_cygwin_shell': '0', 'extension': 'proto', 'outputs': ['$(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto/%(INPUT_ROOT)s_pb2.py', '$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto/%(INPUT_ROOT)s.pb.cc', '$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto/%(INPUT_ROOT)s.pb.h'], 'rule_name': 'genproto', 'rule_sources': ['google_streaming_api.proto'], 'action': ['python', '../../../../tools/protoc_wrapper/protoc_wrapper.py', '--include', '', '--protobuf', '$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto/%(INPUT_ROOT)s.pb.h', '--proto-in-dir', '.', '--proto-in-file', '%(INPUT_ROOT)s$(suffix $<)', '--use-system-protobuf=0', '--', '$(gyp_shared_intermediate_dir)/protoc', '--cpp_out', '$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto', '--python_out', '$(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto'], 'message': 'Generating C++ and Python code from $(RULE_SOURCES)', 'process_outputs_as_sources': '1'}":
19$(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto/google_streaming_api_pb2.py: gyp_local_path := $(LOCAL_PATH)
20$(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto/google_streaming_api_pb2.py: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
21$(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto/google_streaming_api_pb2.py: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
22$(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto/google_streaming_api_pb2.py: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
23$(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto/google_streaming_api_pb2.py: $(LOCAL_PATH)/content/browser/speech/proto/google_streaming_api.proto $(LOCAL_PATH)/tools/protoc_wrapper/protoc_wrapper.py $(gyp_shared_intermediate_dir)/protoc $(GYP_TARGET_DEPENDENCIES)
24	mkdir -p $(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto $(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto; cd $(gyp_local_path)/content/browser/speech/proto; python ../../../../tools/protoc_wrapper/protoc_wrapper.py --include "" --protobuf "$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto/google_streaming_api.pb.h" --proto-in-dir . --proto-in-file "google_streaming_api$(suffix $<)" "--use-system-protobuf=0" -- "$(gyp_shared_intermediate_dir)/protoc" --cpp_out "$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto" --python_out "$(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto"
25
26$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto/google_streaming_api.pb.cc: $(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto/google_streaming_api_pb2.py ;
27$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto/google_streaming_api.pb.h: $(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto/google_streaming_api_pb2.py ;
28.PHONY: content_browser_speech_proto_speech_proto_gyp_rule_trigger
29content_browser_speech_proto_speech_proto_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto/google_streaming_api_pb2.py
30
31### Finished generating for all rules
32
33GYP_GENERATED_OUTPUTS := \
34	$(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto/google_streaming_api_pb2.py \
35	$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto/google_streaming_api.pb.cc \
36	$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto/google_streaming_api.pb.h
37
38# Make sure our deps and generated files are built first.
39LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
40
41LOCAL_CPP_EXTENSION := .cc
42$(gyp_intermediate_dir)/google_streaming_api.pb.cc: $(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto/google_streaming_api.pb.cc
43	mkdir -p $(@D); cp $< $@
44LOCAL_GENERATED_SOURCES := \
45	$(gyp_intermediate_dir)/google_streaming_api.pb.cc \
46	$(gyp_shared_intermediate_dir)/pyproto/content/browser/speech/proto/google_streaming_api_pb2.py \
47	$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto/google_streaming_api.pb.h \
48	content_browser_speech_proto_speech_proto_gyp_rule_trigger
49
50GYP_COPIED_SOURCE_ORIGIN_DIRS := \
51	$(gyp_shared_intermediate_dir)/protoc_out/content/browser/speech/proto
52
53LOCAL_SRC_FILES :=
54
55
56# Flags passed to both C and C++ files.
57MY_CFLAGS_Debug := \
58	-fstack-protector \
59	--param=ssp-buffer-size=4 \
60	-fno-exceptions \
61	-fno-strict-aliasing \
62	-Wno-unused-parameter \
63	-Wno-missing-field-initializers \
64	-fvisibility=hidden \
65	-pipe \
66	-fPIC \
67	-Wno-format \
68	-fno-tree-sra \
69	-fuse-ld=gold \
70	-Wno-psabi \
71	-ffunction-sections \
72	-funwind-tables \
73	-g \
74	-fstack-protector \
75	-fno-short-enums \
76	-finline-limit=64 \
77	-Wa,--noexecstack \
78	-U_FORTIFY_SOURCE \
79	-Wno-extra \
80	-Wno-ignored-qualifiers \
81	-Wno-type-limits \
82	-Wno-address \
83	-Wno-format-security \
84	-Wno-return-type \
85	-Wno-sequence-point \
86	-Os \
87	-g \
88	-fomit-frame-pointer \
89	-fdata-sections \
90	-ffunction-sections
91
92MY_DEFS_Debug := \
93	'-DANGLE_DX11' \
94	'-D_FILE_OFFSET_BITS=64' \
95	'-DNO_TCMALLOC' \
96	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
97	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
98	'-DDISABLE_NACL' \
99	'-DCHROMIUM_BUILD' \
100	'-DUSE_LIBJPEG_TURBO=1' \
101	'-DUSE_PROPRIETARY_CODECS' \
102	'-DENABLE_CONFIGURATION_POLICY' \
103	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
104	'-DTRACING_IS_OFFICIAL_BUILD=1' \
105	'-DENABLE_GPU=1' \
106	'-DUSE_OPENSSL=1' \
107	'-DENABLE_EGLIMAGE=1' \
108	'-DENABLE_PRINTING=1' \
109	'-DPROTOBUF_USE_DLLS' \
110	'-DGOOGLE_PROTOBUF_NO_RTTI' \
111	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
112	'-DANDROID' \
113	'-D__GNU_SOURCE=1' \
114	'-DUSE_STLPORT=1' \
115	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
116	'-DCHROME_BUILD_ID=""' \
117	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
118	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
119	'-D_DEBUG'
120
121
122# Include paths placed before CFLAGS/CPPFLAGS
123LOCAL_C_INCLUDES_Debug := \
124	$(gyp_shared_intermediate_dir)/protoc_out \
125	$(LOCAL_PATH) \
126	$(LOCAL_PATH)/third_party/protobuf \
127	$(LOCAL_PATH)/third_party/protobuf/src \
128	$(PWD)/frameworks/wilhelm/include \
129	$(PWD)/bionic \
130	$(PWD)/external/stlport/stlport
131
132
133# Flags passed to only C++ (and not C) files.
134LOCAL_CPPFLAGS_Debug := \
135	-fno-rtti \
136	-fno-threadsafe-statics \
137	-fvisibility-inlines-hidden \
138	-Wno-deprecated \
139	-Wno-abi \
140	-Wno-error=c++0x-compat \
141	-Wno-non-virtual-dtor \
142	-Wno-sign-promo \
143	-Wno-non-virtual-dtor
144
145
146# Flags passed to both C and C++ files.
147MY_CFLAGS_Release := \
148	-fstack-protector \
149	--param=ssp-buffer-size=4 \
150	-fno-exceptions \
151	-fno-strict-aliasing \
152	-Wno-unused-parameter \
153	-Wno-missing-field-initializers \
154	-fvisibility=hidden \
155	-pipe \
156	-fPIC \
157	-Wno-format \
158	-fno-tree-sra \
159	-fuse-ld=gold \
160	-Wno-psabi \
161	-ffunction-sections \
162	-funwind-tables \
163	-g \
164	-fstack-protector \
165	-fno-short-enums \
166	-finline-limit=64 \
167	-Wa,--noexecstack \
168	-U_FORTIFY_SOURCE \
169	-Wno-extra \
170	-Wno-ignored-qualifiers \
171	-Wno-type-limits \
172	-Wno-address \
173	-Wno-format-security \
174	-Wno-return-type \
175	-Wno-sequence-point \
176	-Os \
177	-fno-ident \
178	-fdata-sections \
179	-ffunction-sections \
180	-fomit-frame-pointer
181
182MY_DEFS_Release := \
183	'-DANGLE_DX11' \
184	'-D_FILE_OFFSET_BITS=64' \
185	'-DNO_TCMALLOC' \
186	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
187	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
188	'-DDISABLE_NACL' \
189	'-DCHROMIUM_BUILD' \
190	'-DUSE_LIBJPEG_TURBO=1' \
191	'-DUSE_PROPRIETARY_CODECS' \
192	'-DENABLE_CONFIGURATION_POLICY' \
193	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
194	'-DTRACING_IS_OFFICIAL_BUILD=1' \
195	'-DENABLE_GPU=1' \
196	'-DUSE_OPENSSL=1' \
197	'-DENABLE_EGLIMAGE=1' \
198	'-DENABLE_PRINTING=1' \
199	'-DPROTOBUF_USE_DLLS' \
200	'-DGOOGLE_PROTOBUF_NO_RTTI' \
201	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
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
211
212# Include paths placed before CFLAGS/CPPFLAGS
213LOCAL_C_INCLUDES_Release := \
214	$(gyp_shared_intermediate_dir)/protoc_out \
215	$(LOCAL_PATH) \
216	$(LOCAL_PATH)/third_party/protobuf \
217	$(LOCAL_PATH)/third_party/protobuf/src \
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-rtti \
226	-fno-threadsafe-statics \
227	-fvisibility-inlines-hidden \
228	-Wno-deprecated \
229	-Wno-abi \
230	-Wno-error=c++0x-compat \
231	-Wno-non-virtual-dtor \
232	-Wno-sign-promo \
233	-Wno-non-virtual-dtor
234
235
236LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
237LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
238LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
239### Rules for final target.
240
241LOCAL_LDFLAGS_Debug := \
242	-Wl,-z,now \
243	-Wl,-z,relro \
244	-Wl,-z,noexecstack \
245	-fPIC \
246	-Wl,-z,relro \
247	-Wl,-z,now \
248	-fuse-ld=gold \
249	-nostdlib \
250	-Wl,--no-undefined \
251	-Wl,--exclude-libs=ALL \
252	-Wl,--icf=safe \
253	-Wl,--fatal-warnings \
254	-Wl,--gc-sections \
255	-Wl,--warn-shared-textrel \
256	-Wl,-O1 \
257	-Wl,--as-needed
258
259
260LOCAL_LDFLAGS_Release := \
261	-Wl,-z,now \
262	-Wl,-z,relro \
263	-Wl,-z,noexecstack \
264	-fPIC \
265	-Wl,-z,relro \
266	-Wl,-z,now \
267	-fuse-ld=gold \
268	-nostdlib \
269	-Wl,--no-undefined \
270	-Wl,--exclude-libs=ALL \
271	-Wl,--icf=safe \
272	-Wl,-O1 \
273	-Wl,--as-needed \
274	-Wl,--gc-sections \
275	-Wl,--fatal-warnings \
276	-Wl,--warn-shared-textrel
277
278
279LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
280
281LOCAL_STATIC_LIBRARIES :=
282
283# Enable grouping to fix circular references
284LOCAL_GROUP_STATIC_LIBRARIES := true
285
286LOCAL_SHARED_LIBRARIES := \
287	libstlport \
288	libdl
289
290# Add target alias to "gyp_all_modules" target.
291.PHONY: gyp_all_modules
292gyp_all_modules: content_browser_speech_proto_speech_proto_gyp
293
294# Alias gyp target name.
295.PHONY: speech_proto
296speech_proto: content_browser_speech_proto_speech_proto_gyp
297
298include $(BUILD_STATIC_LIBRARY)
299