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

Side by Side Diff: skia/BUILD.gn

Issue 327523002: Change skia build files to use a utils.gypi instead of hardcoded files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete extra win lines Created 6 years, 6 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 | 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 if (cpu_arch == "arm") { 7 if (cpu_arch == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 # The list of Skia effects that are to be set for chromium. 50 # The list of Skia effects that are to be set for chromium.
51 gypi_skia_effects = exec_script( 51 gypi_skia_effects = exec_script(
52 "//build/gypi_to_gn.py", 52 "//build/gypi_to_gn.py",
53 [ rebase_path("//third_party/skia/gyp/effects.gypi"), 53 [ rebase_path("//third_party/skia/gyp/effects.gypi"),
54 "--replace=<(skia_include_path)=//third_party/skia/include", 54 "--replace=<(skia_include_path)=//third_party/skia/include",
55 "--replace=<(skia_src_path)=//third_party/skia/src" ], 55 "--replace=<(skia_src_path)=//third_party/skia/src" ],
56 "scope", 56 "scope",
57 [ "//third_party/skia/gyp/effects.gypi" ]) 57 [ "//third_party/skia/gyp/effects.gypi" ])
58 58
59 # The list of Skia utilss that are to be set for chromium.
60 gypi_skia_utils = exec_script(
61 "//build/gypi_to_gn.py",
62 [ rebase_path("//third_party/skia/gyp/utils.gypi"),
63 "--replace=<(skia_include_path)=//third_party/skia/include",
64 "--replace=<(skia_src_path)=//third_party/skia/src" ],
65 "scope",
66 [ "//third_party/skia/gyp/utils.gypi" ])
67
59 # The list of Skia files is kept in skia_gn_files.gypi. Read it. 68 # The list of Skia files is kept in skia_gn_files.gypi. Read it.
60 gypi_values = exec_script( 69 gypi_values = exec_script(
61 "//build/gypi_to_gn.py", 70 "//build/gypi_to_gn.py",
62 [ rebase_path("skia_gn_files.gypi"), 71 [ rebase_path("skia_gn_files.gypi"),
63 "--replace=<(skia_include_path)=//third_party/skia/include", 72 "--replace=<(skia_include_path)=//third_party/skia/include",
64 "--replace=<(skia_src_path)=//third_party/skia/src" ], 73 "--replace=<(skia_src_path)=//third_party/skia/src" ],
65 "scope", 74 "scope",
66 [ "skia_gn_files.gypi" ]) 75 [ "skia_gn_files.gypi" ])
67 76
68 # External-facing config for dependent code. 77 # External-facing config for dependent code.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 "ext/vector_canvas.h", 297 "ext/vector_canvas.h",
289 "ext/vector_platform_device_emf_win.cc", 298 "ext/vector_platform_device_emf_win.cc",
290 "ext/vector_platform_device_emf_win.h", 299 "ext/vector_platform_device_emf_win.h",
291 "ext/vector_platform_device_skia.cc", 300 "ext/vector_platform_device_skia.cc",
292 "ext/vector_platform_device_skia.h", 301 "ext/vector_platform_device_skia.h",
293 ] 302 ]
294 303
295 # The skia gypi values are relative to the skia_dir, so we need to rebase. 304 # The skia gypi values are relative to the skia_dir, so we need to rebase.
296 sources += gypi_skia_core.sources 305 sources += gypi_skia_core.sources
297 sources += gypi_skia_effects.sources 306 sources += gypi_skia_effects.sources
307 sources += gypi_skia_utils.sources
298 sources += gypi_skia_pdf.sources 308 sources += gypi_skia_pdf.sources
299 sources += gypi_values.skia_library_sources 309 sources += gypi_values.skia_library_sources
300 310
301 # GPU 311 # GPU
302 if (skia_support_gpu) { 312 if (skia_support_gpu) {
303 sources += gypi_skia_gpu.skgpu_sources 313 sources += gypi_skia_gpu.skgpu_sources
304 sources += gypi_skia_gpu.skgpu_null_gl_sources 314 sources += gypi_skia_gpu.skgpu_null_gl_sources
305 } 315 }
306 316
317 # Remove unused util files include in utils.gypi
318 sources -= [
319 "//third_party/skia/include/utils/SkCondVar.h",
320 "//third_party/skia/include/utils/SkCountdown.h",
321 "//third_party/skia/include/utils/SkRunnable.h",
322 "//third_party/skia/include/utils/SkThreadPool.h",
323 "//third_party/skia/src/utils/SkCondVar.cpp",
324 "//third_party/skia/src/utils/SkCountdown.cpp",
325
326 "//third_party/skia/include/utils/SkBoundaryPatch.h",
327 "//third_party/skia/include/utils/SkFrontBufferedStream.h",
328 "//third_party/skia/include/utils/SkCamera.h",
329 "//third_party/skia/include/utils/SkCanvasStateUtils.h",
330 "//third_party/skia/include/utils/SkCubicInterval.h",
331 "//third_party/skia/include/utils/SkCullPoints.h",
332 "//third_party/skia/include/utils/SkDebugUtils.h",
333 "//third_party/skia/include/utils/SkDumpCanvas.h",
334 "//third_party/skia/include/utils/SkEventTracer.h",
335 "//third_party/skia/include/utils/SkInterpolator.h",
336 "//third_party/skia/include/utils/SkLayer.h",
337 "//third_party/skia/include/utils/SkMeshUtils.h",
338 "//third_party/skia/include/utils/SkNinePatch.h",
339 "//third_party/skia/include/utils/SkParse.h",
340 "//third_party/skia/include/utils/SkParsePaint.h",
341 "//third_party/skia/include/utils/SkParsePath.h",
342 "//third_party/skia/include/utils/SkRandom.h",
343 "//third_party/skia/include/utils/SkWGL.h",
344
345 "//third_party/skia/src/utils/SkBitmapHasher.cpp",
346 "//third_party/skia/src/utils/SkBitmapHasher.h",
347 "//third_party/skia/src/utils/SkBoundaryPatch.cpp",
348 "//third_party/skia/src/utils/SkFrontBufferedStream.cpp",
349 "//third_party/skia/src/utils/SkCamera.cpp",
350 "//third_party/skia/src/utils/SkCanvasStack.h",
351 "//third_party/skia/src/utils/SkCubicInterval.cpp",
352 "//third_party/skia/src/utils/SkCullPoints.cpp",
353 "//third_party/skia/src/utils/SkDumpCanvas.cpp",
354 "//third_party/skia/src/utils/SkFloatUtils.h",
355 "//third_party/skia/src/utils/SkGatherPixelRefsAndRects.cpp",
356 "//third_party/skia/src/utils/SkGatherPixelRefsAndRects.h",
357 "//third_party/skia/src/utils/SkInterpolator.cpp",
358 "//third_party/skia/src/utils/SkLayer.cpp",
359 "//third_party/skia/src/utils/SkMD5.cpp",
360 "//third_party/skia/src/utils/SkMD5.h",
361 "//third_party/skia/src/utils/SkMeshUtils.cpp",
362 "//third_party/skia/src/utils/SkNinePatch.cpp",
363 "//third_party/skia/src/utils/SkOSFile.cpp",
364 "//third_party/skia/src/utils/SkParse.cpp",
365 "//third_party/skia/src/utils/SkParseColor.cpp",
366 "//third_party/skia/src/utils/SkParsePath.cpp",
367 "//third_party/skia/src/utils/SkPathUtils.cpp",
368 "//third_party/skia/src/utils/SkSHA1.cpp",
369 "//third_party/skia/src/utils/SkSHA1.h",
370 "//third_party/skia/src/utils/SkThreadUtils.h",
371 "//third_party/skia/src/utils/SkThreadUtils_pthread.cpp",
372 "//third_party/skia/src/utils/SkThreadUtils_pthread.h",
373 "//third_party/skia/src/utils/SkThreadUtils_pthread_linux.cpp",
374 "//third_party/skia/src/utils/SkThreadUtils_pthread_mach.cpp",
375 "//third_party/skia/src/utils/SkThreadUtils_pthread_other.cpp",
376 "//third_party/skia/src/utils/SkThreadUtils_win.cpp",
377 "//third_party/skia/src/utils/SkTFitsIn.h",
378 "//third_party/skia/src/utils/SkTLogic.h",
379
380 #testing
381 "//third_party/skia/src/fonts/SkGScalerContext.cpp",
382 "//third_party/skia/src/fonts/SkGScalerContext.h",
383 ]
384
385 # need separate win section to handle chromes auto gn filter (build/config/BUI LDCONFIG.gn)
386 if (is_win) {
387 sources -= [
388 "//third_party/skia/src/utils/SkThreadUtils_win.h",
389
390 #windows
391 "//third_party/skia/include/utils/win/SkAutoCoInitialize.h",
392 "//third_party/skia/include/utils/win/SkHRESULT.h",
393 "//third_party/skia/include/utils/win/SkIStream.h",
394 "//third_party/skia/include/utils/win/SkTScopedComPtr.h",
395 "//third_party/skia/src/utils/win/SkAutoCoInitialize.cpp",
396 "//third_party/skia/src/utils/win/SkIStream.cpp",
397 "//third_party/skia/src/utils/win/SkWGL_win.cpp",
398 ]
399 }
400
307 # Fixup Chrome sources. 401 # Fixup Chrome sources.
308 if (is_posix) { 402 if (is_posix) {
309 sources -= [ "ext/SkThread_chrome.cc" ] 403 sources -= [ "ext/SkThread_chrome.cc" ]
310 } 404 }
311 if (is_ios) { 405 if (is_ios) {
312 sources -= [ "ext/vector_platform_device_skia.cc" ] 406 sources -= [ "ext/vector_platform_device_skia.cc" ]
313 } 407 }
314 if (is_win) { 408 if (is_win) {
315 sources -= [ "ext/SkThread_chrome.cc" ] 409 sources -= [ "ext/SkThread_chrome.cc" ]
316 } 410 }
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 ":skia_config", 640 ":skia_config",
547 "//build/config/compiler:no_chromium_code" 641 "//build/config/compiler:no_chromium_code"
548 ] 642 ]
549 643
550 deps = [ 644 deps = [
551 "//base", 645 "//base",
552 ] 646 ]
553 647
554 visibility = ":skia" 648 visibility = ":skia"
555 } 649 }
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