OLD | NEW |
1 ################################################################################ | 1 ################################################################################ |
2 # Skylark macros | 2 # Skylark macros |
3 ################################################################################ | 3 ################################################################################ |
4 | 4 |
5 is_bazel = not hasattr(native, "genmpm") | 5 is_bazel = not hasattr(native, "genmpm") |
6 | 6 |
7 def portable_select(select_dict, bazel_condition, default_condition): | 7 def portable_select(select_dict, bazel_condition, default_condition): |
8 """Replaces select() with a Bazel-friendly wrapper. | 8 """Replaces select() with a Bazel-friendly wrapper. |
9 | 9 |
10 Args: | 10 Args: |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 "tools", | 477 "tools", |
478 "tools/flags", | 478 "tools/flags", |
479 "tools/gpu", | 479 "tools/gpu", |
480 "tools/timer", | 480 "tools/timer", |
481 ] | 481 ] |
482 | 482 |
483 ################################################################################ | 483 ################################################################################ |
484 ## DM_ARGS | 484 ## DM_ARGS |
485 ################################################################################ | 485 ################################################################################ |
486 | 486 |
487 def DM_ARGS(base_dir): | 487 def DM_ARGS(base_dir, asan): |
488 return [ | 488 source = ["tests", "gm", "image"] |
489 "--nogpu", | 489 # TODO(benjaminwagner): f16 and serialize-8888 fail. |
490 "--verbose", | 490 config = ["565", "8888", "pdf", "srgb", "tiles_rt", "pic"] |
491 # TODO(mtklein): maybe investigate why these fail? | 491 # TODO(mtklein): maybe investigate why these fail? |
492 "--match ~FontMgr ~Scalar ~Canvas ~Codec_stripes ~Codec_Dimensions ~Code
c ~Stream ~skps ~RecordDraw_TextBounds ~PaintBreakText", | 492 match = [ |
493 "--resourcePath %s/resources" % base_dir, | 493 "~Canvas", |
494 "--images %s/resources" % base_dir, | 494 "~Codec", |
| 495 "~Codec_Dimensions", |
| 496 "~Codec_stripes", |
| 497 "~FontMgr", |
| 498 "~PaintBreakText", |
| 499 "~RecordDraw_TextBounds", |
| 500 "~Scalar", |
| 501 "~skps", |
| 502 "~Stream", |
| 503 ] |
| 504 if asan: |
| 505 # Running all sources and configs under ASAN causes the test to exceed |
| 506 # "large" size and time out. |
| 507 source = ["tests", "gm"] |
| 508 config = ["8888"] |
| 509 match += [ |
| 510 "~clippedcubic2", |
| 511 "~conicpaths", |
| 512 "~gradients_2pt_conical", |
| 513 "~Math", |
| 514 "~Matrix", |
| 515 "~PathOpsCubic", |
| 516 "~PathOpsOpLoopsThreaded", |
| 517 "~PathOpsSimplify", |
| 518 "~PathOpsTightBoundsQuads", |
| 519 "~Point", |
495 ] | 520 ] |
| 521 return [ |
| 522 "--src %s" % " ".join(source), |
| 523 "--config %s" % " ".join(config), |
| 524 "--verbose", |
| 525 "--match %s" % " ".join(match), |
| 526 "--resourcePath %s/resources" % base_dir, |
| 527 "--images %s/resources" % base_dir, |
| 528 ] |
496 | 529 |
497 ################################################################################ | 530 ################################################################################ |
498 ## COPTS | 531 ## COPTS |
499 ################################################################################ | 532 ################################################################################ |
500 | 533 |
501 COPTS_UNIX = [ | 534 COPTS_UNIX = [ |
502 "-Wno-implicit-fallthrough", # Some intentional fallthrough. | 535 "-Wno-implicit-fallthrough", # Some intentional fallthrough. |
503 "-Wno-deprecated-declarations", # Internal use of deprecated methods. :( | 536 "-Wno-deprecated-declarations", # Internal use of deprecated methods. :( |
504 ] | 537 ] |
505 | 538 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 | 600 |
568 LINKOPTS_ANDROID = [ | 601 LINKOPTS_ANDROID = [ |
569 "-lEGL", | 602 "-lEGL", |
570 ] | 603 ] |
571 | 604 |
572 LINKOPTS_IOS = [] | 605 LINKOPTS_IOS = [] |
573 | 606 |
574 LINKOPTS_ALL = [ | 607 LINKOPTS_ALL = [ |
575 "-ldl", | 608 "-ldl", |
576 ] | 609 ] |
OLD | NEW |