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/device/xps/*", # Windows-only. Move to ports? | 23 "src/device/xps/*", # Windows-only. Move to ports? |
24 "src/doc/*_XPS.cpp", # Windows-only. Move to ports? | 24 "src/doc/*_XPS.cpp", # Windows-only. Move to ports? |
25 "src/gpu/gl/android/*", | 25 "src/gpu/gl/android/*", |
26 "src/gpu/gl/egl/*", | 26 "src/gpu/gl/egl/*", |
27 "src/gpu/gl/glx/*", | 27 "src/gpu/gl/glx/*", |
28 "src/gpu/gl/nacl/*", | |
29 "src/gpu/gl/iOS/*", | 28 "src/gpu/gl/iOS/*", |
30 "src/gpu/gl/mac/*", | 29 "src/gpu/gl/mac/*", |
31 "src/gpu/gl/win/*", | 30 "src/gpu/gl/win/*", |
32 "src/opts/**/*", | 31 "src/opts/**/*", |
33 "src/ports/**/*", | 32 "src/ports/**/*", |
34 "src/utils/android/**/*", | 33 "src/utils/android/**/*", |
35 "src/utils/mac/**/*", | 34 "src/utils/mac/**/*", |
36 "src/utils/SkThreadUtils_win.cpp", # Windows-only. Move to ports? | 35 "src/utils/SkThreadUtils_win.cpp", # Windows-only. Move to ports? |
37 "src/utils/win/**/*", | 36 "src/utils/win/**/*", |
38 "src/views/sdl/*", | 37 "src/views/sdl/*", |
39 "src/views/win/*", | 38 "src/views/win/*", |
40 "src/views/unix/*", | 39 "src/views/unix/*", |
41 | 40 |
42 # Exclude multiple definitions. | 41 # Exclude multiple definitions. |
43 # TODO(mtklein): Move to opts? | 42 # TODO(mtklein): Move to opts? |
44 "src/doc/SkDocument_PDF_None.cpp", # We use SkDocument_PDF.cpp. | 43 "src/doc/SkDocument_PDF_None.cpp", # We use SkDocument_PDF.cpp. |
45 "src/fonts/*fontconfig*", | 44 "src/fonts/*fontconfig*", |
46 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", | 45 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", |
47 "src/gpu/gl/GrGLDefaultInterface_native.cpp", | 46 "src/gpu/gl/GrGLDefaultInterface_native.cpp", |
48 "src/gpu/gl/GrGLDefaultInterface_none.cpp", | |
49 | 47 |
50 # Exclude files that don't compile with the current DEFINES. | 48 # Exclude files that don't compile with the current DEFINES. |
51 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch. | 49 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch. |
52 "src/gpu/gl/angle/*", # Requires SK_ANGLE define. | 50 "src/gpu/gl/angle/*", # Requires SK_ANGLE define. |
53 "src/gpu/gl/command_buffer/*", # unknown type name 'HMODULE' | 51 "src/gpu/gl/command_buffer/*", # unknown type name 'HMODULE' |
54 "src/gpu/gl/mesa/*", # Requires SK_MESA define. | 52 "src/gpu/gl/mesa/*", # Requires SK_MESA define. |
55 "src/svg/parser/*", # Missing SkSVG.h. | 53 "src/svg/parser/*", # Missing SkSVG.h. |
56 | 54 |
57 # Conflicting dependencies among Lua versions. See cl/107087297. | 55 # Conflicting dependencies among Lua versions. See cl/107087297. |
58 "src/utils/SkLua*", | 56 "src/utils/SkLua*", |
59 | 57 |
60 # Not used. | 58 # Not used. |
61 "src/animator/**/*", | 59 "src/animator/**/*", |
62 "src/views/**/*", | 60 "src/views/**/*", |
63 "src/xml/SkBML_Verbs.h", | 61 "src/xml/SkBML_Verbs.h", |
64 "src/xml/SkBML_XMLParser.cpp", | 62 "src/xml/SkBML_XMLParser.cpp", |
65 "src/xml/SkXMLPullParser.cpp", | 63 "src/xml/SkXMLPullParser.cpp", |
66 ], | 64 ], |
67 ) | 65 ) |
68 | 66 |
69 # Platform-dependent SRCS for google3-default platform. | 67 # Platform-dependent SRCS for google3-default platform. |
70 BASE_SRCS_UNIX = glob( | 68 BASE_SRCS_UNIX = glob( |
71 [ | 69 [ |
72 "src/gpu/gl/GrGLDefaultInterface_native.cpp", | |
73 "src/gpu/gl/glx/**/*.cpp", | |
74 "src/gpu/gl/glx/**/*.h", | |
75 "src/opts/**/*.cpp", | 70 "src/opts/**/*.cpp", |
76 "src/opts/**/*.h", | 71 "src/opts/**/*.h", |
77 "src/ports/**/*.cpp", | 72 "src/ports/**/*.cpp", |
78 "src/ports/**/*.h", | 73 "src/ports/**/*.h", |
79 ], | 74 ], |
80 exclude = [ | 75 exclude = [ |
81 "src/opts/*arm*", | 76 "src/opts/*arm*", |
82 "src/opts/*mips*", | 77 "src/opts/*mips*", |
83 "src/opts/*NEON*", | 78 "src/opts/*NEON*", |
84 "src/opts/*neon*", | 79 "src/opts/*neon*", |
(...skipping 21 matching lines...) Expand all Loading... |
106 "src/ports/SkImageDecoder_empty.cpp", | 101 "src/ports/SkImageDecoder_empty.cpp", |
107 "src/ports/SkImageGenerator_none.cpp", | 102 "src/ports/SkImageGenerator_none.cpp", |
108 "src/ports/SkTLS_none.cpp", | 103 "src/ports/SkTLS_none.cpp", |
109 ], | 104 ], |
110 ) | 105 ) |
111 | 106 |
112 # Platform-dependent SRCS for google3-default Android. | 107 # Platform-dependent SRCS for google3-default Android. |
113 BASE_SRCS_ANDROID = glob( | 108 BASE_SRCS_ANDROID = glob( |
114 [ | 109 [ |
115 # TODO(benjaminwagner): Figure out how to compile with EGL. | 110 # TODO(benjaminwagner): Figure out how to compile with EGL. |
116 "src/gpu/gl/GrGLDefaultInterface_none.cpp", | |
117 "src/gpu/gl/nacl/SkCreatePlatformGLContext_nacl.cpp", | |
118 "src/opts/**/*.cpp", | 111 "src/opts/**/*.cpp", |
119 "src/opts/**/*.h", | 112 "src/opts/**/*.h", |
120 "src/ports/**/*.cpp", | 113 "src/ports/**/*.cpp", |
121 "src/ports/**/*.h", | 114 "src/ports/**/*.h", |
122 ], | 115 ], |
123 exclude = [ | 116 exclude = [ |
124 "src/opts/*mips*", | 117 "src/opts/*mips*", |
125 "src/opts/*SSE2*", | 118 "src/opts/*SSE2*", |
126 "src/opts/*SSSE3*", | 119 "src/opts/*SSSE3*", |
127 "src/opts/*ssse3*", | 120 "src/opts/*ssse3*", |
(...skipping 18 matching lines...) Expand all Loading... |
146 "src/ports/SkImageDecoder_WIC.cpp", | 139 "src/ports/SkImageDecoder_WIC.cpp", |
147 "src/ports/SkImageDecoder_empty.cpp", | 140 "src/ports/SkImageDecoder_empty.cpp", |
148 "src/ports/SkImageGenerator_none.cpp", | 141 "src/ports/SkImageGenerator_none.cpp", |
149 "src/ports/SkTLS_none.cpp", | 142 "src/ports/SkTLS_none.cpp", |
150 ], | 143 ], |
151 ) | 144 ) |
152 | 145 |
153 # Platform-dependent SRCS for google3-default iOS. | 146 # Platform-dependent SRCS for google3-default iOS. |
154 BASE_SRCS_IOS = glob( | 147 BASE_SRCS_IOS = glob( |
155 [ | 148 [ |
156 "src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp", | |
157 "src/opts/**/*.cpp", | 149 "src/opts/**/*.cpp", |
158 "src/opts/**/*.h", | 150 "src/opts/**/*.h", |
159 "src/ports/**/*.cpp", | 151 "src/ports/**/*.cpp", |
160 "src/ports/**/*.h", | 152 "src/ports/**/*.h", |
161 ], | 153 ], |
162 exclude = [ | 154 exclude = [ |
163 "src/opts/*mips*", | 155 "src/opts/*mips*", |
164 "src/opts/*NEON*", | 156 "src/opts/*NEON*", |
165 "src/opts/*neon*", | 157 "src/opts/*neon*", |
166 "src/opts/*SSE2*", | 158 "src/opts/*SSE2*", |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 409 |
418 cc_library( | 410 cc_library( |
419 name = "opts_sse4", | 411 name = "opts_sse4", |
420 srcs = SSE4_SRCS, | 412 srcs = SSE4_SRCS, |
421 copts = COPTS + ["-msse4"], | 413 copts = COPTS + ["-msse4"], |
422 defines = DEFINES, | 414 defines = DEFINES, |
423 includes = INCLUDES, | 415 includes = INCLUDES, |
424 deps = EXTERNAL_DEPS_ALL, | 416 deps = EXTERNAL_DEPS_ALL, |
425 ) | 417 ) |
426 | 418 |
| 419 # If you need Ganesh (GPU) support in Skia, please contact skia-team@google.com |
| 420 # for help. |
427 cc_library( | 421 cc_library( |
428 name = "skia", | 422 name = "skia", |
429 srcs = BASE_SRCS + BASE_SRCS_PLATFORM, | 423 srcs = BASE_SRCS + BASE_SRCS_PLATFORM, |
430 hdrs = BASE_HDRS, | 424 hdrs = BASE_HDRS, |
431 copts = COPTS, | 425 copts = COPTS, |
432 defines = DEFINES, | 426 defines = DEFINES, |
433 includes = INCLUDES, | 427 includes = INCLUDES, |
434 linkopts = LINKOPTS, | 428 linkopts = LINKOPTS, |
435 visibility = [":skia_clients"], | 429 visibility = [":skia_clients"], |
436 deps = BASE_DEPS, | 430 deps = BASE_DEPS, |
(...skipping 13 matching lines...) Expand all Loading... |
450 "--images %s/resources" % BASE_DIR, | 444 "--images %s/resources" % BASE_DIR, |
451 ], | 445 ], |
452 copts = COPTS, | 446 copts = COPTS, |
453 data = glob(["resources/**/*"]), | 447 data = glob(["resources/**/*"]), |
454 defines = DEFINES, | 448 defines = DEFINES, |
455 includes = DM_INCLUDES, | 449 includes = DM_INCLUDES, |
456 deps = DM_EXTERNAL_DEPS + [ | 450 deps = DM_EXTERNAL_DEPS + [ |
457 ":skia", | 451 ":skia", |
458 ] + EXTERNAL_DEPS_ALL, | 452 ] + EXTERNAL_DEPS_ALL, |
459 ) | 453 ) |
OLD | NEW |