speech_proto.target.linux-arm.mk revision 23730a6e56a168d1879203e4b3819bb36e3d8f1f
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'], 'process_outputs_as_sources': '1', '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)'}":
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-unused-but-set-variable \
83	-Wno-address \
84	-Wno-format-security \
85	-Wno-return-type \
86	-Wno-sequence-point \
87	-Os \
88	-g \
89	-fomit-frame-pointer \
90	-fdata-sections \
91	-ffunction-sections \
92	-funwind-tables
93
94MY_DEFS_Debug := \
95	'-DV8_DEPRECATION_WARNINGS' \
96	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
97	'-D_FILE_OFFSET_BITS=64' \
98	'-DNO_TCMALLOC' \
99	'-DDISABLE_NACL' \
100	'-DCHROMIUM_BUILD' \
101	'-DUSE_LIBJPEG_TURBO=1' \
102	'-DUSE_PROPRIETARY_CODECS' \
103	'-DENABLE_CONFIGURATION_POLICY' \
104	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
105	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
106	'-DENABLE_EGLIMAGE=1' \
107	'-DCLD_VERSION=1' \
108	'-DENABLE_PRINTING=1' \
109	'-DENABLE_MANAGED_USERS=1' \
110	'-DPROTOBUF_USE_DLLS' \
111	'-DGOOGLE_PROTOBUF_NO_RTTI' \
112	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
113	'-DUSE_OPENSSL=1' \
114	'-DANDROID' \
115	'-D__GNU_SOURCE=1' \
116	'-DUSE_STLPORT=1' \
117	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
118	'-DCHROME_BUILD_ID=""' \
119	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
120	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
121	'-D_DEBUG'
122
123
124# Include paths placed before CFLAGS/CPPFLAGS
125LOCAL_C_INCLUDES_Debug := \
126	$(gyp_shared_intermediate_dir)/protoc_out \
127	$(LOCAL_PATH) \
128	$(LOCAL_PATH)/third_party/protobuf \
129	$(LOCAL_PATH)/third_party/protobuf/src \
130	$(PWD)/frameworks/wilhelm/include \
131	$(PWD)/bionic \
132	$(PWD)/external/stlport/stlport
133
134
135# Flags passed to only C++ (and not C) files.
136LOCAL_CPPFLAGS_Debug := \
137	-fno-rtti \
138	-fno-threadsafe-statics \
139	-fvisibility-inlines-hidden \
140	-Wno-deprecated \
141	-Wno-abi \
142	-Wno-non-virtual-dtor \
143	-Wno-sign-promo \
144	-Wno-non-virtual-dtor
145
146
147# Flags passed to both C and C++ files.
148MY_CFLAGS_Release := \
149	-fstack-protector \
150	--param=ssp-buffer-size=4 \
151	-fno-exceptions \
152	-fno-strict-aliasing \
153	-Wno-unused-parameter \
154	-Wno-missing-field-initializers \
155	-fvisibility=hidden \
156	-pipe \
157	-fPIC \
158	-Wno-format \
159	-fno-tree-sra \
160	-fuse-ld=gold \
161	-Wno-psabi \
162	-ffunction-sections \
163	-funwind-tables \
164	-g \
165	-fstack-protector \
166	-fno-short-enums \
167	-finline-limit=64 \
168	-Wa,--noexecstack \
169	-U_FORTIFY_SOURCE \
170	-Wno-extra \
171	-Wno-ignored-qualifiers \
172	-Wno-type-limits \
173	-Wno-unused-but-set-variable \
174	-Wno-address \
175	-Wno-format-security \
176	-Wno-return-type \
177	-Wno-sequence-point \
178	-Os \
179	-fno-ident \
180	-fdata-sections \
181	-ffunction-sections \
182	-fomit-frame-pointer \
183	-funwind-tables
184
185MY_DEFS_Release := \
186	'-DV8_DEPRECATION_WARNINGS' \
187	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
188	'-D_FILE_OFFSET_BITS=64' \
189	'-DNO_TCMALLOC' \
190	'-DDISABLE_NACL' \
191	'-DCHROMIUM_BUILD' \
192	'-DUSE_LIBJPEG_TURBO=1' \
193	'-DUSE_PROPRIETARY_CODECS' \
194	'-DENABLE_CONFIGURATION_POLICY' \
195	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
196	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
197	'-DENABLE_EGLIMAGE=1' \
198	'-DCLD_VERSION=1' \
199	'-DENABLE_PRINTING=1' \
200	'-DENABLE_MANAGED_USERS=1' \
201	'-DPROTOBUF_USE_DLLS' \
202	'-DGOOGLE_PROTOBUF_NO_RTTI' \
203	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
204	'-DUSE_OPENSSL=1' \
205	'-DANDROID' \
206	'-D__GNU_SOURCE=1' \
207	'-DUSE_STLPORT=1' \
208	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
209	'-DCHROME_BUILD_ID=""' \
210	'-DNDEBUG' \
211	'-DNVALGRIND' \
212	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
213
214
215# Include paths placed before CFLAGS/CPPFLAGS
216LOCAL_C_INCLUDES_Release := \
217	$(gyp_shared_intermediate_dir)/protoc_out \
218	$(LOCAL_PATH) \
219	$(LOCAL_PATH)/third_party/protobuf \
220	$(LOCAL_PATH)/third_party/protobuf/src \
221	$(PWD)/frameworks/wilhelm/include \
222	$(PWD)/bionic \
223	$(PWD)/external/stlport/stlport
224
225
226# Flags passed to only C++ (and not C) files.
227LOCAL_CPPFLAGS_Release := \
228	-fno-rtti \
229	-fno-threadsafe-statics \
230	-fvisibility-inlines-hidden \
231	-Wno-deprecated \
232	-Wno-abi \
233	-Wno-non-virtual-dtor \
234	-Wno-sign-promo \
235	-Wno-non-virtual-dtor
236
237
238LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
239LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
240LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
241LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
242### Rules for final target.
243
244LOCAL_LDFLAGS_Debug := \
245	-Wl,--fatal-warnings \
246	-Wl,-z,now \
247	-Wl,-z,relro \
248	-Wl,-z,noexecstack \
249	-fPIC \
250	-Wl,-z,relro \
251	-Wl,-z,now \
252	-fuse-ld=gold \
253	-nostdlib \
254	-Wl,--no-undefined \
255	-Wl,--exclude-libs=ALL \
256	-Wl,--icf=safe \
257	-Wl,--gc-sections \
258	-Wl,--warn-shared-textrel \
259	-Wl,-O1 \
260	-Wl,--as-needed
261
262
263LOCAL_LDFLAGS_Release := \
264	-Wl,--fatal-warnings \
265	-Wl,-z,now \
266	-Wl,-z,relro \
267	-Wl,-z,noexecstack \
268	-fPIC \
269	-Wl,-z,relro \
270	-Wl,-z,now \
271	-fuse-ld=gold \
272	-nostdlib \
273	-Wl,--no-undefined \
274	-Wl,--exclude-libs=ALL \
275	-Wl,--icf=safe \
276	-Wl,-O1 \
277	-Wl,--as-needed \
278	-Wl,--gc-sections \
279	-Wl,--warn-shared-textrel
280
281
282LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
283
284LOCAL_STATIC_LIBRARIES :=
285
286# Enable grouping to fix circular references
287LOCAL_GROUP_STATIC_LIBRARIES := true
288
289LOCAL_SHARED_LIBRARIES := \
290	libstlport \
291	libdl
292
293# Add target alias to "gyp_all_modules" target.
294.PHONY: gyp_all_modules
295gyp_all_modules: content_browser_speech_proto_speech_proto_gyp
296
297# Alias gyp target name.
298.PHONY: speech_proto
299speech_proto: content_browser_speech_proto_speech_proto_gyp
300
301include $(BUILD_STATIC_LIBRARY)
302