summaryrefslogtreecommitdiffstats
path: root/gin/gin.gyp
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-18 17:09:36 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-18 17:09:36 +0000
commit855ab43da4bd0342e2b8c9592b52ef80ac0b773f (patch)
tree0ea5aa300191aa3e0145fe083015b880edcaed53 /gin/gin.gyp
parenta29e465aecb6cfc30b757d31242b06eb39846f2a (diff)
downloadchromium_src-855ab43da4bd0342e2b8c9592b52ef80ac0b773f.zip
chromium_src-855ab43da4bd0342e2b8c9592b52ef80ac0b773f.tar.gz
chromium_src-855ab43da4bd0342e2b8c9592b52ef80ac0b773f.tar.bz2
Introduce gin_shell
This CL adds a simple shell program for Gin to make edit/test/debug cycle faster. The shell excutes a list of scripts from the command line and loads any requested AMD modules relative to the current working directory. This CL will also let us remove the ugly code in https://codereview.chromium.org/69843003/diff/240001/mojo/public/bindings/js/test/run_js_tests.cc because we now know how to file modules via the file system. Eventually for Mojo, we'll want to use a net_module_provider (instead of the file_module_provider included in this CL) to load additional AMD modules off the network. BUG=317398 R=jochen@chromium.org Review URL: https://codereview.chromium.org/74753002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235750 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/gin.gyp')
-rw-r--r--gin/gin.gyp32
1 files changed, 25 insertions, 7 deletions
diff --git a/gin/gin.gyp b/gin/gin.gyp
index 597482a..7bdf8ab 100644
--- a/gin/gin.gyp
+++ b/gin/gin.gyp
@@ -10,26 +10,29 @@
{
'target_name': 'gin',
'type': 'static_library',
- 'include_dirs': [
- '..'
- ],
'dependencies': [
+ '../base/base.gyp:base',
'../v8/tools/gyp/v8.gyp:v8',
],
'export_dependent_settings': [
+ '../base/base.gyp:base',
'../v8/tools/gyp/v8.gyp:v8',
],
'sources': [
+ 'modules/file_module_provider.cc',
+ 'modules/file_module_provider.h',
'modules/module_registry.cc',
'modules/module_registry.h',
+ 'modules/module_runner_delegate.cc',
+ 'modules/module_runner_delegate.h',
'arguments.cc',
'arguments.h',
'array_buffer.cc',
'array_buffer.h',
- 'converter.cc',
- 'converter.h',
'context_holder.cc',
'context_holder.h',
+ 'converter.cc',
+ 'converter.h',
'dictionary.cc',
'dictionary.h',
'initialize.cc',
@@ -40,20 +43,35 @@
'per_isolate_data.h',
'runner.cc',
'runner.h',
+ 'try_catch.cc',
+ 'try_catch.h',
'wrapper_info.cc',
'wrapper_info.h',
],
},
{
+ 'target_name': 'gin_shell',
+ 'type': 'executable',
+ 'dependencies': [
+ 'gin',
+ ],
+ 'sources': [
+ 'shell/gin_main.cc',
+ ],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'SubSystem': '1', # /SUBSYSTEM:CONSOLE
+ },
+ },
+ },
+ {
'target_name': 'gin_test',
'type': 'static_library',
'dependencies': [
- '../base/base.gyp:base',
'../testing/gtest.gyp:gtest',
'gin',
],
'export_dependent_settings': [
- '../base/base.gyp:base',
'../testing/gtest.gyp:gtest',
'gin',
],