OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |