1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/trunk/build/json_schema_bundle_compile.gypi Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,62 @@ 1.4 +# Copyright (c) 2012 The Chromium Authors. All rights reserved. 1.5 +# Use of this source code is governed by a BSD-style license that can be 1.6 +# found in the LICENSE file. 1.7 + 1.8 +{ 1.9 + 'variables': { 1.10 + # When including this gypi, the following variables must be set: 1.11 + # idl_schema_files: an array of idl files that comprise the api model. 1.12 + # cc_dir: path to generated files 1.13 + # root_namespace: the C++ namespace that all generated files go under 1.14 + # Functions and namespaces can be excluded by setting "nocompile" to true. 1.15 + 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler', 1.16 + 'api_gen': '<(api_gen_dir)/compiler.py', 1.17 + }, 1.18 + 'actions': [ 1.19 + { 1.20 + 'action_name': 'genapi_bundle', 1.21 + 'inputs': [ 1.22 + '<(api_gen_dir)/cc_generator.py', 1.23 + '<(api_gen_dir)/code.py', 1.24 + '<(api_gen_dir)/compiler.py', 1.25 + '<(api_gen_dir)/cpp_type_generator.py', 1.26 + '<(api_gen_dir)/cpp_util.py', 1.27 + '<(api_gen_dir)/h_generator.py', 1.28 + '<(api_gen_dir)/idl_schema.py', 1.29 + '<(api_gen_dir)/json_schema.py', 1.30 + '<(api_gen_dir)/model.py', 1.31 + '<(api_gen_dir)/schema_bundle_generator.py', 1.32 + '<(api_gen_dir)/util_cc_helper.py', 1.33 + '<@(idl_schema_files)', 1.34 + ], 1.35 + 'outputs': [ 1.36 + '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_api.h', 1.37 + '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_schemas.h', 1.38 + '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_schemas.cc', 1.39 + ], 1.40 + 'action': [ 1.41 + 'python', 1.42 + '<(api_gen)', 1.43 + '--root=<(DEPTH)', 1.44 + '--destdir=<(SHARED_INTERMEDIATE_DIR)', 1.45 + '--namespace=<(root_namespace)', 1.46 + '--bundle', 1.47 + '<@(idl_schema_files)', 1.48 + ], 1.49 + 'message': 'Generating C++ API bundle code', 1.50 + 'process_outputs_as_sources': 1, 1.51 + } 1.52 + ], 1.53 + 'include_dirs': [ 1.54 + '<(SHARED_INTERMEDIATE_DIR)', 1.55 + '<(DEPTH)', 1.56 + ], 1.57 + 'direct_dependent_settings': { 1.58 + 'include_dirs': [ 1.59 + '<(SHARED_INTERMEDIATE_DIR)', 1.60 + ] 1.61 + }, 1.62 + # This target exports a hard dependency because it generates header 1.63 + # files. 1.64 + 'hard_dependency': 1, 1.65 +}