protobuf_lite.target.darwin-x86_64.mk revision 46d4c2bc3267f3f028f39e7e311b0f89aba2e4fd
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
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES :=
15
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc \
28	third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc \
29	third_party/protobuf/src/google/protobuf/unknown_field_set.cc \
30	third_party/protobuf/src/google/protobuf/stubs/common.cc \
31	third_party/protobuf/src/google/protobuf/stubs/once.cc \
32	third_party/protobuf/src/google/protobuf/extension_set.cc \
33	third_party/protobuf/src/google/protobuf/generated_message_util.cc \
34	third_party/protobuf/src/google/protobuf/message_lite.cc \
35	third_party/protobuf/src/google/protobuf/repeated_field.cc \
36	third_party/protobuf/src/google/protobuf/wire_format_lite.cc \
37	third_party/protobuf/src/google/protobuf/io/coded_stream.cc \
38	third_party/protobuf/src/google/protobuf/io/zero_copy_stream.cc \
39	third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc
40
41
42# Flags passed to both C and C++ files.
43MY_CFLAGS_Debug := \
44	-fstack-protector \
45	--param=ssp-buffer-size=4 \
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-unused-local-typedefs \
54	-Wno-format \
55	-m64 \
56	-march=x86-64 \
57	-ffunction-sections \
58	-funwind-tables \
59	-g \
60	-fstack-protector \
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-unused-but-set-variable \
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	-funwind-tables
79
80MY_DEFS_Debug := \
81	'-DV8_DEPRECATION_WARNINGS' \
82	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
83	'-D_FILE_OFFSET_BITS=64' \
84	'-DNO_TCMALLOC' \
85	'-DDISABLE_NACL' \
86	'-DCHROMIUM_BUILD' \
87	'-DUSE_LIBJPEG_TURBO=1' \
88	'-DENABLE_WEBRTC=1' \
89	'-DUSE_PROPRIETARY_CODECS' \
90	'-DENABLE_CONFIGURATION_POLICY' \
91	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
92	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
93	'-DENABLE_EGLIMAGE=1' \
94	'-DCLD_VERSION=1' \
95	'-DENABLE_PRINTING=1' \
96	'-DENABLE_MANAGED_USERS=1' \
97	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
98	'-DDATA_REDUCTION_DEV_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	'-DVIDEO_HOLE=1' \
102	'-DLIBPROTOBUF_EXPORTS' \
103	'-DPROTOBUF_USE_DLLS' \
104	'-DGOOGLE_PROTOBUF_NO_RTTI' \
105	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
106	'-DUSE_OPENSSL=1' \
107	'-DUSE_OPENSSL_CERTS=1' \
108	'-DANDROID' \
109	'-D__GNU_SOURCE=1' \
110	'-DUSE_STLPORT=1' \
111	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
112	'-DCHROME_BUILD_ID=""' \
113	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
114	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
115	'-D_DEBUG'
116
117
118# Include paths placed before CFLAGS/CPPFLAGS
119LOCAL_C_INCLUDES_Debug := \
120	$(LOCAL_PATH)/third_party/protobuf \
121	$(LOCAL_PATH)/third_party/protobuf/src \
122	$(PWD)/frameworks/wilhelm/include \
123	$(PWD)/bionic \
124	$(PWD)/external/stlport/stlport
125
126
127# Flags passed to only C++ (and not C) files.
128LOCAL_CPPFLAGS_Debug := \
129	-fno-rtti \
130	-fno-threadsafe-statics \
131	-fvisibility-inlines-hidden \
132	-Wno-deprecated \
133	-Wno-non-virtual-dtor \
134	-Wno-sign-promo \
135	-Wno-non-virtual-dtor
136
137
138# Flags passed to both C and C++ files.
139MY_CFLAGS_Release := \
140	-fstack-protector \
141	--param=ssp-buffer-size=4 \
142	-fno-exceptions \
143	-fno-strict-aliasing \
144	-Wno-unused-parameter \
145	-Wno-missing-field-initializers \
146	-fvisibility=hidden \
147	-pipe \
148	-fPIC \
149	-Wno-unused-local-typedefs \
150	-Wno-format \
151	-m64 \
152	-march=x86-64 \
153	-ffunction-sections \
154	-funwind-tables \
155	-g \
156	-fstack-protector \
157	-fno-short-enums \
158	-finline-limit=64 \
159	-Wa,--noexecstack \
160	-U_FORTIFY_SOURCE \
161	-Wno-extra \
162	-Wno-ignored-qualifiers \
163	-Wno-type-limits \
164	-Wno-unused-but-set-variable \
165	-Wno-address \
166	-Wno-format-security \
167	-Wno-return-type \
168	-Wno-sequence-point \
169	-Os \
170	-fno-ident \
171	-fdata-sections \
172	-ffunction-sections \
173	-fomit-frame-pointer \
174	-funwind-tables
175
176MY_DEFS_Release := \
177	'-DV8_DEPRECATION_WARNINGS' \
178	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
179	'-D_FILE_OFFSET_BITS=64' \
180	'-DNO_TCMALLOC' \
181	'-DDISABLE_NACL' \
182	'-DCHROMIUM_BUILD' \
183	'-DUSE_LIBJPEG_TURBO=1' \
184	'-DENABLE_WEBRTC=1' \
185	'-DUSE_PROPRIETARY_CODECS' \
186	'-DENABLE_CONFIGURATION_POLICY' \
187	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
188	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
189	'-DENABLE_EGLIMAGE=1' \
190	'-DCLD_VERSION=1' \
191	'-DENABLE_PRINTING=1' \
192	'-DENABLE_MANAGED_USERS=1' \
193	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
194	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
195	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
196	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
197	'-DVIDEO_HOLE=1' \
198	'-DLIBPROTOBUF_EXPORTS' \
199	'-DPROTOBUF_USE_DLLS' \
200	'-DGOOGLE_PROTOBUF_NO_RTTI' \
201	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
202	'-DUSE_OPENSSL=1' \
203	'-DUSE_OPENSSL_CERTS=1' \
204	'-DANDROID' \
205	'-D__GNU_SOURCE=1' \
206	'-DUSE_STLPORT=1' \
207	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
208	'-DCHROME_BUILD_ID=""' \
209	'-DNDEBUG' \
210	'-DNVALGRIND' \
211	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
212
213
214# Include paths placed before CFLAGS/CPPFLAGS
215LOCAL_C_INCLUDES_Release := \
216	$(LOCAL_PATH)/third_party/protobuf \
217	$(LOCAL_PATH)/third_party/protobuf/src \
218	$(PWD)/frameworks/wilhelm/include \
219	$(PWD)/bionic \
220	$(PWD)/external/stlport/stlport
221
222
223# Flags passed to only C++ (and not C) files.
224LOCAL_CPPFLAGS_Release := \
225	-fno-rtti \
226	-fno-threadsafe-statics \
227	-fvisibility-inlines-hidden \
228	-Wno-deprecated \
229	-Wno-non-virtual-dtor \
230	-Wno-sign-promo \
231	-Wno-non-virtual-dtor
232
233
234LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
235LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
236LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
237LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
238### Rules for final target.
239
240LOCAL_LDFLAGS_Debug := \
241	-Wl,-z,now \
242	-Wl,-z,relro \
243	-Wl,--fatal-warnings \
244	-Wl,-z,noexecstack \
245	-fPIC \
246	-m64 \
247	-fuse-ld=gold \
248	-nostdlib \
249	-Wl,--no-undefined \
250	-Wl,--exclude-libs=ALL \
251	-Wl,--warn-shared-textrel \
252	-Wl,-O1 \
253	-Wl,--as-needed
254
255
256LOCAL_LDFLAGS_Release := \
257	-Wl,-z,now \
258	-Wl,-z,relro \
259	-Wl,--fatal-warnings \
260	-Wl,-z,noexecstack \
261	-fPIC \
262	-m64 \
263	-fuse-ld=gold \
264	-nostdlib \
265	-Wl,--no-undefined \
266	-Wl,--exclude-libs=ALL \
267	-Wl,-O1 \
268	-Wl,--as-needed \
269	-Wl,--gc-sections \
270	-Wl,--warn-shared-textrel
271
272
273LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
274
275LOCAL_STATIC_LIBRARIES :=
276
277# Enable grouping to fix circular references
278LOCAL_GROUP_STATIC_LIBRARIES := true
279
280LOCAL_SHARED_LIBRARIES := \
281	libstlport \
282	libdl
283
284# Add target alias to "gyp_all_modules" target.
285.PHONY: gyp_all_modules
286gyp_all_modules: third_party_protobuf_protobuf_lite_gyp
287
288# Alias gyp target name.
289.PHONY: protobuf_lite
290protobuf_lite: third_party_protobuf_protobuf_lite_gyp
291
292include $(BUILD_STATIC_LIBRARY)
293