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