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

Side by Side Diff: build/config/nacl/rules.gni

Issue 1447533005: GN: Make NaCl toolchains run on Windows host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | build/toolchain/nacl/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 2015 The Native Client Authors. All rights reserved. 1 # Copyright 2015 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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/nacl/config.gni") 6 import("//build/config/nacl/config.gni")
7 7
8 # Generate a nmf file 8 # Generate a nmf file
9 # 9 #
10 # Native Client Manifest (nmf) is a JSON file that tells the browser where to 10 # Native Client Manifest (nmf) is a JSON file that tells the browser where to
(...skipping 18 matching lines...) Expand all
29 "data_deps", 29 "data_deps",
30 "executables", 30 "executables",
31 "lib_prefix", 31 "lib_prefix",
32 "nmf", 32 "nmf",
33 "nmfflags", 33 "nmfflags",
34 "public_deps", 34 "public_deps",
35 "stage_dependencies", 35 "stage_dependencies",
36 "testonly", 36 "testonly",
37 ]) 37 ])
38 38
39 objdump = rebase_path("${nacl_toolprefix}objdump")
40 if (host_os == "win") {
41 objdump += ".exe"
42 }
43
39 script = "//native_client_sdk/src/tools/create_nmf.py" 44 script = "//native_client_sdk/src/tools/create_nmf.py"
45 inputs = [
46 objdump,
47 ]
40 sources = executables 48 sources = executables
41 outputs = [ 49 outputs = [
42 nmf, 50 nmf,
43 ] 51 ]
44 if (is_nacl_glibc) { 52 if (is_nacl_glibc) {
45 if (defined(stage_dependencies)) { 53 if (defined(stage_dependencies)) {
46 nmfflags += [ "--stage-dependencies=" + 54 nmfflags += [ "--stage-dependencies=" +
47 rebase_path(stage_dependencies, root_build_dir) ] 55 rebase_path(stage_dependencies, root_build_dir) ]
48 lib_path = stage_dependencies 56 lib_path = stage_dependencies
49 } else { 57 } else {
(...skipping 23 matching lines...) Expand all
73 } else { 81 } else {
74 nmfflags += 82 nmfflags +=
75 [ "--library-path=" + rebase_path("${nacl_toolchain_tooldir}/lib") ] 83 [ "--library-path=" + rebase_path("${nacl_toolchain_tooldir}/lib") ]
76 data = [ 84 data = [
77 "${lib_path}/lib/", 85 "${lib_path}/lib/",
78 ] 86 ]
79 } 87 }
80 } 88 }
81 args = [ 89 args = [
82 "--no-default-libpath", 90 "--no-default-libpath",
83 "--objdump=" + rebase_path("${nacl_toolprefix}objdump"), 91 "--objdump=" + objdump,
84 "--output=" + rebase_path(nmf, root_build_dir), 92 "--output=" + rebase_path(nmf, root_build_dir),
85 ] + nmfflags + rebase_path(sources, root_build_dir) 93 ] + nmfflags + rebase_path(sources, root_build_dir)
86 if (is_nacl_glibc && current_cpu == "arm") { 94 if (is_nacl_glibc && current_cpu == "arm") {
87 deps += [ "//native_client/src/untrusted/elf_loader:elf_loader" ] 95 deps += [ "//native_client/src/untrusted/elf_loader:elf_loader" ]
88 } 96 }
89 } 97 }
90 } 98 }
91 99
92 # Generate a nmf file for Non-SFI tests 100 # Generate a nmf file for Non-SFI tests
93 # 101 #
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } else { 138 } else {
131 arch = target_cpu 139 arch = target_cpu
132 } 140 }
133 args = [ 141 args = [
134 "--program=" + rebase_path(executable, root_build_dir), 142 "--program=" + rebase_path(executable, root_build_dir),
135 "--arch=${arch}", 143 "--arch=${arch}",
136 "--output=" + rebase_path(nmf, root_build_dir), 144 "--output=" + rebase_path(nmf, root_build_dir),
137 ] 145 ]
138 } 146 }
139 } 147 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/nacl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698