protoc.host.linux-mips.mk revision 6e8cce623b6e4fe0c9e4af605d675dd9d0338c38
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := EXECUTABLES
6LOCAL_MODULE := third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
7LOCAL_MODULE_STEM := protoc
8LOCAL_MODULE_SUFFIX := 
9LOCAL_MODULE_TAGS := optional
10LOCAL_IS_HOST_MODULE := true
11LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
12gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX))
13gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
14
15# Make sure our deps are built first.
16GYP_TARGET_DEPENDENCIES := \
17	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a
18
19GYP_GENERATED_OUTPUTS :=
20
21# Make sure our deps and generated files are built first.
22LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
23
24LOCAL_CPP_EXTENSION := .cc
25LOCAL_GENERATED_SOURCES :=
26
27GYP_COPIED_SOURCE_ORIGIN_DIRS :=
28
29LOCAL_SRC_FILES := \
30	third_party/protobuf/src/google/protobuf/compiler/code_generator.cc \
31	third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc \
32	third_party/protobuf/src/google/protobuf/compiler/plugin.cc \
33	third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc \
34	third_party/protobuf/src/google/protobuf/compiler/subprocess.cc \
35	third_party/protobuf/src/google/protobuf/compiler/zip_writer.cc \
36	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum.cc \
37	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum_field.cc \
38	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_extension.cc \
39	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_field.cc \
40	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_file.cc \
41	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc \
42	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.cc \
43	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc \
44	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message_field.cc \
45	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc \
46	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_service.cc \
47	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc \
48	third_party/protobuf/src/google/protobuf/compiler/java/java_enum.cc \
49	third_party/protobuf/src/google/protobuf/compiler/java/java_enum_field.cc \
50	third_party/protobuf/src/google/protobuf/compiler/java/java_extension.cc \
51	third_party/protobuf/src/google/protobuf/compiler/java/java_field.cc \
52	third_party/protobuf/src/google/protobuf/compiler/java/java_file.cc \
53	third_party/protobuf/src/google/protobuf/compiler/java/java_generator.cc \
54	third_party/protobuf/src/google/protobuf/compiler/java/java_helpers.cc \
55	third_party/protobuf/src/google/protobuf/compiler/java/java_message.cc \
56	third_party/protobuf/src/google/protobuf/compiler/java/java_message_field.cc \
57	third_party/protobuf/src/google/protobuf/compiler/java/java_primitive_field.cc \
58	third_party/protobuf/src/google/protobuf/compiler/java/java_service.cc \
59	third_party/protobuf/src/google/protobuf/compiler/java/java_string_field.cc \
60	third_party/protobuf/src/google/protobuf/compiler/python/python_generator.cc \
61	third_party/protobuf/src/google/protobuf/compiler/main.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-unused-local-typedefs \
78	-Wno-format \
79	-Os \
80	-g \
81	-fdata-sections \
82	-ffunction-sections \
83	-fomit-frame-pointer \
84	-funwind-tables
85
86MY_DEFS_Debug := \
87	'-DV8_DEPRECATION_WARNINGS' \
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_BROWSER_CDMS' \
96	'-DENABLE_CONFIGURATION_POLICY' \
97	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
98	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
99	'-DENABLE_EGLIMAGE=1' \
100	'-DCLD_VERSION=1' \
101	'-DENABLE_PRINTING=1' \
102	'-DENABLE_MANAGED_USERS=1' \
103	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
104	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
105	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
106	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
107	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
108	'-DVIDEO_HOLE=1' \
109	'-DGOOGLE_PROTOBUF_NO_RTTI' \
110	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
111	'-DUSE_OPENSSL=1' \
112	'-DUSE_OPENSSL_CERTS=1' \
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	$(gyp_shared_intermediate_dir) \
121	$(LOCAL_PATH)/third_party/protobuf \
122	$(LOCAL_PATH)/third_party/protobuf/src/src \
123	$(LOCAL_PATH)/third_party/protobuf/src
124
125
126# Flags passed to only C++ (and not C) files.
127LOCAL_CPPFLAGS_Debug := \
128	-fno-rtti \
129	-fno-threadsafe-statics \
130	-fvisibility-inlines-hidden \
131	-Wno-deprecated
132
133
134# Flags passed to both C and C++ files.
135MY_CFLAGS_Release := \
136	-fstack-protector \
137	--param=ssp-buffer-size=4 \
138	 \
139	-pthread \
140	-fno-exceptions \
141	-fno-strict-aliasing \
142	-Wno-unused-parameter \
143	-Wno-missing-field-initializers \
144	-fvisibility=hidden \
145	-pipe \
146	-fPIC \
147	-Wno-unused-local-typedefs \
148	-Wno-format \
149	-Os \
150	-fno-ident \
151	-fdata-sections \
152	-ffunction-sections \
153	-fomit-frame-pointer \
154	-funwind-tables
155
156MY_DEFS_Release := \
157	'-DV8_DEPRECATION_WARNINGS' \
158	'-D_FILE_OFFSET_BITS=64' \
159	'-DNO_TCMALLOC' \
160	'-DDISABLE_NACL' \
161	'-DCHROMIUM_BUILD' \
162	'-DUSE_LIBJPEG_TURBO=1' \
163	'-DENABLE_WEBRTC=1' \
164	'-DUSE_PROPRIETARY_CODECS' \
165	'-DENABLE_BROWSER_CDMS' \
166	'-DENABLE_CONFIGURATION_POLICY' \
167	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
168	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
169	'-DENABLE_EGLIMAGE=1' \
170	'-DCLD_VERSION=1' \
171	'-DENABLE_PRINTING=1' \
172	'-DENABLE_MANAGED_USERS=1' \
173	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
174	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
175	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
176	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
177	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
178	'-DVIDEO_HOLE=1' \
179	'-DGOOGLE_PROTOBUF_NO_RTTI' \
180	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
181	'-DUSE_OPENSSL=1' \
182	'-DUSE_OPENSSL_CERTS=1' \
183	'-DNDEBUG' \
184	'-DNVALGRIND' \
185	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
186
187
188# Include paths placed before CFLAGS/CPPFLAGS
189LOCAL_C_INCLUDES_Release := \
190	$(gyp_shared_intermediate_dir) \
191	$(LOCAL_PATH)/third_party/protobuf \
192	$(LOCAL_PATH)/third_party/protobuf/src/src \
193	$(LOCAL_PATH)/third_party/protobuf/src
194
195
196# Flags passed to only C++ (and not C) files.
197LOCAL_CPPFLAGS_Release := \
198	-fno-rtti \
199	-fno-threadsafe-statics \
200	-fvisibility-inlines-hidden \
201	-Wno-deprecated
202
203
204LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
205# Undefine ANDROID for host modules
206LOCAL_CFLAGS += -UANDROID
207LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
208LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
209LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
210### Rules for final target.
211
212LOCAL_LDFLAGS_Debug := \
213	-Wl,-z,now \
214	-Wl,-z,relro \
215	-pthread \
216	-fPIC
217
218
219LOCAL_LDFLAGS_Release := \
220	-Wl,-z,now \
221	-Wl,-z,relro \
222	-pthread \
223	-fPIC
224
225
226LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
227
228LOCAL_STATIC_LIBRARIES := \
229	third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
230
231# Enable grouping to fix circular references
232LOCAL_GROUP_STATIC_LIBRARIES := true
233
234LOCAL_SHARED_LIBRARIES :=
235
236# Add target alias to "gyp_all_modules" target.
237.PHONY: gyp_all_modules
238gyp_all_modules: third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
239
240# Alias gyp target name.
241.PHONY: protoc
242protoc: third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
243
244LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
245include $(BUILD_HOST_EXECUTABLE)
246