protobuf_lite.target.linux-mips.mk revision f8ee788a64d60abd8f2d742a5fdedde054ecd910
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_protobuf_protobuf_lite_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES :=
15
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc \
28	third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc \
29	third_party/protobuf/src/google/protobuf/unknown_field_set.cc \
30	third_party/protobuf/src/google/protobuf/stubs/common.cc \
31	third_party/protobuf/src/google/protobuf/stubs/once.cc \
32	third_party/protobuf/src/google/protobuf/extension_set.cc \
33	third_party/protobuf/src/google/protobuf/generated_message_util.cc \
34	third_party/protobuf/src/google/protobuf/message_lite.cc \
35	third_party/protobuf/src/google/protobuf/repeated_field.cc \
36	third_party/protobuf/src/google/protobuf/wire_format_lite.cc \
37	third_party/protobuf/src/google/protobuf/io/coded_stream.cc \
38	third_party/protobuf/src/google/protobuf/io/zero_copy_stream.cc \
39	third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc
40
41
42# Flags passed to both C and C++ files.
43MY_CFLAGS_Debug := \
44	-fstack-protector \
45	--param=ssp-buffer-size=4 \
46	 \
47	-fno-exceptions \
48	-fno-strict-aliasing \
49	-Wno-unused-parameter \
50	-Wno-missing-field-initializers \
51	-fvisibility=hidden \
52	-pipe \
53	-fPIC \
54	-Wno-unused-local-typedefs \
55	-Wno-format \
56	-EL \
57	-mhard-float \
58	-ffunction-sections \
59	-funwind-tables \
60	-g \
61	-fstack-protector \
62	-fno-short-enums \
63	-finline-limit=64 \
64	-Wa,--noexecstack \
65	-U_FORTIFY_SOURCE \
66	-Wno-extra \
67	-Wno-ignored-qualifiers \
68	-Wno-type-limits \
69	-Wno-unused-but-set-variable \
70	-Wno-address \
71	-Wno-format-security \
72	-Wno-return-type \
73	-Wno-sequence-point \
74	-Os \
75	-g \
76	-fomit-frame-pointer \
77	-fdata-sections \
78	-ffunction-sections \
79	-funwind-tables
80
81MY_DEFS_Debug := \
82	'-DV8_DEPRECATION_WARNINGS' \
83	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
84	'-D_FILE_OFFSET_BITS=64' \
85	'-DNO_TCMALLOC' \
86	'-DDISABLE_NACL' \
87	'-DCHROMIUM_BUILD' \
88	'-DUSE_LIBJPEG_TURBO=1' \
89	'-DENABLE_WEBRTC=1' \
90	'-DUSE_PROPRIETARY_CODECS' \
91	'-DENABLE_BROWSER_CDMS' \
92	'-DENABLE_CONFIGURATION_POLICY' \
93	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
94	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
95	'-DENABLE_EGLIMAGE=1' \
96	'-DCLD_VERSION=1' \
97	'-DENABLE_PRINTING=1' \
98	'-DENABLE_MANAGED_USERS=1' \
99	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
100	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
101	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
102	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
103	'-DVIDEO_HOLE=1' \
104	'-DLIBPROTOBUF_EXPORTS' \
105	'-DPROTOBUF_USE_DLLS' \
106	'-DGOOGLE_PROTOBUF_NO_RTTI' \
107	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
108	'-DUSE_OPENSSL=1' \
109	'-DUSE_OPENSSL_CERTS=1' \
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	$(gyp_shared_intermediate_dir) \
123	$(LOCAL_PATH)/third_party/protobuf \
124	$(LOCAL_PATH)/third_party/protobuf/src \
125	$(PWD)/frameworks/wilhelm/include \
126	$(PWD)/bionic \
127	$(PWD)/external/stlport/stlport
128
129
130# Flags passed to only C++ (and not C) files.
131LOCAL_CPPFLAGS_Debug := \
132	-fno-rtti \
133	-fno-threadsafe-statics \
134	-fvisibility-inlines-hidden \
135	-Wno-deprecated \
136	-Wno-uninitialized \
137	-Wno-non-virtual-dtor \
138	-Wno-sign-promo \
139	-Wno-non-virtual-dtor
140
141
142# Flags passed to both C and C++ files.
143MY_CFLAGS_Release := \
144	-fstack-protector \
145	--param=ssp-buffer-size=4 \
146	 \
147	-fno-exceptions \
148	-fno-strict-aliasing \
149	-Wno-unused-parameter \
150	-Wno-missing-field-initializers \
151	-fvisibility=hidden \
152	-pipe \
153	-fPIC \
154	-Wno-unused-local-typedefs \
155	-Wno-format \
156	-EL \
157	-mhard-float \
158	-ffunction-sections \
159	-funwind-tables \
160	-g \
161	-fstack-protector \
162	-fno-short-enums \
163	-finline-limit=64 \
164	-Wa,--noexecstack \
165	-U_FORTIFY_SOURCE \
166	-Wno-extra \
167	-Wno-ignored-qualifiers \
168	-Wno-type-limits \
169	-Wno-unused-but-set-variable \
170	-Wno-address \
171	-Wno-format-security \
172	-Wno-return-type \
173	-Wno-sequence-point \
174	-Os \
175	-fno-ident \
176	-fdata-sections \
177	-ffunction-sections \
178	-fomit-frame-pointer \
179	-funwind-tables
180
181MY_DEFS_Release := \
182	'-DV8_DEPRECATION_WARNINGS' \
183	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
184	'-D_FILE_OFFSET_BITS=64' \
185	'-DNO_TCMALLOC' \
186	'-DDISABLE_NACL' \
187	'-DCHROMIUM_BUILD' \
188	'-DUSE_LIBJPEG_TURBO=1' \
189	'-DENABLE_WEBRTC=1' \
190	'-DUSE_PROPRIETARY_CODECS' \
191	'-DENABLE_BROWSER_CDMS' \
192	'-DENABLE_CONFIGURATION_POLICY' \
193	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
194	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
195	'-DENABLE_EGLIMAGE=1' \
196	'-DCLD_VERSION=1' \
197	'-DENABLE_PRINTING=1' \
198	'-DENABLE_MANAGED_USERS=1' \
199	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
200	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
201	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
202	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
203	'-DVIDEO_HOLE=1' \
204	'-DLIBPROTOBUF_EXPORTS' \
205	'-DPROTOBUF_USE_DLLS' \
206	'-DGOOGLE_PROTOBUF_NO_RTTI' \
207	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
208	'-DUSE_OPENSSL=1' \
209	'-DUSE_OPENSSL_CERTS=1' \
210	'-DANDROID' \
211	'-D__GNU_SOURCE=1' \
212	'-DUSE_STLPORT=1' \
213	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
214	'-DCHROME_BUILD_ID=""' \
215	'-DNDEBUG' \
216	'-DNVALGRIND' \
217	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
218
219
220# Include paths placed before CFLAGS/CPPFLAGS
221LOCAL_C_INCLUDES_Release := \
222	$(gyp_shared_intermediate_dir) \
223	$(LOCAL_PATH)/third_party/protobuf \
224	$(LOCAL_PATH)/third_party/protobuf/src \
225	$(PWD)/frameworks/wilhelm/include \
226	$(PWD)/bionic \
227	$(PWD)/external/stlport/stlport
228
229
230# Flags passed to only C++ (and not C) files.
231LOCAL_CPPFLAGS_Release := \
232	-fno-rtti \
233	-fno-threadsafe-statics \
234	-fvisibility-inlines-hidden \
235	-Wno-deprecated \
236	-Wno-uninitialized \
237	-Wno-non-virtual-dtor \
238	-Wno-sign-promo \
239	-Wno-non-virtual-dtor
240
241
242LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
243LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
244LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
245LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
246### Rules for final target.
247
248LOCAL_LDFLAGS_Debug := \
249	-Wl,-z,now \
250	-Wl,-z,relro \
251	-Wl,--fatal-warnings \
252	-Wl,-z,noexecstack \
253	-fPIC \
254	-EL \
255	-Wl,--no-keep-memory \
256	-nostdlib \
257	-Wl,--no-undefined \
258	-Wl,--exclude-libs=ALL \
259	-Wl,--warn-shared-textrel \
260	-Wl,-O1 \
261	-Wl,--as-needed
262
263
264LOCAL_LDFLAGS_Release := \
265	-Wl,-z,now \
266	-Wl,-z,relro \
267	-Wl,--fatal-warnings \
268	-Wl,-z,noexecstack \
269	-fPIC \
270	-EL \
271	-Wl,--no-keep-memory \
272	-nostdlib \
273	-Wl,--no-undefined \
274	-Wl,--exclude-libs=ALL \
275	-Wl,-O1 \
276	-Wl,--as-needed \
277	-Wl,--gc-sections \
278	-Wl,--warn-shared-textrel
279
280
281LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
282
283LOCAL_STATIC_LIBRARIES :=
284
285# Enable grouping to fix circular references
286LOCAL_GROUP_STATIC_LIBRARIES := true
287
288LOCAL_SHARED_LIBRARIES := \
289	libstlport \
290	libdl
291
292# Add target alias to "gyp_all_modules" target.
293.PHONY: gyp_all_modules
294gyp_all_modules: third_party_protobuf_protobuf_lite_gyp
295
296# Alias gyp target name.
297.PHONY: protobuf_lite
298protobuf_lite: third_party_protobuf_protobuf_lite_gyp
299
300include $(BUILD_STATIC_LIBRARY)
301