OLD | NEW |
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 # All platform-independent SRCS. | 8 # All platform-independent SRCS. |
9 BASE_SRCS = glob( | 9 BASE_SRCS = glob( |
10 [ | 10 [ |
11 "include/private/*.h", | 11 "include/private/*.h", |
12 "src/**/*.h", | 12 "src/**/*.h", |
13 "src/**/*.cpp", | 13 "src/**/*.cpp", |
14 | 14 |
15 # Third Party | 15 # Third Party |
16 "third_party/etc1/*.cpp", | 16 "third_party/etc1/*.cpp", |
17 "third_party/etc1/*.h", | 17 "third_party/etc1/*.h", |
18 "third_party/ktx/*.cpp", | 18 "third_party/ktx/*.cpp", |
19 "third_party/ktx/*.h", | 19 "third_party/ktx/*.h", |
20 ], | 20 ], |
21 exclude = [ | 21 exclude = [ |
22 # Exclude platform-dependent files. | 22 # Exclude platform-dependent files. |
| 23 "src/codec/*", |
23 "src/device/xps/*", # Windows-only. Move to ports? | 24 "src/device/xps/*", # Windows-only. Move to ports? |
24 "src/doc/*_XPS.cpp", # Windows-only. Move to ports? | 25 "src/doc/*_XPS.cpp", # Windows-only. Move to ports? |
25 "src/fonts/SkFontMgr_fontconfig.cpp", | 26 "src/fonts/SkFontMgr_fontconfig.cpp", |
26 "src/gpu/gl/android/*", | 27 "src/gpu/gl/android/*", |
27 "src/gpu/gl/egl/*", | 28 "src/gpu/gl/egl/*", |
28 "src/gpu/gl/glx/*", | 29 "src/gpu/gl/glx/*", |
29 "src/gpu/gl/iOS/*", | 30 "src/gpu/gl/iOS/*", |
30 "src/gpu/gl/mac/*", | 31 "src/gpu/gl/mac/*", |
31 "src/gpu/gl/win/*", | 32 "src/gpu/gl/win/*", |
| 33 "src/images/*", |
32 "src/opts/**/*", | 34 "src/opts/**/*", |
33 "src/ports/**/*", | 35 "src/ports/**/*", |
34 "src/utils/android/**/*", | 36 "src/utils/android/**/*", |
35 "src/utils/mac/**/*", | 37 "src/utils/mac/**/*", |
36 "src/utils/SkThreadUtils_win.cpp", # Windows-only. Move to ports? | 38 "src/utils/SkThreadUtils_win.cpp", # Windows-only. Move to ports? |
37 "src/utils/win/**/*", | 39 "src/utils/win/**/*", |
38 "src/views/sdl/*", | 40 "src/views/sdl/*", |
39 "src/views/win/*", | 41 "src/views/win/*", |
40 "src/views/unix/*", | 42 "src/views/unix/*", |
41 | 43 |
42 # Exclude multiple definitions. | 44 # Exclude multiple definitions. |
43 # TODO(mtklein): Move to opts? | 45 # TODO(mtklein): Move to opts? |
44 "src/doc/SkDocument_PDF_None.cpp", # We use SkDocument_PDF.cpp. | 46 "src/doc/SkDocument_PDF_None.cpp", # We use SkDocument_PDF.cpp. |
45 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", | 47 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", |
46 "src/gpu/gl/GrGLDefaultInterface_native.cpp", | 48 "src/gpu/gl/GrGLDefaultInterface_native.cpp", |
47 | 49 |
48 # Exclude files that don't compile with the current DEFINES. | 50 # Exclude files that don't compile with the current DEFINES. |
49 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch. | |
50 "src/gpu/gl/angle/*", # Requires SK_ANGLE define. | 51 "src/gpu/gl/angle/*", # Requires SK_ANGLE define. |
51 "src/gpu/gl/command_buffer/*", # unknown type name 'HMODULE' | 52 "src/gpu/gl/command_buffer/*", # unknown type name 'HMODULE' |
52 "src/gpu/gl/mesa/*", # Requires SK_MESA define. | 53 "src/gpu/gl/mesa/*", # Requires SK_MESA define. |
53 "src/svg/parser/*", # Missing SkSVG.h. | 54 "src/svg/parser/*", # Missing SkSVG.h. |
54 | 55 |
55 # Conflicting dependencies among Lua versions. See cl/107087297. | 56 # Conflicting dependencies among Lua versions. See cl/107087297. |
56 "src/utils/SkLua*", | 57 "src/utils/SkLua*", |
57 | 58 |
58 # Not used. | 59 # Not used. |
59 "src/animator/**/*", | 60 "src/animator/**/*", |
60 "src/views/**/*", | 61 "src/views/**/*", |
61 "src/xml/SkBML_Verbs.h", | 62 "src/xml/SkBML_Verbs.h", |
62 "src/xml/SkBML_XMLParser.cpp", | 63 "src/xml/SkBML_XMLParser.cpp", |
63 "src/xml/SkXMLPullParser.cpp", | 64 "src/xml/SkXMLPullParser.cpp", |
64 ], | 65 ], |
65 ) | 66 ) |
66 | 67 |
67 # Platform-dependent SRCS for google3-default platform. | 68 # Platform-dependent SRCS for google3-default platform. |
68 BASE_SRCS_UNIX = glob( | 69 BASE_SRCS_UNIX = glob( |
69 [ | 70 [ |
| 71 "src/codec/*", |
70 "src/fonts/SkFontMgr_fontconfig.cpp", | 72 "src/fonts/SkFontMgr_fontconfig.cpp", |
| 73 "src/images/*", |
71 "src/opts/**/*.cpp", | 74 "src/opts/**/*.cpp", |
72 "src/opts/**/*.h", | 75 "src/opts/**/*.h", |
73 "src/ports/**/*.cpp", | 76 "src/ports/**/*.cpp", |
74 "src/ports/**/*.h", | 77 "src/ports/**/*.h", |
75 ], | 78 ], |
76 exclude = [ | 79 exclude = [ |
| 80 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch. |
77 "src/opts/*arm*", | 81 "src/opts/*arm*", |
78 "src/opts/*mips*", | 82 "src/opts/*mips*", |
79 "src/opts/*NEON*", | 83 "src/opts/*NEON*", |
80 "src/opts/*neon*", | 84 "src/opts/*neon*", |
81 # Included in :opts_ssse3 library. | 85 # Included in :opts_ssse3 library. |
82 "src/opts/*SSSE3*", | 86 "src/opts/*SSSE3*", |
83 "src/opts/*ssse3*", | 87 "src/opts/*ssse3*", |
84 # Included in :opts_sse4 library. | 88 # Included in :opts_sse4 library. |
85 "src/opts/*SSE4*", | 89 "src/opts/*SSE4*", |
86 "src/opts/*sse4*", | 90 "src/opts/*sse4*", |
(...skipping 18 matching lines...) Expand all Loading... |
105 "src/ports/SkImageDecoder_WIC.cpp", | 109 "src/ports/SkImageDecoder_WIC.cpp", |
106 "src/ports/SkImageDecoder_empty.cpp", | 110 "src/ports/SkImageDecoder_empty.cpp", |
107 "src/ports/SkImageGenerator_none.cpp", | 111 "src/ports/SkImageGenerator_none.cpp", |
108 "src/ports/SkTLS_none.cpp", | 112 "src/ports/SkTLS_none.cpp", |
109 ], | 113 ], |
110 ) | 114 ) |
111 | 115 |
112 # Platform-dependent SRCS for google3-default Android. | 116 # Platform-dependent SRCS for google3-default Android. |
113 BASE_SRCS_ANDROID = glob( | 117 BASE_SRCS_ANDROID = glob( |
114 [ | 118 [ |
| 119 "src/codec/*", |
| 120 "src/images/*", |
115 # TODO(benjaminwagner): Figure out how to compile with EGL. | 121 # TODO(benjaminwagner): Figure out how to compile with EGL. |
116 "src/opts/**/*.cpp", | 122 "src/opts/**/*.cpp", |
117 "src/opts/**/*.h", | 123 "src/opts/**/*.h", |
118 "src/ports/**/*.cpp", | 124 "src/ports/**/*.cpp", |
119 "src/ports/**/*.h", | 125 "src/ports/**/*.h", |
120 ], | 126 ], |
121 exclude = [ | 127 exclude = [ |
| 128 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch. |
122 "src/opts/*mips*", | 129 "src/opts/*mips*", |
123 "src/opts/*SSE2*", | 130 "src/opts/*SSE2*", |
124 "src/opts/*SSSE3*", | 131 "src/opts/*SSSE3*", |
125 "src/opts/*ssse3*", | 132 "src/opts/*ssse3*", |
126 "src/opts/*SSE4*", | 133 "src/opts/*SSE4*", |
127 "src/opts/*sse4*", | 134 "src/opts/*sse4*", |
128 "src/opts/*avx*", | 135 "src/opts/*avx*", |
129 "src/opts/*x86*", | 136 "src/opts/*x86*", |
130 "src/opts/SkBitmapProcState_opts_none.cpp", | 137 "src/opts/SkBitmapProcState_opts_none.cpp", |
131 "src/opts/SkBlitMask_opts_none.cpp", | 138 "src/opts/SkBlitMask_opts_none.cpp", |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 "--images %s/resources" % BASE_DIR, | 499 "--images %s/resources" % BASE_DIR, |
493 ], | 500 ], |
494 copts = COPTS, | 501 copts = COPTS, |
495 data = glob(["resources/**/*"]), | 502 data = glob(["resources/**/*"]), |
496 defines = DEFINES, | 503 defines = DEFINES, |
497 includes = DM_INCLUDES, | 504 includes = DM_INCLUDES, |
498 deps = DM_EXTERNAL_DEPS + [ | 505 deps = DM_EXTERNAL_DEPS + [ |
499 ":skia", | 506 ":skia", |
500 ] + EXTERNAL_DEPS_ALL, | 507 ] + EXTERNAL_DEPS_ALL, |
501 ) | 508 ) |
OLD | NEW |