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_IS_HOST_MODULE := true
10LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
11gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_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	$(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
17
18GYP_GENERATED_OUTPUTS :=
19
20# Make sure our deps and generated files are built first.
21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
22
23LOCAL_CPP_EXTENSION := .cc
24LOCAL_GENERATED_SOURCES :=
25
26GYP_COPIED_SOURCE_ORIGIN_DIRS :=
27
28LOCAL_SRC_FILES := \
29	third_party/protobuf/src/google/protobuf/compiler/code_generator.cc \
30	third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc \
31	third_party/protobuf/src/google/protobuf/compiler/plugin.cc \
32	third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc \
33	third_party/protobuf/src/google/protobuf/compiler/subprocess.cc \
34	third_party/protobuf/src/google/protobuf/compiler/zip_writer.cc \
35	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum.cc \
36	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum_field.cc \
37	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_extension.cc \
38	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_field.cc \
39	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_file.cc \
40	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc \
41	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.cc \
42	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc \
43	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message_field.cc \
44	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc \
45	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_service.cc \
46	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc \
47	third_party/protobuf/src/google/protobuf/compiler/java/java_enum.cc \
48	third_party/protobuf/src/google/protobuf/compiler/java/java_enum_field.cc \
49	third_party/protobuf/src/google/protobuf/compiler/java/java_extension.cc \
50	third_party/protobuf/src/google/protobuf/compiler/java/java_field.cc \
51	third_party/protobuf/src/google/protobuf/compiler/java/java_file.cc \
52	third_party/protobuf/src/google/protobuf/compiler/java/java_generator.cc \
53	third_party/protobuf/src/google/protobuf/compiler/java/java_helpers.cc \
54	third_party/protobuf/src/google/protobuf/compiler/java/java_message.cc \
55	third_party/protobuf/src/google/protobuf/compiler/java/java_message_field.cc \
56	third_party/protobuf/src/google/protobuf/compiler/java/java_primitive_field.cc \
57	third_party/protobuf/src/google/protobuf/compiler/java/java_service.cc \
58	third_party/protobuf/src/google/protobuf/compiler/java/java_string_field.cc \
59	third_party/protobuf/src/google/protobuf/compiler/python/python_generator.cc \
60	third_party/protobuf/src/google/protobuf/compiler/main.cc
61
62
63# Flags passed to both C and C++ files.
64MY_CFLAGS_Debug := \
65	-fstack-protector \
66	--param=ssp-buffer-size=4 \
67	 \
68	-pthread \
69	-fno-strict-aliasing \
70	-Wno-unused-parameter \
71	-Wno-missing-field-initializers \
72	-fvisibility=hidden \
73	-pipe \
74	-fPIC \
75	-Wno-format \
76	-Wheader-hygiene \
77	-Wno-char-subscripts \
78	-Wno-unneeded-internal-declaration \
79	-Wno-covered-switch-default \
80	-Wstring-conversion \
81	-Wno-c++11-narrowing \
82	-Wno-deprecated-register \
83	-Wno-unused-local-typedef \
84	-Os \
85	-g \
86	-gdwarf-4 \
87	-fdata-sections \
88	-ffunction-sections \
89	-fomit-frame-pointer \
90	-funwind-tables
91
92MY_DEFS_Debug := \
93	'-DV8_DEPRECATION_WARNINGS' \
94	'-D_FILE_OFFSET_BITS=64' \
95	'-DNO_TCMALLOC' \
96	'-DDISABLE_NACL' \
97	'-DCHROMIUM_BUILD' \
98	'-DUSE_LIBJPEG_TURBO=1' \
99	'-DENABLE_WEBRTC=1' \
100	'-DUSE_PROPRIETARY_CODECS' \
101	'-DENABLE_BROWSER_CDMS' \
102	'-DENABLE_CONFIGURATION_POLICY' \
103	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
104	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
105	'-DENABLE_EGLIMAGE=1' \
106	'-DCLD_VERSION=1' \
107	'-DENABLE_PRINTING=1' \
108	'-DENABLE_MANAGED_USERS=1' \
109	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
110	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
111	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
112	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
113	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
114	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
115	'-DVIDEO_HOLE=1' \
116	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
117	'-DGOOGLE_PROTOBUF_NO_RTTI' \
118	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
119	'-DUSE_OPENSSL=1' \
120	'-DUSE_OPENSSL_CERTS=1' \
121	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
122	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
123	'-D_DEBUG'
124
125
126# Include paths placed before CFLAGS/CPPFLAGS
127LOCAL_C_INCLUDES_Debug := \
128	$(gyp_shared_intermediate_dir) \
129	$(LOCAL_PATH)/third_party/protobuf \
130	$(LOCAL_PATH)/third_party/protobuf/src/src \
131	$(LOCAL_PATH)/third_party/protobuf/src
132
133
134# Flags passed to only C++ (and not C) files.
135LOCAL_CPPFLAGS_Debug := \
136	-fno-exceptions \
137	-fno-rtti \
138	-fno-threadsafe-statics \
139	-fvisibility-inlines-hidden \
140	-Wno-deprecated \
141	-std=gnu++11
142
143
144# Flags passed to both C and C++ files.
145MY_CFLAGS_Release := \
146	-fstack-protector \
147	--param=ssp-buffer-size=4 \
148	 \
149	-pthread \
150	-fno-strict-aliasing \
151	-Wno-unused-parameter \
152	-Wno-missing-field-initializers \
153	-fvisibility=hidden \
154	-pipe \
155	-fPIC \
156	-Wno-format \
157	-Wheader-hygiene \
158	-Wno-char-subscripts \
159	-Wno-unneeded-internal-declaration \
160	-Wno-covered-switch-default \
161	-Wstring-conversion \
162	-Wno-c++11-narrowing \
163	-Wno-deprecated-register \
164	-Wno-unused-local-typedef \
165	-Os \
166	-fno-ident \
167	-fdata-sections \
168	-ffunction-sections \
169	-fomit-frame-pointer \
170	-funwind-tables
171
172MY_DEFS_Release := \
173	'-DV8_DEPRECATION_WARNINGS' \
174	'-D_FILE_OFFSET_BITS=64' \
175	'-DNO_TCMALLOC' \
176	'-DDISABLE_NACL' \
177	'-DCHROMIUM_BUILD' \
178	'-DUSE_LIBJPEG_TURBO=1' \
179	'-DENABLE_WEBRTC=1' \
180	'-DUSE_PROPRIETARY_CODECS' \
181	'-DENABLE_BROWSER_CDMS' \
182	'-DENABLE_CONFIGURATION_POLICY' \
183	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
184	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
185	'-DENABLE_EGLIMAGE=1' \
186	'-DCLD_VERSION=1' \
187	'-DENABLE_PRINTING=1' \
188	'-DENABLE_MANAGED_USERS=1' \
189	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
190	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
191	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
192	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
193	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
194	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
195	'-DVIDEO_HOLE=1' \
196	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
197	'-DGOOGLE_PROTOBUF_NO_RTTI' \
198	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
199	'-DUSE_OPENSSL=1' \
200	'-DUSE_OPENSSL_CERTS=1' \
201	'-DNDEBUG' \
202	'-DNVALGRIND' \
203	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
204
205
206# Include paths placed before CFLAGS/CPPFLAGS
207LOCAL_C_INCLUDES_Release := \
208	$(gyp_shared_intermediate_dir) \
209	$(LOCAL_PATH)/third_party/protobuf \
210	$(LOCAL_PATH)/third_party/protobuf/src/src \
211	$(LOCAL_PATH)/third_party/protobuf/src
212
213
214# Flags passed to only C++ (and not C) files.
215LOCAL_CPPFLAGS_Release := \
216	-fno-exceptions \
217	-fno-rtti \
218	-fno-threadsafe-statics \
219	-fvisibility-inlines-hidden \
220	-Wno-deprecated \
221	-std=gnu++11
222
223
224LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
225# Undefine ANDROID for host modules
226LOCAL_CFLAGS += -UANDROID
227LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
228LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
229LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
230### Rules for final target.
231
232LOCAL_LDFLAGS_Debug := \
233	-pthread \
234	-fPIC
235
236
237LOCAL_LDFLAGS_Release := \
238	-pthread \
239	-fPIC
240
241
242LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
243
244LOCAL_STATIC_LIBRARIES := \
245	third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
246
247# Enable grouping to fix circular references
248LOCAL_GROUP_STATIC_LIBRARIES := true
249### Set directly by aosp_build_settings.
250LOCAL_CLANG := true
251
252# Add target alias to "gyp_all_modules" target.
253.PHONY: gyp_all_modules
254gyp_all_modules: third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
255
256# Alias gyp target name.
257.PHONY: protoc
258protoc: third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
259
260LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
261include $(BUILD_HOST_EXECUTABLE)
262