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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/toolchain/nacl/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/nacl/rules.gni
diff --git a/build/config/nacl/rules.gni b/build/config/nacl/rules.gni
index 8e93b6a1863798961449090b73ab2279696ca5a3..adecc305b7f81fd478dd6fa3074f7d2b7bc48141 100644
--- a/build/config/nacl/rules.gni
+++ b/build/config/nacl/rules.gni
@@ -36,7 +36,15 @@ template("generate_nmf") {
"testonly",
])
+ objdump = rebase_path("${nacl_toolprefix}objdump")
+ if (host_os == "win") {
+ objdump += ".exe"
+ }
+
script = "//native_client_sdk/src/tools/create_nmf.py"
+ inputs = [
+ objdump,
+ ]
sources = executables
outputs = [
nmf,
@@ -80,7 +88,7 @@ template("generate_nmf") {
}
args = [
"--no-default-libpath",
- "--objdump=" + rebase_path("${nacl_toolprefix}objdump"),
+ "--objdump=" + objdump,
"--output=" + rebase_path(nmf, root_build_dir),
] + nmfflags + rebase_path(sources, root_build_dir)
if (is_nacl_glibc && current_cpu == "arm") {
« 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