diff options
author | Brett Wilson <brettw@chromium.org> | 2014-09-02 12:50:29 -0700 |
---|---|---|
committer | Brett Wilson <brettw@chromium.org> | 2014-09-02 19:57:57 +0000 |
commit | e1b05dc1d206abb5cd3fc0fdd549bd88eb5452a9 (patch) | |
tree | d284b09eece2c6ca1b44c448094e8f8db462432f /build/compiled_action.gni | |
parent | 83fd424ef7bcba7af879bad8cd62bf708e6f5947 (diff) | |
download | chromium_src-e1b05dc1d206abb5cd3fc0fdd549bd88eb5452a9.zip chromium_src-e1b05dc1d206abb5cd3fc0fdd549bd88eb5452a9.tar.gz chromium_src-e1b05dc1d206abb5cd3fc0fdd549bd88eb5452a9.tar.bz2 |
Minor fixes for the GN Windows build.
R=scottmg@chromium.org
Review URL: https://codereview.chromium.org/533853002
Cr-Commit-Position: refs/heads/master@{#292979}
Diffstat (limited to 'build/compiled_action.gni')
-rw-r--r-- | build/compiled_action.gni | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/build/compiled_action.gni b/build/compiled_action.gni index 2fb4532..b750af0 100644 --- a/build/compiled_action.gni +++ b/build/compiled_action.gni @@ -66,6 +66,12 @@ # saves unnecessarily compiling your tool for the target platform. But if you # need a target build of your tool as well, just leave off the if statement. +if (build_os == "win") { + _host_executable_suffix = ".exe" +} else { + _host_executable_suffix = "" +} + template("compiled_action") { assert(defined(invoker.tool), "tool must be defined for $target_name") assert(defined(invoker.outputs), "outputs must be defined for $target_name") @@ -97,7 +103,7 @@ template("compiled_action") { # specify this, since we can't know what the output name is (it might be in # another file not processed yet). host_executable = get_label_info(host_tool, "root_out_dir") + "/" + - get_label_info(host_tool, "name") + get_label_info(host_tool, "name") + _host_executable_suffix # Add the executable itself as an input. inputs += [ host_executable ] @@ -146,7 +152,7 @@ template("compiled_action_foreach") { # specify this, since we can't know what the output name is (it might be in # another file not processed yet). host_executable = get_label_info(host_tool, "root_out_dir") + "/" + - get_label_info(host_tool, "name") + get_label_info(host_tool, "name") + _host_executable_suffix # Add the executable itself as an input. inputs += [ host_executable ] |