Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1257)

Side by Side Diff: public.bzl

Issue 1639443002: Changes to public.bzl to support building on iOS with objc_library bazel target. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 "src/**/*.cpp", 63 "src/**/*.cpp",
64 64
65 # Third Party 65 # Third Party
66 "third_party/etc1/*.cpp", 66 "third_party/etc1/*.cpp",
67 "third_party/etc1/*.h", 67 "third_party/etc1/*.h",
68 "third_party/ktx/*.cpp", 68 "third_party/ktx/*.cpp",
69 "third_party/ktx/*.h", 69 "third_party/ktx/*.h",
70 ], 70 ],
71 exclude = [ 71 exclude = [
72 # Exclude platform-dependent files. 72 # Exclude platform-dependent files.
73 "src/android/*",
73 "src/codec/*", 74 "src/codec/*",
74 "src/device/xps/*", # Windows-only. Move to ports? 75 "src/device/xps/*", # Windows-only. Move to ports?
75 "src/doc/*_XPS.cpp", # Windows-only. Move to ports? 76 "src/doc/*_XPS.cpp", # Windows-only. Move to ports?
76 "src/fonts/SkFontMgr_fontconfig.cpp", 77 "src/fonts/SkFontMgr_fontconfig.cpp",
77 "src/gpu/gl/android/*", 78 "src/gpu/gl/android/*",
78 "src/gpu/gl/egl/*", 79 "src/gpu/gl/egl/*",
79 "src/gpu/gl/glx/*", 80 "src/gpu/gl/glx/*",
80 "src/gpu/gl/iOS/*", 81 "src/gpu/gl/iOS/*",
81 "src/gpu/gl/mac/*", 82 "src/gpu/gl/mac/*",
82 "src/gpu/gl/win/*", 83 "src/gpu/gl/win/*",
(...skipping 28 matching lines...) Expand all
111 "src/views/**/*", 112 "src/views/**/*",
112 "src/xml/SkBML_Verbs.h", 113 "src/xml/SkBML_Verbs.h",
113 "src/xml/SkBML_XMLParser.cpp", 114 "src/xml/SkBML_XMLParser.cpp",
114 "src/xml/SkXMLPullParser.cpp", 115 "src/xml/SkXMLPullParser.cpp",
115 ], 116 ],
116 ) 117 )
117 118
118 # Platform-dependent SRCS for google3-default platform. 119 # Platform-dependent SRCS for google3-default platform.
119 BASE_SRCS_UNIX = struct( 120 BASE_SRCS_UNIX = struct(
120 include = [ 121 include = [
122 "src/android/*",
121 "src/codec/*", 123 "src/codec/*",
122 "src/fonts/SkFontMgr_fontconfig.cpp", 124 "src/fonts/SkFontMgr_fontconfig.cpp",
123 "src/images/*", 125 "src/images/*",
124 "src/opts/**/*.cpp", 126 "src/opts/**/*.cpp",
125 "src/opts/**/*.h", 127 "src/opts/**/*.h",
126 "src/ports/**/*.cpp", 128 "src/ports/**/*.cpp",
127 "src/ports/**/*.h", 129 "src/ports/**/*.h",
128 ], 130 ],
129 exclude = [ 131 exclude = [
130 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch. 132 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch.
(...skipping 30 matching lines...) Expand all
161 "src/ports/SkImageDecoder_WIC.cpp", 163 "src/ports/SkImageDecoder_WIC.cpp",
162 "src/ports/SkImageDecoder_empty.cpp", 164 "src/ports/SkImageDecoder_empty.cpp",
163 "src/ports/SkImageGenerator_none.cpp", 165 "src/ports/SkImageGenerator_none.cpp",
164 "src/ports/SkTLS_none.cpp", 166 "src/ports/SkTLS_none.cpp",
165 ], 167 ],
166 ) 168 )
167 169
168 # Platform-dependent SRCS for google3-default Android. 170 # Platform-dependent SRCS for google3-default Android.
169 BASE_SRCS_ANDROID = struct( 171 BASE_SRCS_ANDROID = struct(
170 include = [ 172 include = [
173 "src/android/*",
171 "src/codec/*", 174 "src/codec/*",
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/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch. 183 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 "src/opts/*NEON*", 228 "src/opts/*NEON*",
226 "src/opts/*neon*", 229 "src/opts/*neon*",
227 "src/opts/*SSE2*", 230 "src/opts/*SSE2*",
228 "src/opts/*SSSE3*", 231 "src/opts/*SSSE3*",
229 "src/opts/*ssse3*", 232 "src/opts/*ssse3*",
230 "src/opts/*SSE4*", 233 "src/opts/*SSE4*",
231 "src/opts/*sse4*", 234 "src/opts/*sse4*",
232 "src/opts/*avx*", 235 "src/opts/*avx*",
233 "src/opts/*x86*", 236 "src/opts/*x86*",
234 "src/opts/SkBitmapProcState_opts_none.cpp", 237 "src/opts/SkBitmapProcState_opts_none.cpp",
235 "src/opts/SkBlitMask_opts_none.cpp", 238 "src/opts/SkBlitMask_opts_arm*.cpp",
236 "src/opts/SkBlitRow_opts_none.cpp", 239 "src/opts/SkBlitRow_opts_arm*.cpp",
237 "src/ports/*android*", 240 "src/ports/*android*",
238 "src/ports/*chromium*", 241 "src/ports/*chromium*",
239 "src/ports/*fontconfig*", 242 "src/ports/*fontconfig*",
240 "src/ports/*FontConfig*", 243 "src/ports/*FontConfig*",
241 "src/ports/*FreeType*", 244 "src/ports/*FreeType*",
242 "src/ports/*mozalloc*", 245 "src/ports/*mozalloc*",
243 "src/ports/*nacl*", 246 "src/ports/*nacl*",
244 "src/ports/*win*", 247 "src/ports/*win*",
245 "src/ports/SkDebug_stdio.cpp", 248 "src/ports/SkDebug_stdio.cpp",
246 "src/ports/SkFontMgr_custom.cpp", 249 "src/ports/SkFontMgr_custom.cpp",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 ], 290 ],
288 ) 291 )
289 292
290 ################################################################################ 293 ################################################################################
291 ## BASE_HDRS 294 ## BASE_HDRS
292 ################################################################################ 295 ################################################################################
293 296
294 BASE_HDRS = struct( 297 BASE_HDRS = struct(
295 include = [ 298 include = [
296 "include/**/*.h", 299 "include/**/*.h",
300 "src/utils/SkWhitelistChecksums.cpp",
297 ], 301 ],
298 exclude = [ 302 exclude = [
299 "include/private/**/*", 303 "include/private/**/*",
300 304
301 # Not used. 305 # Not used.
302 "include/animator/**/*", 306 "include/animator/**/*",
303 "include/views/**/*", 307 "include/views/**/*",
304 "include/xml/SkBML_WXMLParser.h", 308 "include/xml/SkBML_WXMLParser.h",
305 "include/xml/SkBML_XMLParser.h", 309 "include/xml/SkBML_XMLParser.h",
306 ], 310 ],
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 484
481 DEFINES_ANDROID = [ 485 DEFINES_ANDROID = [
482 "SK_BUILD_FOR_ANDROID", 486 "SK_BUILD_FOR_ANDROID",
483 # TODO(benjaminwagner): Try to get png library updated? 487 # TODO(benjaminwagner): Try to get png library updated?
484 "SK_PNG_NO_INDEX_SUPPORTED", 488 "SK_PNG_NO_INDEX_SUPPORTED",
485 ] 489 ]
486 490
487 DEFINES_IOS = [ 491 DEFINES_IOS = [
488 "SK_BUILD_FOR_IOS", 492 "SK_BUILD_FOR_IOS",
489 "SK_IGNORE_ETC1_SUPPORT", 493 "SK_IGNORE_ETC1_SUPPORT",
494 "SKNX_NO_SIMD",
490 ] 495 ]
491 496
492 DEFINES_ALL = [ 497 DEFINES_ALL = [
493 # Chrome DEFINES. 498 # Chrome DEFINES.
494 "SK_USE_FLOATBITS", 499 "SK_USE_FLOATBITS",
495 "SK_USE_FREETYPE_EMBOLDEN", 500 "SK_USE_FREETYPE_EMBOLDEN",
496 # Turn on a few Google3-specific build fixes. 501 # Turn on a few Google3-specific build fixes.
497 "GOOGLE3", 502 "GOOGLE3",
498 ] 503 ]
499 504
500 ################################################################################ 505 ################################################################################
501 ## LINKOPTS 506 ## LINKOPTS
502 ################################################################################ 507 ################################################################################
503 508
504 LINKOPTS_UNIX = [] 509 LINKOPTS_UNIX = []
505 510
506 LINKOPTS_ANDROID = [ 511 LINKOPTS_ANDROID = [
507 "-lEGL", 512 "-lEGL",
508 ] 513 ]
509 514
510 LINKOPTS_IOS = [] 515 LINKOPTS_IOS = []
511 516
512 LINKOPTS_ALL = [ 517 LINKOPTS_ALL = [
513 "-ldl", 518 "-ldl",
514 ] 519 ]
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698