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

Side by Side Diff: test/ninja/action_dependencies/src/action_dependencies.gyp

Issue 8400082: Ninja: separate dependencies for compile steps vs actions/rules/copies (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: copyright year Created 9 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 | Annotate | Revision Log
« no previous file with comments | « test/ninja/action_dependencies/src/a.c ('k') | test/ninja/action_dependencies/src/b.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2011 Google Inc. 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 {
6 'targets': [
7 {
8 'target_name': 'a',
9 'type': 'static_library',
10 'sources': [
11 'a.c',
12 'a.h',
13 ],
14 'actions': [
15 {
16 'action_name': 'generate_headers',
17 'inputs': [
18 'emit.py'
19 ],
20 'outputs': [
21 '<(SHARED_INTERMEDIATE_DIR)/a/generated.h'
22 ],
23 'action': [
24 'python',
25 'emit.py',
26 '<(SHARED_INTERMEDIATE_DIR)/a/generated.h',
27 ],
28 # Allows the test to run without hermetic cygwin on windows.
29 'msvs_cygwin_shell': 0,
30 },
31 ],
32 'include_dirs': [
33 '<(SHARED_INTERMEDIATE_DIR)',
34 ],
35 'direct_dependent_settings': {
36 'include_dirs': [
37 '<(SHARED_INTERMEDIATE_DIR)',
38 ],
39 },
40 },
41 {
42 'target_name': 'b',
43 'type': 'executable',
44 'sources': [
45 'b.c',
46 'b.h',
47 ],
48 'dependencies': [
49 'a',
50 ],
51 },
52 {
53 'target_name': 'c',
54 'type': 'static_library',
55 'sources': [
56 'c.c',
57 'c.h',
58 ],
59 'dependencies': [
60 'b',
61 ],
62 'actions': [
63 {
64 'action_name': 'generate_headers',
65 'inputs': [
66 ],
67 'outputs': [
68 '<(SHARED_INTERMEDIATE_DIR)/c/generated.h'
69 ],
70 'action': [
71 '<(PRODUCT_DIR)/b',
72 '<(SHARED_INTERMEDIATE_DIR)/c/generated.h',
73 ],
74 # Allows the test to run without hermetic cygwin on windows.
75 'msvs_cygwin_shell': 0,
76 },
77 ],
78 'include_dirs': [
79 '<(SHARED_INTERMEDIATE_DIR)',
80 ],
81 'direct_dependent_settings': {
82 'include_dirs': [
83 '<(SHARED_INTERMEDIATE_DIR)',
84 ],
85 },
86 },
87 ],
88 }
OLDNEW
« no previous file with comments | « test/ninja/action_dependencies/src/a.c ('k') | test/ninja/action_dependencies/src/b.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698