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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 "src/utils/win/**/*", | 90 "src/utils/win/**/*", |
91 "src/views/sdl/*", | 91 "src/views/sdl/*", |
92 "src/views/win/*", | 92 "src/views/win/*", |
93 "src/views/unix/*", | 93 "src/views/unix/*", |
94 | 94 |
95 # Exclude multiple definitions. | 95 # Exclude multiple definitions. |
96 # TODO(mtklein): Move to opts? | 96 # TODO(mtklein): Move to opts? |
97 "src/doc/SkDocument_PDF_None.cpp", # We use SkDocument_PDF.cpp. | 97 "src/doc/SkDocument_PDF_None.cpp", # We use SkDocument_PDF.cpp. |
98 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", | 98 "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", |
99 "src/gpu/gl/GrGLDefaultInterface_native.cpp", | 99 "src/gpu/gl/GrGLDefaultInterface_native.cpp", |
| 100 "src/gpu/gl/GrGLDefaultInterface_none.cpp", |
100 | 101 |
101 # Exclude files that don't compile with the current DEFINES. | 102 # Exclude files that don't compile with the current DEFINES. |
102 "src/gpu/gl/angle/*", # Requires SK_ANGLE define. | 103 "src/gpu/gl/angle/*", # Requires SK_ANGLE define. |
103 "src/gpu/gl/command_buffer/*", # unknown type name 'HMODULE' | 104 "src/gpu/gl/command_buffer/*", # unknown type name 'HMODULE' |
104 "src/gpu/gl/mesa/*", # Requires SK_MESA define. | 105 "src/gpu/gl/mesa/*", # Requires SK_MESA define. |
105 "src/svg/parser/*", # Missing SkSVG.h. | 106 "src/svg/parser/*", # Missing SkSVG.h. |
106 | 107 |
107 # Conflicting dependencies among Lua versions. See cl/107087297. | 108 # Conflicting dependencies among Lua versions. See cl/107087297. |
108 "src/utils/SkLua*", | 109 "src/utils/SkLua*", |
109 | 110 |
110 # Not used. | 111 # Not used. |
111 "src/animator/**/*", | 112 "src/animator/**/*", |
112 "src/views/**/*", | 113 "src/views/**/*", |
113 "src/xml/SkBML_Verbs.h", | 114 "src/xml/SkBML_Verbs.h", |
114 "src/xml/SkBML_XMLParser.cpp", | 115 "src/xml/SkBML_XMLParser.cpp", |
115 "src/xml/SkXMLPullParser.cpp", | 116 "src/xml/SkXMLPullParser.cpp", |
116 ], | 117 ], |
117 ) | 118 ) |
118 | 119 |
119 # Platform-dependent SRCS for google3-default platform. | 120 # Platform-dependent SRCS for google3-default platform. |
120 BASE_SRCS_UNIX = struct( | 121 BASE_SRCS_UNIX = struct( |
121 include = [ | 122 include = [ |
122 "src/android/*", | 123 "src/android/*", |
123 "src/codec/*", | 124 "src/codec/*", |
124 "src/fonts/SkFontMgr_fontconfig.cpp", | 125 "src/fonts/SkFontMgr_fontconfig.cpp", |
| 126 "src/gpu/gl/GrGLDefaultInterface_none.cpp", |
125 "src/images/*", | 127 "src/images/*", |
126 "src/opts/**/*.cpp", | 128 "src/opts/**/*.cpp", |
127 "src/opts/**/*.h", | 129 "src/opts/**/*.h", |
128 "src/ports/**/*.cpp", | 130 "src/ports/**/*.cpp", |
129 "src/ports/**/*.h", | 131 "src/ports/**/*.h", |
130 ], | 132 ], |
131 exclude = [ | 133 exclude = [ |
132 "src/opts/*arm*", | 134 "src/opts/*arm*", |
133 "src/opts/*mips*", | 135 "src/opts/*mips*", |
134 "src/opts/*NEON*", | 136 "src/opts/*NEON*", |
(...skipping 27 matching lines...) Expand all Loading... |
162 "src/ports/SkImageGenerator_none.cpp", | 164 "src/ports/SkImageGenerator_none.cpp", |
163 "src/ports/SkTLS_none.cpp", | 165 "src/ports/SkTLS_none.cpp", |
164 ], | 166 ], |
165 ) | 167 ) |
166 | 168 |
167 # Platform-dependent SRCS for google3-default Android. | 169 # Platform-dependent SRCS for google3-default Android. |
168 BASE_SRCS_ANDROID = struct( | 170 BASE_SRCS_ANDROID = struct( |
169 include = [ | 171 include = [ |
170 "src/android/*", | 172 "src/android/*", |
171 "src/codec/*", | 173 "src/codec/*", |
| 174 "src/gpu/gl/GrGLDefaultInterface_none.cpp", |
172 "src/images/*", | 175 "src/images/*", |
173 # TODO(benjaminwagner): Figure out how to compile with EGL. | 176 # TODO(benjaminwagner): Figure out how to compile with EGL. |
174 "src/opts/**/*.cpp", | 177 "src/opts/**/*.cpp", |
175 "src/opts/**/*.h", | 178 "src/opts/**/*.h", |
176 "src/ports/**/*.cpp", | 179 "src/ports/**/*.cpp", |
177 "src/ports/**/*.h", | 180 "src/ports/**/*.h", |
178 ], | 181 ], |
179 exclude = [ | 182 exclude = [ |
180 "src/opts/*mips*", | 183 "src/opts/*mips*", |
181 "src/opts/*SSE2*", | 184 "src/opts/*SSE2*", |
(...skipping 23 matching lines...) Expand all Loading... |
205 "src/ports/SkImageDecoder_WIC.cpp", | 208 "src/ports/SkImageDecoder_WIC.cpp", |
206 "src/ports/SkImageDecoder_empty.cpp", | 209 "src/ports/SkImageDecoder_empty.cpp", |
207 "src/ports/SkImageGenerator_none.cpp", | 210 "src/ports/SkImageGenerator_none.cpp", |
208 "src/ports/SkTLS_none.cpp", | 211 "src/ports/SkTLS_none.cpp", |
209 ], | 212 ], |
210 ) | 213 ) |
211 | 214 |
212 # Platform-dependent SRCS for google3-default iOS. | 215 # Platform-dependent SRCS for google3-default iOS. |
213 BASE_SRCS_IOS = struct( | 216 BASE_SRCS_IOS = struct( |
214 include = [ | 217 include = [ |
| 218 "src/gpu/gl/GrGLDefaultInterface_native.cpp", |
| 219 "src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp", |
215 "src/opts/**/*.cpp", | 220 "src/opts/**/*.cpp", |
216 "src/opts/**/*.h", | 221 "src/opts/**/*.h", |
217 "src/ports/**/*.cpp", | 222 "src/ports/**/*.cpp", |
218 "src/ports/**/*.h", | 223 "src/ports/**/*.h", |
219 "src/utils/mac/*.cpp", | 224 "src/utils/mac/*.cpp", |
220 ], | 225 ], |
221 exclude = [ | 226 exclude = [ |
222 "src/opts/*mips*", | 227 "src/opts/*mips*", |
223 "src/opts/*NEON*", | 228 "src/opts/*NEON*", |
224 "src/opts/*neon*", | 229 "src/opts/*neon*", |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 | 515 |
511 LINKOPTS_ANDROID = [ | 516 LINKOPTS_ANDROID = [ |
512 "-lEGL", | 517 "-lEGL", |
513 ] | 518 ] |
514 | 519 |
515 LINKOPTS_IOS = [] | 520 LINKOPTS_IOS = [] |
516 | 521 |
517 LINKOPTS_ALL = [ | 522 LINKOPTS_ALL = [ |
518 "-ldl", | 523 "-ldl", |
519 ] | 524 ] |
OLD | NEW |