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

Side by Side Diff: mojo/public/tools/bindings/mojom_bindings_generator_explicit.gypi

Issue 744203002: GYP: fix compile flake for second-hand use of generated headers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Update Created 6 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 | « mojo/public/mojo_public.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium 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 { 5 {
6 'includes': [ 6 'includes': [
7 'mojom_bindings_generator_variables.gypi', 7 'mojom_bindings_generator_variables.gypi',
8 ], 8 ],
9 'variables': { 9 'variables': {
10 'mojom_base_output_dir': 10 'mojom_base_output_dir':
11 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', 11 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))',
Nico 2014/11/25 04:09:12 (nit: i'd dedented this one instead of indenting 2
12 'mojom_generated_outputs': [ 12 'mojom_generated_outputs': [
13 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba sedir <(mojom_base_output_dir) <@(mojom_files))', 13 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py -- basedir <(mojom_base_output_dir) <@(mojom_files))',
14 ], 14 ],
15 }, 15 },
16 'actions': [ 16 'actions': [
17 { 17 {
18 'action_name': '<(_target_name)_mojom_bindings_generator', 18 'action_name': '<(_target_name)_mojom_bindings_generator',
19 'variables': { 19 'variables': {
20 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', 20 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
21 'mojom_import_args%': [ 21 'mojom_import_args%': [
22 '-I<(DEPTH)' 22 '-I<(DEPTH)'
23 ], 23 ],
24 }, 24 },
25 'inputs': [ 25 'inputs': [
26 '<@(mojom_bindings_generator_sources)', 26 '<@(mojom_bindings_generator_sources)',
27 '<@(mojom_files)', 27 '<@(mojom_files)',
28 ], 28 ],
29 'outputs': [ 29 'outputs': [
30 '<@(mojom_generated_outputs)', 30 '<@(mojom_generated_outputs)',
31 ], 31 ],
32 'action': [ 32 'action': [
33 'python', '<@(mojom_bindings_generator)', 33 'python', '<@(mojom_bindings_generator)',
34 '<@(mojom_files)', 34 '<@(mojom_files)',
35 '--use_chromium_bundled_pylibs', 35 '--use_chromium_bundled_pylibs',
36 '-d', '<(DEPTH)', 36 '-d', '<(DEPTH)',
37 '<@(mojom_import_args)', 37 '<@(mojom_import_args)',
38 '-o', '<(SHARED_INTERMEDIATE_DIR)', 38 '-o', '<(SHARED_INTERMEDIATE_DIR)',
39 '--java_output_directory=<(java_out_dir)', 39 '--java_output_directory=<(java_out_dir)',
40 ], 40 ],
41 'message': 'Generating Mojo bindings from <@(mojom_files)', 41 'message': 'Generating Mojo bindings from <@(mojom_files)',
42 'process_outputs_as_sources': 1,
43 } 42 }
44 ], 43 ],
45 'direct_dependent_settings': { 44 'direct_dependent_settings': {
45 # A target directly depending on this action will compile the generated
46 # sources.
46 'sources': [ 47 'sources': [
47 '<@(mojom_generated_outputs)', 48 '<@(mojom_generated_outputs)',
48 ], 49 ],
49 # Include paths needed to compile the generated sources into a library. 50 # Include paths needed to compile the generated sources into a library.
50 'include_dirs': [ 51 'include_dirs': [
51 '<(DEPTH)', 52 '<(DEPTH)',
52 '<(SHARED_INTERMEDIATE_DIR)', 53 '<(SHARED_INTERMEDIATE_DIR)',
53 ], 54 ],
55 # Make sure the generated header files are available for any static library
56 # that depends on a static library that depends on this generator.
57 'hard_dependency': 1,
54 'direct_dependent_settings': { 58 'direct_dependent_settings': {
55 # Include paths needed to find the generated header files and their 59 # Include paths needed to find the generated header files and their
56 # transitive dependancies when using the library. 60 # transitive dependancies when using the library.
57 'include_dirs': [ 61 'include_dirs': [
58 '<(DEPTH)', 62 '<(DEPTH)',
59 '<(SHARED_INTERMEDIATE_DIR)', 63 '<(SHARED_INTERMEDIATE_DIR)',
60 ], 64 ],
61 'variables': { 65 'variables': {
62 'generated_src_dirs': [ 66 'generated_src_dirs': [
63 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', 67 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
64 ], 68 ],
65 }, 69 },
66 } 70 }
67 }, 71 },
68 'hard_dependency': 1,
69 } 72 }
OLDNEW
« no previous file with comments | « mojo/public/mojo_public.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698