| 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 "google/*.cpp", | 12 "google/*.cpp", |
| 12 "src/c/*.cpp", | 13 "src/c/*.cpp", |
| 13 "src/core/*.cpp", | 14 "src/core/*.cpp", |
| 14 "src/device/*.cpp", | 15 "src/device/*.cpp", |
| 15 "src/doc/*.cpp", | 16 "src/doc/*.cpp", |
| 16 "src/effects/*.cpp", | 17 "src/effects/*.cpp", |
| 17 "src/effects/gradients/*.cpp", | 18 "src/effects/gradients/*.cpp", |
| 18 "src/image/*.cpp", | 19 "src/image/*.cpp", |
| 19 "src/images/*.cpp", | 20 "src/images/*.cpp", |
| 20 "src/lazy/*.cpp", | 21 "src/lazy/*.cpp", |
| 21 "src/pathops/*.cpp", | 22 "src/pathops/*.cpp", |
| 22 "src/pdf/*.cpp", | 23 "src/pdf/*.cpp", |
| 23 "src/pipe/*.cpp", | 24 "src/pipe/*.cpp", |
| 24 "src/sfnt/*.cpp", | 25 "src/sfnt/*.cpp", |
| 25 "src/utils/*.cpp", | 26 "src/utils/*.cpp", |
| 26 "src/gpu/*.cpp", | 27 "src/gpu/*.cpp", |
| 27 "src/gpu/effects/*.cpp", | 28 "src/gpu/effects/*.cpp", |
| 28 "src/gpu/gl/*.cpp", | 29 "src/gpu/gl/*.cpp", |
| 29 "src/gpu/gl/builders/*.cpp", | 30 "src/gpu/gl/builders/*.cpp", |
| 30 "src/gpu/gl/debug/*.cpp", | 31 "src/gpu/gl/debug/*.cpp", |
| 31 "src/gpu/gl/glx/*.cpp", | 32 "src/gpu/gl/glx/*.cpp", |
| 32 "src/opts/opts_check_x86.cpp", | 33 "src/opts/opts_check_x86.cpp", |
| 33 "src/opts/*SSE2*.cpp", | 34 "src/opts/*SSE2*.cpp", |
| 35 "src/opts/*sse2*.cpp", |
| 34 "src/opts/SkTextureCompression_opts_none.cpp", | 36 "src/opts/SkTextureCompression_opts_none.cpp", |
| 35 | 37 |
| 36 # TODO(mtklein): might be more maintainable with a blacklist instead? | 38 # TODO(mtklein): might be more maintainable with a blacklist instead? |
| 37 "src/ports/SkBarriers_x86.cpp", | 39 "src/ports/SkBarriers_x86.cpp", |
| 38 "src/ports/SkDebug_stdio.cpp", | 40 "src/ports/SkDebug_stdio.cpp", |
| 39 "src/ports/SkDiscardableMemory_none.cpp", | 41 "src/ports/SkDiscardableMemory_none.cpp", |
| 40 "src/ports/SkFontHost_linux.cpp", | 42 "src/ports/SkFontHost_linux.cpp", |
| 41 "src/ports/SkFontHost_FreeType.cpp", | 43 "src/ports/SkFontHost_FreeType.cpp", |
| 42 "src/ports/SkFontHost_FreeType_common.cpp", | 44 "src/ports/SkFontHost_FreeType_common.cpp", |
| 43 "src/ports/SkGlobalInitialization_default.cpp", | 45 "src/ports/SkGlobalInitialization_default.cpp", |
| 44 "src/ports/SkImageGenerator_skia.cpp", | 46 "src/ports/SkImageGenerator_skia.cpp", |
| 45 "src/ports/SkMemory_malloc.cpp", | 47 "src/ports/SkMemory_malloc.cpp", |
| 46 "src/ports/SkMutex_pthread.h", | 48 "src/ports/SkMutex_pthread.h", |
| 47 "src/ports/SkOSFile_posix.cpp", | 49 "src/ports/SkOSFile_posix.cpp", |
| 48 "src/ports/SkOSFile_stdio.cpp", | 50 "src/ports/SkOSFile_stdio.cpp", |
| 49 "src/ports/SkTLS_pthread.cpp", | 51 "src/ports/SkTLS_pthread.cpp", |
| 50 "src/ports/SkTime_Unix.cpp", | 52 "src/ports/SkTime_Unix.cpp", |
| 51 | 53 |
| 52 » # Third Party | 54 # Third Party |
| 53 "third_party/etc1/*.cpp", | 55 "third_party/etc1/*.cpp", |
| 54 "third_party/ktx/*.cpp", | 56 "third_party/ktx/*.cpp", |
| 55 ], | 57 ], |
| 56 exclude = [ | 58 exclude = [ |
| 57 "src/pdf/SkPDFFont.cpp", # Wrapped by google/SkPDFFont_sfntly.cpp | 59 "src/pdf/SkPDFFont.cpp", # Wrapped by google/SkPDFFont_sfntly.cpp |
| 58 "src/gpu/gl/GrGLDefaultInterface_none.cpp", | 60 "src/gpu/gl/GrGLDefaultInterface_none.cpp", |
| 59 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", | 61 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", |
| 60 # TODO(mtklein): files below here probably want upstream fixes | 62 # TODO(mtklein): files below here probably want upstream fixes |
| 61 "src/utils/SkThreadUtils_pthread_mach.cpp", # Mac-only. Move to ports? | 63 "src/utils/SkThreadUtils_pthread_mach.cpp", # Mac-only. Move to ports? |
| 62 » # Non-Mac-non-Linux. Move to ports? | 64 # Non-Mac-non-Linux. Move to ports? |
| 63 "src/utils/SkThreadUtils_pthread_other.cpp", | 65 "src/utils/SkThreadUtils_pthread_other.cpp", |
| 64 "src/utils/SkThreadUtils_win.cpp", # Windows-only. Move to ports? | 66 "src/utils/SkThreadUtils_win.cpp", # Windows-only. Move to ports? |
| 65 "src/doc/*_XPS.cpp", | 67 "src/doc/*_XPS.cpp", # Windows-only. |
| 68 "src/doc/SkDocument_PDF_None.cpp", # We use SkDocument_PDF.cpp. |
| 66 ], | 69 ], |
| 67 ) | 70 ) |
| 68 | 71 |
| 72 SRCS_SSSE3 = glob( |
| 73 [ |
| 74 "src/opts/*SSSE3*.cpp", |
| 75 "src/opts/*ssse3*.cpp", |
| 76 ], |
| 77 ) |
| 78 |
| 79 SRCS_SSE4 = glob( |
| 80 [ |
| 81 "src/opts/*SSE4*.cpp", |
| 82 "src/opts/*sse4*.cpp", |
| 83 ], |
| 84 ) |
| 85 |
| 69 HDRS = glob( | 86 HDRS = glob( |
| 70 [ | 87 [ |
| 71 "include/**/*.h", | 88 "include/**/*.h", |
| 72 ], | 89 ], |
| 90 exclude = [ |
| 91 "include/animator/*.h", |
| 92 "include/private/*.h", |
| 93 ], |
| 73 ) | 94 ) |
| 74 | 95 |
| 75 # Includes needed by Skia implementation. Not public includes. | 96 # Includes needed by Skia implementation. Not public includes. |
| 76 INCLUDES = [ | 97 INCLUDES = [ |
| 77 "include/animator", | |
| 78 "include/c", | 98 "include/c", |
| 79 "include/codec", | 99 "include/codec", |
| 80 "include/config", | 100 "include/config", |
| 81 "include/core", | 101 "include/core", |
| 82 "include/device", | 102 "include/device", |
| 83 "include/effects", | 103 "include/effects", |
| 84 "include/gpu", | 104 "include/gpu", |
| 85 "include/images", | 105 "include/images", |
| 86 "include/pathops", | 106 "include/pathops", |
| 87 "include/pdf", | 107 "include/pdf", |
| (...skipping 28 matching lines...) Expand all Loading... |
| 116 # Chrome DEFINES. | 136 # Chrome DEFINES. |
| 117 "SK_USE_FLOATBITS", | 137 "SK_USE_FLOATBITS", |
| 118 "SK_USE_FREETYPE_EMBOLDEN", | 138 "SK_USE_FREETYPE_EMBOLDEN", |
| 119 # Turn on a few Google3-specific build fixes. | 139 # Turn on a few Google3-specific build fixes. |
| 120 "GOOGLE3", | 140 "GOOGLE3", |
| 121 "SK_BUILD_FOR_UNIX", | 141 "SK_BUILD_FOR_UNIX", |
| 122 "SK_SAMPLES_FOR_X", | 142 "SK_SAMPLES_FOR_X", |
| 123 ] | 143 ] |
| 124 | 144 |
| 125 LINKOPTS = ["-ldl"] | 145 LINKOPTS = ["-ldl"] |
| OLD | NEW |