• 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_gpu_ipc_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/ipc/gpu_command_buffer_traits.cc
28
29
30# Flags passed to both C and C++ files.
31MY_CFLAGS_Debug := \
32	--param=ssp-buffer-size=4 \
33	-Werror \
34	-fno-exceptions \
35	-fno-strict-aliasing \
36	-Wall \
37	-Wno-unused-parameter \
38	-Wno-missing-field-initializers \
39	-fvisibility=hidden \
40	-pipe \
41	-fPIC \
42	-m32 \
43	-mmmx \
44	-march=pentium4 \
45	-msse2 \
46	-mfpmath=sse \
47	-fuse-ld=gold \
48	-ffunction-sections \
49	-funwind-tables \
50	-g \
51	-fno-short-enums \
52	-finline-limit=64 \
53	-Wa,--noexecstack \
54	-U_FORTIFY_SOURCE \
55	-Wno-extra \
56	-Wno-ignored-qualifiers \
57	-Wno-type-limits \
58	-fno-stack-protector \
59	-Os \
60	-g \
61	-fomit-frame-pointer \
62	-fdata-sections \
63	-ffunction-sections
64
65MY_DEFS_Debug := \
66	'-DV8_DEPRECATION_WARNINGS' \
67	'-D_FILE_OFFSET_BITS=64' \
68	'-DNO_TCMALLOC' \
69	'-DDISABLE_NACL' \
70	'-DCHROMIUM_BUILD' \
71	'-DUSE_LIBJPEG_TURBO=1' \
72	'-DUSE_PROPRIETARY_CODECS' \
73	'-DENABLE_CONFIGURATION_POLICY' \
74	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
75	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
76	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
77	'-DUSE_OPENSSL=1' \
78	'-DENABLE_EGLIMAGE=1' \
79	'-DCLD_VERSION=1' \
80	'-DENABLE_PRINTING=1' \
81	'-DENABLE_MANAGED_USERS=1' \
82	'-D__STDC_CONSTANT_MACROS' \
83	'-D__STDC_FORMAT_MACROS' \
84	'-DANDROID' \
85	'-D__GNU_SOURCE=1' \
86	'-DUSE_STLPORT=1' \
87	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
88	'-DCHROME_BUILD_ID=""' \
89	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
90	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
91	'-D_DEBUG'
92
93
94# Include paths placed before CFLAGS/CPPFLAGS
95LOCAL_C_INCLUDES_Debug := \
96	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
97	$(LOCAL_PATH) \
98	$(LOCAL_PATH)/third_party/khronos \
99	$(LOCAL_PATH)/gpu \
100	$(PWD)/frameworks/wilhelm/include \
101	$(PWD)/bionic \
102	$(PWD)/external/stlport/stlport
103
104
105# Flags passed to only C++ (and not C) files.
106LOCAL_CPPFLAGS_Debug := \
107	-fno-rtti \
108	-fno-threadsafe-statics \
109	-fvisibility-inlines-hidden \
110	-Wsign-compare \
111	-Wno-error=c++0x-compat \
112	-Wno-non-virtual-dtor \
113	-Wno-sign-promo
114
115
116# Flags passed to both C and C++ files.
117MY_CFLAGS_Release := \
118	--param=ssp-buffer-size=4 \
119	-Werror \
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	-m32 \
129	-mmmx \
130	-march=pentium4 \
131	-msse2 \
132	-mfpmath=sse \
133	-fuse-ld=gold \
134	-ffunction-sections \
135	-funwind-tables \
136	-g \
137	-fno-short-enums \
138	-finline-limit=64 \
139	-Wa,--noexecstack \
140	-U_FORTIFY_SOURCE \
141	-Wno-extra \
142	-Wno-ignored-qualifiers \
143	-Wno-type-limits \
144	-fno-stack-protector \
145	-Os \
146	-fno-ident \
147	-fdata-sections \
148	-ffunction-sections \
149	-fomit-frame-pointer \
150	-fno-unwind-tables \
151	-fno-asynchronous-unwind-tables
152
153MY_DEFS_Release := \
154	'-DV8_DEPRECATION_WARNINGS' \
155	'-D_FILE_OFFSET_BITS=64' \
156	'-DNO_TCMALLOC' \
157	'-DDISABLE_NACL' \
158	'-DCHROMIUM_BUILD' \
159	'-DUSE_LIBJPEG_TURBO=1' \
160	'-DUSE_PROPRIETARY_CODECS' \
161	'-DENABLE_CONFIGURATION_POLICY' \
162	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
163	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
164	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
165	'-DUSE_OPENSSL=1' \
166	'-DENABLE_EGLIMAGE=1' \
167	'-DCLD_VERSION=1' \
168	'-DENABLE_PRINTING=1' \
169	'-DENABLE_MANAGED_USERS=1' \
170	'-D__STDC_CONSTANT_MACROS' \
171	'-D__STDC_FORMAT_MACROS' \
172	'-DANDROID' \
173	'-D__GNU_SOURCE=1' \
174	'-DUSE_STLPORT=1' \
175	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
176	'-DCHROME_BUILD_ID=""' \
177	'-DNDEBUG' \
178	'-DNVALGRIND' \
179	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
180	'-D_FORTIFY_SOURCE=2'
181
182
183# Include paths placed before CFLAGS/CPPFLAGS
184LOCAL_C_INCLUDES_Release := \
185	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
186	$(LOCAL_PATH) \
187	$(LOCAL_PATH)/third_party/khronos \
188	$(LOCAL_PATH)/gpu \
189	$(PWD)/frameworks/wilhelm/include \
190	$(PWD)/bionic \
191	$(PWD)/external/stlport/stlport
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	-Wsign-compare \
200	-Wno-error=c++0x-compat \
201	-Wno-non-virtual-dtor \
202	-Wno-sign-promo
203
204
205LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
206LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
207LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
208### Rules for final target.
209
210LOCAL_LDFLAGS_Debug := \
211	-Wl,-z,now \
212	-Wl,-z,relro \
213	-Wl,-z,noexecstack \
214	-fPIC \
215	-m32 \
216	-fuse-ld=gold \
217	-nostdlib \
218	-Wl,--no-undefined \
219	-Wl,--exclude-libs=ALL \
220	-Wl,--fatal-warnings \
221	-Wl,--gc-sections \
222	-Wl,--warn-shared-textrel \
223	-Wl,-O1 \
224	-Wl,--as-needed
225
226
227LOCAL_LDFLAGS_Release := \
228	-Wl,-z,now \
229	-Wl,-z,relro \
230	-Wl,-z,noexecstack \
231	-fPIC \
232	-m32 \
233	-fuse-ld=gold \
234	-nostdlib \
235	-Wl,--no-undefined \
236	-Wl,--exclude-libs=ALL \
237	-Wl,-O1 \
238	-Wl,--as-needed \
239	-Wl,--gc-sections \
240	-Wl,--fatal-warnings \
241	-Wl,--warn-shared-textrel
242
243
244LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
245
246LOCAL_STATIC_LIBRARIES :=
247
248# Enable grouping to fix circular references
249LOCAL_GROUP_STATIC_LIBRARIES := true
250
251LOCAL_SHARED_LIBRARIES := \
252	libstlport \
253	libdl
254
255# Add target alias to "gyp_all_modules" target.
256.PHONY: gyp_all_modules
257gyp_all_modules: gpu_gpu_ipc_gyp
258
259# Alias gyp target name.
260.PHONY: gpu_ipc
261gpu_ipc: gpu_gpu_ipc_gyp
262
263include $(BUILD_STATIC_LIBRARY)
264