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