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	-pthread \
68	-fno-strict-aliasing \
69	-Wno-unused-parameter \
70	-Wno-missing-field-initializers \
71	-fvisibility=hidden \
72	-pipe \
73	-fPIC \
74	-Wno-format \
75	-Wheader-hygiene \
76	-Wno-char-subscripts \
77	-Wno-unneeded-internal-declaration \
78	-Wno-covered-switch-default \
79	-Wstring-conversion \
80	-Wno-c++11-narrowing \
81	-Wno-deprecated-register \
82	-Wno-unused-local-typedef \
83	-Os \
84	-g \
85	-gdwarf-4 \
86	-fdata-sections \
87	-ffunction-sections \
88	-fomit-frame-pointer \
89	-funwind-tables
90
91MY_DEFS_Debug := \
92	'-DV8_DEPRECATION_WARNINGS' \
93	'-D_FILE_OFFSET_BITS=64' \
94	'-DNO_TCMALLOC' \
95	'-DDISABLE_NACL' \
96	'-DCHROMIUM_BUILD' \
97	'-DUSE_LIBJPEG_TURBO=1' \
98	'-DENABLE_WEBRTC=1' \
99	'-DUSE_PROPRIETARY_CODECS' \
100	'-DENABLE_BROWSER_CDMS' \
101	'-DENABLE_CONFIGURATION_POLICY' \
102	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
103	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
104	'-DENABLE_EGLIMAGE=1' \
105	'-DCLD_VERSION=1' \
106	'-DENABLE_PRINTING=1' \
107	'-DENABLE_MANAGED_USERS=1' \
108	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
109	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
110	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
111	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
112	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
113	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
114	'-DVIDEO_HOLE=1' \
115	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
116	'-DGOOGLE_PROTOBUF_NO_RTTI' \
117	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
118	'-DUSE_OPENSSL=1' \
119	'-DUSE_OPENSSL_CERTS=1' \
120	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
121	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
122	'-D_DEBUG'
123
124
125# Include paths placed before CFLAGS/CPPFLAGS
126LOCAL_C_INCLUDES_Debug := \
127	$(gyp_shared_intermediate_dir) \
128	$(LOCAL_PATH)/third_party/protobuf \
129	$(LOCAL_PATH)/third_party/protobuf/src/src \
130	$(LOCAL_PATH)/third_party/protobuf/src
131
132
133# Flags passed to only C++ (and not C) files.
134LOCAL_CPPFLAGS_Debug := \
135	-fno-exceptions \
136	-fno-rtti \
137	-fno-threadsafe-statics \
138	-fvisibility-inlines-hidden \
139	-Wno-deprecated \
140	-std=gnu++11
141
142
143# Flags passed to both C and C++ files.
144MY_CFLAGS_Release := \
145	-fstack-protector \
146	--param=ssp-buffer-size=4 \
147	-pthread \
148	-fno-strict-aliasing \
149	-Wno-unused-parameter \
150	-Wno-missing-field-initializers \
151	-fvisibility=hidden \
152	-pipe \
153	-fPIC \
154	-Wno-format \
155	-Wheader-hygiene \
156	-Wno-char-subscripts \
157	-Wno-unneeded-internal-declaration \
158	-Wno-covered-switch-default \
159	-Wstring-conversion \
160	-Wno-c++11-narrowing \
161	-Wno-deprecated-register \
162	-Wno-unused-local-typedef \
163	-Os \
164	-fno-ident \
165	-fdata-sections \
166	-ffunction-sections \
167	-fomit-frame-pointer \
168	-funwind-tables
169
170MY_DEFS_Release := \
171	'-DV8_DEPRECATION_WARNINGS' \
172	'-D_FILE_OFFSET_BITS=64' \
173	'-DNO_TCMALLOC' \
174	'-DDISABLE_NACL' \
175	'-DCHROMIUM_BUILD' \
176	'-DUSE_LIBJPEG_TURBO=1' \
177	'-DENABLE_WEBRTC=1' \
178	'-DUSE_PROPRIETARY_CODECS' \
179	'-DENABLE_BROWSER_CDMS' \
180	'-DENABLE_CONFIGURATION_POLICY' \
181	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
182	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
183	'-DENABLE_EGLIMAGE=1' \
184	'-DCLD_VERSION=1' \
185	'-DENABLE_PRINTING=1' \
186	'-DENABLE_MANAGED_USERS=1' \
187	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
188	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
189	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
190	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
191	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
192	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
193	'-DVIDEO_HOLE=1' \
194	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
195	'-DGOOGLE_PROTOBUF_NO_RTTI' \
196	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
197	'-DUSE_OPENSSL=1' \
198	'-DUSE_OPENSSL_CERTS=1' \
199	'-DNDEBUG' \
200	'-DNVALGRIND' \
201	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
202
203
204# Include paths placed before CFLAGS/CPPFLAGS
205LOCAL_C_INCLUDES_Release := \
206	$(gyp_shared_intermediate_dir) \
207	$(LOCAL_PATH)/third_party/protobuf \
208	$(LOCAL_PATH)/third_party/protobuf/src/src \
209	$(LOCAL_PATH)/third_party/protobuf/src
210
211
212# Flags passed to only C++ (and not C) files.
213LOCAL_CPPFLAGS_Release := \
214	-fno-exceptions \
215	-fno-rtti \
216	-fno-threadsafe-statics \
217	-fvisibility-inlines-hidden \
218	-Wno-deprecated \
219	-std=gnu++11
220
221
222LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
223# Undefine ANDROID for host modules
224LOCAL_CFLAGS += -UANDROID
225LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
226LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
227LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
228### Rules for final target.
229
230LOCAL_LDFLAGS_Debug := \
231	-pthread \
232	-fPIC
233
234
235LOCAL_LDFLAGS_Release := \
236	-pthread \
237	-fPIC
238
239
240LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
241
242LOCAL_STATIC_LIBRARIES := \
243	third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
244
245# Enable grouping to fix circular references
246LOCAL_GROUP_STATIC_LIBRARIES := true
247### Set directly by aosp_build_settings.
248LOCAL_CLANG := true
249
250# Add target alias to "gyp_all_modules" target.
251.PHONY: gyp_all_modules
252gyp_all_modules: third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
253
254# Alias gyp target name.
255.PHONY: protoc
256protoc: third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
257
258LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
259include $(BUILD_HOST_EXECUTABLE)
260