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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
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-strict-aliasing \
47	-Wno-unused-parameter \
48	-Wno-missing-field-initializers \
49	-fvisibility=hidden \
50	-pipe \
51	-fPIC \
52	-Wno-unused-local-typedefs \
53	-Wno-format \
54	-ffunction-sections \
55	-funwind-tables \
56	-g \
57	-fstack-protector \
58	-fno-short-enums \
59	-finline-limit=64 \
60	-Wa,--noexecstack \
61	-U_FORTIFY_SOURCE \
62	-Wno-extra \
63	-Wno-ignored-qualifiers \
64	-Wno-type-limits \
65	-Wno-unused-but-set-variable \
66	-Wno-address \
67	-Wno-format-security \
68	-Wno-return-type \
69	-Wno-sequence-point \
70	-Os \
71	-g \
72	-gdwarf-4 \
73	-fdata-sections \
74	-ffunction-sections \
75	-fomit-frame-pointer \
76	-funwind-tables
77
78MY_DEFS_Debug := \
79	'-DV8_DEPRECATION_WARNINGS' \
80	'-D_FILE_OFFSET_BITS=64' \
81	'-DNO_TCMALLOC' \
82	'-DDISABLE_NACL' \
83	'-DCHROMIUM_BUILD' \
84	'-DUSE_LIBJPEG_TURBO=1' \
85	'-DENABLE_WEBRTC=1' \
86	'-DUSE_PROPRIETARY_CODECS' \
87	'-DENABLE_BROWSER_CDMS' \
88	'-DENABLE_CONFIGURATION_POLICY' \
89	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
90	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
91	'-DENABLE_EGLIMAGE=1' \
92	'-DCLD_VERSION=1' \
93	'-DENABLE_PRINTING=1' \
94	'-DENABLE_MANAGED_USERS=1' \
95	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
96	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
97	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
98	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
99	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
100	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
101	'-DVIDEO_HOLE=1' \
102	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
103	'-DLIBPROTOBUF_EXPORTS' \
104	'-DPROTOBUF_USE_DLLS' \
105	'-DGOOGLE_PROTOBUF_NO_RTTI' \
106	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
107	'-DUSE_OPENSSL=1' \
108	'-DUSE_OPENSSL_CERTS=1' \
109	'-DANDROID' \
110	'-D__GNU_SOURCE=1' \
111	'-DUSE_STLPORT=1' \
112	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
113	'-DCHROME_BUILD_ID=""' \
114	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
115	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
116	'-D_DEBUG'
117
118
119# Include paths placed before CFLAGS/CPPFLAGS
120LOCAL_C_INCLUDES_Debug := \
121	$(gyp_shared_intermediate_dir) \
122	$(LOCAL_PATH)/third_party/protobuf \
123	$(LOCAL_PATH)/third_party/protobuf/src \
124	$(PWD)/frameworks/wilhelm/include \
125	$(PWD)/bionic \
126	$(PWD)/external/stlport/stlport
127
128
129# Flags passed to only C++ (and not C) files.
130LOCAL_CPPFLAGS_Debug := \
131	-fno-exceptions \
132	-fno-rtti \
133	-fno-threadsafe-statics \
134	-fvisibility-inlines-hidden \
135	-Wno-deprecated \
136	-Wno-uninitialized \
137	-std=gnu++11 \
138	-Wno-narrowing \
139	-Wno-literal-suffix \
140	-Wno-non-virtual-dtor \
141	-Wno-sign-promo \
142	-Wno-non-virtual-dtor
143
144
145# Flags passed to both C and C++ files.
146MY_CFLAGS_Release := \
147	-fstack-protector \
148	--param=ssp-buffer-size=4 \
149	 \
150	-fno-strict-aliasing \
151	-Wno-unused-parameter \
152	-Wno-missing-field-initializers \
153	-fvisibility=hidden \
154	-pipe \
155	-fPIC \
156	-Wno-unused-local-typedefs \
157	-Wno-format \
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	'-D_FILE_OFFSET_BITS=64' \
184	'-DNO_TCMALLOC' \
185	'-DDISABLE_NACL' \
186	'-DCHROMIUM_BUILD' \
187	'-DUSE_LIBJPEG_TURBO=1' \
188	'-DENABLE_WEBRTC=1' \
189	'-DUSE_PROPRIETARY_CODECS' \
190	'-DENABLE_BROWSER_CDMS' \
191	'-DENABLE_CONFIGURATION_POLICY' \
192	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
193	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
194	'-DENABLE_EGLIMAGE=1' \
195	'-DCLD_VERSION=1' \
196	'-DENABLE_PRINTING=1' \
197	'-DENABLE_MANAGED_USERS=1' \
198	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
199	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
200	'-DDATA_REDUCTION_DEV_FALLBACK_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	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
204	'-DVIDEO_HOLE=1' \
205	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
206	'-DLIBPROTOBUF_EXPORTS' \
207	'-DPROTOBUF_USE_DLLS' \
208	'-DGOOGLE_PROTOBUF_NO_RTTI' \
209	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
210	'-DUSE_OPENSSL=1' \
211	'-DUSE_OPENSSL_CERTS=1' \
212	'-DANDROID' \
213	'-D__GNU_SOURCE=1' \
214	'-DUSE_STLPORT=1' \
215	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
216	'-DCHROME_BUILD_ID=""' \
217	'-DNDEBUG' \
218	'-DNVALGRIND' \
219	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
220
221
222# Include paths placed before CFLAGS/CPPFLAGS
223LOCAL_C_INCLUDES_Release := \
224	$(gyp_shared_intermediate_dir) \
225	$(LOCAL_PATH)/third_party/protobuf \
226	$(LOCAL_PATH)/third_party/protobuf/src \
227	$(PWD)/frameworks/wilhelm/include \
228	$(PWD)/bionic \
229	$(PWD)/external/stlport/stlport
230
231
232# Flags passed to only C++ (and not C) files.
233LOCAL_CPPFLAGS_Release := \
234	-fno-exceptions \
235	-fno-rtti \
236	-fno-threadsafe-statics \
237	-fvisibility-inlines-hidden \
238	-Wno-deprecated \
239	-Wno-uninitialized \
240	-std=gnu++11 \
241	-Wno-narrowing \
242	-Wno-literal-suffix \
243	-Wno-non-virtual-dtor \
244	-Wno-sign-promo \
245	-Wno-non-virtual-dtor
246
247
248LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
249LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
250LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
251LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
252### Rules for final target.
253
254LOCAL_SHARED_LIBRARIES := \
255	libstlport \
256	libdl
257
258# Add target alias to "gyp_all_modules" target.
259.PHONY: gyp_all_modules
260gyp_all_modules: third_party_protobuf_protobuf_lite_gyp
261
262# Alias gyp target name.
263.PHONY: protobuf_lite
264protobuf_lite: third_party_protobuf_protobuf_lite_gyp
265
266include $(BUILD_STATIC_LIBRARY)
267