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

Side by Side Diff: build/gn_helper_scripts.gni

Issue 266613002: Add BUILD.gn for third_party/yasm. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yasm yasm yasm Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 template("run_executable") {
6 action("${target_name}") {
7 script = "//build/gn_run_binary.py"
8
9 if (defined(invoker.sources)) {
10 sources = invoker.sources
11 }
12 if (defined(invoker.outputs)) {
13 outputs = invoker.outputs
14 }
15 if (defined(invoker.source_prereqs)) {
16 source_prereqs = invoker.source_prereqs
17 }
18
19 args = [
20 rebase_path(root_out_dir + "/" + invoker.binary_name, root_build_dir)
21 ]
22 if (defined(invoker.args)) {
23 args += invoker.args
24 }
25
26 if (defined(invoker.datadeps)) {
27 datadeps += invoker.datadeps
28 }
29 if (defined(invoker.deps)) {
30 deps = invoker.deps
31 }
32 }
33 }
34
35 template("run_executable_foreach") {
36 action_foreach("${target_name}") {
37 script = "//build/gn_run_binary.py"
38
39 if (defined(invoker.sources)) {
40 sources = invoker.sources
41 }
42 if (defined(invoker.outputs)) {
43 outputs = invoker.outputs
44 }
45 if (defined(invoker.source_prereqs)) {
46 source_prereqs = invoker.source_prereqs
47 }
48
49 args = [
50 rebase_path(root_out_dir + "/" + invoker.binary_name, root_build_dir)
51 ]
52 if (defined(invoker.args)) {
53 args += invoker.args
54 }
55
56 if (defined(invoker.datadeps)) {
57 datadeps += invoker.datadeps
58 }
59 if (defined(invoker.deps)) {
60 deps = invoker.deps
61 }
62 }
63 }
64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698