1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := gpu_disk_cache_proto_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(gyp_shared_intermediate_dir)/protoc
15
16
17### Generated for rule "gpu_gpu_gyp_disk_cache_proto_target_genproto":
18# "{'inputs': ['../tools/protoc_wrapper/protoc_wrapper.py', '$(gyp_shared_intermediate_dir)/protoc'], 'msvs_cygwin_shell': '0', 'extension': 'proto', 'outputs': ['$(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service/%(INPUT_ROOT)s_pb2.py', '$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service/%(INPUT_ROOT)s.pb.cc', '$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service/%(INPUT_ROOT)s.pb.h'], 'rule_name': 'genproto', 'rule_sources': ['command_buffer/service/disk_cache_proto.proto'], 'action': ['python', '../tools/protoc_wrapper/protoc_wrapper.py', '--include', '', '--protobuf', '$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service/%(INPUT_ROOT)s.pb.h', '--proto-in-dir', 'command_buffer/service', '--proto-in-file', '%(INPUT_ROOT)s$(suffix $<)', '--use-system-protobuf=0', '--', '$(gyp_shared_intermediate_dir)/protoc', '--cpp_out', '$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service', '--python_out', '$(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service'], 'message': 'Generating C++ and Python code from $(RULE_SOURCES)', 'process_outputs_as_sources': '1'}":
19$(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service/disk_cache_proto_pb2.py: gyp_local_path := $(LOCAL_PATH)
20$(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service/disk_cache_proto_pb2.py: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
21$(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service/disk_cache_proto_pb2.py: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
22$(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service/disk_cache_proto_pb2.py: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
23$(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service/disk_cache_proto_pb2.py: $(LOCAL_PATH)/gpu/command_buffer/service/disk_cache_proto.proto $(LOCAL_PATH)/tools/protoc_wrapper/protoc_wrapper.py $(gyp_shared_intermediate_dir)/protoc $(GYP_TARGET_DEPENDENCIES)
24	mkdir -p $(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service $(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service; cd $(gyp_local_path)/gpu; python ../tools/protoc_wrapper/protoc_wrapper.py --include "" --protobuf "$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service/disk_cache_proto.pb.h" --proto-in-dir command_buffer/service --proto-in-file "disk_cache_proto$(suffix $<)" "--use-system-protobuf=0" -- "$(gyp_shared_intermediate_dir)/protoc" --cpp_out "$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service" --python_out "$(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service"
25
26$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service/disk_cache_proto.pb.cc: $(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service/disk_cache_proto_pb2.py ;
27$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service/disk_cache_proto.pb.h: $(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service/disk_cache_proto_pb2.py ;
28.PHONY: gpu_disk_cache_proto_gyp_rule_trigger
29gpu_disk_cache_proto_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service/disk_cache_proto_pb2.py
30
31### Finished generating for all rules
32
33GYP_GENERATED_OUTPUTS := \
34	$(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service/disk_cache_proto_pb2.py \
35	$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service/disk_cache_proto.pb.cc \
36	$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service/disk_cache_proto.pb.h
37
38# Make sure our deps and generated files are built first.
39LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
40
41LOCAL_CPP_EXTENSION := .cc
42$(gyp_intermediate_dir)/disk_cache_proto.pb.cc: $(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service/disk_cache_proto.pb.cc
43	mkdir -p $(@D); cp $< $@
44LOCAL_GENERATED_SOURCES := \
45	$(gyp_intermediate_dir)/disk_cache_proto.pb.cc \
46	$(gyp_shared_intermediate_dir)/pyproto/gpu/command_buffer/service/disk_cache_proto_pb2.py \
47	$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service/disk_cache_proto.pb.h \
48	gpu_disk_cache_proto_gyp_rule_trigger
49
50GYP_COPIED_SOURCE_ORIGIN_DIRS := \
51	$(gyp_shared_intermediate_dir)/protoc_out/gpu/command_buffer/service
52
53LOCAL_SRC_FILES :=
54
55
56# Flags passed to both C and C++ files.
57MY_CFLAGS_Debug := \
58	-fstack-protector \
59	--param=ssp-buffer-size=4 \
60	 \
61	-fno-exceptions \
62	-fno-strict-aliasing \
63	-Wall \
64	-Wno-unused-parameter \
65	-Wno-missing-field-initializers \
66	-fvisibility=hidden \
67	-pipe \
68	-fPIC \
69	-EL \
70	-mhard-float \
71	-ffunction-sections \
72	-funwind-tables \
73	-g \
74	-fstack-protector \
75	-fno-short-enums \
76	-finline-limit=64 \
77	-Wa,--noexecstack \
78	-U_FORTIFY_SOURCE \
79	-Wno-extra \
80	-Wno-ignored-qualifiers \
81	-Wno-type-limits \
82	-Os \
83	-g \
84	-fomit-frame-pointer \
85	-fdata-sections \
86	-ffunction-sections
87
88MY_DEFS_Debug := \
89	'-DV8_DEPRECATION_WARNINGS' \
90	'-D_FILE_OFFSET_BITS=64' \
91	'-DNO_TCMALLOC' \
92	'-DDISABLE_NACL' \
93	'-DCHROMIUM_BUILD' \
94	'-DUSE_LIBJPEG_TURBO=1' \
95	'-DUSE_PROPRIETARY_CODECS' \
96	'-DENABLE_CONFIGURATION_POLICY' \
97	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
98	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
99	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
100	'-DUSE_OPENSSL=1' \
101	'-DENABLE_EGLIMAGE=1' \
102	'-DCLD_VERSION=1' \
103	'-DENABLE_PRINTING=1' \
104	'-DENABLE_MANAGED_USERS=1' \
105	'-DPROTOBUF_USE_DLLS' \
106	'-DGOOGLE_PROTOBUF_NO_RTTI' \
107	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
108	'-D__STDC_CONSTANT_MACROS' \
109	'-D__STDC_FORMAT_MACROS' \
110	'-DANDROID' \
111	'-D__GNU_SOURCE=1' \
112	'-DUSE_STLPORT=1' \
113	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
114	'-DCHROME_BUILD_ID=""' \
115	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
116	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
117	'-D_DEBUG'
118
119
120# Include paths placed before CFLAGS/CPPFLAGS
121LOCAL_C_INCLUDES_Debug := \
122	$(gyp_shared_intermediate_dir)/protoc_out \
123	$(LOCAL_PATH) \
124	$(LOCAL_PATH)/third_party/protobuf \
125	$(LOCAL_PATH)/third_party/protobuf/src \
126	$(PWD)/frameworks/wilhelm/include \
127	$(PWD)/bionic \
128	$(PWD)/external/stlport/stlport
129
130
131# Flags passed to only C++ (and not C) files.
132LOCAL_CPPFLAGS_Debug := \
133	-fno-rtti \
134	-fno-threadsafe-statics \
135	-fvisibility-inlines-hidden \
136	-Wsign-compare \
137	-Wno-uninitialized \
138	-Wno-error=c++0x-compat \
139	-Wno-non-virtual-dtor \
140	-Wno-sign-promo
141
142
143# Flags passed to both C and C++ files.
144MY_CFLAGS_Release := \
145	-fstack-protector \
146	--param=ssp-buffer-size=4 \
147	 \
148	-fno-exceptions \
149	-fno-strict-aliasing \
150	-Wall \
151	-Wno-unused-parameter \
152	-Wno-missing-field-initializers \
153	-fvisibility=hidden \
154	-pipe \
155	-fPIC \
156	-EL \
157	-mhard-float \
158	-ffunction-sections \
159	-funwind-tables \
160	-g \
161	-fstack-protector \
162	-fno-short-enums \
163	-finline-limit=64 \
164	-Wa,--noexecstack \
165	-U_FORTIFY_SOURCE \
166	-Wno-extra \
167	-Wno-ignored-qualifiers \
168	-Wno-type-limits \
169	-Os \
170	-fno-ident \
171	-fdata-sections \
172	-ffunction-sections \
173	-fomit-frame-pointer
174
175MY_DEFS_Release := \
176	'-DV8_DEPRECATION_WARNINGS' \
177	'-D_FILE_OFFSET_BITS=64' \
178	'-DNO_TCMALLOC' \
179	'-DDISABLE_NACL' \
180	'-DCHROMIUM_BUILD' \
181	'-DUSE_LIBJPEG_TURBO=1' \
182	'-DUSE_PROPRIETARY_CODECS' \
183	'-DENABLE_CONFIGURATION_POLICY' \
184	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
185	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
186	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
187	'-DUSE_OPENSSL=1' \
188	'-DENABLE_EGLIMAGE=1' \
189	'-DCLD_VERSION=1' \
190	'-DENABLE_PRINTING=1' \
191	'-DENABLE_MANAGED_USERS=1' \
192	'-DPROTOBUF_USE_DLLS' \
193	'-DGOOGLE_PROTOBUF_NO_RTTI' \
194	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
195	'-D__STDC_CONSTANT_MACROS' \
196	'-D__STDC_FORMAT_MACROS' \
197	'-DANDROID' \
198	'-D__GNU_SOURCE=1' \
199	'-DUSE_STLPORT=1' \
200	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
201	'-DCHROME_BUILD_ID=""' \
202	'-DNDEBUG' \
203	'-DNVALGRIND' \
204	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
205	'-D_FORTIFY_SOURCE=2'
206
207
208# Include paths placed before CFLAGS/CPPFLAGS
209LOCAL_C_INCLUDES_Release := \
210	$(gyp_shared_intermediate_dir)/protoc_out \
211	$(LOCAL_PATH) \
212	$(LOCAL_PATH)/third_party/protobuf \
213	$(LOCAL_PATH)/third_party/protobuf/src \
214	$(PWD)/frameworks/wilhelm/include \
215	$(PWD)/bionic \
216	$(PWD)/external/stlport/stlport
217
218
219# Flags passed to only C++ (and not C) files.
220LOCAL_CPPFLAGS_Release := \
221	-fno-rtti \
222	-fno-threadsafe-statics \
223	-fvisibility-inlines-hidden \
224	-Wsign-compare \
225	-Wno-uninitialized \
226	-Wno-error=c++0x-compat \
227	-Wno-non-virtual-dtor \
228	-Wno-sign-promo
229
230
231LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
232LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
233LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
234### Rules for final target.
235
236LOCAL_LDFLAGS_Debug := \
237	-Wl,-z,now \
238	-Wl,-z,relro \
239	-Wl,-z,noexecstack \
240	-fPIC \
241	-EL \
242	-Wl,--no-keep-memory \
243	-nostdlib \
244	-Wl,--no-undefined \
245	-Wl,--exclude-libs=ALL \
246	-Wl,--fatal-warnings \
247	-Wl,--gc-sections \
248	-Wl,--warn-shared-textrel \
249	-Wl,-O1 \
250	-Wl,--as-needed
251
252
253LOCAL_LDFLAGS_Release := \
254	-Wl,-z,now \
255	-Wl,-z,relro \
256	-Wl,-z,noexecstack \
257	-fPIC \
258	-EL \
259	-Wl,--no-keep-memory \
260	-nostdlib \
261	-Wl,--no-undefined \
262	-Wl,--exclude-libs=ALL \
263	-Wl,-O1 \
264	-Wl,--as-needed \
265	-Wl,--gc-sections \
266	-Wl,--fatal-warnings \
267	-Wl,--warn-shared-textrel
268
269
270LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
271
272LOCAL_STATIC_LIBRARIES :=
273
274# Enable grouping to fix circular references
275LOCAL_GROUP_STATIC_LIBRARIES := true
276
277LOCAL_SHARED_LIBRARIES := \
278	libstlport \
279	libdl
280
281# Add target alias to "gyp_all_modules" target.
282.PHONY: gyp_all_modules
283gyp_all_modules: gpu_disk_cache_proto_gyp
284
285# Alias gyp target name.
286.PHONY: disk_cache_proto
287disk_cache_proto: gpu_disk_cache_proto_gyp
288
289include $(BUILD_STATIC_LIBRARY)
290