| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'variables': { | 6 'variables': { |
| 7 # When including this gypi, the following variables must be set: | 7 # When including this gypi, the following variables must be set: |
| 8 # schema_files: an array of json or idl files that comprise the api model. | 8 # schema_files: an array of json or idl files that comprise the api model. |
| 9 # cc_dir: path to generated files | 9 # cc_dir: path to generated files |
| 10 # root_namespace: the C++ namespace that all generated files go under | 10 # root_namespace: the C++ namespace that all generated files go under |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 '<(api_gen_dir)/h_generator.py', | 24 '<(api_gen_dir)/h_generator.py', |
| 25 '<(api_gen_dir)/idl_schema.py', | 25 '<(api_gen_dir)/idl_schema.py', |
| 26 '<(api_gen_dir)/json_schema.py', | 26 '<(api_gen_dir)/json_schema.py', |
| 27 '<(api_gen_dir)/model.py', | 27 '<(api_gen_dir)/model.py', |
| 28 '<(api_gen_dir)/schema_bundle_generator.py', | 28 '<(api_gen_dir)/schema_bundle_generator.py', |
| 29 '<(api_gen_dir)/util_cc_helper.py', | 29 '<(api_gen_dir)/util_cc_helper.py', |
| 30 '<@(schema_files)', | 30 '<@(schema_files)', |
| 31 ], | 31 ], |
| 32 'outputs': [ | 32 'outputs': [ |
| 33 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_api.h', | 33 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_api.h', |
| 34 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_api.cc', |
| 34 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_schemas.h', | 35 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_schemas.h', |
| 35 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_schemas.cc', | 36 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_schemas.cc', |
| 36 ], | 37 ], |
| 37 'action': [ | 38 'action': [ |
| 38 'python', | 39 'python', |
| 39 '<(api_gen)', | 40 '<(api_gen)', |
| 40 '--root=<(DEPTH)', | 41 '--root=<(DEPTH)', |
| 41 '--destdir=<(SHARED_INTERMEDIATE_DIR)', | 42 '--destdir=<(SHARED_INTERMEDIATE_DIR)', |
| 42 '--namespace=<(root_namespace)', | 43 '--namespace=<(root_namespace)', |
| 43 '--bundle', | 44 '--bundle', |
| 44 '<@(schema_files)', | 45 '<@(schema_files)', |
| 45 ], | 46 ], |
| 46 'message': 'Generating C++ API bundle code', | 47 'message': 'Generating C++ API bundle code', |
| 47 'process_outputs_as_sources': 1, | 48 'process_outputs_as_sources': 1, |
| 48 } | 49 } |
| 49 ], | 50 ], |
| 50 'include_dirs': [ | 51 'include_dirs': [ |
| 51 '<(SHARED_INTERMEDIATE_DIR)', | 52 '<(SHARED_INTERMEDIATE_DIR)', |
| 52 '<(DEPTH)', | 53 '<(DEPTH)', |
| 53 ], | 54 ], |
| 54 'direct_dependent_settings': { | 55 'direct_dependent_settings': { |
| 55 'include_dirs': [ | 56 'include_dirs': [ |
| 56 '<(SHARED_INTERMEDIATE_DIR)', | 57 '<(SHARED_INTERMEDIATE_DIR)', |
| 57 ] | 58 ] |
| 58 }, | 59 }, |
| 60 'dependencies': [ |
| 61 '<(DEPTH)/skia/skia.gyp:skia', |
| 62 '<(DEPTH)/sync/sync.gyp:sync_proto', |
| 63 ], |
| 59 # This target exports a hard dependency because it generates header | 64 # This target exports a hard dependency because it generates header |
| 60 # files. | 65 # files. |
| 61 'hard_dependency': 1, | 66 'hard_dependency': 1, |
| 62 } | 67 } |
| OLD | NEW |