Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Side by Side Diff: BUILD.public

Issue 1429863002: Enable building Skia for iOS with bazel. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: revert to single INCLUDE, removed Xcode 5 COPTS Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/flags/SkCommandLineFlags.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Description: 1 # Description:
2 # Skia graphics library. 2 # Skia graphics library.
3 # 3 #
4 # Definitions for Google BUILD file. 4 # Definitions for Google BUILD file.
5 5
6 exports_files(["BUILD.public"]) 6 exports_files(["BUILD.public"])
7 7
8 # Platform-independent SRCS 8 # Platform-independent SRCS
9 SRCS = glob( 9 SRCS = glob(
10 [ 10 [
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 "src/ports/SkFontMgr_custom_directory_factory.cpp", 140 "src/ports/SkFontMgr_custom_directory_factory.cpp",
141 "src/ports/SkFontMgr_custom_embedded_factory.cpp", 141 "src/ports/SkFontMgr_custom_embedded_factory.cpp",
142 "src/ports/SkFontMgr_empty_factory.cpp", 142 "src/ports/SkFontMgr_empty_factory.cpp",
143 "src/ports/SkImageDecoder_WIC.cpp", 143 "src/ports/SkImageDecoder_WIC.cpp",
144 "src/ports/SkImageDecoder_empty.cpp", 144 "src/ports/SkImageDecoder_empty.cpp",
145 "src/ports/SkImageGenerator_none.cpp", 145 "src/ports/SkImageGenerator_none.cpp",
146 "src/ports/SkTLS_none.cpp", 146 "src/ports/SkTLS_none.cpp",
147 ], 147 ],
148 ) 148 )
149 149
150 # Platform-dependent SRCS for google3-default iOS.
151 SRCS_IOS = glob(
152 [
153 "src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp",
154 "src/opts/**/*.cpp",
155 "src/opts/**/*.h",
156 "src/ports/**/*.cpp",
157 "src/ports/**/*.h",
158 ],
159 exclude = [
160 "src/opts/*mips*",
161 "src/opts/*NEON*",
162 "src/opts/*neon*",
163 "src/opts/*SSE2*",
164 "src/opts/*SSSE3*",
165 "src/opts/*ssse3*",
166 "src/opts/*SSE4*",
167 "src/opts/*sse4*",
168 "src/opts/*x86*",
169 "src/opts/SkBitmapProcState_opts_none.cpp",
170 "src/opts/SkBlitMask_opts_none.cpp",
171 "src/opts/SkBlitRow_opts_none.cpp",
172 "src/ports/*android*",
173 "src/ports/*chromium*",
174 "src/ports/*fontconfig*",
175 "src/ports/*FontConfig*",
176 "src/ports/*FreeType*",
177 "src/ports/*mozalloc*",
178 "src/ports/*nacl*",
179 "src/ports/*win*",
180 "src/ports/SkDebug_stdio.cpp",
181 "src/ports/SkFontMgr_custom.cpp",
182 "src/ports/SkFontMgr_custom_directory_factory.cpp",
183 "src/ports/SkFontMgr_custom_embedded_factory.cpp",
184 "src/ports/SkFontMgr_empty_factory.cpp",
185 "src/ports/SkImageDecoder_CG.cpp",
186 "src/ports/SkImageDecoder_WIC.cpp",
187 "src/ports/SkImageDecoder_empty.cpp",
188 "src/ports/SkImageGenerator_none.cpp",
189 "src/ports/SkTLS_none.cpp",
190 ],
191 )
192
150 PLATFORM_SRCS = select({ 193 PLATFORM_SRCS = select({
151 CONDITION_ANDROID: SRCS_ANDROID, 194 CONDITION_ANDROID: SRCS_ANDROID,
195 CONDITION_IOS: SRCS_IOS,
152 "//conditions:default": SRCS_UNIX, 196 "//conditions:default": SRCS_UNIX,
153 }) 197 })
154 198
155 SRCS_SSSE3 = glob( 199 SRCS_SSSE3 = glob(
156 [ 200 [
157 "src/opts/*SSSE3*.cpp", 201 "src/opts/*SSSE3*.cpp",
158 "src/opts/*ssse3*.cpp", 202 "src/opts/*ssse3*.cpp",
159 ], 203 ],
160 ) 204 )
161 205
(...skipping 26 matching lines...) Expand all
188 "include/config", 232 "include/config",
189 "include/core", 233 "include/core",
190 "include/effects", 234 "include/effects",
191 "include/gpu", 235 "include/gpu",
192 "include/images", 236 "include/images",
193 "include/pathops", 237 "include/pathops",
194 "include/pipe", 238 "include/pipe",
195 "include/ports", 239 "include/ports",
196 "include/private", 240 "include/private",
197 "include/utils", 241 "include/utils",
242 "include/utils/mac",
243 "include/utils/win",
198 "include/svg", 244 "include/svg",
199 "include/xml", 245 "include/xml",
200 "src/core", 246 "src/core",
201 "src/gpu", 247 "src/gpu",
202 "src/image", 248 "src/image",
203 "src/lazy", 249 "src/lazy",
204 "src/opts", 250 "src/opts",
205 "src/pdf", 251 "src/pdf",
206 "src/sfnt", 252 "src/sfnt",
207 "src/utils", 253 "src/utils",
208 "third_party/etc1", 254 "third_party/etc1",
209 "third_party/ktx", 255 "third_party/ktx",
210 ] 256 ]
211 257
258 # Dependencies.
212 DEPS_UNIX = [ 259 DEPS_UNIX = [
213 ":opts_sse4", 260 ":opts_sse4",
214 ":opts_ssse3", 261 ":opts_ssse3",
215 ] 262 ]
216 263
217 DEPS_ANDROID = [] 264 DEPS_ANDROID = []
218 265
266 DEPS_IOS = []
267
219 DEPS = select({ 268 DEPS = select({
220 CONDITION_ANDROID: DEPS_ANDROID + EXTERNAL_DEPS_ANDROID + EXTERNAL_DEPS_ALL, 269 CONDITION_ANDROID: DEPS_ANDROID + EXTERNAL_DEPS_ANDROID,
221 "//conditions:default": DEPS_UNIX + EXTERNAL_DEPS_UNIX + EXTERNAL_DEPS_ALL, 270 CONDITION_IOS: DEPS_IOS + EXTERNAL_DEPS_IOS,
222 }) 271 "//conditions:default": DEPS_UNIX + EXTERNAL_DEPS_UNIX,
272 }) + EXTERNAL_DEPS_ALL
223 273
224 # Platform-independent SRCS for DM. 274 # Platform-independent SRCS for DM.
225 DM_SRCS = glob( 275 DM_SRCS = glob(
226 [ 276 [
227 "dm/*.cpp", 277 "dm/*.cpp",
228 "dm/*.h", 278 "dm/*.h",
229 "gm/*.c", 279 "gm/*.c",
230 "gm/*.cpp", 280 "gm/*.cpp",
231 "gm/*.h", 281 "gm/*.h",
232 "tests/*.cpp", 282 "tests/*.cpp",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 "tests", 343 "tests",
294 "tools", 344 "tools",
295 "tools/flags", 345 "tools/flags",
296 "tools/timer", 346 "tools/timer",
297 ] 347 ]
298 348
299 COPTS_ANDROID = [ 349 COPTS_ANDROID = [
300 "-mfpu=neon", 350 "-mfpu=neon",
301 ] 351 ]
302 352
353 COPTS_IOS = [
354 ]
355
303 COPTS_UNIX = [ 356 COPTS_UNIX = [
304 "-Wno-implicit-fallthrough", # Some intentional fallthrough. 357 "-Wno-implicit-fallthrough", # Some intentional fallthrough.
305 "-Wno-deprecated-declarations", # Internal use of deprecated methods. :( 358 "-Wno-deprecated-declarations", # Internal use of deprecated methods. :(
306 ] 359 ]
307 360
308 COPTS = select({ 361 COPTS = select({
309 CONDITION_ANDROID: COPTS_ANDROID, 362 CONDITION_ANDROID: COPTS_ANDROID,
363 CONDITION_IOS: COPTS_IOS,
310 "//conditions:default": COPTS_UNIX, 364 "//conditions:default": COPTS_UNIX,
311 }) 365 })
312 366
313 DEFINES_ANDROID = [ 367 DEFINES_ANDROID = [
314 "SK_BUILD_FOR_ANDROID", 368 "SK_BUILD_FOR_ANDROID",
315 # TODO(benjaminwagner): Try to get png library updated? 369 # TODO(benjaminwagner): Try to get png library updated?
316 "SK_PNG_NO_INDEX_SUPPORTED", 370 "SK_PNG_NO_INDEX_SUPPORTED",
317 ] 371 ]
318 372
373 DEFINES_IOS = [
374 "SK_BUILD_FOR_IOS",
375 "SK_IGNORE_ETC1_SUPPORT",
376 ]
377
319 DEFINES_UNIX = [ 378 DEFINES_UNIX = [
320 "SK_BUILD_FOR_UNIX", 379 "SK_BUILD_FOR_UNIX",
321 "SK_SAMPLES_FOR_X", 380 "SK_SAMPLES_FOR_X",
322 ] 381 ]
323 382
324 DEFINES_ALL = [ 383 DEFINES_ALL = [
325 # Chrome DEFINES. 384 # Chrome DEFINES.
326 "SK_USE_FLOATBITS", 385 "SK_USE_FLOATBITS",
327 "SK_USE_FREETYPE_EMBOLDEN", 386 "SK_USE_FREETYPE_EMBOLDEN",
328 # Turn on a few Google3-specific build fixes. 387 # Turn on a few Google3-specific build fixes.
329 "GOOGLE3", 388 "GOOGLE3",
330 ] 389 ]
331 390
332 DEFINES = select({ 391 DEFINES = select({
333 CONDITION_ANDROID: DEFINES_ANDROID, 392 CONDITION_ANDROID: DEFINES_ANDROID,
393 CONDITION_IOS: DEFINES_IOS,
334 "//conditions:default": DEFINES_UNIX, 394 "//conditions:default": DEFINES_UNIX,
335 }) + DEFINES_ALL 395 }) + DEFINES_ALL
336 396
337 LINKOPTS = select({ 397 LINKOPTS = select({
338 CONDITION_ANDROID: [ 398 CONDITION_ANDROID: [
339 "-ldl", 399 "-ldl",
340 "-lEGL", 400 "-lEGL",
341 ], 401 ],
342 "//conditions:default": ["-ldl"], 402 "//conditions:default": ["-ldl"],
343 }) 403 })
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 "--images %s/resources" % BASE_DIR, 445 "--images %s/resources" % BASE_DIR,
386 ], 446 ],
387 copts = COPTS, 447 copts = COPTS,
388 data = glob(["resources/**/*"]), 448 data = glob(["resources/**/*"]),
389 defines = DEFINES, 449 defines = DEFINES,
390 includes = DM_INCLUDES, 450 includes = DM_INCLUDES,
391 deps = DM_EXTERNAL_DEPS + [ 451 deps = DM_EXTERNAL_DEPS + [
392 ":skia", 452 ":skia",
393 ] + EXTERNAL_DEPS_ALL, 453 ] + EXTERNAL_DEPS_ALL,
394 ) 454 )
OLDNEW
« no previous file with comments | « no previous file | tools/flags/SkCommandLineFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698