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

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

Issue 745823002: GYP: fix compile flake for second-hand use of generated headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Testing hack 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))',
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 # Prevent the generated sources from being injected into the "all" target.
17 #'suppress_wildcard': '1',
16 'actions': [ 18 'actions': [
17 { 19 {
18 'action_name': '<(_target_name)_mojom_bindings_generator', 20 'action_name': '<(_target_name)_mojom_bindings_generator',
19 'variables': { 21 'variables': {
20 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', 22 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
21 'mojom_import_args%': [ 23 'mojom_import_args%': [
22 '-I<(DEPTH)' 24 '-I<(DEPTH)'
23 ], 25 ],
24 }, 26 },
25 'inputs': [ 27 'inputs': [
26 '<@(mojom_bindings_generator_sources)', 28 '<@(mojom_bindings_generator_sources)',
27 '<@(mojom_files)', 29 '<@(mojom_files)',
28 ], 30 ],
29 'outputs': [ 31 'outputs': [
30 '<@(mojom_generated_outputs)', 32 '<@(mojom_generated_outputs)',
31 ], 33 ],
32 'action': [ 34 'action': [
33 'python', '<@(mojom_bindings_generator)', 35 'python', '<@(mojom_bindings_generator)',
34 '<@(mojom_files)', 36 '<@(mojom_files)',
35 '--use_chromium_bundled_pylibs', 37 '--use_chromium_bundled_pylibs',
36 '-d', '<(DEPTH)', 38 '-d', '<(DEPTH)',
37 '<@(mojom_import_args)', 39 '<@(mojom_import_args)',
38 '-o', '<(SHARED_INTERMEDIATE_DIR)', 40 '-o', '<(SHARED_INTERMEDIATE_DIR)',
39 '--java_output_directory=<(java_out_dir)', 41 '--java_output_directory=<(java_out_dir)',
40 ], 42 ],
41 'message': 'Generating Mojo bindings from <@(mojom_files)', 43 'message': 'Generating Mojo bindings from <@(mojom_files)',
42 'process_outputs_as_sources': 1,
43 } 44 }
44 ], 45 ],
45 'direct_dependent_settings': { 46 'direct_dependent_settings': {
47 # A target directly depending on this action will compile the generated
48 # sources.
46 'sources': [ 49 'sources': [
47 '<@(mojom_generated_outputs)', 50 '<@(mojom_generated_outputs)',
48 ], 51 ],
49 # Include paths needed to compile the generated sources into a library. 52 # Include paths needed to compile the generated sources into a library.
50 'include_dirs': [ 53 'include_dirs': [
51 '<(DEPTH)', 54 '<(DEPTH)',
52 '<(SHARED_INTERMEDIATE_DIR)', 55 '<(SHARED_INTERMEDIATE_DIR)',
53 ], 56 ],
57 # Make sure the generated header files are available for any static library
58 # that depends on a static library that depends on this generator.
59 'hard_dependency': 1,
54 'direct_dependent_settings': { 60 'direct_dependent_settings': {
55 # Include paths needed to find the generated header files and their 61 # Include paths needed to find the generated header files and their
56 # transitive dependancies when using the library. 62 # transitive dependancies when using the library.
57 'include_dirs': [ 63 'include_dirs': [
58 '<(DEPTH)', 64 '<(DEPTH)',
59 '<(SHARED_INTERMEDIATE_DIR)', 65 '<(SHARED_INTERMEDIATE_DIR)',
60 ], 66 ],
61 'variables': { 67 'variables': {
62 'generated_src_dirs': [ 68 'generated_src_dirs': [
63 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', 69 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
64 ], 70 ],
65 }, 71 },
66 } 72 }
67 }, 73 },
68 'hard_dependency': 1,
69 } 74 }
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