| OLD | NEW |
| 1 ################################################################################ | 1 ################################################################################ |
| 2 # Skylark macros | 2 # Skylark macros |
| 3 ################################################################################ | 3 ################################################################################ |
| 4 | 4 |
| 5 is_bazel = not hasattr(native, "genmpm") | 5 is_bazel = not hasattr(native, "genmpm") |
| 6 | 6 |
| 7 def portable_select(select_dict, bazel_condition, default_condition): | 7 def portable_select(select_dict, bazel_condition, default_condition): |
| 8 """Replaces select() with a Bazel-friendly wrapper. | 8 """Replaces select() with a Bazel-friendly wrapper. |
| 9 | 9 |
| 10 Args: | 10 Args: |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 ], | 89 ], |
| 90 # Note: PRIVATE_HDRS_INCLUDE_LIST is excluded from BASE_SRCS_ALL here | 90 # Note: PRIVATE_HDRS_INCLUDE_LIST is excluded from BASE_SRCS_ALL here |
| 91 # because they are required to appear in srcs for some rules but hdrs for | 91 # because they are required to appear in srcs for some rules but hdrs for |
| 92 # other rules. See internal cl/119566959. | 92 # other rules. See internal cl/119566959. |
| 93 exclude = PRIVATE_HDRS_INCLUDE_LIST + [ | 93 exclude = PRIVATE_HDRS_INCLUDE_LIST + [ |
| 94 # Exclude platform-dependent files. | 94 # Exclude platform-dependent files. |
| 95 "src/android/*", | 95 "src/android/*", |
| 96 "src/codec/*", | 96 "src/codec/*", |
| 97 "src/device/xps/*", # Windows-only. Move to ports? | 97 "src/device/xps/*", # Windows-only. Move to ports? |
| 98 "src/doc/*_XPS.cpp", # Windows-only. Move to ports? | 98 "src/doc/*_XPS.cpp", # Windows-only. Move to ports? |
| 99 "src/fonts/SkFontMgr_fontconfig.cpp", | |
| 100 "src/gpu/gl/android/*", | 99 "src/gpu/gl/android/*", |
| 101 "src/gpu/gl/egl/*", | 100 "src/gpu/gl/egl/*", |
| 102 "src/gpu/gl/glfw/*", | 101 "src/gpu/gl/glfw/*", |
| 103 "src/gpu/gl/glx/*", | 102 "src/gpu/gl/glx/*", |
| 104 "src/gpu/gl/iOS/*", | 103 "src/gpu/gl/iOS/*", |
| 105 "src/gpu/gl/mac/*", | 104 "src/gpu/gl/mac/*", |
| 106 "src/gpu/gl/win/*", | 105 "src/gpu/gl/win/*", |
| 107 "src/images/*", | 106 "src/images/*", |
| 108 "src/opts/**/*", | 107 "src/opts/**/*", |
| 109 "src/ports/**/*", | 108 "src/ports/**/*", |
| 110 "src/utils/android/**/*", | 109 "src/utils/android/**/*", |
| 111 "src/utils/mac/**/*", | 110 "src/utils/mac/**/*", |
| 112 "src/utils/SkThreadUtils_win.cpp", # Windows-only. Move to ports? | 111 "src/utils/SkThreadUtils_win.cpp", # Windows-only. Move to ports? |
| 113 "src/utils/win/**/*", | 112 "src/utils/win/**/*", |
| 114 "src/views/sdl/*", | 113 "src/views/sdl/*", |
| 115 "src/views/win/*", | 114 "src/views/win/*", |
| 116 "src/views/unix/*", | 115 "src/views/unix/*", |
| 117 | 116 |
| 118 # Exclude multiple definitions. | 117 # Exclude multiple definitions. |
| 119 # TODO(mtklein): Move to opts? | 118 # TODO(mtklein): Move to opts? |
| 120 "src/pdf/SkDocument_PDF_None.cpp", # We use src/pdf/SkPDFDocument.cpp. | 119 "src/pdf/SkDocument_PDF_None.cpp", # We use src/pdf/SkPDFDocument.cpp. |
| 121 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", | 120 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", |
| 122 "src/gpu/gl/GrGLDefaultInterface_native.cpp", | 121 "src/gpu/gl/GrGLDefaultInterface_native.cpp", |
| 123 "src/gpu/gl/GrGLDefaultInterface_none.cpp", | 122 "src/gpu/gl/GrGLDefaultInterface_none.cpp", |
| 123 "src/fonts/SkFontMgr_fontconfig.cpp", |
| 124 | 124 |
| 125 # Exclude files that don't compile with the current DEFINES. | 125 # Exclude files that don't compile with the current DEFINES. |
| 126 "src/gpu/gl/mesa/*", # Requires SK_MESA define. | 126 "src/gpu/gl/mesa/*", # Requires SK_MESA define. |
| 127 "src/svg/**/*", # Depends on XML. | 127 "src/svg/**/*", # Depends on XML. |
| 128 "src/xml/**/*", | 128 "src/xml/**/*", |
| 129 | 129 |
| 130 # Conflicting dependencies among Lua versions. See cl/107087297. | 130 # Conflicting dependencies among Lua versions. See cl/107087297. |
| 131 "src/utils/SkLua*", | 131 "src/utils/SkLua*", |
| 132 | 132 |
| 133 # Not used. | 133 # Not used. |
| 134 "src/views/**/*", | 134 "src/views/**/*", |
| 135 | 135 |
| 136 # Currently exclude all vulkan specific files | 136 # Currently exclude all vulkan specific files |
| 137 "src/gpu/vk/*", | 137 "src/gpu/vk/*", |
| 138 "src/sksl/**/*", | 138 "src/sksl/**/*", |
| 139 ], | 139 ], |
| 140 ) | 140 ) |
| 141 | 141 |
| 142 # Platform-dependent SRCS for google3-default platform. | 142 # Platform-dependent SRCS for google3-default platform. |
| 143 BASE_SRCS_UNIX = struct( | 143 BASE_SRCS_UNIX = struct( |
| 144 include = [ | 144 include = [ |
| 145 "src/android/*", | 145 "src/android/*", |
| 146 "src/codec/*", | 146 "src/codec/*", |
| 147 "src/fonts/SkFontMgr_fontconfig.cpp", | |
| 148 "src/gpu/gl/GrGLDefaultInterface_none.cpp", | 147 "src/gpu/gl/GrGLDefaultInterface_none.cpp", |
| 149 "src/images/*", | 148 "src/images/*", |
| 150 "src/opts/**/*.cpp", | 149 "src/opts/**/*.cpp", |
| 151 "src/opts/**/*.h", | 150 "src/opts/**/*.h", |
| 152 "src/ports/**/*.cpp", | 151 "src/ports/**/*.cpp", |
| 153 "src/ports/**/*.h", | 152 "src/ports/**/*.h", |
| 154 ], | 153 ], |
| 155 exclude = [ | 154 exclude = [ |
| 156 "src/opts/*arm*", | 155 "src/opts/*arm*", |
| 157 "src/opts/*mips*", | 156 "src/opts/*mips*", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 170 "src/opts/SkBlitRow_opts_none.cpp", | 169 "src/opts/SkBlitRow_opts_none.cpp", |
| 171 "src/ports/*CG*", | 170 "src/ports/*CG*", |
| 172 "src/ports/*WIC*", | 171 "src/ports/*WIC*", |
| 173 "src/ports/*android*", | 172 "src/ports/*android*", |
| 174 "src/ports/*chromium*", | 173 "src/ports/*chromium*", |
| 175 "src/ports/*mac*", | 174 "src/ports/*mac*", |
| 176 "src/ports/*mozalloc*", | 175 "src/ports/*mozalloc*", |
| 177 "src/ports/*nacl*", | 176 "src/ports/*nacl*", |
| 178 "src/ports/*win*", | 177 "src/ports/*win*", |
| 179 "src/ports/SkFontConfigInterface_direct_factory.cpp", | 178 "src/ports/SkFontConfigInterface_direct_factory.cpp", |
| 179 "src/ports/SkFontHost_fontconfig.cpp", |
| 180 "src/ports/SkFontMgr_custom_directory_factory.cpp", | 180 "src/ports/SkFontMgr_custom_directory_factory.cpp", |
| 181 "src/ports/SkFontMgr_custom_embedded_factory.cpp", | 181 "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
| 182 "src/ports/SkFontMgr_custom_empty_factory.cpp", | 182 "src/ports/SkFontMgr_custom_empty_factory.cpp", |
| 183 "src/ports/SkFontMgr_empty_factory.cpp", | 183 "src/ports/SkFontMgr_empty_factory.cpp", |
| 184 "src/ports/SkFontMgr_fontconfig.cpp", | 184 "src/ports/SkFontMgr_fontconfig.cpp", |
| 185 "src/ports/SkFontMgr_fontconfig_factory.cpp", | 185 "src/ports/SkFontMgr_fontconfig_factory.cpp", |
| 186 "src/ports/SkImageEncoder_none.cpp", | 186 "src/ports/SkImageEncoder_none.cpp", |
| 187 "src/ports/SkImageGenerator_none.cpp", | 187 "src/ports/SkImageGenerator_none.cpp", |
| 188 "src/ports/SkTLS_none.cpp", | 188 "src/ports/SkTLS_none.cpp", |
| 189 ], | 189 ], |
| (...skipping 27 matching lines...) Expand all Loading... |
| 217 "src/ports/*CG*", | 217 "src/ports/*CG*", |
| 218 "src/ports/*FontConfig*", | 218 "src/ports/*FontConfig*", |
| 219 "src/ports/*WIC*", | 219 "src/ports/*WIC*", |
| 220 "src/ports/*chromium*", | 220 "src/ports/*chromium*", |
| 221 "src/ports/*fontconfig*", | 221 "src/ports/*fontconfig*", |
| 222 "src/ports/*mac*", | 222 "src/ports/*mac*", |
| 223 "src/ports/*mozalloc*", | 223 "src/ports/*mozalloc*", |
| 224 "src/ports/*nacl*", | 224 "src/ports/*nacl*", |
| 225 "src/ports/*win*", | 225 "src/ports/*win*", |
| 226 "src/ports/SkDebug_stdio.cpp", | 226 "src/ports/SkDebug_stdio.cpp", |
| 227 "src/ports/SkFontConfigInterface_direct_factory.cpp", | 227 "src/ports/SkFontHost_fontconfig.cpp", |
| 228 "src/ports/SkFontConfigInterface_direct_google3_factory.cpp", | |
| 229 "src/ports/SkFontMgr_custom_directory_factory.cpp", | 228 "src/ports/SkFontMgr_custom_directory_factory.cpp", |
| 230 "src/ports/SkFontMgr_custom_embedded_factory.cpp", | 229 "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
| 231 "src/ports/SkFontMgr_custom_empty_factory.cpp", | 230 "src/ports/SkFontMgr_custom_empty_factory.cpp", |
| 232 "src/ports/SkFontMgr_empty_factory.cpp", | 231 "src/ports/SkFontMgr_empty_factory.cpp", |
| 233 "src/ports/SkImageEncoder_none.cpp", | 232 "src/ports/SkImageEncoder_none.cpp", |
| 234 "src/ports/SkImageGenerator_none.cpp", | 233 "src/ports/SkImageGenerator_none.cpp", |
| 235 "src/ports/SkTLS_none.cpp", | 234 "src/ports/SkTLS_none.cpp", |
| 236 ], | 235 ], |
| 237 ) | 236 ) |
| 238 | 237 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 "src/ports/*CG*", | 271 "src/ports/*CG*", |
| 273 "src/ports/*FontConfig*", | 272 "src/ports/*FontConfig*", |
| 274 "src/ports/*FreeType*", | 273 "src/ports/*FreeType*", |
| 275 "src/ports/*WIC*", | 274 "src/ports/*WIC*", |
| 276 "src/ports/*android*", | 275 "src/ports/*android*", |
| 277 "src/ports/*chromium*", | 276 "src/ports/*chromium*", |
| 278 "src/ports/*fontconfig*", | 277 "src/ports/*fontconfig*", |
| 279 "src/ports/*mozalloc*", | 278 "src/ports/*mozalloc*", |
| 280 "src/ports/*nacl*", | 279 "src/ports/*nacl*", |
| 281 "src/ports/*win*", | 280 "src/ports/*win*", |
| 281 "src/ports/SkFontHost_fontconfig.cpp", |
| 282 "src/ports/SkFontMgr_custom.cpp", | 282 "src/ports/SkFontMgr_custom.cpp", |
| 283 "src/ports/SkFontConfigInterface_direct_factory.cpp", | |
| 284 "src/ports/SkFontConfigInterface_direct_google3_factory.cpp", | |
| 285 "src/ports/SkFontMgr_custom_directory_factory.cpp", | 283 "src/ports/SkFontMgr_custom_directory_factory.cpp", |
| 286 "src/ports/SkFontMgr_custom_embedded_factory.cpp", | 284 "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
| 287 "src/ports/SkFontMgr_custom_empty_factory.cpp", | 285 "src/ports/SkFontMgr_custom_empty_factory.cpp", |
| 288 "src/ports/SkFontMgr_empty_factory.cpp", | 286 "src/ports/SkFontMgr_empty_factory.cpp", |
| 289 "src/ports/SkImageGenerator_none.cpp", | 287 "src/ports/SkImageGenerator_none.cpp", |
| 290 "src/ports/SkTLS_none.cpp", | 288 "src/ports/SkTLS_none.cpp", |
| 291 ], | 289 ], |
| 292 ) | 290 ) |
| 293 | 291 |
| 294 ################################################################################ | 292 ################################################################################ |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 | 631 |
| 634 LINKOPTS_ANDROID = [ | 632 LINKOPTS_ANDROID = [ |
| 635 "-lEGL", | 633 "-lEGL", |
| 636 ] | 634 ] |
| 637 | 635 |
| 638 LINKOPTS_IOS = [] | 636 LINKOPTS_IOS = [] |
| 639 | 637 |
| 640 LINKOPTS_ALL = [ | 638 LINKOPTS_ALL = [ |
| 641 "-ldl", | 639 "-ldl", |
| 642 ] | 640 ] |
| OLD | NEW |