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

Side by Side Diff: BUILD.public

Issue 1423013004: For BUILD.public, let SkPreConfig.h set SK_RELEASE based on NDEBUG. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Replace #include with forward-declare. Rebase. 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 | include/core/SkPostConfig.h » ('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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 ] 210 ]
211 211
212 DEPS_UNIX = [ 212 DEPS_UNIX = [
213 ":opts_sse4", 213 ":opts_sse4",
214 ":opts_ssse3", 214 ":opts_ssse3",
215 ] 215 ]
216 216
217 DEPS_ANDROID = [] 217 DEPS_ANDROID = []
218 218
219 DEPS = select({ 219 DEPS = select({
220 CONDITION_ANDROID: DEPS_ANDROID + EXTERNAL_DEPS_ANDROID, 220 CONDITION_ANDROID: DEPS_ANDROID + EXTERNAL_DEPS_ANDROID + EXTERNAL_DEPS_ALL,
221 "//conditions:default": DEPS_UNIX + EXTERNAL_DEPS_UNIX, 221 "//conditions:default": DEPS_UNIX + EXTERNAL_DEPS_UNIX + EXTERNAL_DEPS_ALL,
222 }) 222 })
223 223
224 # Platform-independent SRCS for DM. 224 # Platform-independent SRCS for DM.
225 DM_SRCS = glob( 225 DM_SRCS = glob(
226 [ 226 [
227 "dm/*.cpp", 227 "dm/*.cpp",
228 "dm/*.h", 228 "dm/*.h",
229 "gm/*.c", 229 "gm/*.c",
230 "gm/*.cpp", 230 "gm/*.cpp",
231 "gm/*.h", 231 "gm/*.h",
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 # TODO(benjaminwagner): Try to get png library updated? 315 # TODO(benjaminwagner): Try to get png library updated?
316 "SK_PNG_NO_INDEX_SUPPORTED", 316 "SK_PNG_NO_INDEX_SUPPORTED",
317 ] 317 ]
318 318
319 DEFINES_UNIX = [ 319 DEFINES_UNIX = [
320 "SK_BUILD_FOR_UNIX", 320 "SK_BUILD_FOR_UNIX",
321 "SK_SAMPLES_FOR_X", 321 "SK_SAMPLES_FOR_X",
322 ] 322 ]
323 323
324 DEFINES_ALL = [ 324 DEFINES_ALL = [
325 # It'd be nice for fastbuild, dbg -> SK_DEBUG, opt -> SK_RELEASE.
326 "SK_RELEASE",
327 # Chrome DEFINES. 325 # Chrome DEFINES.
328 "SK_USE_FLOATBITS", 326 "SK_USE_FLOATBITS",
329 "SK_USE_FREETYPE_EMBOLDEN", 327 "SK_USE_FREETYPE_EMBOLDEN",
330 # Turn on a few Google3-specific build fixes. 328 # Turn on a few Google3-specific build fixes.
331 "GOOGLE3", 329 "GOOGLE3",
332 ] 330 ]
333 331
334 DEFINES = select({ 332 DEFINES = select({
335 CONDITION_ANDROID: DEFINES_ANDROID, 333 CONDITION_ANDROID: DEFINES_ANDROID,
336 "//conditions:default": DEFINES_UNIX, 334 "//conditions:default": DEFINES_UNIX,
337 }) + DEFINES_ALL 335 }) + DEFINES_ALL
338 336
339 LINKOPTS = select({ 337 LINKOPTS = select({
340 CONDITION_ANDROID: [ 338 CONDITION_ANDROID: [
341 "-ldl", 339 "-ldl",
342 "-lEGL", 340 "-lEGL",
343 ], 341 ],
344 "//conditions:default": ["-ldl"], 342 "//conditions:default": ["-ldl"],
345 }) 343 })
346 344
347 cc_library( 345 cc_library(
348 name = "opts_ssse3", 346 name = "opts_ssse3",
349 srcs = SRCS_SSSE3, 347 srcs = SRCS_SSSE3,
350 copts = COPTS + ["-mssse3"], 348 copts = COPTS + ["-mssse3"],
351 defines = DEFINES, 349 defines = DEFINES,
352 includes = INCLUDES, 350 includes = INCLUDES,
351 deps = EXTERNAL_DEPS_ALL,
353 ) 352 )
354 353
355 cc_library( 354 cc_library(
356 name = "opts_sse4", 355 name = "opts_sse4",
357 srcs = SRCS_SSE4, 356 srcs = SRCS_SSE4,
358 copts = COPTS + ["-msse4"], 357 copts = COPTS + ["-msse4"],
359 defines = DEFINES, 358 defines = DEFINES,
360 includes = INCLUDES, 359 includes = INCLUDES,
360 deps = EXTERNAL_DEPS_ALL,
361 ) 361 )
362 362
363 cc_library( 363 cc_library(
364 name = "skia", 364 name = "skia",
365 srcs = SRCS + PLATFORM_SRCS, 365 srcs = SRCS + PLATFORM_SRCS,
366 hdrs = HDRS, 366 hdrs = HDRS,
367 copts = COPTS, 367 copts = COPTS,
368 defines = DEFINES, 368 defines = DEFINES,
369 includes = INCLUDES, 369 includes = INCLUDES,
370 linkopts = LINKOPTS, 370 linkopts = LINKOPTS,
371 visibility = [":skia_clients"], 371 visibility = [":skia_clients"],
372 deps = DEPS, 372 deps = DEPS,
373 ) 373 )
374 374
375 cc_test( 375 cc_test(
376 name = "dm", 376 name = "dm",
377 size = "large", 377 size = "large",
378 srcs = DM_SRCS + DM_PLATFORM_SRCS, 378 srcs = DM_SRCS + DM_PLATFORM_SRCS,
379 args = [ 379 args = [
380 "--nogpu", 380 "--nogpu",
381 "--verbose", 381 "--verbose",
382 # TODO(mtklein): maybe investigate why these fail? 382 # TODO(mtklein): maybe investigate why these fail?
383 "--match ~FontMgr ~Scalar ~Canvas ~Codec_stripes ~Codec_Dimensions ~Code c ~Stream ~skps ~Math", 383 "--match ~FontMgr ~Scalar ~Canvas ~Codec_stripes ~Codec_Dimensions ~Code c ~Stream ~skps ~Math ~RecordDraw_TextBounds",
384 "--resourcePath %s/resources" % BASE_DIR, 384 "--resourcePath %s/resources" % BASE_DIR,
385 "--images %s/resources" % BASE_DIR, 385 "--images %s/resources" % BASE_DIR,
386 ], 386 ],
387 copts = COPTS, 387 copts = COPTS,
388 data = glob(["resources/**/*"]), 388 data = glob(["resources/**/*"]),
389 defines = DEFINES, 389 defines = DEFINES,
390 includes = DM_INCLUDES, 390 includes = DM_INCLUDES,
391 deps = DM_EXTERNAL_DEPS + [ 391 deps = DM_EXTERNAL_DEPS + [
392 ":skia", 392 ":skia",
393 ], 393 ] + EXTERNAL_DEPS_ALL,
394 ) 394 )
OLDNEW
« no previous file with comments | « no previous file | include/core/SkPostConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698