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

Side by Side Diff: build/toolchain/nacl_toolchain.gni

Issue 1333673002: Build PPAPI NaCl Glibc tests with GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Combine Newlib and Glibc targets 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
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/nacl/config.gni")
5 import("//build/toolchain/gcc_toolchain.gni") 6 import("//build/toolchain/gcc_toolchain.gni")
6 7
7 # This template defines a NaCl toolchain. 8 # This template defines a NaCl toolchain.
8 # 9 #
9 # It requires the following variables specifying the executables to run: 10 # It requires the following variables specifying the executables to run:
10 # - cc 11 # - cc
11 # - cxx 12 # - cxx
12 # - ar 13 # - ar
13 # - ld 14 # - ld
14 # and the following which is used in the toolchain_args 15 # and the following which is used in the toolchain_args
(...skipping 26 matching lines...) Expand all
41 if (defined(invoker.postlink)) { 42 if (defined(invoker.postlink)) {
42 postlink = invoker.postlink 43 postlink = invoker.postlink
43 } 44 }
44 if (defined(invoker.link_outputs)) { 45 if (defined(invoker.link_outputs)) {
45 link_outputs = invoker.link_outputs 46 link_outputs = invoker.link_outputs
46 } 47 }
47 48
48 # We do not wish to suport shared builds with the NaCl toolchains. 49 # We do not wish to suport shared builds with the NaCl toolchains.
49 is_component_build = false 50 is_component_build = false
50 51
52 is_nacl_glibc = invoker.is_nacl_glibc
53
51 gcc_toolchain(target_name) { 54 gcc_toolchain(target_name) {
52 rebuild_define = "NACL_TC_REV=" + invoker.toolchain_revision 55 rebuild_define = "NACL_TC_REV=" + invoker.toolchain_revision
53 if (defined(invoker.deps)) { 56 if (defined(invoker.deps)) {
54 deps = invoker.deps 57 deps = invoker.deps
55 } 58 }
56 } 59 }
57 } 60 }
OLDNEW
« no previous file with comments | « build/toolchain/nacl/BUILD.gn ('k') | chrome/test/BUILD.gn » ('j') | ppapi/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698