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

Side by Side Diff: skia/BUILD.gn

Issue 2032553002: Fix Skia windows GN build (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 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 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 if (current_cpu == "arm") { 9 if (current_cpu == "arm") {
10 import("//build/config/arm.gni") 10 import("//build/config/arm.gni")
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 "//third_party/skia/src/utils/win/SkIStream.cpp", 304 "//third_party/skia/src/utils/win/SkIStream.cpp",
305 "//third_party/skia/src/utils/win/SkWGL_win.cpp", 305 "//third_party/skia/src/utils/win/SkWGL_win.cpp",
306 ] 306 ]
307 } 307 }
308 308
309 # Fixup skia library sources. 309 # Fixup skia library sources.
310 if (is_win) { 310 if (is_win) {
311 sources -= [ 311 sources -= [
312 "//third_party/skia/src/ports/SkOSFile_posix.cpp", 312 "//third_party/skia/src/ports/SkOSFile_posix.cpp",
313 "//third_party/skia/src/ports/SkTLS_pthread.cpp", 313 "//third_party/skia/src/ports/SkTLS_pthread.cpp",
314 "//third_party/skia/src/ports/SkFontMgr_custom.cpp",
315 "//third_party/skia/src/ports/SkFontMgr_custom_empty_factory.cpp",
314 ] 316 ]
315 } else { 317 } else {
316 sources -= [ 318 sources -= [
317 "//third_party/skia/src/ports/SkFontHost_win.cpp", 319 "//third_party/skia/src/ports/SkFontHost_win.cpp",
318 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp", 320 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp",
321 "//third_party/skia/src/ports/SkFontMgr_win_dw_factory.cpp",
319 "//third_party/skia/src/ports/SkOSFile_win.cpp", 322 "//third_party/skia/src/ports/SkOSFile_win.cpp",
320 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", 323 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp",
321 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", 324 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp",
322 "//third_party/skia/src/ports/SkTLS_win.cpp", 325 "//third_party/skia/src/ports/SkTLS_win.cpp",
323 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp", 326 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp",
324 ] 327 ]
325 } 328 }
326 if (!is_android) { 329 if (!is_android) {
327 sources -= [ 330 sources -= [
328 "//third_party/skia/src/ports/SkFontMgr_android.cpp", 331 "//third_party/skia/src/ports/SkFontMgr_android.cpp",
329 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp", 332 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp",
330 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", 333 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp",
331 ] 334 ]
332 } 335 }
333 if (!is_mac) { 336 if (!is_mac) {
334 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] 337 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ]
335 } 338 }
336 339
337 if (!is_linux) {
338 sources -= [
339 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp",
340 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp",
341 "//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp",
342 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp",
343 ]
344 }
345
346 if (!is_linux && !is_android) { 340 if (!is_linux && !is_android) {
347 sources -= [ 341 sources -= [
348 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", 342 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp",
349 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", 343 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp",
350 ] 344 ]
351 } 345 }
352 346
353 if (is_clang && !is_nacl) { 347 if (is_clang && !is_nacl) {
354 # Skia won't compile with some of the more strict clang warnings. 348 # Skia won't compile with some of the more strict clang warnings.
355 # e.g. it does: 349 # e.g. it does:
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 547
554 configs -= [ "//build/config/compiler:chromium_code" ] 548 configs -= [ "//build/config/compiler:chromium_code" ]
555 configs += [ 549 configs += [
556 ":skia_config", 550 ":skia_config",
557 ":skia_library_config", 551 ":skia_library_config",
558 "//build/config/compiler:no_chromium_code", 552 "//build/config/compiler:no_chromium_code",
559 ] 553 ]
560 554
561 visibility = [ ":skia" ] 555 visibility = [ ":skia" ]
562 } 556 }
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