summaryrefslogtreecommitdiffstats
path: root/gin/gin.gyp
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 00:41:27 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 00:41:27 +0000
commite87f312c1a96c95046034585561932bfa4aae2d4 (patch)
tree4b73e5ff782b9103ac9d282d8eda720c6f14adce /gin/gin.gyp
parent23cd38f16a09b542cb40f9d69f5ba86aca868c8b (diff)
downloadchromium_src-e87f312c1a96c95046034585561932bfa4aae2d4.zip
chromium_src-e87f312c1a96c95046034585561932bfa4aae2d4.tar.gz
chromium_src-e87f312c1a96c95046034585561932bfa4aae2d4.tar.bz2
Begin implementing V8 bindings for Mojo
This CL contains the beginnings of JavaScript bindings for the core Mojo system. The approach in this CL is to bind as close to the "metal" as possible so as to self-host as much as possiblem in the VM. I've tried to avoid retaining any state on the C++ side of the bindings, but I didn't quite succeed because V8 requires embedders to retain state in order to access the memory that backs ArrayBuffers. In this CL, I've added some basic bindings for the symbols exported by core.h. Specifically, I've created bindings for CreateMessagePipe, Close, Wait, WaitMany, WriteMessage, and ReadMessage. R=aa@chromium.org, darin@chromium.org BUG=317398 Review URL: https://codereview.chromium.org/59153005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/gin.gyp')
-rw-r--r--gin/gin.gyp29
1 files changed, 25 insertions, 4 deletions
diff --git a/gin/gin.gyp b/gin/gin.gyp
index ca133dd..ed76f09 100644
--- a/gin/gin.gyp
+++ b/gin/gin.gyp
@@ -20,10 +20,14 @@
'../v8/tools/gyp/v8.gyp:v8',
],
'sources': [
+ 'arguments.cc',
+ 'arguments.h',
'array_buffer.cc',
'array_buffer.h',
'converter.cc',
'converter.h',
+ 'dictionary.cc',
+ 'dictionary.h',
'initialize.cc',
'initialize.h',
'per_isolate_data.cc',
@@ -35,18 +39,35 @@
],
},
{
- 'target_name': 'gin_unittests',
- 'type': 'executable',
+ 'target_name': 'gin_test',
+ 'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
- '../base/base.gyp:run_all_unittests',
+ '../testing/gtest.gyp:gtest',
+ 'gin',
+ ],
+ 'export_dependent_settings': [
+ '../base/base.gyp:base',
'../testing/gtest.gyp:gtest',
'gin',
],
'sources': [
+ 'test/gtest.cc',
+ 'test/gtest.h',
'test/v8_test.cc',
- 'test/run_all_unittests.cc',
+ 'test/v8_test.h',
+ ],
+ },
+ {
+ 'target_name': 'gin_unittests',
+ 'type': 'executable',
+ 'dependencies': [
+ '../base/base.gyp:run_all_unittests',
+ 'gin_test',
+ ],
+ 'sources': [
'converter_unittest.cc',
+ 'test/run_all_unittests.cc',
'runner_unittest.cc',
],
},