media/webrtc/trunk/build/json_schema_bundle_compile.gypi

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
michael@0 2 # Use of this source code is governed by a BSD-style license that can be
michael@0 3 # found in the LICENSE file.
michael@0 4
michael@0 5 {
michael@0 6 'variables': {
michael@0 7 # When including this gypi, the following variables must be set:
michael@0 8 # idl_schema_files: an array of idl files that comprise the api model.
michael@0 9 # cc_dir: path to generated files
michael@0 10 # root_namespace: the C++ namespace that all generated files go under
michael@0 11 # Functions and namespaces can be excluded by setting "nocompile" to true.
michael@0 12 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler',
michael@0 13 'api_gen': '<(api_gen_dir)/compiler.py',
michael@0 14 },
michael@0 15 'actions': [
michael@0 16 {
michael@0 17 'action_name': 'genapi_bundle',
michael@0 18 'inputs': [
michael@0 19 '<(api_gen_dir)/cc_generator.py',
michael@0 20 '<(api_gen_dir)/code.py',
michael@0 21 '<(api_gen_dir)/compiler.py',
michael@0 22 '<(api_gen_dir)/cpp_type_generator.py',
michael@0 23 '<(api_gen_dir)/cpp_util.py',
michael@0 24 '<(api_gen_dir)/h_generator.py',
michael@0 25 '<(api_gen_dir)/idl_schema.py',
michael@0 26 '<(api_gen_dir)/json_schema.py',
michael@0 27 '<(api_gen_dir)/model.py',
michael@0 28 '<(api_gen_dir)/schema_bundle_generator.py',
michael@0 29 '<(api_gen_dir)/util_cc_helper.py',
michael@0 30 '<@(idl_schema_files)',
michael@0 31 ],
michael@0 32 'outputs': [
michael@0 33 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_api.h',
michael@0 34 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_schemas.h',
michael@0 35 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/generated_schemas.cc',
michael@0 36 ],
michael@0 37 'action': [
michael@0 38 'python',
michael@0 39 '<(api_gen)',
michael@0 40 '--root=<(DEPTH)',
michael@0 41 '--destdir=<(SHARED_INTERMEDIATE_DIR)',
michael@0 42 '--namespace=<(root_namespace)',
michael@0 43 '--bundle',
michael@0 44 '<@(idl_schema_files)',
michael@0 45 ],
michael@0 46 'message': 'Generating C++ API bundle code',
michael@0 47 'process_outputs_as_sources': 1,
michael@0 48 }
michael@0 49 ],
michael@0 50 'include_dirs': [
michael@0 51 '<(SHARED_INTERMEDIATE_DIR)',
michael@0 52 '<(DEPTH)',
michael@0 53 ],
michael@0 54 'direct_dependent_settings': {
michael@0 55 'include_dirs': [
michael@0 56 '<(SHARED_INTERMEDIATE_DIR)',
michael@0 57 ]
michael@0 58 },
michael@0 59 # This target exports a hard dependency because it generates header
michael@0 60 # files.
michael@0 61 'hard_dependency': 1,
michael@0 62 }

mercurial