Chromium Code Reviews| 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 # Platform-independent SRCS | 8 # Platform-independent SRCS |
| 9 SRCS = glob( | 9 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 "src/**/*.c", | |
| 15 | 14 |
| 16 # Third Party | 15 # Third Party |
| 17 "third_party/etc1/*.cpp", | 16 "third_party/etc1/*.cpp", |
| 18 "third_party/etc1/*.h", | 17 "third_party/etc1/*.h", |
| 19 "third_party/ktx/*.cpp", | 18 "third_party/ktx/*.cpp", |
| 20 "third_party/ktx/*.h", | 19 "third_party/ktx/*.h", |
| 21 ], | 20 ], |
| 22 exclude = [ | 21 exclude = [ |
| 23 # Exclude platform-dependent files. | 22 # Exclude platform-dependent files. |
| 24 "src/device/xps/*", # Windows-only. Move to ports? | 23 "src/device/xps/*", # Windows-only. Move to ports? |
| 25 "src/doc/*_XPS.cpp", # Windows-only. Move to ports? | 24 "src/doc/*_XPS.cpp", # Windows-only. Move to ports? |
| 25 "src/doc/SkDocument_PDF.cpp", # Doesn't compile on Android. | |
|
mtklein
2015/10/20 17:48:55
This is surprising. SkDocument_PDF should work fi
dogben
2015/10/20 22:21:03
There is an issue with sfntly. It seems to compile
| |
| 26 "src/gpu/gl/android/*", | 26 "src/gpu/gl/android/*", |
| 27 "src/gpu/gl/egl/*", | |
| 28 "src/gpu/gl/glx/*", | |
| 29 "src/gpu/gl/nacl/*", | |
| 27 "src/gpu/gl/iOS/*", | 30 "src/gpu/gl/iOS/*", |
| 28 "src/gpu/gl/mac/*", | 31 "src/gpu/gl/mac/*", |
| 29 "src/gpu/gl/win/*", | 32 "src/gpu/gl/win/*", |
| 30 "src/opts/**/*", | 33 "src/opts/**/*", |
| 34 "src/pdf/**/*", # Doesn't compile on Android. | |
| 31 "src/ports/**/*", | 35 "src/ports/**/*", |
| 32 "src/utils/android/**/*", | 36 "src/utils/android/**/*", |
| 33 "src/utils/mac/**/*", | 37 "src/utils/mac/**/*", |
| 38 "src/utils/SkThreadUtils_pthread_linux.cpp", # Linux-only. Move to port s? | |
|
mtklein
2015/10/20 17:48:55
Most of this SkThreadUtils stuff is pointless. I'
dogben
2015/10/20 22:21:03
Removed, modulo win.
| |
| 34 "src/utils/SkThreadUtils_pthread_mach.cpp", # Mac-only. Move to ports? | 39 "src/utils/SkThreadUtils_pthread_mach.cpp", # Mac-only. Move to ports? |
| 35 "src/utils/SkThreadUtils_pthread_other.cpp", # Non-Mac-non-Linux. Move to ports? | 40 "src/utils/SkThreadUtils_pthread_other.cpp", # Non-Mac-non-Linux. Move to ports? |
| 36 "src/utils/SkThreadUtils_win.cpp", # Windows-only. Move to ports? | 41 "src/utils/SkThreadUtils_win.cpp", # Windows-only. Move to ports? |
| 37 "src/utils/win/**/*", | 42 "src/utils/win/**/*", |
| 38 "src/views/sdl/*", | 43 "src/views/sdl/*", |
| 39 "src/views/win/*", | 44 "src/views/win/*", |
| 40 "src/views/unix/*", | 45 "src/views/unix/*", |
| 41 | 46 |
| 42 # Exclude multiple definitions. | 47 # Exclude multiple definitions. |
| 43 # TODO(mtklein): Move to opts? | 48 # TODO(mtklein): Move to opts? |
| 44 "src/doc/SkDocument_PDF_None.cpp", # We use SkDocument_PDF.cpp. | 49 "src/doc/SkDocument_PDF_None.cpp", # We use SkDocument_PDF.cpp. |
| 50 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", | |
|
mtklein
2015/10/20 17:48:55
Why resort g above f?
dogben
2015/10/20 22:21:03
Cuz I ain't no gud at them their alfabits.
| |
| 51 "src/gpu/gl/GrGLDefaultInterface_native.cpp", | |
| 52 "src/gpu/gl/GrGLDefaultInterface_none.cpp", | |
| 45 "src/fonts/*fontconfig*", | 53 "src/fonts/*fontconfig*", |
| 46 "src/gpu/gl/egl/*", # Conflicts with gpu/gl/glx. | |
| 47 "src/gpu/gl/nacl/*", # Conflicts with gpu/gl/glx. | |
| 48 "src/gpu/gl/GrGLDefaultInterface_none.cpp", # Conflicts with src/gpu/gl /GrGLDefaultInterface_native.cpp | |
| 49 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", # Conflicts with src/g pu/gl/glx/GrGLCreateNativeInterface_glx.cpp | |
| 50 | 54 |
| 51 # Exclude files that don't compile with the current DEFINES. | 55 # Exclude files that don't compile with the current DEFINES. |
| 52 "src/gpu/gl/angle/*", # Requires SK_ANGLE define. | 56 "src/gpu/gl/angle/*", # Requires SK_ANGLE define. |
| 53 "src/gpu/gl/command_buffer/*", # unknown type name 'HMODULE' | 57 "src/gpu/gl/command_buffer/*", # unknown type name 'HMODULE' |
| 54 "src/gpu/gl/mesa/*", # Requires SK_MESA define. | 58 "src/gpu/gl/mesa/*", # Requires SK_MESA define. |
| 55 "src/svg/parser/*", # Missing SkSVG.h. | 59 "src/svg/parser/*", # Missing SkSVG.h. |
| 56 | 60 |
| 57 # Dependency on files outside src. | 61 # Dependency on files outside src. |
| 58 "src/svg/skp2svg.cpp", # Depends on tools/LazyDecodeBitmap.h. | 62 "src/svg/skp2svg.cpp", # Depends on tools/LazyDecodeBitmap.h. |
| 59 | 63 |
| 60 # Not used. | 64 # Not used. |
| 61 "src/animator/**/*", | 65 "src/animator/**/*", |
| 62 "src/views/**/*", | 66 "src/views/**/*", |
| 63 "src/xml/SkBML_Verbs.h", | 67 "src/xml/SkBML_Verbs.h", |
| 64 "src/xml/SkBML_XMLParser.cpp", | 68 "src/xml/SkBML_XMLParser.cpp", |
| 65 "src/xml/SkXMLPullParser.cpp", | 69 "src/xml/SkXMLPullParser.cpp", |
| 66 ], | 70 ], |
| 67 ) | 71 ) |
| 68 | 72 |
| 69 # Platform-dependent SRCS for google3-default platform. | 73 # Platform-dependent SRCS for google3-default platform. |
| 70 PLATFORM_SRCS = glob( | 74 SRCS_UNIX = glob( |
| 71 [ | 75 [ |
| 76 "src/doc/SkDocument_PDF.cpp", # Doesn't compile on Android. | |
| 77 "src/gpu/gl/GrGLDefaultInterface_native.cpp", | |
| 78 "src/gpu/gl/glx/**/*.cpp", | |
| 79 "src/gpu/gl/glx/**/*.h", | |
| 72 "src/opts/**/*.cpp", | 80 "src/opts/**/*.cpp", |
| 73 "src/opts/**/*.h", | 81 "src/opts/**/*.h", |
| 82 "src/pdf/**/*.cpp", # Doesn't compile on Android. | |
| 83 "src/pdf/**/*.h", # Doesn't compile on Android. | |
| 74 "src/ports/**/*.cpp", | 84 "src/ports/**/*.cpp", |
| 75 "src/ports/**/*.h", | 85 "src/ports/**/*.h", |
| 86 "src/utils/SkThreadUtils_pthread_linux.cpp", | |
| 76 ], | 87 ], |
| 77 exclude = [ | 88 exclude = [ |
| 78 "src/opts/*arm*", | 89 "src/opts/*arm*", |
| 79 "src/opts/*mips*", | 90 "src/opts/*mips*", |
| 80 "src/opts/*NEON*", | 91 "src/opts/*NEON*", |
| 81 "src/opts/*neon*", | 92 "src/opts/*neon*", |
| 93 # Included in :opts_ssse3 library. | |
| 82 "src/opts/*SSSE3*", | 94 "src/opts/*SSSE3*", |
| 83 "src/opts/*ssse3*", | 95 "src/opts/*ssse3*", |
| 96 # Included in :opts_sse4 library. | |
| 84 "src/opts/*SSE4*", | 97 "src/opts/*SSE4*", |
| 85 "src/opts/*sse4*", | 98 "src/opts/*sse4*", |
| 99 "src/opts/SkBitmapProcState_opts_none.cpp", | |
| 86 "src/opts/SkBlitMask_opts_none.cpp", | 100 "src/opts/SkBlitMask_opts_none.cpp", |
| 87 "src/opts/SkBitmapProcState_opts_none.cpp", | |
| 88 "src/opts/SkBlitRow_opts_none.cpp", | 101 "src/opts/SkBlitRow_opts_none.cpp", |
| 89 "src/ports/*android*", | 102 "src/ports/*android*", |
| 90 "src/ports/*chromium*", | 103 "src/ports/*chromium*", |
| 91 "src/ports/*CG*", | 104 "src/ports/*CG*", |
| 92 "src/ports/*fontconfig*", | 105 "src/ports/*fontconfig*", |
| 93 "src/ports/*FontConfig*", | 106 "src/ports/*FontConfig*", |
| 94 "src/ports/*mac*", | 107 "src/ports/*mac*", |
| 95 "src/ports/*mozalloc*", | 108 "src/ports/*mozalloc*", |
| 96 "src/ports/*nacl*", | 109 "src/ports/*nacl*", |
| 97 "src/ports/*win*", | 110 "src/ports/*win*", |
| 98 "src/ports/SkFontMgr_custom_embedded_factory.cpp", | 111 "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
| 99 "src/ports/SkFontMgr_empty_factory.cpp", | 112 "src/ports/SkFontMgr_empty_factory.cpp", |
| 100 "src/ports/SkImageDecoder_WIC.cpp", | 113 "src/ports/SkImageDecoder_WIC.cpp", |
| 101 "src/ports/SkImageDecoder_empty.cpp", | 114 "src/ports/SkImageDecoder_empty.cpp", |
| 102 "src/ports/SkImageGenerator_none.cpp", | 115 "src/ports/SkImageGenerator_none.cpp", |
| 103 "src/ports/SkTLS_none.cpp", | 116 "src/ports/SkTLS_none.cpp", |
| 104 ], | 117 ], |
| 105 ) | 118 ) |
| 106 | 119 |
| 120 # Platform-dependent SRCS for google3-default Android. | |
| 121 SRCS_ANDROID = glob( | |
| 122 [ | |
| 123 "src/doc/SkDocument_PDF_None.cpp", | |
| 124 # TODO(benjaminwagner): Figure out how to compile with EGL. | |
| 125 "src/gpu/gl/GrGLDefaultInterface_none.cpp", | |
| 126 "src/gpu/gl/nacl/SkCreatePlatformGLContext_nacl.cpp", | |
| 127 "src/opts/**/*.cpp", | |
| 128 "src/opts/**/*.h", | |
| 129 "src/ports/**/*.cpp", | |
| 130 "src/ports/**/*.h", | |
| 131 "src/utils/SkThreadUtils_pthread_other.cpp", # Non-Mac-non-Linux. Move to ports? | |
| 132 ], | |
| 133 exclude = [ | |
| 134 # Included in :opts_arm library. | |
| 135 "src/opts/*arm*", | |
| 136 "src/opts/*mips*", | |
| 137 # Included in :opts_neon library. | |
| 138 "src/opts/*NEON*", | |
| 139 "src/opts/*neon*", | |
| 140 "src/opts/*SSE2*", | |
| 141 "src/opts/*SSSE3*", | |
| 142 "src/opts/*ssse3*", | |
| 143 "src/opts/*SSE4*", | |
| 144 "src/opts/*sse4*", | |
| 145 "src/opts/*x86*", | |
| 146 "src/opts/SkBitmapProcState_opts_none.cpp", | |
| 147 "src/opts/SkBlitMask_opts_none.cpp", | |
| 148 "src/opts/SkBlitRow_opts_none.cpp", | |
| 149 "src/ports/*chromium*", | |
| 150 "src/ports/*CG*", | |
| 151 "src/ports/*fontconfig*", | |
| 152 "src/ports/*FontConfig*", | |
| 153 "src/ports/*mac*", | |
| 154 "src/ports/*mozalloc*", | |
| 155 "src/ports/*nacl*", | |
| 156 "src/ports/*win*", | |
| 157 "src/ports/SkDebug_stdio.cpp", | |
| 158 "src/ports/SkFontMgr_custom_directory_factory.cpp", | |
| 159 "src/ports/SkFontMgr_custom_embedded_factory.cpp", | |
| 160 "src/ports/SkFontMgr_empty_factory.cpp", | |
| 161 "src/ports/SkImageDecoder_WIC.cpp", | |
| 162 "src/ports/SkImageDecoder_empty.cpp", | |
| 163 "src/ports/SkImageGenerator_none.cpp", | |
| 164 "src/ports/SkTLS_none.cpp", | |
| 165 ], | |
| 166 ) | |
| 167 | |
| 168 PLATFORM_SRCS = select({ | |
| 169 CONDITION_ANDROID: SRCS_ANDROID, | |
| 170 "//conditions:default": SRCS_UNIX, | |
| 171 }) | |
| 172 | |
| 107 SRCS_SSSE3 = glob( | 173 SRCS_SSSE3 = glob( |
| 108 [ | 174 [ |
| 109 "src/opts/*SSSE3*.cpp", | 175 "src/opts/*SSSE3*.cpp", |
| 110 "src/opts/*ssse3*.cpp", | 176 "src/opts/*ssse3*.cpp", |
| 111 ], | 177 ], |
| 112 ) | 178 ) |
| 113 | 179 |
| 114 SRCS_SSE4 = glob( | 180 SRCS_SSE4 = glob( |
| 115 [ | 181 [ |
| 116 "src/opts/*SSE4*.cpp", | 182 "src/opts/*SSE4*.cpp", |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 "src/image", | 220 "src/image", |
| 155 "src/lazy", | 221 "src/lazy", |
| 156 "src/opts", | 222 "src/opts", |
| 157 "src/pdf", | 223 "src/pdf", |
| 158 "src/sfnt", | 224 "src/sfnt", |
| 159 "src/utils", | 225 "src/utils", |
| 160 "third_party/etc1", | 226 "third_party/etc1", |
| 161 "third_party/ktx", | 227 "third_party/ktx", |
| 162 ] | 228 ] |
| 163 | 229 |
| 230 DEPS_UNIX = [ | |
| 231 ":opts_sse4", | |
| 232 ":opts_ssse3", | |
| 233 ] | |
| 234 | |
| 235 DEPS_ANDROID = [ | |
| 236 ":opts_arm", | |
| 237 ":opts_neon", | |
| 238 ] | |
| 239 | |
| 240 DEPS = select({ | |
| 241 CONDITION_ANDROID: DEPS_ANDROID + EXTERNAL_DEPS_ANDROID, | |
| 242 "//conditions:default": DEPS_UNIX + EXTERNAL_DEPS_UNIX, | |
| 243 }) | |
| 244 | |
| 245 # Platform-independent SRCS for DM. | |
| 164 DM_SRCS = glob( | 246 DM_SRCS = glob( |
| 165 [ | 247 [ |
| 166 "dm/*.cpp", | 248 "dm/*.cpp", |
| 167 "dm/*.h", | 249 "dm/*.h", |
| 168 "gm/*.c", | 250 "gm/*.c", |
| 169 "gm/*.cpp", | 251 "gm/*.cpp", |
| 170 "gm/*.h", | 252 "gm/*.h", |
| 171 "tests/*.cpp", | 253 "tests/*.cpp", |
| 172 "tests/*.h", | 254 "tests/*.h", |
| 173 "tools/CrashHandler.cpp", | 255 "tools/CrashHandler.cpp", |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 186 "tools/SkBitmapRegionCanvas.h", | 268 "tools/SkBitmapRegionCanvas.h", |
| 187 "tools/flags/*.cpp", | 269 "tools/flags/*.cpp", |
| 188 "tools/flags/*.h", | 270 "tools/flags/*.h", |
| 189 "tools/timer/*.cpp", | 271 "tools/timer/*.cpp", |
| 190 "tools/timer/*.h", | 272 "tools/timer/*.h", |
| 191 "tools/sk_tool_utils.cpp", | 273 "tools/sk_tool_utils.cpp", |
| 192 "tools/sk_tool_utils_font.cpp", | 274 "tools/sk_tool_utils_font.cpp", |
| 193 "tools/sk_tool_utils.h", | 275 "tools/sk_tool_utils.h", |
| 194 ], | 276 ], |
| 195 exclude = [ | 277 exclude = [ |
| 278 "dm/DMSrcSinkAndroid.cpp", # Android-only. | |
| 279 "tests/FontMgrAndroidParserTest.cpp", # Android-only. | |
| 280 "tests/PathOpsSkpClipTest.cpp", # Alternate main. | |
| 281 "tests/PDF*", # Dependencies don't compile on Android. | |
| 196 "tests/skia_test.cpp", # Old main. | 282 "tests/skia_test.cpp", # Old main. |
| 197 "tests/SkpSkGrTest.cpp", # Alternate main. | 283 "tests/SkpSkGrTest.cpp", # Alternate main. |
| 198 "tests/PathOpsSkpClipTest.cpp", # Alternate main. | 284 "tools/timer/SysTimer_mach.cpp", |
| 199 "tests/FontMgrAndroidParserTest.cpp", # Android-only. | |
| 200 "dm/DMSrcSinkAndroid.cpp", # Android-only. | |
| 201 "tools/timer/SysTimer_windows.cpp", | 285 "tools/timer/SysTimer_windows.cpp", |
| 202 "tools/timer/SysTimer_mach.cpp", | |
| 203 ], | 286 ], |
| 204 ) | 287 ) |
| 205 | 288 |
| 289 DM_SRCS_UNIX = glob( | |
| 290 [ | |
| 291 "tests/PDF*.cpp", | |
| 292 ], | |
| 293 ) | |
| 294 | |
| 295 DM_SRCS_ANDROID = glob( | |
| 296 [ | |
| 297 # Depends on Android HWUI library that is not available in google3. | |
| 298 #"dm/DMSrcSinkAndroid.cpp", | |
| 299 "tests/FontMgrAndroidParserTest.cpp", | |
| 300 ], | |
| 301 ) | |
| 302 | |
| 303 DM_PLATFORM_SRCS = select({ | |
| 304 CONDITION_ANDROID: DM_SRCS_ANDROID, | |
| 305 "//conditions:default": DM_SRCS_UNIX, | |
| 306 }) | |
| 307 | |
| 206 DM_INCLUDES = [ | 308 DM_INCLUDES = [ |
| 207 "gm", | 309 "gm", |
| 208 "src/codec", | 310 "src/codec", |
| 209 "src/effects", | 311 "src/effects", |
| 210 "src/fonts", | 312 "src/fonts", |
| 211 "src/pathops", | 313 "src/pathops", |
| 212 "src/pipe/utils", | 314 "src/pipe/utils", |
| 315 "src/ports", | |
| 213 "src/utils/debugger", | 316 "src/utils/debugger", |
| 214 "tests", | 317 "tests", |
| 215 "tools", | 318 "tools", |
| 216 "tools/flags", | 319 "tools/flags", |
| 217 "tools/timer", | 320 "tools/timer", |
| 218 ] | 321 ] |
| 219 | 322 |
| 220 COPTS = [ | 323 COPTS_ANDROID = [ |
| 324 ] | |
| 325 | |
| 326 COPTS_UNIX = [ | |
| 221 "-Wno-implicit-fallthrough", # Some intentional fallthrough. | 327 "-Wno-implicit-fallthrough", # Some intentional fallthrough. |
| 222 ] | 328 ] |
| 223 | 329 |
| 224 DEFINES = [ | 330 COPTS = select({ |
| 331 CONDITION_ANDROID: COPTS_ANDROID, | |
| 332 "//conditions:default": COPTS_UNIX, | |
| 333 }) | |
| 334 | |
| 335 DEFINES_ANDROID = [ | |
| 336 "SK_BUILD_FOR_ANDROID", | |
| 337 "SK_ARM_HAS_OPTIONAL_NEON", | |
|
mtklein
2015/10/20 17:48:55
Probably safe to go with SK_ARM_HAS_NEON. We inte
dogben
2015/10/20 22:21:03
So, SK_ARM_HAS_NEON enables this line in SkBlitter
| |
| 338 # TODO(benjaminwagner): Try to get png library updated? | |
| 339 "SK_PNG_NO_INDEX_SUPPORTED", | |
| 340 ] | |
| 341 | |
| 342 DEFINES_UNIX = [ | |
| 343 "SK_BUILD_FOR_UNIX", | |
| 344 "SK_SAMPLES_FOR_X", | |
| 345 ] | |
| 346 | |
| 347 DEFINES_ALL = [ | |
| 225 # It'd be nice for fastbuild, dbg -> SK_DEBUG, opt -> SK_RELEASE. | 348 # It'd be nice for fastbuild, dbg -> SK_DEBUG, opt -> SK_RELEASE. |
| 226 "SK_RELEASE", | 349 "SK_RELEASE", |
| 227 # Chrome DEFINES. | 350 # Chrome DEFINES. |
| 228 "SK_USE_FLOATBITS", | 351 "SK_USE_FLOATBITS", |
| 229 "SK_USE_FREETYPE_EMBOLDEN", | 352 "SK_USE_FREETYPE_EMBOLDEN", |
| 230 # Turn on a few Google3-specific build fixes. | 353 # Turn on a few Google3-specific build fixes. |
| 231 "GOOGLE3", | 354 "GOOGLE3", |
| 232 "SK_BUILD_FOR_UNIX", | |
| 233 "SK_SAMPLES_FOR_X", | |
| 234 ] | 355 ] |
| 235 | 356 |
| 236 LINKOPTS = ["-ldl"] | 357 DEFINES = select({ |
| 358 CONDITION_ANDROID: DEFINES_ANDROID, | |
| 359 "//conditions:default": DEFINES_UNIX, | |
| 360 }) + DEFINES_ALL | |
| 361 | |
| 362 LINKOPTS = select({ | |
| 363 CONDITION_ANDROID: [ | |
| 364 "-ldl", | |
| 365 "-lEGL", | |
| 366 ], | |
| 367 "//conditions:default": ["-ldl"], | |
| 368 }) | |
| 237 | 369 |
| 238 cc_library( | 370 cc_library( |
| 239 name = "opts_ssse3", | 371 name = "opts_ssse3", |
| 240 srcs = SRCS_SSSE3, | 372 srcs = SRCS_SSSE3, |
| 241 copts = COPTS + ["-mssse3"], | 373 copts = COPTS + ["-mssse3"], |
| 242 defines = DEFINES, | 374 defines = DEFINES, |
| 243 includes = INCLUDES, | 375 includes = INCLUDES, |
| 244 ) | 376 ) |
| 245 | 377 |
| 246 cc_library( | 378 cc_library( |
| 247 name = "opts_sse4", | 379 name = "opts_sse4", |
| 248 srcs = SRCS_SSE4, | 380 srcs = SRCS_SSE4, |
| 249 copts = COPTS + ["-msse4"], | 381 copts = COPTS + ["-msse4"], |
| 250 defines = DEFINES, | 382 defines = DEFINES, |
| 251 includes = INCLUDES, | 383 includes = INCLUDES, |
| 252 ) | 384 ) |
| 253 | 385 |
| 254 cc_library( | 386 cc_library( |
| 387 name = "opts_arm", | |
| 388 srcs = glob([ | |
| 389 "src/opts/*_opts_arm.cpp", | |
| 390 "src/opts/*_opts_arm.h", | |
| 391 ]), | |
| 392 # Some of these files use fp as a general register. | |
| 393 copts = COPTS + ["-fomit-frame-pointer"], | |
|
mtklein
2015/10/20 17:48:55
Try dropping this? I think this is no longer true
dogben
2015/10/20 22:21:03
Done.
| |
| 394 defines = DEFINES, | |
| 395 includes = INCLUDES, | |
| 396 ) | |
| 397 | |
| 398 cc_library( | |
| 399 name = "opts_neon", | |
| 400 srcs = glob([ | |
| 401 "src/opts/*neon*.cpp", | |
| 402 "src/opts/*neon*.h", | |
| 403 "src/opts/Sk4px_NEON.h", | |
| 404 ]), | |
| 405 copts = COPTS + ["-mfpu=neon"], | |
| 406 defines = DEFINES, | |
| 407 includes = INCLUDES, | |
| 408 ) | |
| 409 | |
| 410 cc_library( | |
| 255 name = "skia", | 411 name = "skia", |
| 256 srcs = SRCS + PLATFORM_SRCS, | 412 srcs = SRCS + PLATFORM_SRCS, |
| 257 hdrs = HDRS, | 413 hdrs = HDRS, |
| 258 copts = COPTS, | 414 copts = COPTS, |
| 259 defines = DEFINES, | 415 defines = DEFINES, |
| 260 includes = INCLUDES, | 416 includes = INCLUDES, |
| 261 linkopts = LINKOPTS, | 417 linkopts = LINKOPTS, |
| 262 visibility = [":skia_clients"], | 418 visibility = [":skia_clients"], |
| 263 deps = EXTERNAL_DEPS + [ | 419 deps = DEPS, |
| 264 ":opts_sse4", | |
| 265 ":opts_ssse3", | |
| 266 ], | |
| 267 ) | 420 ) |
| 268 | 421 |
| 269 cc_test( | 422 cc_test( |
| 270 name = "dm", | 423 name = "dm", |
| 271 size = "large", | 424 size = "large", |
| 272 srcs = DM_SRCS, | 425 srcs = DM_SRCS + DM_PLATFORM_SRCS, |
| 273 args = [ | 426 args = [ |
| 274 "--nogpu", | 427 "--nogpu", |
| 275 "--verbose", | 428 "--verbose", |
| 276 # TODO(mtklein): maybe investigate why these fail? | 429 # TODO(mtklein): maybe investigate why these fail? |
| 277 "--match ~FontMgr ~Gif ~Scalar ~Canvas ~Codec_stripes ~Stream ~skps", | 430 "--match ~FontMgr ~Gif ~Scalar ~Canvas ~Codec_stripes ~Stream ~skps", |
| 278 # TODO(benjaminwagner): dm can't find resources when running on TAP. | 431 # TODO(benjaminwagner): dm can't find resources when running on TAP. |
| 279 "--resourcePath %s/resources" % BASE_DIR, | 432 "--resourcePath %s/resources" % BASE_DIR, |
| 280 "--images %s/resources" % BASE_DIR, | 433 "--images %s/resources" % BASE_DIR, |
| 281 ], | 434 ], |
| 282 copts = COPTS, | 435 copts = COPTS, |
| 283 data = glob(["resources/*"]), | 436 data = glob(["resources/*"]), |
| 284 defines = DEFINES, | 437 defines = DEFINES, |
| 285 includes = DM_INCLUDES, | 438 includes = DM_INCLUDES, |
| 286 deps = DM_EXTERNAL_DEPS + [ | 439 deps = DM_EXTERNAL_DEPS + [ |
| 287 ":skia", | 440 ":skia", |
| 288 ], | 441 ], |
| 289 ) | 442 ) |
| OLD | NEW |