| OLD | NEW |
| 1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
| 4 # met: | 4 # met: |
| 5 # | 5 # |
| 6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 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. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 { | 28 { |
| 29 'variables': { | 29 'variables': { |
| 30 'v8_code': 1, | 30 'v8_code': 1, |
| 31 'v8_enable_i18n_support%': 1, | 31 'v8_enable_i18n_support%': 1, |
| 32 }, | 32 }, |
| 33 'includes': ['../build/toolchain.gypi', '../build/features.gypi'], | 33 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'], |
| 34 'target_defaults': { | |
| 35 'type': 'executable', | |
| 36 'dependencies': [ | |
| 37 '../tools/gyp/v8.gyp:v8', | |
| 38 ], | |
| 39 'include_dirs': [ | |
| 40 '../include', | |
| 41 ], | |
| 42 'conditions': [ | |
| 43 ['v8_enable_i18n_support==1', { | |
| 44 'dependencies': [ | |
| 45 '<(icu_gyp_path):icui18n', | |
| 46 '<(icu_gyp_path):icuuc', | |
| 47 ], | |
| 48 }], | |
| 49 ['OS=="win" and v8_enable_i18n_support==1', { | |
| 50 'dependencies': [ | |
| 51 '<(icu_gyp_path):icudata', | |
| 52 ], | |
| 53 }], | |
| 54 ], | |
| 55 }, | |
| 56 'targets': [ | 34 'targets': [ |
| 57 { | 35 { |
| 58 'target_name': 'shell', | 36 'target_name': 'lexer-shell', |
| 37 'type': 'executable', |
| 38 'dependencies': [ |
| 39 '../../tools/gyp/v8.gyp:v8', |
| 40 ], |
| 41 # Generated source files need this explicitly: |
| 42 'include_dirs+': [ |
| 43 '../../src', |
| 44 ], |
| 59 'sources': [ | 45 'sources': [ |
| 60 'shell.cc', | 46 'lexer-shell.cc', |
| 47 # TODO: fix compiler errors and add '<(SHARED_INTERMEDIATE_DIR)/lexer.cc', |
| 48 ], |
| 49 'conditions': [ |
| 50 ['v8_enable_i18n_support==1', { |
| 51 'dependencies': [ |
| 52 '<(icu_gyp_path):icui18n', |
| 53 '<(icu_gyp_path):icuuc', |
| 54 ], |
| 55 }], |
| 56 ], |
| 57 'actions': [ |
| 58 { |
| 59 'action_name': 're2c', |
| 60 'inputs': [ |
| 61 '../../src/lexer/lexer.re', |
| 62 ], |
| 63 'outputs': [ |
| 64 '<(SHARED_INTERMEDIATE_DIR)/lexer.cc', |
| 65 ], |
| 66 'action': [ |
| 67 '$(RE2C)', |
| 68 '-f', |
| 69 '-c', |
| 70 '--output', |
| 71 '<(SHARED_INTERMEDIATE_DIR)/lexer.cc', |
| 72 '../../src/lexer/lexer.re', |
| 73 ], |
| 74 }, |
| 61 ], | 75 ], |
| 62 }, | 76 }, |
| 63 { | |
| 64 'target_name': 'process', | |
| 65 'sources': [ | |
| 66 'process.cc', | |
| 67 ], | |
| 68 }, | |
| 69 { | |
| 70 'target_name': 'lineprocessor', | |
| 71 'sources': [ | |
| 72 'lineprocessor.cc', | |
| 73 ], | |
| 74 } | |
| 75 ], | 77 ], |
| 76 } | 78 } |
| OLD | NEW |