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

Side by Side Diff: public.bzl

Issue 2147303004: Exclude XML and dependencies from Bazel build. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Include XML and SVG headers. Created 4 years, 5 months 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 # Exclude multiple definitions. 108 # Exclude multiple definitions.
109 # TODO(mtklein): Move to opts? 109 # TODO(mtklein): Move to opts?
110 "src/pdf/SkDocument_PDF_None.cpp", # We use src/pdf/SkPDFDocument.cpp. 110 "src/pdf/SkDocument_PDF_None.cpp", # We use src/pdf/SkPDFDocument.cpp.
111 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", 111 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp",
112 "src/gpu/gl/GrGLDefaultInterface_native.cpp", 112 "src/gpu/gl/GrGLDefaultInterface_native.cpp",
113 "src/gpu/gl/GrGLDefaultInterface_none.cpp", 113 "src/gpu/gl/GrGLDefaultInterface_none.cpp",
114 114
115 # Exclude files that don't compile with the current DEFINES. 115 # Exclude files that don't compile with the current DEFINES.
116 "src/gpu/gl/mesa/*", # Requires SK_MESA define. 116 "src/gpu/gl/mesa/*", # Requires SK_MESA define.
117 "src/svg/parser/*", # Missing SkSVG.h. 117 "src/svg/**/*", # Depends on XML.
118 "src/xml/**/*",
118 119
119 # Conflicting dependencies among Lua versions. See cl/107087297. 120 # Conflicting dependencies among Lua versions. See cl/107087297.
120 "src/utils/SkLua*", 121 "src/utils/SkLua*",
121 122
122 # Not used. 123 # Not used.
123 "src/animator/**/*", 124 "src/animator/**/*",
124 "src/views/**/*", 125 "src/views/**/*",
125 "src/xml/SkBML_Verbs.h",
126 "src/xml/SkBML_XMLParser.cpp",
127 "src/xml/SkXMLPullParser.cpp",
128 126
129 # Currently exclude all vulkan specific files 127 # Currently exclude all vulkan specific files
130 "src/gpu/vk/*", 128 "src/gpu/vk/*",
131 "src/sksl/**/*", 129 "src/sksl/**/*",
132 ], 130 ],
133 ) 131 )
134 132
135 # Platform-dependent SRCS for google3-default platform. 133 # Platform-dependent SRCS for google3-default platform.
136 BASE_SRCS_UNIX = struct( 134 BASE_SRCS_UNIX = struct(
137 include = [ 135 include = [
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 ################################################################################ 317 ################################################################################
320 318
321 BASE_HDRS = struct( 319 BASE_HDRS = struct(
322 include = [ 320 include = [
323 "include/**/*.h", 321 "include/**/*.h",
324 ], 322 ],
325 exclude = PRIVATE_HDRS_LIST + [ 323 exclude = PRIVATE_HDRS_LIST + [
326 # Not used. 324 # Not used.
327 "include/animator/**/*", 325 "include/animator/**/*",
328 "include/views/**/*", 326 "include/views/**/*",
329 "include/xml/SkBML_WXMLParser.h",
330 "include/xml/SkBML_XMLParser.h",
331 ], 327 ],
332 ) 328 )
333 329
334 ################################################################################ 330 ################################################################################
335 ## BASE_DEPS 331 ## BASE_DEPS
336 ################################################################################ 332 ################################################################################
337 333
338 BASE_DEPS_ALL = [] 334 BASE_DEPS_ALL = []
339 335
340 BASE_DEPS_UNIX = [ 336 BASE_DEPS_UNIX = [
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 "tools/timer/*.cpp", 414 "tools/timer/*.cpp",
419 "tools/timer/*.h", 415 "tools/timer/*.h",
420 ], 416 ],
421 exclude = [ 417 exclude = [
422 "dm/DMSrcSinkAndroid.cpp", # Android-only. 418 "dm/DMSrcSinkAndroid.cpp", # Android-only.
423 "tests/FontMgrAndroidParserTest.cpp", # Android-only. 419 "tests/FontMgrAndroidParserTest.cpp", # Android-only.
424 "tests/PathOpsSkpClipTest.cpp", # Alternate main. 420 "tests/PathOpsSkpClipTest.cpp", # Alternate main.
425 "tests/skia_test.cpp", # Old main. 421 "tests/skia_test.cpp", # Old main.
426 "tests/SkpSkGrTest.cpp", # Alternate main. 422 "tests/SkpSkGrTest.cpp", # Alternate main.
427 "tests/SkSLErrorTest.cpp", # Excluded along with Vulkan. 423 "tests/SkSLErrorTest.cpp", # Excluded along with Vulkan.
424 "tests/SVGDeviceTest.cpp",
428 "tools/gpu/gl/angle/*", 425 "tools/gpu/gl/angle/*",
429 "tools/gpu/gl/command_buffer/*", 426 "tools/gpu/gl/command_buffer/*",
430 "tools/gpu/gl/egl/*", 427 "tools/gpu/gl/egl/*",
431 "tools/gpu/gl/glx/*", 428 "tools/gpu/gl/glx/*",
432 "tools/gpu/gl/iOS/*", 429 "tools/gpu/gl/iOS/*",
433 "tools/gpu/gl/mac/*", 430 "tools/gpu/gl/mac/*",
434 "tools/gpu/gl/mesa/*", 431 "tools/gpu/gl/mesa/*",
435 "tools/gpu/gl/win/*", 432 "tools/gpu/gl/win/*",
436 "tools/timer/SysTimer_mach.cpp", 433 "tools/timer/SysTimer_mach.cpp",
437 "tools/timer/SysTimer_windows.cpp", 434 "tools/timer/SysTimer_windows.cpp",
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 602
606 LINKOPTS_ANDROID = [ 603 LINKOPTS_ANDROID = [
607 "-lEGL", 604 "-lEGL",
608 ] 605 ]
609 606
610 LINKOPTS_IOS = [] 607 LINKOPTS_IOS = []
611 608
612 LINKOPTS_ALL = [ 609 LINKOPTS_ALL = [
613 "-ldl", 610 "-ldl",
614 ] 611 ]
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698