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	-fno-strict-aliasing \
46	-Wno-unused-parameter \
47	-Wno-missing-field-initializers \
48	-fvisibility=hidden \
49	-pipe \
50	-fPIC \
51	-Wno-unused-local-typedefs \
52	-Wno-format \
53	-m64 \
54	-march=x86-64 \
55	-ffunction-sections \
56	-funwind-tables \
57	-g \
58	-fstack-protector \
59	-fno-short-enums \
60	-finline-limit=64 \
61	-Wa,--noexecstack \
62	-U_FORTIFY_SOURCE \
63	-Wno-extra \
64	-Wno-ignored-qualifiers \
65	-Wno-type-limits \
66	-Wno-unused-but-set-variable \
67	-Wno-address \
68	-Wno-format-security \
69	-Wno-return-type \
70	-Wno-sequence-point \
71	-Os \
72	-g \
73	-gdwarf-4 \
74	-fdata-sections \
75	-ffunction-sections \
76	-fomit-frame-pointer \
77	-funwind-tables
78
79MY_DEFS_Debug := \
80	'-DV8_DEPRECATION_WARNINGS' \
81	'-D_FILE_OFFSET_BITS=64' \
82	'-DNO_TCMALLOC' \
83	'-DDISABLE_NACL' \
84	'-DCHROMIUM_BUILD' \
85	'-DUSE_LIBJPEG_TURBO=1' \
86	'-DENABLE_WEBRTC=1' \
87	'-DUSE_PROPRIETARY_CODECS' \
88	'-DENABLE_BROWSER_CDMS' \
89	'-DENABLE_CONFIGURATION_POLICY' \
90	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
91	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
92	'-DENABLE_EGLIMAGE=1' \
93	'-DCLD_VERSION=1' \
94	'-DENABLE_PRINTING=1' \
95	'-DENABLE_MANAGED_USERS=1' \
96	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
97	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
98	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
99	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
100	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
101	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
102	'-DVIDEO_HOLE=1' \
103	'-DENABLE_LOAD_COMPLETION_HACKS=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-exceptions \
133	-fno-rtti \
134	-fno-threadsafe-statics \
135	-fvisibility-inlines-hidden \
136	-Wno-deprecated \
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	-fno-strict-aliasing \
150	-Wno-unused-parameter \
151	-Wno-missing-field-initializers \
152	-fvisibility=hidden \
153	-pipe \
154	-fPIC \
155	-Wno-unused-local-typedefs \
156	-Wno-format \
157	-m64 \
158	-march=x86-64 \
159	-ffunction-sections \
160	-funwind-tables \
161	-g \
162	-fstack-protector \
163	-fno-short-enums \
164	-finline-limit=64 \
165	-Wa,--noexecstack \
166	-U_FORTIFY_SOURCE \
167	-Wno-extra \
168	-Wno-ignored-qualifiers \
169	-Wno-type-limits \
170	-Wno-unused-but-set-variable \
171	-Wno-address \
172	-Wno-format-security \
173	-Wno-return-type \
174	-Wno-sequence-point \
175	-Os \
176	-fno-ident \
177	-fdata-sections \
178	-ffunction-sections \
179	-fomit-frame-pointer \
180	-funwind-tables
181
182MY_DEFS_Release := \
183	'-DV8_DEPRECATION_WARNINGS' \
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="https://proxy-dev.googlezip.net:443/"' \
201	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
202	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
203	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
204	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
205	'-DVIDEO_HOLE=1' \
206	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
207	'-DLIBPROTOBUF_EXPORTS' \
208	'-DPROTOBUF_USE_DLLS' \
209	'-DGOOGLE_PROTOBUF_NO_RTTI' \
210	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
211	'-DUSE_OPENSSL=1' \
212	'-DUSE_OPENSSL_CERTS=1' \
213	'-DANDROID' \
214	'-D__GNU_SOURCE=1' \
215	'-DUSE_STLPORT=1' \
216	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
217	'-DCHROME_BUILD_ID=""' \
218	'-DNDEBUG' \
219	'-DNVALGRIND' \
220	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
221
222
223# Include paths placed before CFLAGS/CPPFLAGS
224LOCAL_C_INCLUDES_Release := \
225	$(gyp_shared_intermediate_dir) \
226	$(LOCAL_PATH)/third_party/protobuf \
227	$(LOCAL_PATH)/third_party/protobuf/src \
228	$(PWD)/frameworks/wilhelm/include \
229	$(PWD)/bionic \
230	$(PWD)/external/stlport/stlport
231
232
233# Flags passed to only C++ (and not C) files.
234LOCAL_CPPFLAGS_Release := \
235	-fno-exceptions \
236	-fno-rtti \
237	-fno-threadsafe-statics \
238	-fvisibility-inlines-hidden \
239	-Wno-deprecated \
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