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

Side by Side Diff: skia/BUILD.gn

Issue 1524573002: Remove //skia/skia_gn_files.gypi. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: asdf Created 5 years 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 | skia/skia_gn_files.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 if (current_cpu == "arm" || current_cpu == "arm64") { 8 if (current_cpu == "arm" || current_cpu == "arm64") {
9 import("//build/config/arm.gni") 9 import("//build/config/arm.gni")
10 } 10 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 gypi_skia_opts = 71 gypi_skia_opts =
72 exec_script("//build/gypi_to_gn.py", 72 exec_script("//build/gypi_to_gn.py",
73 [ 73 [
74 rebase_path("//third_party/skia/gyp/opts.gypi"), 74 rebase_path("//third_party/skia/gyp/opts.gypi"),
75 "--replace=<(skia_include_path)=//third_party/skia/include", 75 "--replace=<(skia_include_path)=//third_party/skia/include",
76 "--replace=<(skia_src_path)=//third_party/skia/src", 76 "--replace=<(skia_src_path)=//third_party/skia/src",
77 ], 77 ],
78 "scope", 78 "scope",
79 [ "//third_party/skia/gyp/opts.gypi" ]) 79 [ "//third_party/skia/gyp/opts.gypi" ])
80 80
81 # The list of Skia files is kept in skia_gn_files.gypi. Read it.
82 gypi_values =
83 exec_script("//build/gypi_to_gn.py",
84 [
85 rebase_path("skia_gn_files.gypi"),
86 "--replace=<(skia_include_path)=//third_party/skia/include",
87 "--replace=<(skia_src_path)=//third_party/skia/src",
88 ],
89 "scope",
90 [ "skia_gn_files.gypi" ])
91
92 # External-facing config for dependent code. 81 # External-facing config for dependent code.
93 config("skia_config") { 82 config("skia_config") {
94 include_dirs = [ 83 include_dirs = [
95 "config", 84 "config",
96 "ext", 85 "ext",
97 "//third_party/skia/include/c", 86 "//third_party/skia/include/c",
98 "//third_party/skia/include/config", 87 "//third_party/skia/include/config",
99 "//third_party/skia/include/core", 88 "//third_party/skia/include/core",
100 "//third_party/skia/include/effects", 89 "//third_party/skia/include/effects",
101 "//third_party/skia/include/images", 90 "//third_party/skia/include/images",
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 "ext/skia_utils_ios.h", 234 "ext/skia_utils_ios.h",
246 "ext/skia_utils_ios.mm", 235 "ext/skia_utils_ios.mm",
247 "ext/skia_utils_mac.h", 236 "ext/skia_utils_mac.h",
248 "ext/skia_utils_mac.mm", 237 "ext/skia_utils_mac.mm",
249 ] 238 ]
250 239
251 # The skia gypi values are relative to the skia_dir, so we need to rebase. 240 # The skia gypi values are relative to the skia_dir, so we need to rebase.
252 sources += gypi_skia_core.sources 241 sources += gypi_skia_core.sources
253 sources += gypi_skia_effects.sources 242 sources += gypi_skia_effects.sources
254 sources += gypi_skia_utils.sources 243 sources += gypi_skia_utils.sources
255 sources += gypi_values.skia_library_sources 244
245 sources += [
246 "//third_party/skia/include/images/SkMovie.h",
247 "//third_party/skia/include/images/SkPageFlipper.h",
248 "//third_party/skia/include/ports/SkTypeface_win.h",
249 "//third_party/skia/src/fonts/SkFontMgr_indirect.cpp",
250 "//third_party/skia/src/fonts/SkRemotableFontMgr.cpp",
251 "//third_party/skia/src/images/SkScaledBitmapSampler.cpp",
252 "//third_party/skia/src/images/SkScaledBitmapSampler.h",
253 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp",
254 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp",
255 "//third_party/skia/src/ports/SkFontHost_FreeType_common.h",
256 "//third_party/skia/src/ports/SkFontHost_mac.cpp",
257 "//third_party/skia/src/ports/SkFontHost_win.cpp",
258 "//third_party/skia/src/ports/SkFontMgr_android.cpp",
259 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp",
260 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp",
261 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp",
262 "//third_party/skia/src/ports/SkGlobalInitialization_chromium.cpp",
263 "//third_party/skia/src/ports/SkImageDecoder_empty.cpp",
264 "//third_party/skia/src/ports/SkImageGenerator_none.cpp",
265 "//third_party/skia/src/ports/SkOSFile_posix.cpp",
266 "//third_party/skia/src/ports/SkOSFile_stdio.cpp",
267 "//third_party/skia/src/ports/SkOSFile_win.cpp",
268 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp",
269 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp",
270 "//third_party/skia/src/ports/SkScalerContext_win_dw.h",
271 "//third_party/skia/src/ports/SkTLS_pthread.cpp",
272 "//third_party/skia/src/ports/SkTLS_win.cpp",
273 "//third_party/skia/src/ports/SkTime_Unix.cpp",
274 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp",
275 "//third_party/skia/src/ports/SkTypeface_win_dw.h",
276 "//third_party/skia/src/sfnt/SkOTTable_name.cpp",
277 "//third_party/skia/src/sfnt/SkOTTable_name.h",
278 "//third_party/skia/src/sfnt/SkOTUtils.cpp",
279 "//third_party/skia/src/sfnt/SkOTUtils.h",
280 "//third_party/skia/src/utils/mac/SkStream_mac.cpp",
281 ]
256 282
257 # This and skia_opts are really the same conceptual target so share headers. 283 # This and skia_opts are really the same conceptual target so share headers.
258 allow_circular_includes_from = [ ":skia_opts" ] 284 allow_circular_includes_from = [ ":skia_opts" ]
259 285
260 if (current_cpu == "arm") { 286 if (current_cpu == "arm") {
261 sources += [ 287 sources += [
262 "//third_party/skia/src/core/SkUtilsArm.cpp", 288 "//third_party/skia/src/core/SkUtilsArm.cpp",
263 "//third_party/skia/src/core/SkUtilsArm.h", 289 "//third_party/skia/src/core/SkUtilsArm.h",
264 ] 290 ]
265 } 291 }
266 292
267 # GPU 293 # GPU
268 294
269 sources += gypi_skia_gpu.skgpu_sources 295 sources += gypi_skia_gpu.skgpu_sources
270 sources += gypi_skia_gpu.skgpu_null_gl_sources 296 sources += gypi_skia_gpu.skgpu_null_gl_sources
271 297
272 # Remove various unused files. 298 # Remove unused files from utils.
273 sources -= [ 299 sources -= [
274 # utils:
275 "//third_party/skia/include/utils/SkBoundaryPatch.h", 300 "//third_party/skia/include/utils/SkBoundaryPatch.h",
276 "//third_party/skia/include/utils/SkCamera.h", 301 "//third_party/skia/include/utils/SkCamera.h",
277 "//third_party/skia/include/utils/SkCanvasStateUtils.h", 302 "//third_party/skia/include/utils/SkCanvasStateUtils.h",
278 "//third_party/skia/include/utils/SkCubicInterval.h", 303 "//third_party/skia/include/utils/SkCubicInterval.h",
279 "//third_party/skia/include/utils/SkCullPoints.h", 304 "//third_party/skia/include/utils/SkCullPoints.h",
280 "//third_party/skia/include/utils/SkDebugUtils.h", 305 "//third_party/skia/include/utils/SkDebugUtils.h",
281 "//third_party/skia/include/utils/SkDumpCanvas.h", 306 "//third_party/skia/include/utils/SkDumpCanvas.h",
282 "//third_party/skia/include/utils/SkEventTracer.h", 307 "//third_party/skia/include/utils/SkEventTracer.h",
283 "//third_party/skia/include/utils/SkFrontBufferedStream.h", 308 "//third_party/skia/include/utils/SkFrontBufferedStream.h",
284 "//third_party/skia/include/utils/SkInterpolator.h", 309 "//third_party/skia/include/utils/SkInterpolator.h",
(...skipping 16 matching lines...) Expand all
301 "//third_party/skia/src/utils/SkInterpolator.cpp", 326 "//third_party/skia/src/utils/SkInterpolator.cpp",
302 "//third_party/skia/src/utils/SkLayer.cpp", 327 "//third_party/skia/src/utils/SkLayer.cpp",
303 "//third_party/skia/src/utils/SkMD5.cpp", 328 "//third_party/skia/src/utils/SkMD5.cpp",
304 "//third_party/skia/src/utils/SkMD5.h", 329 "//third_party/skia/src/utils/SkMD5.h",
305 "//third_party/skia/src/utils/SkMeshUtils.cpp", 330 "//third_party/skia/src/utils/SkMeshUtils.cpp",
306 "//third_party/skia/src/utils/SkNinePatch.cpp", 331 "//third_party/skia/src/utils/SkNinePatch.cpp",
307 "//third_party/skia/src/utils/SkParsePath.cpp", 332 "//third_party/skia/src/utils/SkParsePath.cpp",
308 "//third_party/skia/src/utils/SkSHA1.cpp", 333 "//third_party/skia/src/utils/SkSHA1.cpp",
309 "//third_party/skia/src/utils/SkSHA1.h", 334 "//third_party/skia/src/utils/SkSHA1.h",
310 "//third_party/skia/src/utils/SkTFitsIn.h", 335 "//third_party/skia/src/utils/SkTFitsIn.h",
311
312 # fonts:
313 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp",
314 "//third_party/skia/src/fonts/SkGScalerContext.cpp",
315 "//third_party/skia/src/fonts/SkGScalerContext.h",
316
317 # ports:
318 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp",
319 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp",
320 ] 336 ]
321 337
322 if (is_ios || is_mac || is_android) { 338 if (is_ios || is_mac || is_android) {
323 sources -= 339 sources -=
324 [ "//third_party/skia/src/gpu/gl/GrGLCreateNativeInterface_none.cpp" ] 340 [ "//third_party/skia/src/gpu/gl/GrGLCreateNativeInterface_none.cpp" ]
325 341
326 set_sources_assignment_filter([]) 342 set_sources_assignment_filter([])
327 343
328 if (is_ios) { 344 if (is_ios) {
329 sources += [ "//third_party/skia/src/gpu/gl/iOS/GrGLCreateNativeInterface_ iOS.cpp" ] 345 sources += [ "//third_party/skia/src/gpu/gl/iOS/GrGLCreateNativeInterface_ iOS.cpp" ]
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 deps = [ 539 deps = [
524 ":skia", 540 ":skia",
525 "//base", 541 "//base",
526 "//base/test:run_all_unittests", 542 "//base/test:run_all_unittests",
527 "//cc:test_support", # TODO: Fix this test to not depend on cc. 543 "//cc:test_support", # TODO: Fix this test to not depend on cc.
528 "//testing/gtest", 544 "//testing/gtest",
529 "//ui/gfx", 545 "//ui/gfx",
530 "//ui/gfx/geometry", 546 "//ui/gfx/geometry",
531 ] 547 ]
532 } 548 }
OLDNEW
« no previous file with comments | « no previous file | skia/skia_gn_files.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698