OLD | NEW |
(Empty) | |
| 1 # Copyright 2013 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are |
| 4 # met: |
| 5 # |
| 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided |
| 11 # with the distribution. |
| 12 # * Neither the name of Google Inc. nor the names of its |
| 13 # contributors may be used to endorse or promote products derived |
| 14 # from this software without specific prior written permission. |
| 15 # |
| 16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 |
| 28 { |
| 29 'includes': ['../../build/common.gypi'], |
| 30 'targets': [ |
| 31 { |
| 32 'target_name': 'v8', |
| 33 'type': 'none', |
| 34 'conditions': [ |
| 35 ['want_separate_host_toolset==1', { |
| 36 'toolsets': ['host', 'target'], |
| 37 }, { |
| 38 'toolsets': ['target'], |
| 39 }], |
| 40 ], |
| 41 'variables': { |
| 42 'shim_headers_path': '<(SHARED_INTERMEDIATE_DIR)/shim_headers/<(_target_
name)/<(_toolset)', |
| 43 }, |
| 44 'include_dirs++': [ |
| 45 '<(shim_headers_path)', |
| 46 ], |
| 47 'all_dependent_settings': { |
| 48 'include_dirs+++': [ |
| 49 '<(shim_headers_path)', |
| 50 ], |
| 51 }, |
| 52 'actions': [ |
| 53 { |
| 54 'variables': { |
| 55 'generator_path': '../../../tools/generate_shim_headers/generate_shi
m_headers.py', |
| 56 'generator_args': [ |
| 57 '--headers-root', '../../include', |
| 58 '--output-directory', '<(shim_headers_path)', |
| 59 'v8-debug.h', |
| 60 'v8-preparser.h', |
| 61 'v8-profiler.h', |
| 62 'v8-testing.h', |
| 63 'v8.h', |
| 64 'v8stdint.h', |
| 65 ], |
| 66 }, |
| 67 'action_name': 'generate_<(_target_name)_shim_headers', |
| 68 'inputs': [ |
| 69 '<(generator_path)', |
| 70 ], |
| 71 'outputs': [ |
| 72 '<!@pymod_do_main(generate_shim_headers <@(generator_args) --outputs
)', |
| 73 ], |
| 74 'action': ['python', |
| 75 '<(generator_path)', |
| 76 '<@(generator_args)', |
| 77 '--generate', |
| 78 ], |
| 79 'message': 'Generating <(_target_name) shim headers.', |
| 80 }, |
| 81 ], |
| 82 'link_settings': { |
| 83 'libraries': [ |
| 84 '-lv8', |
| 85 ], |
| 86 }, |
| 87 }, |
| 88 { |
| 89 'target_name': 'v8_shell', |
| 90 'type': 'none', |
| 91 'conditions': [ |
| 92 ['want_separate_host_toolset==1', { |
| 93 'toolsets': ['host'], |
| 94 }, { |
| 95 'toolsets': ['target'], |
| 96 }], |
| 97 ], |
| 98 'dependencies': [ |
| 99 'v8' |
| 100 ], |
| 101 }, |
| 102 ], |
| 103 } |
OLD | NEW |