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

Side by Side Diff: tools/gn/secondary/build/toolchain/nacl/BUILD.gn

Issue 26267003: Add the concept of a source set to GN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/secondary/build/config/BUILDCONFIG.gn ('k') | tools/gn/secondary/chrome/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 5
6 toolchain("x86_newlib") { 6 toolchain("x86_newlib") {
7 toolprefix = "gen/sdk/toolchain/linux_x86_newlib/bin/x86_64-nacl-" 7 toolprefix = "gen/sdk/toolchain/linux_x86_newlib/bin/x86_64-nacl-"
8 cc = toolprefix + "gcc" 8 cc = toolprefix + "gcc"
9 cxx = toolprefix + "g++" 9 cxx = toolprefix + "g++"
10 ld = toolprefix + "g++" 10 ld = toolprefix + "g++"
(...skipping 20 matching lines...) Expand all
31 description = "SOLINK(NaCl x86 Newlib) \$lib" 31 description = "SOLINK(NaCl x86 Newlib) \$lib"
32 #pool = "link_pool" 32 #pool = "link_pool"
33 restat = "1" 33 restat = "1"
34 } 34 }
35 tool("link") { 35 tool("link") {
36 command = "$ld \$ldflags -o \$out -Wl,--start-group \$in \$solibs -Wl,--end- group \$libs" 36 command = "$ld \$ldflags -o \$out -Wl,--start-group \$in \$solibs -Wl,--end- group \$libs"
37 description = "LINK(NaCl x86 Newlib) \$out" 37 description = "LINK(NaCl x86 Newlib) \$out"
38 #pool = "link_pool" 38 #pool = "link_pool"
39 } 39 }
40 40
41 if (is_win) {
42 tool("stamp") {
43 command = "$python_path gyp-win-tool stamp \$out"
44 description = "STAMP \$out"
45 }
46 } else {
47 tool("stamp") {
48 command = "touch \$out"
49 description = "STAMP \$out"
50 }
51 }
52
41 toolchain_args() { 53 toolchain_args() {
42 is_nacl = true 54 is_nacl = true
43 55
44 # Component build not supported in NaCl, since it does not support shared 56 # Component build not supported in NaCl, since it does not support shared
45 # libraries. 57 # libraries.
46 is_component_build = false 58 is_component_build = false
47 59
48 # Override the default OS detection. 60 # Override the default OS detection.
49 is_android = false 61 is_android = false
50 is_mac = false 62 is_mac = false
51 is_posix = true 63 is_posix = true
52 is_linux = false 64 is_linux = false
53 is_win = false 65 is_win = false
54 } 66 }
55 } 67 }
OLDNEW
« no previous file with comments | « tools/gn/secondary/build/config/BUILDCONFIG.gn ('k') | tools/gn/secondary/chrome/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698