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

Side by Side Diff: build/config/BUILD.gn

Issue 1902593003: [Mac/GN] Do not specify any default_libs to link. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « base/BUILD.gn ('k') | ui/base/BUILD.gn » ('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/allocator.gni") 5 import("//build/config/allocator.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/chromecast_build.gni") 7 import("//build/config/chromecast_build.gni")
8 import("//build/config/crypto.gni") 8 import("//build/config/crypto.gni")
9 import("//build/config/features.gni") 9 import("//build/config/features.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 # list smaller, since all common things should be covered. If you need 354 # list smaller, since all common things should be covered. If you need
355 # some extra libraries, please just add a libs = [ "foo.lib" ] to your 355 # some extra libraries, please just add a libs = [ "foo.lib" ] to your
356 # target that needs it. 356 # target that needs it.
357 ] 357 ]
358 } else if (is_android) { 358 } else if (is_android) {
359 libs = [ 359 libs = [
360 "dl", 360 "dl",
361 "m", 361 "m",
362 ] 362 ]
363 } else if (is_mac) { 363 } else if (is_mac) {
364 libs = [ 364 # Targets should choose to explicitly link frameworks they require. Since
365 "AppKit.framework", 365 # linking can have run-time side effects, nothing should be listed here.
366 "ApplicationServices.framework", 366 libs = []
367 "Carbon.framework",
368 "CoreFoundation.framework",
369 "Foundation.framework",
370 "IOKit.framework",
371 "OpenGL.framework",
372 "Security.framework",
373 ]
374 } else if (is_ios) { 367 } else if (is_ios) {
375 # The libraries listed here will be specified for both the target and the 368 # The libraries listed here will be specified for both the target and the
376 # host. Only the common ones should be listed here. 369 # host. Only the common ones should be listed here.
377 libs = [ 370 libs = [
378 "CoreFoundation.framework", 371 "CoreFoundation.framework",
379 "CoreGraphics.framework", 372 "CoreGraphics.framework",
380 "CoreText.framework", 373 "CoreText.framework",
381 "Foundation.framework", 374 "Foundation.framework",
382 ] 375 ]
383 } else if (is_linux) { 376 } else if (is_linux) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 # file doesn't exist, no error will be generated (probably MS tested this 460 # file doesn't exist, no error will be generated (probably MS tested this
468 # case but forgot the other one?). To reproduce this error, do a build, 461 # case but forgot the other one?). To reproduce this error, do a build,
469 # then delete the precompile.c.obj file, then build again. 462 # then delete the precompile.c.obj file, then build again.
470 cflags_c = [ "/wd4206" ] 463 cflags_c = [ "/wd4206" ]
471 } else if (is_mac) { 464 } else if (is_mac) {
472 precompiled_header = "build/precompile.h" 465 precompiled_header = "build/precompile.h"
473 precompiled_source = "//build/precompile.h" 466 precompiled_source = "//build/precompile.h"
474 } 467 }
475 } 468 }
476 } 469 }
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698