• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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	--param=ssp-buffer-size=4 \
44	-fno-exceptions \
45	-fno-strict-aliasing \
46	-Wno-unused-parameter \
47	-Wno-missing-field-initializers \
48	-fvisibility=hidden \
49	-pipe \
50	-fPIC \
51	-Wno-format \
52	-m32 \
53	-mmmx \
54	-march=pentium4 \
55	-msse2 \
56	-mfpmath=sse \
57	-fuse-ld=gold \
58	-ffunction-sections \
59	-funwind-tables \
60	-g \
61	-fno-short-enums \
62	-finline-limit=64 \
63	-Wa,--noexecstack \
64	-U_FORTIFY_SOURCE \
65	-Wno-extra \
66	-Wno-ignored-qualifiers \
67	-Wno-type-limits \
68	-fno-stack-protector \
69	-Wno-address \
70	-Wno-format-security \
71	-Wno-return-type \
72	-Wno-sequence-point \
73	-Os \
74	-g \
75	-fomit-frame-pointer \
76	-fdata-sections \
77	-ffunction-sections
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	'-DUSE_PROPRIETARY_CODECS' \
87	'-DENABLE_CONFIGURATION_POLICY' \
88	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
89	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
90	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
91	'-DUSE_OPENSSL=1' \
92	'-DENABLE_EGLIMAGE=1' \
93	'-DCLD_VERSION=1' \
94	'-DENABLE_PRINTING=1' \
95	'-DENABLE_MANAGED_USERS=1' \
96	'-DLIBPROTOBUF_EXPORTS' \
97	'-DPROTOBUF_USE_DLLS' \
98	'-DGOOGLE_PROTOBUF_NO_RTTI' \
99	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
100	'-DANDROID' \
101	'-D__GNU_SOURCE=1' \
102	'-DUSE_STLPORT=1' \
103	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
104	'-DCHROME_BUILD_ID=""' \
105	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
106	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
107	'-D_DEBUG'
108
109
110# Include paths placed before CFLAGS/CPPFLAGS
111LOCAL_C_INCLUDES_Debug := \
112	$(LOCAL_PATH)/third_party/protobuf \
113	$(LOCAL_PATH)/third_party/protobuf/src \
114	$(PWD)/frameworks/wilhelm/include \
115	$(PWD)/bionic \
116	$(PWD)/external/stlport/stlport
117
118
119# Flags passed to only C++ (and not C) files.
120LOCAL_CPPFLAGS_Debug := \
121	-fno-rtti \
122	-fno-threadsafe-statics \
123	-fvisibility-inlines-hidden \
124	-Wno-deprecated \
125	-Wno-error=c++0x-compat \
126	-Wno-non-virtual-dtor \
127	-Wno-sign-promo \
128	-Wno-non-virtual-dtor
129
130
131# Flags passed to both C and C++ files.
132MY_CFLAGS_Release := \
133	--param=ssp-buffer-size=4 \
134	-fno-exceptions \
135	-fno-strict-aliasing \
136	-Wno-unused-parameter \
137	-Wno-missing-field-initializers \
138	-fvisibility=hidden \
139	-pipe \
140	-fPIC \
141	-Wno-format \
142	-m32 \
143	-mmmx \
144	-march=pentium4 \
145	-msse2 \
146	-mfpmath=sse \
147	-fuse-ld=gold \
148	-ffunction-sections \
149	-funwind-tables \
150	-g \
151	-fno-short-enums \
152	-finline-limit=64 \
153	-Wa,--noexecstack \
154	-U_FORTIFY_SOURCE \
155	-Wno-extra \
156	-Wno-ignored-qualifiers \
157	-Wno-type-limits \
158	-fno-stack-protector \
159	-Wno-address \
160	-Wno-format-security \
161	-Wno-return-type \
162	-Wno-sequence-point \
163	-Os \
164	-fno-ident \
165	-fdata-sections \
166	-ffunction-sections \
167	-fomit-frame-pointer \
168	-fno-unwind-tables \
169	-fno-asynchronous-unwind-tables
170
171MY_DEFS_Release := \
172	'-DV8_DEPRECATION_WARNINGS' \
173	'-D_FILE_OFFSET_BITS=64' \
174	'-DNO_TCMALLOC' \
175	'-DDISABLE_NACL' \
176	'-DCHROMIUM_BUILD' \
177	'-DUSE_LIBJPEG_TURBO=1' \
178	'-DUSE_PROPRIETARY_CODECS' \
179	'-DENABLE_CONFIGURATION_POLICY' \
180	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
181	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
182	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
183	'-DUSE_OPENSSL=1' \
184	'-DENABLE_EGLIMAGE=1' \
185	'-DCLD_VERSION=1' \
186	'-DENABLE_PRINTING=1' \
187	'-DENABLE_MANAGED_USERS=1' \
188	'-DLIBPROTOBUF_EXPORTS' \
189	'-DPROTOBUF_USE_DLLS' \
190	'-DGOOGLE_PROTOBUF_NO_RTTI' \
191	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
192	'-DANDROID' \
193	'-D__GNU_SOURCE=1' \
194	'-DUSE_STLPORT=1' \
195	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
196	'-DCHROME_BUILD_ID=""' \
197	'-DNDEBUG' \
198	'-DNVALGRIND' \
199	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
200
201
202# Include paths placed before CFLAGS/CPPFLAGS
203LOCAL_C_INCLUDES_Release := \
204	$(LOCAL_PATH)/third_party/protobuf \
205	$(LOCAL_PATH)/third_party/protobuf/src \
206	$(PWD)/frameworks/wilhelm/include \
207	$(PWD)/bionic \
208	$(PWD)/external/stlport/stlport
209
210
211# Flags passed to only C++ (and not C) files.
212LOCAL_CPPFLAGS_Release := \
213	-fno-rtti \
214	-fno-threadsafe-statics \
215	-fvisibility-inlines-hidden \
216	-Wno-deprecated \
217	-Wno-error=c++0x-compat \
218	-Wno-non-virtual-dtor \
219	-Wno-sign-promo \
220	-Wno-non-virtual-dtor
221
222
223LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
224LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
225LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
226### Rules for final target.
227
228LOCAL_LDFLAGS_Debug := \
229	-Wl,-z,now \
230	-Wl,-z,relro \
231	-Wl,-z,noexecstack \
232	-fPIC \
233	-m32 \
234	-fuse-ld=gold \
235	-nostdlib \
236	-Wl,--no-undefined \
237	-Wl,--exclude-libs=ALL \
238	-Wl,--fatal-warnings \
239	-Wl,--gc-sections \
240	-Wl,--warn-shared-textrel \
241	-Wl,-O1 \
242	-Wl,--as-needed
243
244
245LOCAL_LDFLAGS_Release := \
246	-Wl,-z,now \
247	-Wl,-z,relro \
248	-Wl,-z,noexecstack \
249	-fPIC \
250	-m32 \
251	-fuse-ld=gold \
252	-nostdlib \
253	-Wl,--no-undefined \
254	-Wl,--exclude-libs=ALL \
255	-Wl,-O1 \
256	-Wl,--as-needed \
257	-Wl,--gc-sections \
258	-Wl,--fatal-warnings \
259	-Wl,--warn-shared-textrel
260
261
262LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
263
264LOCAL_STATIC_LIBRARIES :=
265
266# Enable grouping to fix circular references
267LOCAL_GROUP_STATIC_LIBRARIES := true
268
269LOCAL_SHARED_LIBRARIES := \
270	libstlport \
271	libdl
272
273# Add target alias to "gyp_all_modules" target.
274.PHONY: gyp_all_modules
275gyp_all_modules: third_party_protobuf_protobuf_lite_gyp
276
277# Alias gyp target name.
278.PHONY: protobuf_lite
279protobuf_lite: third_party_protobuf_protobuf_lite_gyp
280
281include $(BUILD_STATIC_LIBRARY)
282