OLD | NEW |
1 # Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2016 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 # This file is meant to be included into a target to provide a rule to invoke | 5 # This file is meant to be included into a target to provide a rule to invoke |
6 # the flatc compiler in a consistent manner. | 6 # the flatc compiler in a consistent manner. |
7 # | 7 # |
8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
9 # { | 9 # { |
10 # 'target_name': 'my_flatc_lib', | 10 # 'target_name': 'my_flatc_lib', |
(...skipping 29 matching lines...) Expand all Loading... |
40 '-c', | 40 '-c', |
41 '-o', | 41 '-o', |
42 '<(cc_dir)', | 42 '<(cc_dir)', |
43 '<(RULE_INPUT_PATH)' | 43 '<(RULE_INPUT_PATH)' |
44 ], | 44 ], |
45 'message': 'Generating C++ code from <(RULE_INPUT_PATH)', | 45 'message': 'Generating C++ code from <(RULE_INPUT_PATH)', |
46 'process_outputs_as_sources': 1, | 46 'process_outputs_as_sources': 1, |
47 } | 47 } |
48 ], | 48 ], |
49 'dependencies': [ | 49 'dependencies': [ |
50 '<(DEPTH)/third_party/flatbuffers/flatbuffers.gyp:flatc', | 50 '<(DEPTH)/third_party/flatbuffers/flatbuffers.gyp:flatc#host', |
51 ], | 51 ], |
52 'include_dirs': [ | 52 'include_dirs': [ |
53 '<(SHARED_INTERMEDIATE_DIR)/flatc_out', | 53 '<(SHARED_INTERMEDIATE_DIR)/flatc_out', |
54 '<(DEPTH)', | 54 '<(DEPTH)', |
55 ], | 55 ], |
56 'direct_dependent_settings': { | 56 'direct_dependent_settings': { |
57 'include_dirs': [ | 57 'include_dirs': [ |
58 '<(SHARED_INTERMEDIATE_DIR)/flatc_out', | 58 '<(SHARED_INTERMEDIATE_DIR)/flatc_out', |
59 '<(DEPTH)', | 59 '<(DEPTH)', |
60 ] | 60 ] |
61 }, | 61 }, |
62 'export_dependent_settings': [ | 62 'export_dependent_settings': [ |
63 # The generated headers reference headers within flatbuffers, | 63 # The generated headers reference headers within flatbuffers, |
64 # so dependencies must be able to find those headers too. | 64 # so dependencies must be able to find those headers too. |
65 '<(DEPTH)/third_party/flatbuffers/flatbuffers.gyp:flatbuffers', | 65 '<(DEPTH)/third_party/flatbuffers/flatbuffers.gyp:flatbuffers', |
66 ], | 66 ], |
67 # This target exports a hard dependency because it generates header | 67 # This target exports a hard dependency because it generates header |
68 # files. | 68 # files. |
69 'hard_dependency': 1, | 69 'hard_dependency': 1, |
70 } | 70 } |
OLD | NEW |