| 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 19 matching lines...) Expand all Loading... |
| 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 'targets': [ | 34 'targets': [ |
| 35 { | 35 { |
| 36 'target_name': 'lexer-shell', | 36 'target_name': 'lexer-shell', |
| 37 'type': 'executable', | 37 'type': 'executable', |
| 38 'dependencies': [ | 38 'dependencies': [ |
| 39 '../../tools/gyp/v8.gyp:v8', | 39 '../../tools/gyp/v8.gyp:v8', |
| 40 '../../tools/gyp/v8.gyp:generated-lexer', |
| 40 ], | 41 ], |
| 41 # Generated source files need this explicitly: | 42 # Generated source files need this explicitly: |
| 42 'include_dirs+': [ | 43 'include_dirs+': [ |
| 43 '../../src', | 44 '../../src', |
| 44 '../../src/lexer', | 45 '../../src/lexer', |
| 45 ], | 46 ], |
| 46 'sources': [ | 47 'sources': [ |
| 47 'experimental-scanner.h', | 48 'experimental-scanner.h', |
| 48 'lexer-shell.cc', | 49 'lexer-shell.cc', |
| 49 '<(SHARED_INTERMEDIATE_DIR)/generated_lexer_latin1.cc', | 50 '<(SHARED_INTERMEDIATE_DIR)/generated_lexer_latin1.cc', |
| 50 '<(SHARED_INTERMEDIATE_DIR)/generated_lexer_utf16.cc', | 51 '<(SHARED_INTERMEDIATE_DIR)/generated_lexer_utf16.cc', |
| 51 '<(SHARED_INTERMEDIATE_DIR)/generated_lexer_utf8.cc', | 52 '<(SHARED_INTERMEDIATE_DIR)/generated_lexer_utf8.cc', |
| 52 ], | 53 ], |
| 53 'conditions': [ | 54 'conditions': [ |
| 54 ['v8_enable_i18n_support==1', { | 55 ['v8_enable_i18n_support==1', { |
| 55 'dependencies': [ | 56 'dependencies': [ |
| 56 '<(icu_gyp_path):icui18n', | 57 '<(icu_gyp_path):icui18n', |
| 57 '<(icu_gyp_path):icuuc', | 58 '<(icu_gyp_path):icuuc', |
| 58 ], | 59 ], |
| 59 }], | 60 }], |
| 60 ], | 61 ], |
| 61 'actions': [ | |
| 62 { | |
| 63 'action_name': 'codegen_8', | |
| 64 'inputs': [ | |
| 65 '../../src/lexer/lexer_py.re', | |
| 66 '../../tools/lexer_generator/*.py', | |
| 67 '../../tools/lexer_generator/*.jinja', | |
| 68 ], | |
| 69 'outputs': [ | |
| 70 '<(SHARED_INTERMEDIATE_DIR)/generated_lexer_latin1.cc', | |
| 71 ], | |
| 72 'action': [ | |
| 73 'python', | |
| 74 '../../tools/lexer_generator/generator.py', | |
| 75 '--re=../../src/lexer/lexer_py.re', | |
| 76 '--code=<(SHARED_INTERMEDIATE_DIR)/generated_lexer_latin1.cc', | |
| 77 '--encoding=latin1', | |
| 78 ], | |
| 79 }, | |
| 80 { | |
| 81 'action_name': 'codegen_16', | |
| 82 'inputs': [ | |
| 83 '../../src/lexer/lexer_py.re', | |
| 84 '../../tools/lexer_generator/*.py', | |
| 85 '../../tools/lexer_generator/*.jinja', | |
| 86 ], | |
| 87 'outputs': [ | |
| 88 '<(SHARED_INTERMEDIATE_DIR)/generated_lexer_utf16.cc', | |
| 89 ], | |
| 90 'action': [ | |
| 91 'python', | |
| 92 '../../tools/lexer_generator/generator.py', | |
| 93 '--re=../../src/lexer/lexer_py.re', | |
| 94 '--code=<(SHARED_INTERMEDIATE_DIR)/generated_lexer_utf16.cc', | |
| 95 '--encoding=utf16', | |
| 96 ], | |
| 97 }, | |
| 98 { | |
| 99 'action_name': 'codegen_utf8', | |
| 100 'inputs': [ | |
| 101 '../../src/lexer/lexer_py.re', | |
| 102 '../../tools/lexer_generator/*.py', | |
| 103 '../../tools/lexer_generator/*.jinja', | |
| 104 ], | |
| 105 'outputs': [ | |
| 106 '<(SHARED_INTERMEDIATE_DIR)/generated_lexer_utf8.cc', | |
| 107 ], | |
| 108 'action': [ | |
| 109 'python', | |
| 110 '../../tools/lexer_generator/generator.py', | |
| 111 '--re=../../src/lexer/lexer_py.re', | |
| 112 '--code=<(SHARED_INTERMEDIATE_DIR)/generated_lexer_utf8.cc', | |
| 113 '--encoding=utf8', | |
| 114 ], | |
| 115 }, | |
| 116 ], | |
| 117 }, | 62 }, |
| 118 ], | 63 ], |
| 119 } | 64 } |
| OLD | NEW |