• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := gpu_command_buffer_gles2_utils_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	$(call intermediates-dir-for,GYP,third_party_khronos_khronos_headers_gyp)/khronos_headers.stamp
15
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	gpu/command_buffer/common/gles2_cmd_utils.cc
28
29
30# Flags passed to both C and C++ files.
31MY_CFLAGS_Debug := \
32	-fstack-protector \
33	--param=ssp-buffer-size=4 \
34	 \
35	-fno-exceptions \
36	-fno-strict-aliasing \
37	-Wall \
38	-Wno-unused-parameter \
39	-Wno-missing-field-initializers \
40	-fvisibility=hidden \
41	-pipe \
42	-fPIC \
43	-EL \
44	-mhard-float \
45	-ffunction-sections \
46	-funwind-tables \
47	-g \
48	-fstack-protector \
49	-fno-short-enums \
50	-finline-limit=64 \
51	-Wa,--noexecstack \
52	-U_FORTIFY_SOURCE \
53	-Wno-extra \
54	-Wno-ignored-qualifiers \
55	-Wno-type-limits \
56	-Os \
57	-g \
58	-fomit-frame-pointer \
59	-fdata-sections \
60	-ffunction-sections
61
62MY_DEFS_Debug := \
63	'-DV8_DEPRECATION_WARNINGS' \
64	'-D_FILE_OFFSET_BITS=64' \
65	'-DNO_TCMALLOC' \
66	'-DDISABLE_NACL' \
67	'-DCHROMIUM_BUILD' \
68	'-DUSE_LIBJPEG_TURBO=1' \
69	'-DUSE_PROPRIETARY_CODECS' \
70	'-DENABLE_CONFIGURATION_POLICY' \
71	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
72	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
73	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
74	'-DUSE_OPENSSL=1' \
75	'-DENABLE_EGLIMAGE=1' \
76	'-DCLD_VERSION=1' \
77	'-DENABLE_PRINTING=1' \
78	'-DENABLE_MANAGED_USERS=1' \
79	'-D__STDC_CONSTANT_MACROS' \
80	'-D__STDC_FORMAT_MACROS' \
81	'-DGLES2_UTILS_IMPLEMENTATION' \
82	'-DANDROID' \
83	'-D__GNU_SOURCE=1' \
84	'-DUSE_STLPORT=1' \
85	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
86	'-DCHROME_BUILD_ID=""' \
87	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
88	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
89	'-D_DEBUG'
90
91
92# Include paths placed before CFLAGS/CPPFLAGS
93LOCAL_C_INCLUDES_Debug := \
94	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
95	$(LOCAL_PATH)/third_party/khronos \
96	$(LOCAL_PATH)/gpu \
97	$(LOCAL_PATH) \
98	$(PWD)/frameworks/wilhelm/include \
99	$(PWD)/bionic \
100	$(PWD)/external/stlport/stlport
101
102
103# Flags passed to only C++ (and not C) files.
104LOCAL_CPPFLAGS_Debug := \
105	-fno-rtti \
106	-fno-threadsafe-statics \
107	-fvisibility-inlines-hidden \
108	-Wsign-compare \
109	-Wno-uninitialized \
110	-Wno-error=c++0x-compat \
111	-Wno-non-virtual-dtor \
112	-Wno-sign-promo
113
114
115# Flags passed to both C and C++ files.
116MY_CFLAGS_Release := \
117	-fstack-protector \
118	--param=ssp-buffer-size=4 \
119	 \
120	-fno-exceptions \
121	-fno-strict-aliasing \
122	-Wall \
123	-Wno-unused-parameter \
124	-Wno-missing-field-initializers \
125	-fvisibility=hidden \
126	-pipe \
127	-fPIC \
128	-EL \
129	-mhard-float \
130	-ffunction-sections \
131	-funwind-tables \
132	-g \
133	-fstack-protector \
134	-fno-short-enums \
135	-finline-limit=64 \
136	-Wa,--noexecstack \
137	-U_FORTIFY_SOURCE \
138	-Wno-extra \
139	-Wno-ignored-qualifiers \
140	-Wno-type-limits \
141	-Os \
142	-fno-ident \
143	-fdata-sections \
144	-ffunction-sections \
145	-fomit-frame-pointer
146
147MY_DEFS_Release := \
148	'-DV8_DEPRECATION_WARNINGS' \
149	'-D_FILE_OFFSET_BITS=64' \
150	'-DNO_TCMALLOC' \
151	'-DDISABLE_NACL' \
152	'-DCHROMIUM_BUILD' \
153	'-DUSE_LIBJPEG_TURBO=1' \
154	'-DUSE_PROPRIETARY_CODECS' \
155	'-DENABLE_CONFIGURATION_POLICY' \
156	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
157	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
158	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
159	'-DUSE_OPENSSL=1' \
160	'-DENABLE_EGLIMAGE=1' \
161	'-DCLD_VERSION=1' \
162	'-DENABLE_PRINTING=1' \
163	'-DENABLE_MANAGED_USERS=1' \
164	'-D__STDC_CONSTANT_MACROS' \
165	'-D__STDC_FORMAT_MACROS' \
166	'-DGLES2_UTILS_IMPLEMENTATION' \
167	'-DANDROID' \
168	'-D__GNU_SOURCE=1' \
169	'-DUSE_STLPORT=1' \
170	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
171	'-DCHROME_BUILD_ID=""' \
172	'-DNDEBUG' \
173	'-DNVALGRIND' \
174	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
175	'-D_FORTIFY_SOURCE=2'
176
177
178# Include paths placed before CFLAGS/CPPFLAGS
179LOCAL_C_INCLUDES_Release := \
180	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
181	$(LOCAL_PATH)/third_party/khronos \
182	$(LOCAL_PATH)/gpu \
183	$(LOCAL_PATH) \
184	$(PWD)/frameworks/wilhelm/include \
185	$(PWD)/bionic \
186	$(PWD)/external/stlport/stlport
187
188
189# Flags passed to only C++ (and not C) files.
190LOCAL_CPPFLAGS_Release := \
191	-fno-rtti \
192	-fno-threadsafe-statics \
193	-fvisibility-inlines-hidden \
194	-Wsign-compare \
195	-Wno-uninitialized \
196	-Wno-error=c++0x-compat \
197	-Wno-non-virtual-dtor \
198	-Wno-sign-promo
199
200
201LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
202LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
203LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
204### Rules for final target.
205
206LOCAL_LDFLAGS_Debug := \
207	-Wl,-z,now \
208	-Wl,-z,relro \
209	-Wl,-z,noexecstack \
210	-fPIC \
211	-EL \
212	-Wl,--no-keep-memory \
213	-nostdlib \
214	-Wl,--no-undefined \
215	-Wl,--exclude-libs=ALL \
216	-Wl,--fatal-warnings \
217	-Wl,--gc-sections \
218	-Wl,--warn-shared-textrel \
219	-Wl,-O1 \
220	-Wl,--as-needed
221
222
223LOCAL_LDFLAGS_Release := \
224	-Wl,-z,now \
225	-Wl,-z,relro \
226	-Wl,-z,noexecstack \
227	-fPIC \
228	-EL \
229	-Wl,--no-keep-memory \
230	-nostdlib \
231	-Wl,--no-undefined \
232	-Wl,--exclude-libs=ALL \
233	-Wl,-O1 \
234	-Wl,--as-needed \
235	-Wl,--gc-sections \
236	-Wl,--fatal-warnings \
237	-Wl,--warn-shared-textrel
238
239
240LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
241
242LOCAL_STATIC_LIBRARIES :=
243
244# Enable grouping to fix circular references
245LOCAL_GROUP_STATIC_LIBRARIES := true
246
247LOCAL_SHARED_LIBRARIES := \
248	libstlport \
249	libdl
250
251# Add target alias to "gyp_all_modules" target.
252.PHONY: gyp_all_modules
253gyp_all_modules: gpu_command_buffer_gles2_utils_gyp
254
255# Alias gyp target name.
256.PHONY: gles2_utils
257gles2_utils: gpu_command_buffer_gles2_utils_gyp
258
259include $(BUILD_STATIC_LIBRARY)
260