protobuf_full_do_not_use.host.darwin-mips.mk revision c5cede9ae108bb15f6b7a8aea21c7e1fefa2834c
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_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9LOCAL_IS_HOST_MODULE := true
10LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
11gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
12gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
13
14# Make sure our deps are built first.
15GYP_TARGET_DEPENDENCIES :=
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_CPP_EXTENSION := .cc
23LOCAL_GENERATED_SOURCES :=
24
25GYP_COPIED_SOURCE_ORIGIN_DIRS :=
26
27LOCAL_SRC_FILES := \
28	third_party/protobuf/src/google/protobuf/compiler/java/java_doc_comment.cc \
29	third_party/protobuf/src/google/protobuf/stubs/strutil.cc \
30	third_party/protobuf/src/google/protobuf/stubs/substitute.cc \
31	third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc \
32	third_party/protobuf/src/google/protobuf/stubs/structurally_valid.cc \
33	third_party/protobuf/src/google/protobuf/descriptor.cc \
34	third_party/protobuf/src/google/protobuf/descriptor.pb.cc \
35	third_party/protobuf/src/google/protobuf/descriptor_database.cc \
36	third_party/protobuf/src/google/protobuf/dynamic_message.cc \
37	third_party/protobuf/src/google/protobuf/extension_set.cc \
38	third_party/protobuf/src/google/protobuf/extension_set_heavy.cc \
39	third_party/protobuf/src/google/protobuf/generated_message_reflection.cc \
40	third_party/protobuf/src/google/protobuf/message.cc \
41	third_party/protobuf/src/google/protobuf/reflection_ops.cc \
42	third_party/protobuf/src/google/protobuf/service.cc \
43	third_party/protobuf/src/google/protobuf/text_format.cc \
44	third_party/protobuf/src/google/protobuf/wire_format.cc \
45	third_party/protobuf/src/google/protobuf/io/printer.cc \
46	third_party/protobuf/src/google/protobuf/io/tokenizer.cc \
47	third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc \
48	third_party/protobuf/src/google/protobuf/compiler/importer.cc \
49	third_party/protobuf/src/google/protobuf/compiler/parser.cc \
50	third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc \
51	third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc \
52	third_party/protobuf/src/google/protobuf/unknown_field_set.cc \
53	third_party/protobuf/src/google/protobuf/stubs/common.cc \
54	third_party/protobuf/src/google/protobuf/stubs/once.cc \
55	third_party/protobuf/src/google/protobuf/generated_message_util.cc \
56	third_party/protobuf/src/google/protobuf/message_lite.cc \
57	third_party/protobuf/src/google/protobuf/repeated_field.cc \
58	third_party/protobuf/src/google/protobuf/wire_format_lite.cc \
59	third_party/protobuf/src/google/protobuf/io/coded_stream.cc \
60	third_party/protobuf/src/google/protobuf/io/zero_copy_stream.cc \
61	third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc
62
63
64# Flags passed to both C and C++ files.
65MY_CFLAGS_Debug := \
66	-fstack-protector \
67	--param=ssp-buffer-size=4 \
68	 \
69	-pthread \
70	-fno-exceptions \
71	-fno-strict-aliasing \
72	-Wno-unused-parameter \
73	-Wno-missing-field-initializers \
74	-fvisibility=hidden \
75	-pipe \
76	-fPIC \
77	-Wno-format \
78	-Os \
79	-g \
80	-fomit-frame-pointer \
81	-fdata-sections \
82	-ffunction-sections \
83	-funwind-tables
84
85MY_DEFS_Debug := \
86	'-DV8_DEPRECATION_WARNINGS' \
87	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
88	'-D_FILE_OFFSET_BITS=64' \
89	'-DNO_TCMALLOC' \
90	'-DDISABLE_NACL' \
91	'-DCHROMIUM_BUILD' \
92	'-DUSE_LIBJPEG_TURBO=1' \
93	'-DENABLE_WEBRTC=1' \
94	'-DUSE_PROPRIETARY_CODECS' \
95	'-DENABLE_CONFIGURATION_POLICY' \
96	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
97	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
98	'-DENABLE_EGLIMAGE=1' \
99	'-DCLD_VERSION=1' \
100	'-DENABLE_PRINTING=1' \
101	'-DENABLE_MANAGED_USERS=1' \
102	'-DGOOGLE_PROTOBUF_NO_RTTI' \
103	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
104	'-DUSE_OPENSSL=1' \
105	'-DUSE_OPENSSL_CERTS=1' \
106	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
107	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
108	'-D_DEBUG'
109
110
111# Include paths placed before CFLAGS/CPPFLAGS
112LOCAL_C_INCLUDES_Debug := \
113	$(LOCAL_PATH)/third_party/protobuf \
114	$(LOCAL_PATH)/third_party/protobuf/src
115
116
117# Flags passed to only C++ (and not C) files.
118LOCAL_CPPFLAGS_Debug := \
119	-fno-rtti \
120	-fno-threadsafe-statics \
121	-fvisibility-inlines-hidden \
122	-Wno-deprecated
123
124
125# Flags passed to both C and C++ files.
126MY_CFLAGS_Release := \
127	-fstack-protector \
128	--param=ssp-buffer-size=4 \
129	 \
130	-pthread \
131	-fno-exceptions \
132	-fno-strict-aliasing \
133	-Wno-unused-parameter \
134	-Wno-missing-field-initializers \
135	-fvisibility=hidden \
136	-pipe \
137	-fPIC \
138	-Wno-format \
139	-Os \
140	-fno-ident \
141	-fdata-sections \
142	-ffunction-sections \
143	-fomit-frame-pointer \
144	-funwind-tables
145
146MY_DEFS_Release := \
147	'-DV8_DEPRECATION_WARNINGS' \
148	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
149	'-D_FILE_OFFSET_BITS=64' \
150	'-DNO_TCMALLOC' \
151	'-DDISABLE_NACL' \
152	'-DCHROMIUM_BUILD' \
153	'-DUSE_LIBJPEG_TURBO=1' \
154	'-DENABLE_WEBRTC=1' \
155	'-DUSE_PROPRIETARY_CODECS' \
156	'-DENABLE_CONFIGURATION_POLICY' \
157	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
158	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
159	'-DENABLE_EGLIMAGE=1' \
160	'-DCLD_VERSION=1' \
161	'-DENABLE_PRINTING=1' \
162	'-DENABLE_MANAGED_USERS=1' \
163	'-DGOOGLE_PROTOBUF_NO_RTTI' \
164	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
165	'-DUSE_OPENSSL=1' \
166	'-DUSE_OPENSSL_CERTS=1' \
167	'-DNDEBUG' \
168	'-DNVALGRIND' \
169	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
170
171
172# Include paths placed before CFLAGS/CPPFLAGS
173LOCAL_C_INCLUDES_Release := \
174	$(LOCAL_PATH)/third_party/protobuf \
175	$(LOCAL_PATH)/third_party/protobuf/src
176
177
178# Flags passed to only C++ (and not C) files.
179LOCAL_CPPFLAGS_Release := \
180	-fno-rtti \
181	-fno-threadsafe-statics \
182	-fvisibility-inlines-hidden \
183	-Wno-deprecated
184
185
186LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
187# Undefine ANDROID for host modules
188LOCAL_CFLAGS += -UANDROID
189LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
190LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
191LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
192### Rules for final target.
193
194LOCAL_LDFLAGS_Debug := \
195	-pthread \
196	-fPIC
197
198
199LOCAL_LDFLAGS_Release := \
200	-pthread \
201	-fPIC
202
203
204LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
205
206LOCAL_STATIC_LIBRARIES :=
207
208# Enable grouping to fix circular references
209LOCAL_GROUP_STATIC_LIBRARIES := true
210
211LOCAL_SHARED_LIBRARIES :=
212
213# Add target alias to "gyp_all_modules" target.
214.PHONY: gyp_all_modules
215gyp_all_modules: third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
216
217# Alias gyp target name.
218.PHONY: protobuf_full_do_not_use
219protobuf_full_do_not_use: third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
220
221include $(BUILD_HOST_STATIC_LIBRARY)
222