Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Unified Diff: src/lexer/lexer.gyp

Issue 27034005: Add rule for generating lexer and implement lexer shell. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Fix comment Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/all.gyp ('k') | src/lexer/lexer-shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lexer/lexer.gyp
diff --git a/samples/samples.gyp b/src/lexer/lexer.gyp
similarity index 62%
copy from samples/samples.gyp
copy to src/lexer/lexer.gyp
index dfc7410070b3c46edf026caa98f92fc3da64701b..7ebf3d8eb6ea14f1a76c196a5351d77fb0b8881e 100644
--- a/samples/samples.gyp
+++ b/src/lexer/lexer.gyp
@@ -30,47 +30,49 @@
'v8_code': 1,
'v8_enable_i18n_support%': 1,
},
- 'includes': ['../build/toolchain.gypi', '../build/features.gypi'],
- 'target_defaults': {
- 'type': 'executable',
- 'dependencies': [
- '../tools/gyp/v8.gyp:v8',
- ],
- 'include_dirs': [
- '../include',
- ],
- 'conditions': [
- ['v8_enable_i18n_support==1', {
- 'dependencies': [
- '<(icu_gyp_path):icui18n',
- '<(icu_gyp_path):icuuc',
- ],
- }],
- ['OS=="win" and v8_enable_i18n_support==1', {
- 'dependencies': [
- '<(icu_gyp_path):icudata',
- ],
- }],
- ],
- },
+ 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
'targets': [
{
- 'target_name': 'shell',
- 'sources': [
- 'shell.cc',
+ 'target_name': 'lexer-shell',
+ 'type': 'executable',
+ 'dependencies': [
+ '../../tools/gyp/v8.gyp:v8',
],
- },
- {
- 'target_name': 'process',
- 'sources': [
- 'process.cc',
+ # Generated source files need this explicitly:
+ 'include_dirs+': [
+ '../../src',
],
- },
- {
- 'target_name': 'lineprocessor',
'sources': [
- 'lineprocessor.cc',
+ 'lexer-shell.cc',
+# TODO: fix compiler errors and add '<(SHARED_INTERMEDIATE_DIR)/lexer.cc',
+ ],
+ 'conditions': [
+ ['v8_enable_i18n_support==1', {
+ 'dependencies': [
+ '<(icu_gyp_path):icui18n',
+ '<(icu_gyp_path):icuuc',
+ ],
+ }],
],
- }
+ 'actions': [
+ {
+ 'action_name': 're2c',
+ 'inputs': [
+ '../../src/lexer/lexer.re',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/lexer.cc',
+ ],
+ 'action': [
+ '$(RE2C)',
+ '-f',
+ '-c',
+ '--output',
+ '<(SHARED_INTERMEDIATE_DIR)/lexer.cc',
+ '../../src/lexer/lexer.re',
+ ],
+ },
+ ],
+ },
],
}
« no previous file with comments | « build/all.gyp ('k') | src/lexer/lexer-shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698