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

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

Issue 1333673002: Build PPAPI NaCl Glibc tests with GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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 | « build/toolchain/gcc_toolchain.gni ('k') | build/toolchain/nacl_toolchain.gni » ('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) 2014 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2014 The Native Client 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/sysroot.gni") 5 import("//build/config/sysroot.gni")
6 import("//build/toolchain/nacl_toolchain.gni") 6 import("//build/toolchain/nacl_toolchain.gni")
7 7
8 nacl_toolchain_dir = rebase_path("//native_client/toolchain", root_build_dir) 8 nacl_toolchain_dir = rebase_path("//native_client/toolchain", root_build_dir)
9 os_toolchain_dir = "${nacl_toolchain_dir}/${current_os}_x86" 9 os_toolchain_dir = "${nacl_toolchain_dir}/${current_os}_x86"
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 postlink = "$finalize $nonfinal_file -o $finalized_file" 43 postlink = "$finalize $nonfinal_file -o $finalized_file"
44 link_outputs = [ finalized_file ] 44 link_outputs = [ finalized_file ]
45 } 45 }
46 46
47 nacl_toolchain("glibc_x86") { 47 nacl_toolchain("glibc_x86") {
48 toolchain_package = "nacl_x86_glibc" 48 toolchain_package = "nacl_x86_glibc"
49 toolchain_revision = nacl_x86_glibc_rev 49 toolchain_revision = nacl_x86_glibc_rev
50 toolchain_cpu = "x86" 50 toolchain_cpu = "x86"
51 toolprefix = "${os_toolchain_dir}/${toolchain_package}/bin/i686-nacl-" 51 toolprefix = "${os_toolchain_dir}/${toolchain_package}/bin/i686-nacl-"
52 is_clang = false 52 is_clang = false
53 is_nacl_glibc = true
53 54
54 cc = toolprefix + "gcc" 55 cc = toolprefix + "gcc"
55 cxx = toolprefix + "g++" 56 cxx = toolprefix + "g++"
56 ar = toolprefix + "ar" 57 ar = toolprefix + "ar"
57 ld = cxx 58 ld = cxx
58 } 59 }
59 60
60 nacl_toolchain("glibc_x64") { 61 nacl_toolchain("glibc_x64") {
61 toolchain_package = "nacl_x86_glibc" 62 toolchain_package = "nacl_x86_glibc"
62 toolchain_revision = nacl_x86_glibc_rev 63 toolchain_revision = nacl_x86_glibc_rev
63 toolchain_cpu = "x64" 64 toolchain_cpu = "x64"
64 toolprefix = "${os_toolchain_dir}/${toolchain_package}/bin/x86_64-nacl-" 65 toolprefix = "${os_toolchain_dir}/${toolchain_package}/bin/x86_64-nacl-"
65 is_clang = false 66 is_clang = false
67 is_nacl_glibc = true
66 68
67 cc = toolprefix + "gcc" 69 cc = toolprefix + "gcc"
68 cxx = toolprefix + "g++" 70 cxx = toolprefix + "g++"
69 ar = toolprefix + "ar" 71 ar = toolprefix + "ar"
70 ld = cxx 72 ld = cxx
71 } 73 }
72 74
73 template("nacl_clang_toolchain") { 75 template("nacl_clang_toolchain") {
74 toolchain_cpu = target_name 76 toolchain_cpu = target_name
75 assert(defined(invoker.toolchain_tuple), "Must define toolchain_tuple") 77 assert(defined(invoker.toolchain_tuple), "Must define toolchain_tuple")
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 toolchain_tuple = "i686-nacl" 140 toolchain_tuple = "i686-nacl"
139 } 141 }
140 142
141 nacl_clang_toolchains("x64") { 143 nacl_clang_toolchains("x64") {
142 toolchain_tuple = "x86_64-nacl" 144 toolchain_tuple = "x86_64-nacl"
143 } 145 }
144 146
145 nacl_clang_toolchains("arm") { 147 nacl_clang_toolchains("arm") {
146 toolchain_tuple = "arm-nacl" 148 toolchain_tuple = "arm-nacl"
147 } 149 }
OLDNEW
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | build/toolchain/nacl_toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698