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