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