benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # Skylark macros |
| 3 | ################################################################################ |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 4 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 5 | def skia_select(conditions, results): |
Mike Klein | bec7f10 | 2020-06-02 08:12:02 -0500 | [diff] [blame] | 6 | """select() for conditions provided externally. |
| 7 | |
| 8 | Instead of {"conditionA": resultA, "conditionB": resultB}, |
| 9 | this takes two arrays, ["conditionA", "conditionB"] and [resultA, resultB]. |
| 10 | |
| 11 | This allows the exact targets of the conditions to be provided externally while |
| 12 | the results can live here, hiding the structure of those conditions in Google3. |
| 13 | |
| 14 | Maybe this is too much paranoia? |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 15 | |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 16 | Args: |
Mike Klein | bec7f10 | 2020-06-02 08:12:02 -0500 | [diff] [blame] | 17 | conditions: [CONDITION_UNIX, CONDITION_ANDROID, CONDITION_IOS, CONDITION_WASM, ...] |
| 18 | results: [RESULT_UNIX, RESULT_ANDROID, RESULT_IOS, RESULT_WASM, ....] |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 19 | Returns: |
Mike Klein | bec7f10 | 2020-06-02 08:12:02 -0500 | [diff] [blame] | 20 | The result matching the active condition. |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 21 | """ |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 22 | selector = {} |
Mike Klein | bec7f10 | 2020-06-02 08:12:02 -0500 | [diff] [blame] | 23 | for i in range(len(conditions)): |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 24 | selector[conditions[i]] = results[i] |
Mike Klein | bec7f10 | 2020-06-02 08:12:02 -0500 | [diff] [blame] | 25 | return select(selector) |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 26 | |
| 27 | def skia_glob(srcs): |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 28 | """Replaces glob() with a version that accepts a struct. |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 29 | |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 30 | Args: |
| 31 | srcs: struct(include=[], exclude=[]) |
| 32 | Returns: |
| 33 | Equivalent of glob(srcs.include, exclude=srcs.exclude) |
| 34 | """ |
| 35 | if hasattr(srcs, "include"): |
| 36 | if hasattr(srcs, "exclude"): |
| 37 | return native.glob(srcs.include, exclude = srcs.exclude) |
| 38 | else: |
| 39 | return native.glob(srcs.include) |
| 40 | return [] |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 41 | |
| 42 | ################################################################################ |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 43 | ## skia_{all,public}_hdrs() |
| 44 | ################################################################################ |
| 45 | def skia_all_hdrs(): |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 46 | return native.glob([ |
| 47 | "src/**/*.h", |
| 48 | "include/**/*.h", |
| 49 | "third_party/**/*.h", |
| 50 | ]) |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 51 | |
| 52 | def skia_public_hdrs(): |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 53 | return native.glob( |
| 54 | ["include/**/*.h"], |
| 55 | exclude = [ |
| 56 | "include/private/**/*", |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 57 | ], |
| 58 | ) |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 59 | |
| 60 | ################################################################################ |
| 61 | ## skia_opts_srcs() |
| 62 | ################################################################################ |
| 63 | # Intel |
| 64 | SKIA_OPTS_SSE2 = "SSE2" |
| 65 | |
| 66 | SKIA_OPTS_SSSE3 = "SSSE3" |
| 67 | |
| 68 | SKIA_OPTS_SSE41 = "SSE41" |
| 69 | |
| 70 | SKIA_OPTS_SSE42 = "SSE42" |
| 71 | |
| 72 | SKIA_OPTS_AVX = "AVX" |
| 73 | |
Mike Klein | 33d077d | 2018-02-27 13:43:53 -0500 | [diff] [blame] | 74 | SKIA_OPTS_HSW = "HSW" |
| 75 | |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 76 | # Arm |
| 77 | SKIA_OPTS_NEON = "NEON" |
| 78 | |
| 79 | SKIA_OPTS_CRC32 = "CRC32" # arm64 |
| 80 | |
| 81 | def opts_srcs(opts): |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 82 | if opts == SKIA_OPTS_SSE2: |
| 83 | return native.glob([ |
| 84 | "src/opts/*_SSE2.cpp", |
| 85 | "src/opts/*_sse2.cpp", # No matches currently. |
| 86 | ]) |
| 87 | elif opts == SKIA_OPTS_SSSE3: |
| 88 | return native.glob([ |
| 89 | "src/opts/*_SSSE3.cpp", |
| 90 | "src/opts/*_ssse3.cpp", |
| 91 | ]) |
| 92 | elif opts == SKIA_OPTS_SSE41: |
| 93 | return native.glob([ |
| 94 | "src/opts/*_sse41.cpp", |
| 95 | ]) |
| 96 | elif opts == SKIA_OPTS_SSE42: |
| 97 | return native.glob([ |
| 98 | "src/opts/*_sse42.cpp", |
| 99 | ]) |
| 100 | elif opts == SKIA_OPTS_AVX: |
| 101 | return native.glob([ |
| 102 | "src/opts/*_avx.cpp", |
| 103 | ]) |
| 104 | elif opts == SKIA_OPTS_HSW: |
| 105 | return native.glob([ |
| 106 | "src/opts/*_hsw.cpp", |
| 107 | ]) |
| 108 | elif opts == SKIA_OPTS_NEON: |
| 109 | return native.glob([ |
| 110 | "src/opts/*_neon.cpp", |
| 111 | ]) |
| 112 | elif opts == SKIA_OPTS_CRC32: |
| 113 | return native.glob([ |
| 114 | "src/opts/*_crc32.cpp", |
| 115 | ]) |
| 116 | else: |
| 117 | fail("skia_opts_srcs parameter 'opts' must be one of SKIA_OPTS_*.") |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 118 | |
| 119 | def opts_cflags(opts): |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 120 | if opts == SKIA_OPTS_SSE2: |
| 121 | return ["-msse2"] |
| 122 | elif opts == SKIA_OPTS_SSSE3: |
| 123 | return ["-mssse3"] |
| 124 | elif opts == SKIA_OPTS_SSE41: |
| 125 | return ["-msse4.1"] |
| 126 | elif opts == SKIA_OPTS_SSE42: |
| 127 | return ["-msse4.2"] |
| 128 | elif opts == SKIA_OPTS_AVX: |
| 129 | return ["-mavx"] |
| 130 | elif opts == SKIA_OPTS_HSW: |
| 131 | return ["-mavx2", "-mf16c", "-mfma"] |
| 132 | elif opts == SKIA_OPTS_NEON: |
| 133 | return ["-mfpu=neon"] |
| 134 | elif opts == SKIA_OPTS_CRC32: |
| 135 | # NDK r11's Clang (3.8) doesn't pass along this -march setting correctly to an external |
| 136 | # assembler, so we do it manually with -Wa. This is just a bug, fixed in later Clangs. |
| 137 | return ["-march=armv8-a+crc", "-Wa,-march=armv8-a+crc"] |
| 138 | else: |
| 139 | return [] |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 140 | |
| 141 | SKIA_CPU_ARM = "ARM" |
| 142 | |
| 143 | SKIA_CPU_ARM64 = "ARM64" |
| 144 | |
| 145 | SKIA_CPU_X86 = "X86" |
| 146 | |
| 147 | SKIA_CPU_OTHER = "OTHER" |
| 148 | |
| 149 | def opts_rest_srcs(cpu): |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 150 | srcs = [] |
| 151 | if cpu == SKIA_CPU_ARM or cpu == SKIA_CPU_ARM64: |
| 152 | srcs += native.glob([ |
| 153 | "src/opts/*_arm.cpp", |
| 154 | "src/opts/SkBitmapProcState_opts_none.cpp", |
| 155 | ]) |
| 156 | if cpu == SKIA_CPU_ARM64: |
| 157 | # NEON doesn't need special flags to compile on ARM64. |
| 158 | srcs += native.glob([ |
| 159 | "src/opts/*_neon.cpp", |
| 160 | ]) |
| 161 | elif cpu == SKIA_CPU_X86: |
| 162 | srcs += native.glob([ |
| 163 | "src/opts/*_x86.cpp", |
| 164 | ]) |
| 165 | elif cpu == SKIA_CPU_OTHER: |
| 166 | srcs += native.glob([ |
| 167 | "src/opts/*_none.cpp", |
| 168 | ]) |
| 169 | else: |
| 170 | fail("opts_rest_srcs parameter 'cpu' must be one of " + |
| 171 | "SKIA_CPU_{ARM,ARM64,X86,OTHER}.") |
| 172 | return srcs |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 173 | |
| 174 | def skia_opts_deps(cpu): |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 175 | res = [":opts_rest"] |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 176 | |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 177 | if cpu == SKIA_CPU_ARM: |
| 178 | res += [":opts_neon"] |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 179 | |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 180 | if cpu == SKIA_CPU_ARM64: |
| 181 | res += [":opts_crc32"] |
Mike Klein | c29bb57 | 2017-10-24 11:40:41 -0400 | [diff] [blame] | 182 | |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 183 | if cpu == SKIA_CPU_X86: |
| 184 | res += [ |
| 185 | ":opts_sse2", |
| 186 | ":opts_ssse3", |
| 187 | ":opts_sse41", |
| 188 | ":opts_sse42", |
| 189 | ":opts_avx", |
| 190 | ":opts_hsw", |
| 191 | ] |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 192 | |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 193 | return res |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 194 | |
| 195 | ################################################################################ |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 196 | ## BASE_SRCS |
| 197 | ################################################################################ |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 198 | |
benjaminwagner | 39e7aa4 | 2015-11-18 13:26:10 -0800 | [diff] [blame] | 199 | # All platform-independent SRCS. |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 200 | BASE_SRCS_ALL = struct( |
| 201 | include = [ |
Ben Wagner | dea7428 | 2017-03-16 19:15:09 -0400 | [diff] [blame] | 202 | "include/private/**/*.h", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 203 | "src/**/*.h", |
| 204 | "src/**/*.cpp", |
Ben Wagner | dea7428 | 2017-03-16 19:15:09 -0400 | [diff] [blame] | 205 | "src/**/*.inc", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 206 | ], |
Ben Wagner | dea7428 | 2017-03-16 19:15:09 -0400 | [diff] [blame] | 207 | exclude = [ |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 208 | # Exclude platform-dependent files. |
Mike Klein | 9509e04 | 2019-05-15 21:57:48 +0000 | [diff] [blame] | 209 | "src/codec/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 210 | "src/device/xps/*", # Windows-only. Move to ports? |
| 211 | "src/doc/*_XPS.cpp", # Windows-only. Move to ports? |
| 212 | "src/gpu/gl/android/*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 213 | "src/gpu/gl/egl/*", |
benjaminwagner | af3b35e | 2016-03-28 13:27:28 -0700 | [diff] [blame] | 214 | "src/gpu/gl/glfw/*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 215 | "src/gpu/gl/glx/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 216 | "src/gpu/gl/iOS/*", |
| 217 | "src/gpu/gl/mac/*", |
| 218 | "src/gpu/gl/win/*", |
| 219 | "src/opts/**/*", |
| 220 | "src/ports/**/*", |
| 221 | "src/utils/android/**/*", |
| 222 | "src/utils/mac/**/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 223 | "src/utils/win/**/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 224 | |
| 225 | # Exclude multiple definitions. |
Kevin Lubick | c921067 | 2018-10-15 11:36:55 -0400 | [diff] [blame] | 226 | "src/gpu/GrPathRendering_none.cpp", |
Kevin Lubick | 93faa67 | 2018-10-10 15:54:53 -0400 | [diff] [blame] | 227 | "src/gpu/ccpr/GrCoverageCountingPathRenderer_none.cpp", |
Kevin Lubick | c921067 | 2018-10-15 11:36:55 -0400 | [diff] [blame] | 228 | "src/gpu/gl/GrGLMakeNativeInterface_none.cpp", |
| 229 | "src/pdf/SkDocument_PDF_None.cpp", # We use src/pdf/SkPDFDocument.cpp. |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 230 | |
Ben Wagner | 4ccf49c | 2018-03-26 15:46:40 -0400 | [diff] [blame] | 231 | # Exclude files that don't compile everywhere. |
| 232 | "src/svg/**/*", # Depends on xml, SkJpegCodec, and SkPngCodec. |
| 233 | "src/xml/**/*", # Avoid dragging in expat when not needed. |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 234 | |
benjaminwagner | 39e7aa4 | 2015-11-18 13:26:10 -0800 | [diff] [blame] | 235 | # Conflicting dependencies among Lua versions. See cl/107087297. |
| 236 | "src/utils/SkLua*", |
| 237 | |
Guruji Panda | 9ae4020 | 2020-07-10 09:17:47 -0700 | [diff] [blame] | 238 | # Exclude all GL specific files |
| 239 | "src/gpu/gl/*", |
| 240 | "src/gpu/gl/builders/*", |
| 241 | |
egdaniel | 32119f1 | 2016-02-22 10:07:54 -0800 | [diff] [blame] | 242 | # Currently exclude all vulkan specific files |
| 243 | "src/gpu/vk/*", |
benjaminwagner | c896251 | 2016-09-30 12:06:27 -0700 | [diff] [blame] | 244 | |
Jim Van Verth | 03b8ab2 | 2020-02-24 11:36:15 -0500 | [diff] [blame] | 245 | # Currently exclude all Direct3D specific files |
| 246 | "src/gpu/d3d/*", |
| 247 | |
Stephen White | 985741a | 2019-07-18 11:43:45 -0400 | [diff] [blame] | 248 | # Currently exclude all Dawn-specific files |
| 249 | "src/gpu/dawn/*", |
| 250 | |
benjaminwagner | c896251 | 2016-09-30 12:06:27 -0700 | [diff] [blame] | 251 | # Defines main. |
| 252 | "src/sksl/SkSLMain.cpp", |
Ethan Nicholas | 8d7f4ae | 2017-09-07 11:07:42 -0400 | [diff] [blame] | 253 | |
| 254 | # Only used to regenerate the lexer |
| 255 | "src/sksl/lex/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 256 | ], |
| 257 | ) |
| 258 | |
Hal Canary | ce4693f | 2019-11-20 21:43:54 +0000 | [diff] [blame] | 259 | def codec_srcs(limited): |
| 260 | """Sources for the codecs. Excludes Raw, and Ico, Webp, and Png if limited.""" |
Ben Wagner | ec8c660 | 2018-10-26 12:31:36 -0400 | [diff] [blame] | 261 | |
Hal Canary | b5c217b | 2019-11-20 10:16:10 -0500 | [diff] [blame] | 262 | exclude = ["src/codec/*Raw*.cpp"] |
Hal Canary | ce4693f | 2019-11-20 21:43:54 +0000 | [diff] [blame] | 263 | if limited: |
| 264 | exclude += [ |
| 265 | "src/codec/*Ico*.cpp", |
| 266 | "src/codec/*Webp*.cpp", |
| 267 | "src/codec/*Png*", |
| 268 | ] |
Hal Canary | b5c217b | 2019-11-20 10:16:10 -0500 | [diff] [blame] | 269 | return native.glob(["src/codec/*.cpp"], exclude = exclude) |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 270 | |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 271 | GL_SRCS_UNIX = struct( |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 272 | include = [ |
Guruji Panda | 9ae4020 | 2020-07-10 09:17:47 -0700 | [diff] [blame] | 273 | "src/gpu/gl/*", |
| 274 | "src/gpu/gl/builders/*", |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 275 | ], |
| 276 | exclude = [], |
| 277 | ) |
| 278 | PORTS_SRCS_UNIX = struct( |
| 279 | include = [ |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 280 | "src/ports/**/*.cpp", |
| 281 | "src/ports/**/*.h", |
| 282 | ], |
| 283 | exclude = [ |
msarett | 6b4985c | 2016-03-10 07:15:59 -0800 | [diff] [blame] | 284 | "src/ports/*CG*", |
msarett | fc0b6d1 | 2016-03-17 13:50:17 -0700 | [diff] [blame] | 285 | "src/ports/*WIC*", |
mtklein | 3f193a9 | 2016-03-10 08:52:05 -0800 | [diff] [blame] | 286 | "src/ports/*android*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 287 | "src/ports/*chromium*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 288 | "src/ports/*mac*", |
| 289 | "src/ports/*mozalloc*", |
| 290 | "src/ports/*nacl*", |
| 291 | "src/ports/*win*", |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 292 | "src/ports/SkFontMgr_custom_directory_factory.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 293 | "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
benjaminwagner | d9dd581 | 2016-03-21 10:45:01 -0700 | [diff] [blame] | 294 | "src/ports/SkFontMgr_custom_empty_factory.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 295 | "src/ports/SkFontMgr_empty_factory.cpp", |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 296 | "src/ports/SkFontMgr_fontconfig_factory.cpp", |
Sergey Ulanov | f3babcd | 2018-11-30 17:42:00 -0800 | [diff] [blame] | 297 | "src/ports/SkFontMgr_fuchsia.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 298 | "src/ports/SkImageGenerator_none.cpp", |
mtklein | d55d13a | 2015-08-18 08:51:49 -0700 | [diff] [blame] | 299 | ], |
| 300 | ) |
| 301 | |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 302 | GL_SRCS_ANDROID = struct( |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 303 | include = [ |
Guruji Panda | 9ae4020 | 2020-07-10 09:17:47 -0700 | [diff] [blame] | 304 | "src/gpu/gl/*", |
| 305 | "src/gpu/gl/builders/*", |
Ben Wagner | 773151f | 2018-08-17 09:28:53 -0400 | [diff] [blame] | 306 | "src/gpu/gl/android/*.cpp", |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 307 | ], |
Guruji Panda | 9ae4020 | 2020-07-10 09:17:47 -0700 | [diff] [blame] | 308 | exclude = [ |
| 309 | "src/gpu/gl/GrGLMakeNativeInterface_none.cpp", |
| 310 | ], |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 311 | ) |
| 312 | PORTS_SRCS_ANDROID = struct( |
| 313 | include = [ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 314 | "src/ports/**/*.cpp", |
| 315 | "src/ports/**/*.h", |
| 316 | ], |
| 317 | exclude = [ |
msarett | 6b4985c | 2016-03-10 07:15:59 -0800 | [diff] [blame] | 318 | "src/ports/*CG*", |
mtklein | 3f193a9 | 2016-03-10 08:52:05 -0800 | [diff] [blame] | 319 | "src/ports/*FontConfig*", |
msarett | fc0b6d1 | 2016-03-17 13:50:17 -0700 | [diff] [blame] | 320 | "src/ports/*WIC*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 321 | "src/ports/*chromium*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 322 | "src/ports/*fontconfig*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 323 | "src/ports/*mac*", |
| 324 | "src/ports/*mozalloc*", |
| 325 | "src/ports/*nacl*", |
| 326 | "src/ports/*win*", |
| 327 | "src/ports/SkDebug_stdio.cpp", |
| 328 | "src/ports/SkFontMgr_custom_directory_factory.cpp", |
| 329 | "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
benjaminwagner | d9dd581 | 2016-03-21 10:45:01 -0700 | [diff] [blame] | 330 | "src/ports/SkFontMgr_custom_empty_factory.cpp", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 331 | "src/ports/SkFontMgr_empty_factory.cpp", |
Sergey Ulanov | f3babcd | 2018-11-30 17:42:00 -0800 | [diff] [blame] | 332 | "src/ports/SkFontMgr_fuchsia.cpp", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 333 | "src/ports/SkImageGenerator_none.cpp", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 334 | ], |
| 335 | ) |
| 336 | |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 337 | GL_SRCS_IOS = struct( |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 338 | include = [ |
Guruji Panda | 9ae4020 | 2020-07-10 09:17:47 -0700 | [diff] [blame] | 339 | "src/gpu/gl/*", |
| 340 | "src/gpu/gl/builders/*", |
Brian Salomon | 3d6801e | 2017-12-11 10:06:31 -0500 | [diff] [blame] | 341 | "src/gpu/gl/iOS/GrGLMakeNativeInterface_iOS.cpp", |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 342 | ], |
Guruji Panda | 9ae4020 | 2020-07-10 09:17:47 -0700 | [diff] [blame] | 343 | exclude = [ |
| 344 | "src/gpu/gl/GrGLMakeNativeInterface_none.cpp", |
| 345 | ], |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 346 | ) |
| 347 | PORTS_SRCS_IOS = struct( |
| 348 | include = [ |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 349 | "src/ports/**/*.cpp", |
| 350 | "src/ports/**/*.h", |
iroth | ab669de | 2016-02-16 19:17:01 -0800 | [diff] [blame] | 351 | "src/utils/mac/*.cpp", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 352 | ], |
| 353 | exclude = [ |
mtklein | 3f193a9 | 2016-03-10 08:52:05 -0800 | [diff] [blame] | 354 | "src/ports/*FontConfig*", |
| 355 | "src/ports/*FreeType*", |
msarett | fc0b6d1 | 2016-03-17 13:50:17 -0700 | [diff] [blame] | 356 | "src/ports/*WIC*", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 357 | "src/ports/*android*", |
| 358 | "src/ports/*chromium*", |
| 359 | "src/ports/*fontconfig*", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 360 | "src/ports/*mozalloc*", |
| 361 | "src/ports/*nacl*", |
| 362 | "src/ports/*win*", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 363 | "src/ports/SkFontMgr_custom.cpp", |
Ben Wagner | 8ab590f | 2017-02-08 17:29:33 -0500 | [diff] [blame] | 364 | "src/ports/SkFontMgr_custom_directory.cpp", |
| 365 | "src/ports/SkFontMgr_custom_embedded.cpp", |
| 366 | "src/ports/SkFontMgr_custom_empty.cpp", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 367 | "src/ports/SkFontMgr_custom_directory_factory.cpp", |
| 368 | "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
benjaminwagner | d9dd581 | 2016-03-21 10:45:01 -0700 | [diff] [blame] | 369 | "src/ports/SkFontMgr_custom_empty_factory.cpp", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 370 | "src/ports/SkFontMgr_empty_factory.cpp", |
Sergey Ulanov | f3babcd | 2018-11-30 17:42:00 -0800 | [diff] [blame] | 371 | "src/ports/SkFontMgr_fuchsia.cpp", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 372 | "src/ports/SkImageGenerator_none.cpp", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 373 | ], |
| 374 | ) |
| 375 | |
Nathaniel Nifong | c6ce3d4 | 2020-03-02 12:10:02 -0500 | [diff] [blame] | 376 | GL_SRCS_WASM = struct( |
| 377 | include = [ |
Guruji Panda | 9ae4020 | 2020-07-10 09:17:47 -0700 | [diff] [blame] | 378 | "src/gpu/gl/*", |
| 379 | "src/gpu/gl/builders/*", |
Nathaniel Nifong | c6ce3d4 | 2020-03-02 12:10:02 -0500 | [diff] [blame] | 380 | "src/gpu/gl/GrGLMakeNativeInterface_egl.cpp", |
| 381 | "src/gpu/gl/egl/GrGLMakeNativeInterface_egl.cpp", |
| 382 | ], |
Guruji Panda | 9ae4020 | 2020-07-10 09:17:47 -0700 | [diff] [blame] | 383 | exclude = [ |
| 384 | "src/gpu/gl/GrGLMakeNativeInterface_none.cpp", |
| 385 | ], |
Nathaniel Nifong | c6ce3d4 | 2020-03-02 12:10:02 -0500 | [diff] [blame] | 386 | ) |
| 387 | PORTS_SRCS_WASM = struct( |
| 388 | include = [ |
| 389 | "src/ports/**/*.cpp", |
| 390 | "src/ports/**/*.h", |
| 391 | ], |
| 392 | exclude = [ |
| 393 | # commented lines below left in because they indicate specifically what is |
| 394 | # included here and not in other PORTS_SRCS lists. |
| 395 | "src/ports/*FontConfig*", |
| 396 | "src/ports/*FreeType*", |
| 397 | "src/ports/*WIC*", |
| 398 | "src/ports/*CG*", |
| 399 | "src/ports/*android*", |
| 400 | "src/ports/*chromium*", |
| 401 | "src/ports/*fontconfig*", |
| 402 | "src/ports/*mac*", |
| 403 | "src/ports/*mozalloc*", |
| 404 | "src/ports/*nacl*", |
| 405 | "src/ports/*win*", |
| 406 | #"src/ports/SkDebug_stdio.cpp", |
| 407 | "src/ports/SkFontMgr_custom.cpp", |
| 408 | "src/ports/SkFontMgr_custom_directory.cpp", |
| 409 | "src/ports/SkFontMgr_custom_directory_factory.cpp", |
| 410 | "src/ports/SkFontMgr_custom_embedded.cpp", |
| 411 | "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
| 412 | "src/ports/SkFontMgr_custom_empty.cpp", |
| 413 | "src/ports/SkFontMgr_custom_empty_factory.cpp", |
| 414 | # "src/ports/SkFontMgr_empty_factory.cpp", |
| 415 | "src/ports/SkFontMgr_fontconfig_factory.cpp", |
| 416 | "src/ports/SkFontMgr_fuchsia.cpp", |
| 417 | "src/ports/SkImageGenerator_none.cpp", |
Nathaniel Nifong | c6ce3d4 | 2020-03-02 12:10:02 -0500 | [diff] [blame] | 418 | ], |
| 419 | ) |
| 420 | |
Mike Klein | 54c0d06 | 2020-06-02 09:13:01 -0500 | [diff] [blame] | 421 | GL_SRCS_FUCHSIA = struct( |
| 422 | include = [ |
Guruji Panda | 9ae4020 | 2020-07-10 09:17:47 -0700 | [diff] [blame] | 423 | "src/gpu/vk/*", |
Mike Klein | 54c0d06 | 2020-06-02 09:13:01 -0500 | [diff] [blame] | 424 | ], |
| 425 | exclude = [], |
| 426 | ) |
| 427 | PORTS_SRCS_FUCHSIA = struct( |
| 428 | include = [ |
| 429 | "src/ports/**/*.cpp", |
| 430 | "src/ports/**/*.h", |
| 431 | ], |
| 432 | exclude = [ |
| 433 | "src/ports/*FontConfig*", |
| 434 | #"src/ports/*FreeType*", |
| 435 | "src/ports/*WIC*", |
| 436 | "src/ports/*CG*", |
| 437 | "src/ports/*android*", |
| 438 | "src/ports/*chromium*", |
| 439 | "src/ports/*fontconfig*", |
| 440 | "src/ports/*mac*", |
| 441 | "src/ports/*mozalloc*", |
| 442 | "src/ports/*nacl*", |
| 443 | "src/ports/*win*", |
| 444 | #"src/ports/SkDebug_stdio.cpp", |
| 445 | #"src/ports/SkFontMgr_custom.cpp", |
| 446 | "src/ports/SkFontMgr_custom_directory.cpp", |
| 447 | "src/ports/SkFontMgr_custom_directory_factory.cpp", |
| 448 | "src/ports/SkFontMgr_custom_embedded.cpp", |
| 449 | "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
| 450 | "src/ports/SkFontMgr_custom_empty.cpp", |
| 451 | "src/ports/SkFontMgr_custom_empty_factory.cpp", |
| 452 | #"src/ports/SkFontMgr_empty_factory.cpp", |
| 453 | "src/ports/SkFontMgr_fontconfig_factory.cpp", |
| 454 | #"src/ports/SkFontMgr_fuchsia.cpp", |
| 455 | "src/ports/SkImageGenerator_none.cpp", |
| 456 | ], |
| 457 | ) |
| 458 | |
Andy Weiss | be1829f | 2020-07-01 11:08:16 -0700 | [diff] [blame] | 459 | GL_SRCS_MACOS = struct( |
| 460 | include = [ |
Andy Weiss | 25a1d4f | 2020-07-13 10:27:35 -0700 | [diff] [blame] | 461 | "src/gpu/gl/*", |
| 462 | "src/gpu/gl/builders/*", |
Andy Weiss | be1829f | 2020-07-01 11:08:16 -0700 | [diff] [blame] | 463 | "src/gpu/gl/mac/GrGLMakeNativeInterface_mac.cpp", |
| 464 | ], |
Andy Weiss | 25a1d4f | 2020-07-13 10:27:35 -0700 | [diff] [blame] | 465 | exclude = [ |
| 466 | "src/gpu/gl/GrGLMakeNativeInterface_none.cpp", |
| 467 | ], |
Andy Weiss | be1829f | 2020-07-01 11:08:16 -0700 | [diff] [blame] | 468 | ) |
| 469 | PORTS_SRCS_MACOS = PORTS_SRCS_IOS |
| 470 | |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 471 | def base_srcs(): |
| 472 | return skia_glob(BASE_SRCS_ALL) |
| 473 | |
| 474 | def ports_srcs(os_conditions): |
Mike Klein | 299ea7b | 2019-03-27 13:53:08 -0500 | [diff] [blame] | 475 | return skia_select( |
| 476 | os_conditions, |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 477 | [ |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 478 | skia_glob(PORTS_SRCS_UNIX), |
| 479 | skia_glob(PORTS_SRCS_ANDROID), |
| 480 | skia_glob(PORTS_SRCS_IOS), |
Nathaniel Nifong | c6ce3d4 | 2020-03-02 12:10:02 -0500 | [diff] [blame] | 481 | skia_glob(PORTS_SRCS_WASM), |
Mike Klein | 54c0d06 | 2020-06-02 09:13:01 -0500 | [diff] [blame] | 482 | skia_glob(PORTS_SRCS_FUCHSIA), |
Andy Weiss | be1829f | 2020-07-01 11:08:16 -0700 | [diff] [blame] | 483 | skia_glob(PORTS_SRCS_MACOS), |
Mike Klein | 299ea7b | 2019-03-27 13:53:08 -0500 | [diff] [blame] | 484 | ], |
| 485 | ) |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 486 | |
| 487 | def gl_srcs(os_conditions): |
Mike Klein | 299ea7b | 2019-03-27 13:53:08 -0500 | [diff] [blame] | 488 | return skia_select( |
| 489 | os_conditions, |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 490 | [ |
| 491 | skia_glob(GL_SRCS_UNIX), |
| 492 | skia_glob(GL_SRCS_ANDROID), |
| 493 | skia_glob(GL_SRCS_IOS), |
Nathaniel Nifong | c6ce3d4 | 2020-03-02 12:10:02 -0500 | [diff] [blame] | 494 | skia_glob(GL_SRCS_WASM), |
Mike Klein | 54c0d06 | 2020-06-02 09:13:01 -0500 | [diff] [blame] | 495 | skia_glob(GL_SRCS_FUCHSIA), |
Andy Weiss | be1829f | 2020-07-01 11:08:16 -0700 | [diff] [blame] | 496 | skia_glob(GL_SRCS_MACOS), |
Mike Klein | 299ea7b | 2019-03-27 13:53:08 -0500 | [diff] [blame] | 497 | ], |
| 498 | ) |
Mike Klein | 7f95c29 | 2019-03-27 11:16:25 -0500 | [diff] [blame] | 499 | |
| 500 | def skia_srcs(os_conditions): |
| 501 | return base_srcs() + ports_srcs(os_conditions) + gl_srcs(os_conditions) |
| 502 | |
Hal Canary | 6ad6c50 | 2019-12-11 14:09:16 -0500 | [diff] [blame] | 503 | def metal_objc_srcs(): |
| 504 | return native.glob( |
| 505 | [ |
| 506 | "include/**/*.h", |
| 507 | "src/**/*.h", |
| 508 | "src/gpu/mtl/**/*.mm", |
| 509 | "third_party/**/*.h", |
Ben Wagner | 8718be9 | 2019-12-11 20:11:30 -0500 | [diff] [blame] | 510 | ], |
Hal Canary | 6ad6c50 | 2019-12-11 14:09:16 -0500 | [diff] [blame] | 511 | ) + [ |
| 512 | "src/image/SkSurface_GpuMtl.mm", |
| 513 | ] |
| 514 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 515 | ################################################################################ |
| 516 | ## INCLUDES |
| 517 | ################################################################################ |
benjaminwagner | 39e7aa4 | 2015-11-18 13:26:10 -0800 | [diff] [blame] | 518 | |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 519 | # Includes needed by Skia implementation. Not public includes. |
| 520 | INCLUDES = [ |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 521 | ".", |
benjaminwagner | fa7e1a0 | 2015-11-13 12:27:08 -0800 | [diff] [blame] | 522 | "include/android", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 523 | "include/c", |
| 524 | "include/codec", |
| 525 | "include/config", |
| 526 | "include/core", |
Ben Wagner | cc62b5d | 2018-09-20 16:26:31 -0400 | [diff] [blame] | 527 | "include/docs", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 528 | "include/effects", |
Matt Sarett | d7093c2 | 2017-05-09 15:28:32 -0400 | [diff] [blame] | 529 | "include/encode", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 530 | "include/gpu", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 531 | "include/pathops", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 532 | "include/ports", |
| 533 | "include/private", |
Brian Osman | ea236bf | 2019-04-29 10:28:22 -0400 | [diff] [blame] | 534 | "include/third_party/skcms", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 535 | "include/utils", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 536 | "include/utils/mac", |
benjaminwagner | fa7e1a0 | 2015-11-13 12:27:08 -0800 | [diff] [blame] | 537 | "src/codec", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 538 | "src/core", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 539 | "src/gpu", |
| 540 | "src/image", |
Mike Klein | 135a1b1 | 2017-08-15 13:13:59 -0400 | [diff] [blame] | 541 | "src/images", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 542 | "src/lazy", |
| 543 | "src/opts", |
| 544 | "src/pdf", |
Ben Wagner | 4ccf49c | 2018-03-26 15:46:40 -0400 | [diff] [blame] | 545 | "src/ports", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 546 | "src/sfnt", |
Florin Malita | 5edba45 | 2017-05-30 16:39:47 -0400 | [diff] [blame] | 547 | "src/shaders", |
Michael Ludwig | 4f94ef6 | 2018-09-12 15:22:16 -0400 | [diff] [blame] | 548 | "src/shaders/gradients", |
benjaminwagner | c896251 | 2016-09-30 12:06:27 -0700 | [diff] [blame] | 549 | "src/sksl", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 550 | "src/utils", |
Ben Wagner | d0a3b06 | 2016-10-24 14:11:12 -0400 | [diff] [blame] | 551 | "third_party/gif", |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 552 | ] |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 553 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 554 | ################################################################################ |
| 555 | ## DM_SRCS |
| 556 | ################################################################################ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 557 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 558 | DM_SRCS_ALL = struct( |
| 559 | include = [ |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 560 | "dm/*.cpp", |
| 561 | "dm/*.h", |
Mike Klein | 60900b5 | 2018-09-21 11:19:45 -0400 | [diff] [blame] | 562 | "experimental/pipe/*.cpp", |
| 563 | "experimental/pipe/*.h", |
Ben Wagner | 4ccf49c | 2018-03-26 15:46:40 -0400 | [diff] [blame] | 564 | "experimental/svg/model/*.cpp", |
| 565 | "experimental/svg/model/*.h", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 566 | "gm/*.cpp", |
| 567 | "gm/*.h", |
Tyler Denniston | 45f94f8 | 2020-02-04 16:09:08 -0500 | [diff] [blame] | 568 | "gm/verifiers/*.cpp", |
| 569 | "gm/verifiers/*.h", |
Nathaniel Nifong | 0426c38 | 2019-06-21 11:09:19 -0400 | [diff] [blame] | 570 | "src/utils/SkMultiPictureDocument.cpp", |
Ben Wagner | 4ccf49c | 2018-03-26 15:46:40 -0400 | [diff] [blame] | 571 | "src/xml/*.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 572 | "tests/*.cpp", |
| 573 | "tests/*.h", |
Jim Van Verth | 8a9a371 | 2019-05-31 10:49:12 -0400 | [diff] [blame] | 574 | "tools/AutoreleasePool.h", |
benjaminwagner | 99fb670 | 2016-07-28 15:12:21 -0700 | [diff] [blame] | 575 | "tools/BigPathBench.inc", |
Hal Canary | e574f1e | 2019-07-15 14:01:37 -0400 | [diff] [blame] | 576 | "tools/BinaryAsset.h", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 577 | "tools/CrashHandler.cpp", |
| 578 | "tools/CrashHandler.h", |
Robert Phillips | e61ba84 | 2018-05-30 08:27:26 -0400 | [diff] [blame] | 579 | "tools/DDLPromiseImageHelper.cpp", |
| 580 | "tools/DDLPromiseImageHelper.h", |
| 581 | "tools/DDLTileHelper.cpp", |
| 582 | "tools/DDLTileHelper.h", |
Mike Klein | b61e25b | 2019-03-27 10:51:28 -0500 | [diff] [blame] | 583 | "tools/HashAndEncode.cpp", |
| 584 | "tools/HashAndEncode.h", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 585 | "tools/ProcStats.cpp", |
| 586 | "tools/ProcStats.h", |
Ben Wagner | fb4487b | 2018-03-26 17:48:09 -0400 | [diff] [blame] | 587 | "tools/Registry.h", |
| 588 | "tools/ResourceFactory.h", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 589 | "tools/Resources.cpp", |
| 590 | "tools/Resources.h", |
Hal Canary | e574f1e | 2019-07-15 14:01:37 -0400 | [diff] [blame] | 591 | "tools/SkMetaData.cpp", |
| 592 | "tools/SkMetaData.h", |
| 593 | "tools/SkSharingProc.cpp", |
Mike Klein | a4bb020 | 2019-06-04 13:40:15 -0500 | [diff] [blame] | 594 | "tools/SkVMBuilders.cpp", |
| 595 | "tools/SkVMBuilders.h", |
Hal Canary | e574f1e | 2019-07-15 14:01:37 -0400 | [diff] [blame] | 596 | "tools/ToolUtils.cpp", |
| 597 | "tools/ToolUtils.h", |
benjaminwagner | 99fb670 | 2016-07-28 15:12:21 -0700 | [diff] [blame] | 598 | "tools/UrlDataManager.cpp", |
| 599 | "tools/UrlDataManager.h", |
| 600 | "tools/debugger/*.cpp", |
| 601 | "tools/debugger/*.h", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 602 | "tools/flags/*.cpp", |
| 603 | "tools/flags/*.h", |
Mike Klein | 0cffcbf9 | 2019-03-20 11:08:46 -0500 | [diff] [blame] | 604 | "tools/fonts/RandomScalerContext.cpp", |
| 605 | "tools/fonts/RandomScalerContext.h", |
| 606 | "tools/fonts/TestFontMgr.cpp", |
| 607 | "tools/fonts/TestFontMgr.h", |
| 608 | "tools/fonts/TestSVGTypeface.cpp", |
| 609 | "tools/fonts/TestSVGTypeface.h", |
| 610 | "tools/fonts/TestTypeface.cpp", |
| 611 | "tools/fonts/TestTypeface.h", |
Mike Klein | ea3f014 | 2019-03-20 11:12:10 -0500 | [diff] [blame] | 612 | "tools/fonts/ToolUtilsFont.cpp", |
Hal Canary | e574f1e | 2019-07-15 14:01:37 -0400 | [diff] [blame] | 613 | "tools/fonts/test_font_index.inc", |
Ben Wagner | 483c772 | 2018-02-20 17:06:07 -0500 | [diff] [blame] | 614 | "tools/fonts/test_font_monospace.inc", |
| 615 | "tools/fonts/test_font_sans_serif.inc", |
| 616 | "tools/fonts/test_font_serif.inc", |
benjaminwagner | 38d68bc | 2016-04-01 05:00:51 -0700 | [diff] [blame] | 617 | "tools/gpu/**/*.cpp", |
| 618 | "tools/gpu/**/*.h", |
Hal Canary | e574f1e | 2019-07-15 14:01:37 -0400 | [diff] [blame] | 619 | "tools/ios_utils.h", |
mtklein | e1fc452 | 2016-02-09 12:32:52 -0800 | [diff] [blame] | 620 | "tools/random_parse_path.cpp", |
| 621 | "tools/random_parse_path.h", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 622 | "tools/timer/*.cpp", |
| 623 | "tools/timer/*.h", |
Brian Salomon | 40d0119 | 2017-07-19 13:05:11 -0400 | [diff] [blame] | 624 | "tools/trace/*.cpp", |
| 625 | "tools/trace/*.h", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 626 | ], |
| 627 | exclude = [ |
Mike Klein | db53760 | 2018-06-01 11:01:11 -0400 | [diff] [blame] | 628 | "gm/cgms.cpp", |
Mike Klein | c4abade | 2019-08-09 10:11:35 -0400 | [diff] [blame] | 629 | "gm/fiddle.cpp", |
Mike Reed | 7bf160e | 2019-05-17 16:50:51 -0400 | [diff] [blame] | 630 | "gm/video_decoder.cpp", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 631 | "tests/FontMgrAndroidParserTest.cpp", # Android-only. |
Ben Wagner | 37a06c0 | 2018-06-22 21:11:00 +0000 | [diff] [blame] | 632 | "tests/FontMgrFontConfigTest.cpp", # FontConfig-only. |
Julia Lavrova | f0ade8a | 2019-11-08 12:58:57 -0500 | [diff] [blame] | 633 | "tests/SkParagraphTest.cpp", # Skipping tests for now. |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 634 | "tests/skia_test.cpp", # Old main. |
Jim Van Verth | 03b8ab2 | 2020-02-24 11:36:15 -0500 | [diff] [blame] | 635 | "tools/gpu/d3d/*", |
Stephen White | 985741a | 2019-07-18 11:43:45 -0400 | [diff] [blame] | 636 | "tools/gpu/dawn/*", |
benjaminwagner | 38d68bc | 2016-04-01 05:00:51 -0700 | [diff] [blame] | 637 | "tools/gpu/gl/angle/*", |
benjaminwagner | 38d68bc | 2016-04-01 05:00:51 -0700 | [diff] [blame] | 638 | "tools/gpu/gl/egl/*", |
| 639 | "tools/gpu/gl/glx/*", |
| 640 | "tools/gpu/gl/iOS/*", |
| 641 | "tools/gpu/gl/mac/*", |
benjaminwagner | 38d68bc | 2016-04-01 05:00:51 -0700 | [diff] [blame] | 642 | "tools/gpu/gl/win/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 643 | "tools/timer/SysTimer_mach.cpp", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 644 | "tools/timer/SysTimer_windows.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 645 | ], |
| 646 | ) |
| 647 | |
Ben Wagner | dea7428 | 2017-03-16 19:15:09 -0400 | [diff] [blame] | 648 | ################################################################################ |
| 649 | ## dm_srcs() |
| 650 | ################################################################################ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 651 | |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 652 | def dm_srcs(os_conditions): |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 653 | """Sources for the dm binary for the specified os.""" |
| 654 | return skia_glob(DM_SRCS_ALL) + skia_select( |
| 655 | os_conditions, |
| 656 | [ |
Ben Wagner | c5ee499 | 2019-03-25 15:58:31 -0400 | [diff] [blame] | 657 | ["tests/FontMgrFontConfigTest.cpp"], |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 658 | ["tests/FontMgrAndroidParserTest.cpp"], |
Mike Klein | 54c0d06 | 2020-06-02 09:13:01 -0500 | [diff] [blame] | 659 | [], # iOS |
| 660 | [], # WASM |
| 661 | [], # Fuchsia |
Andy Weiss | be1829f | 2020-07-01 11:08:16 -0700 | [diff] [blame] | 662 | [], # macOS |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 663 | ], |
| 664 | ) |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 665 | |
| 666 | ################################################################################ |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 667 | ## DM_ARGS |
| 668 | ################################################################################ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 669 | |
Ben Wagner | 59f9edb | 2016-11-28 15:30:37 -0500 | [diff] [blame] | 670 | def DM_ARGS(asan): |
Mike Klein | dd650c4 | 2018-11-08 14:26:02 -0500 | [diff] [blame] | 671 | source = ["gm", "image", "lottie"] |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 672 | |
| 673 | # TODO(benjaminwagner): f16, pic-8888, serialize-8888, and tiles_rt-8888 fail. |
| 674 | config = ["565", "8888", "pdf"] |
| 675 | match = ["~Codec_78329453"] |
| 676 | return (["--src"] + source + ["--config"] + config + ["--nonativeFonts"] + |
| 677 | ["--match"] + match) |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 678 | |
| 679 | ################################################################################ |
| 680 | ## COPTS |
| 681 | ################################################################################ |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 682 | |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 683 | def base_copts(os_conditions): |
Mike Klein | 54c0d06 | 2020-06-02 09:13:01 -0500 | [diff] [blame] | 684 | return ["-Wno-implicit-fallthrough"] + skia_select( |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 685 | os_conditions, |
| 686 | [ |
| 687 | # UNIX |
| 688 | [ |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 689 | # Internal use of deprecated methods. :( |
| 690 | "-Wno-deprecated-declarations", |
| 691 | # TODO(kjlubick) |
| 692 | "-Wno-self-assign", # Spurious warning in tests/PathOpsDVectorTest.cpp? |
| 693 | ], |
| 694 | # ANDROID |
| 695 | [ |
| 696 | # 'GrResourceCache' declared with greater visibility than the |
| 697 | # type of its field 'GrResourceCache::fPurgeableQueue'... bogus. |
| 698 | "-Wno-error=attributes", |
| 699 | ], |
Mike Klein | 54c0d06 | 2020-06-02 09:13:01 -0500 | [diff] [blame] | 700 | [], # iOS |
| 701 | [], # wasm |
| 702 | [], # Fuchsia |
Andy Weiss | be1829f | 2020-07-01 11:08:16 -0700 | [diff] [blame] | 703 | [], # macOS |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 704 | ], |
| 705 | ) |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 706 | |
| 707 | ################################################################################ |
| 708 | ## DEFINES |
| 709 | ################################################################################ |
| 710 | |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 711 | def base_defines(os_conditions): |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 712 | return [ |
| 713 | # Chrome DEFINES. |
| 714 | "SK_USE_FREETYPE_EMBOLDEN", |
| 715 | # Turn on a few Google3-specific build fixes. |
| 716 | "SK_BUILD_FOR_GOOGLE3", |
| 717 | # Required for building dm. |
| 718 | "GR_TEST_UTILS", |
Robert Phillips | 6db27c2 | 2019-05-01 10:43:56 -0400 | [diff] [blame] | 719 | # Google3 probably doesn't want this feature yet |
| 720 | "SK_DISABLE_REDUCE_OPLIST_SPLITTING", |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 721 | # Staging flags for API changes |
| 722 | # Should remove after we update golden images |
| 723 | "SK_WEBP_ENCODER_USE_DEFAULT_METHOD", |
| 724 | # Experiment to diagnose image diffs in Google3 |
Mike Klein | 0ade68c | 2018-10-24 06:52:35 -0400 | [diff] [blame] | 725 | "SK_DISABLE_LOWP_RASTER_PIPELINE", |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 726 | # JPEG is in codec_limited |
Leon Scroggins III | a77f30c | 2020-03-09 14:23:30 -0400 | [diff] [blame] | 727 | "SK_CODEC_DECODES_JPEG", |
| 728 | "SK_ENCODE_JPEG", |
Brian Osman | 489cf88 | 2019-07-09 10:48:28 -0400 | [diff] [blame] | 729 | # Needed for some tests in dm |
| 730 | "SK_ENABLE_SKSL_INTERPRETER", |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 731 | ] + skia_select( |
| 732 | os_conditions, |
| 733 | [ |
| 734 | # UNIX |
| 735 | [ |
| 736 | "PNG_SKIP_SETJMP_CHECK", |
| 737 | "SK_BUILD_FOR_UNIX", |
Leon Scroggins III | a77f30c | 2020-03-09 14:23:30 -0400 | [diff] [blame] | 738 | "SK_CODEC_DECODES_PNG", |
| 739 | "SK_CODEC_DECODES_WEBP", |
| 740 | "SK_ENCODE_PNG", |
| 741 | "SK_ENCODE_WEBP", |
Mike Klein | f0a5369 | 2019-04-24 11:42:40 -0500 | [diff] [blame] | 742 | "SK_R32_SHIFT=16", |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 743 | ], |
| 744 | # ANDROID |
| 745 | [ |
| 746 | "SK_BUILD_FOR_ANDROID", |
Leon Scroggins III | a77f30c | 2020-03-09 14:23:30 -0400 | [diff] [blame] | 747 | "SK_CODEC_DECODES_PNG", |
| 748 | "SK_CODEC_DECODES_WEBP", |
| 749 | "SK_ENCODE_PNG", |
| 750 | "SK_ENCODE_WEBP", |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 751 | ], |
| 752 | # IOS |
| 753 | [ |
| 754 | "SK_BUILD_FOR_IOS", |
| 755 | "SK_BUILD_NO_OPTS", |
| 756 | "SKNX_NO_SIMD", |
Mike Klein | dbbf753 | 2020-03-06 12:04:33 -0600 | [diff] [blame] | 757 | "SK_NO_COMMAND_BUFFER", # Test tools that use thread_local. |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 758 | ], |
Nathaniel Nifong | c6ce3d4 | 2020-03-02 12:10:02 -0500 | [diff] [blame] | 759 | # WASM |
| 760 | [ |
| 761 | "SK_DISABLE_LEGACY_SHADERCONTEXT", |
| 762 | "SK_DISABLE_TRACING", |
| 763 | "GR_GL_CHECK_ALLOC_WITH_GET_ERROR=0", |
| 764 | "SK_SUPPORT_GPU=1", |
| 765 | "SK_DISABLE_AAA", |
| 766 | "SK_DISABLE_EFFECT_DESERIALIZATION", |
| 767 | "SK_FORCE_8_BYTE_ALIGNMENT", |
| 768 | "SKNX_NO_SIMD", |
| 769 | ], |
Mike Klein | 54c0d06 | 2020-06-02 09:13:01 -0500 | [diff] [blame] | 770 | # FUCHSIA |
| 771 | [ |
| 772 | "SK_BUILD_FOR_UNIX", |
| 773 | "SK_CODEC_DECODES_PNG", |
| 774 | "SK_CODEC_DECODES_WEBP", |
| 775 | "SK_ENCODE_PNG", |
| 776 | "SK_ENCODE_WEBP", |
| 777 | "SK_R32_SHIFT=16", |
| 778 | ], |
Andy Weiss | be1829f | 2020-07-01 11:08:16 -0700 | [diff] [blame] | 779 | # MACOS |
| 780 | [ |
| 781 | "SK_BUILD_FOR_MAC", |
Andy Weiss | 6438194 | 2020-07-01 11:59:28 -0700 | [diff] [blame] | 782 | "SK_BUILD_NO_OPTS", |
Andy Weiss | be1829f | 2020-07-01 11:08:16 -0700 | [diff] [blame] | 783 | ], |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 784 | ], |
| 785 | ) |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 786 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 787 | ################################################################################ |
| 788 | ## LINKOPTS |
| 789 | ################################################################################ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 790 | |
Ben Wagner | 9eca72b | 2017-10-17 10:57:34 -0400 | [diff] [blame] | 791 | def base_linkopts(os_conditions): |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 792 | return [ |
| 793 | "-ldl", |
| 794 | ] + skia_select( |
| 795 | os_conditions, |
| 796 | [ |
Mike Klein | 54c0d06 | 2020-06-02 09:13:01 -0500 | [diff] [blame] | 797 | [], # Unix |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 798 | # ANDROID |
| 799 | [ |
| 800 | "-lEGL", |
Ben Wagner | 773151f | 2018-08-17 09:28:53 -0400 | [diff] [blame] | 801 | "-lGLESv2", |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 802 | ], |
| 803 | # IOS |
| 804 | [ |
| 805 | "-framework CoreFoundation", |
| 806 | "-framework CoreGraphics", |
| 807 | "-framework CoreText", |
| 808 | "-framework ImageIO", |
| 809 | "-framework MobileCoreServices", |
| 810 | ], |
Mike Klein | 54c0d06 | 2020-06-02 09:13:01 -0500 | [diff] [blame] | 811 | [], # wasm |
| 812 | [], # Fuchsia |
Andy Weiss | be1829f | 2020-07-01 11:08:16 -0700 | [diff] [blame] | 813 | # MACOS |
| 814 | [ |
| 815 | "-framework CoreFoundation", |
| 816 | "-framework CoreGraphics", |
| 817 | "-framework CoreText", |
| 818 | "-framework ImageIO", |
| 819 | "-framework ApplicationServices", |
| 820 | ], |
Ben Wagner | b303a42 | 2018-07-31 10:31:06 -0400 | [diff] [blame] | 821 | ], |
| 822 | ) |
Florin Malita | dcc9d06 | 2018-11-08 14:25:19 -0500 | [diff] [blame] | 823 | |
| 824 | ################################################################################ |
Florin Malita | e4e9551 | 2019-05-03 14:03:50 -0400 | [diff] [blame] | 825 | ## sksg_lib |
Florin Malita | dcc9d06 | 2018-11-08 14:25:19 -0500 | [diff] [blame] | 826 | ################################################################################ |
| 827 | |
Florin Malita | e4e9551 | 2019-05-03 14:03:50 -0400 | [diff] [blame] | 828 | def sksg_lib_hdrs(): |
| 829 | return native.glob(["modules/sksg/include/*.h"]) |
| 830 | |
| 831 | def sksg_lib_srcs(): |
Florin Malita | ccacfa0 | 2019-07-10 13:38:48 -0400 | [diff] [blame] | 832 | return native.glob([ |
| 833 | "modules/sksg/src/*.cpp", |
| 834 | "modules/sksg/src/*.h", |
| 835 | ]) |
Florin Malita | e4e9551 | 2019-05-03 14:03:50 -0400 | [diff] [blame] | 836 | |
| 837 | ################################################################################ |
Julia Lavrova | 5ec1b8f | 2019-06-10 11:10:17 -0400 | [diff] [blame] | 838 | ## skparagraph_lib |
| 839 | ################################################################################ |
| 840 | |
| 841 | def skparagraph_lib_hdrs(): |
| 842 | return native.glob(["modules/skparagraph/include/*.h"]) |
| 843 | |
| 844 | def skparagraph_lib_srcs(): |
| 845 | return native.glob(["modules/skparagraph/src/*.cpp"]) |
| 846 | |
| 847 | ################################################################################ |
Mike Reed | daf1945 | 2019-06-11 17:20:33 -0400 | [diff] [blame] | 848 | ## experimental xform |
| 849 | ################################################################################ |
| 850 | |
| 851 | def exp_xform_lib_hdrs(): |
| 852 | return native.glob(["experimental/xform/*.h"]) |
| 853 | |
| 854 | def exp_xform_lib_srcs(): |
| 855 | return native.glob(["experimental/xform/*.cpp"]) |
| 856 | |
| 857 | ################################################################################ |
Hal Canary | 484384b | 2019-12-17 10:50:26 -0500 | [diff] [blame] | 858 | ## skresources_lib |
| 859 | ################################################################################ |
| 860 | |
| 861 | def skresources_lib_hdrs(): |
| 862 | return ["modules/skresources/include/SkResources.h"] |
| 863 | |
| 864 | def skresources_lib_srcs(): |
| 865 | return ["modules/skresources/src/SkResources.cpp"] |
| 866 | |
| 867 | ################################################################################ |
Florin Malita | e4e9551 | 2019-05-03 14:03:50 -0400 | [diff] [blame] | 868 | ## skottie_lib |
| 869 | ################################################################################ |
| 870 | |
| 871 | def skottie_lib_hdrs(): |
Florin Malita | 1b1b657 | 2019-05-03 15:16:30 -0400 | [diff] [blame] | 872 | return native.glob(["modules/skottie/include/*.h"]) |
Florin Malita | e4e9551 | 2019-05-03 14:03:50 -0400 | [diff] [blame] | 873 | |
| 874 | def skottie_lib_srcs(): |
| 875 | return native.glob( |
| 876 | [ |
| 877 | "modules/skottie/src/*.cpp", |
| 878 | "modules/skottie/src/*.h", |
Florin Malita | 141ac68 | 2020-03-17 11:20:10 -0400 | [diff] [blame] | 879 | "modules/skottie/src/animator/*.cpp", |
| 880 | "modules/skottie/src/animator/*.h", |
Florin Malita | e47d8af | 2019-06-14 12:20:10 -0400 | [diff] [blame] | 881 | "modules/skottie/src/effects/*.cpp", |
| 882 | "modules/skottie/src/effects/*.h", |
Florin Malita | 45dc1f0 | 2019-07-01 13:57:43 -0400 | [diff] [blame] | 883 | "modules/skottie/src/layers/*.cpp", |
| 884 | "modules/skottie/src/layers/*.h", |
Florin Malita | cbf31d0 | 2020-01-22 14:22:21 -0500 | [diff] [blame] | 885 | "modules/skottie/src/layers/shapelayer/*.cpp", |
| 886 | "modules/skottie/src/layers/shapelayer/*.h", |
Florin Malita | ca449d5 | 2019-05-08 10:04:09 -0400 | [diff] [blame] | 887 | "modules/skottie/src/text/*.cpp", |
| 888 | "modules/skottie/src/text/*.h", |
Florin Malita | e4e9551 | 2019-05-03 14:03:50 -0400 | [diff] [blame] | 889 | ], |
| 890 | exclude = [ |
| 891 | "modules/skottie/src/SkottieTest.cpp", |
| 892 | "modules/skottie/src/SkottieTool.cpp", |
| 893 | ], |
| 894 | ) |
| 895 | |
| 896 | ################################################################################ |
Florin Malita | 044e8bc | 2020-06-23 10:26:56 -0400 | [diff] [blame] | 897 | ## skottie_utils |
| 898 | ################################################################################ |
| 899 | |
| 900 | SKOTTIE_UTILS_HDRS = [ |
| 901 | "modules/skottie/utils/SkottieUtils.h", |
| 902 | ] |
| 903 | |
| 904 | SKOTTIE_UTILS_SRCS = [ |
| 905 | "modules/skottie/utils/SkottieUtils.cpp", |
| 906 | ] |
| 907 | |
Florin Malita | 044e8bc | 2020-06-23 10:26:56 -0400 | [diff] [blame] | 908 | ################################################################################ |
Florin Malita | e4e9551 | 2019-05-03 14:03:50 -0400 | [diff] [blame] | 909 | ## skottie_shaper |
| 910 | ################################################################################ |
| 911 | |
| 912 | SKOTTIE_SHAPER_HDRS = [ |
Florin Malita | ca449d5 | 2019-05-08 10:04:09 -0400 | [diff] [blame] | 913 | "modules/skottie/src/text/SkottieShaper.h", |
Florin Malita | dcc9d06 | 2018-11-08 14:25:19 -0500 | [diff] [blame] | 914 | ] |
| 915 | |
Florin Malita | e4e9551 | 2019-05-03 14:03:50 -0400 | [diff] [blame] | 916 | SKOTTIE_SHAPER_SRCS = [ |
Florin Malita | ca449d5 | 2019-05-08 10:04:09 -0400 | [diff] [blame] | 917 | "modules/skottie/src/text/SkottieShaper.cpp", |
Florin Malita | e4e9551 | 2019-05-03 14:03:50 -0400 | [diff] [blame] | 918 | ] |
| 919 | |
| 920 | ################################################################################ |
| 921 | ## skottie_tool |
| 922 | ################################################################################ |
| 923 | |
Florin Malita | dcc9d06 | 2018-11-08 14:25:19 -0500 | [diff] [blame] | 924 | SKOTTIE_TOOL_SRCS = [ |
| 925 | "modules/skottie/src/SkottieTool.cpp", |
Brian Osman | 849f4d6 | 2019-11-26 08:58:26 -0500 | [diff] [blame] | 926 | "modules/skresources/src/SkResources.cpp", |
| 927 | "modules/skresources/include/SkResources.h", |
Florin Malita | dcc9d06 | 2018-11-08 14:25:19 -0500 | [diff] [blame] | 928 | # TODO(benjaminwagner): Add "flags" target. |
Mike Klein | 88544fb | 2019-03-20 10:50:33 -0500 | [diff] [blame] | 929 | "tools/flags/CommandLineFlags.cpp", |
| 930 | "tools/flags/CommandLineFlags.h", |
Florin Malita | dcc9d06 | 2018-11-08 14:25:19 -0500 | [diff] [blame] | 931 | ] |
Florin Malita | 6d415bc | 2019-01-17 16:42:15 -0500 | [diff] [blame] | 932 | |
| 933 | ################################################################################ |
| 934 | ## SkShaper |
| 935 | ################################################################################ |
| 936 | |
Florin Malita | 226ba98 | 2019-01-21 11:55:51 -0500 | [diff] [blame] | 937 | SKSHAPER_HARFBUZZ_SRCS = [ |
Florin Malita | 6d415bc | 2019-01-17 16:42:15 -0500 | [diff] [blame] | 938 | "modules/skshaper/include/SkShaper.h", |
| 939 | "modules/skshaper/src/SkShaper.cpp", |
| 940 | "modules/skshaper/src/SkShaper_harfbuzz.cpp", |
Hal Canary | 30c9eda | 2019-02-22 15:23:45 -0500 | [diff] [blame] | 941 | "modules/skshaper/src/SkShaper_primitive.cpp", |
Julia Lavrova | 90787fe | 2020-07-20 17:32:03 +0000 | [diff] [blame] | 942 | "modules/skshaper/src/SkUnicode.h", |
| 943 | "modules/skshaper/src/SkUnicode_icu.cpp", |
Florin Malita | 6d415bc | 2019-01-17 16:42:15 -0500 | [diff] [blame] | 944 | ] |
Florin Malita | 226ba98 | 2019-01-21 11:55:51 -0500 | [diff] [blame] | 945 | |
| 946 | SKSHAPER_PRIMITIVE_SRCS = [ |
| 947 | "modules/skshaper/include/SkShaper.h", |
| 948 | "modules/skshaper/src/SkShaper.cpp", |
| 949 | "modules/skshaper/src/SkShaper_primitive.cpp", |
| 950 | ] |
Hal Canary | b56b554 | 2019-12-19 09:48:28 -0500 | [diff] [blame] | 951 | |
| 952 | ################################################################################ |
| 953 | ## skottie_ios_lib |
| 954 | ################################################################################ |
| 955 | |
| 956 | SKOTTIE_IOS_LIB_SRCS = [ |
Hal Canary | 118df7c | 2019-12-18 16:26:19 -0500 | [diff] [blame] | 957 | "tools/skottie_ios_app/SkiaContext.mm", |
| 958 | "tools/skottie_ios_app/SkiaUIContext.mm", |
| 959 | "tools/skottie_ios_app/SkiaViewController.mm", |
| 960 | "tools/skottie_ios_app/SkottieViewController.mm", |
Hal Canary | b56b554 | 2019-12-19 09:48:28 -0500 | [diff] [blame] | 961 | ] |
| 962 | |
| 963 | SKOTTIE_IOS_LIB_HDRS = [ |
Hal Canary | 118df7c | 2019-12-18 16:26:19 -0500 | [diff] [blame] | 964 | "tools/skottie_ios_app/SkiaContext.h", |
| 965 | "tools/skottie_ios_app/SkiaViewController.h", |
| 966 | "tools/skottie_ios_app/SkottieViewController.h", |
Hal Canary | b56b554 | 2019-12-19 09:48:28 -0500 | [diff] [blame] | 967 | ] |
Hal Canary | 76cc2c5 | 2020-01-07 12:39:13 -0500 | [diff] [blame] | 968 | |
| 969 | SKOTTIE_IOS_LIB_SDK_FRAMEWORKS = [ |
| 970 | "Foundation", |
| 971 | "UIKit", |
| 972 | ] |