summaryrefslogtreecommitdiffstats
path: root/gin/gin.gyp
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-10 05:00:50 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-10 05:00:50 +0000
commita22998a223ecdcd926d152baea8a8703bcb57d61 (patch)
treeccb6b71bcc50b61c6671d955fbc409802f0c8d95 /gin/gin.gyp
parent1cde19eb7e17b16645fb75a50f3250218d53cd17 (diff)
downloadchromium_src-a22998a223ecdcd926d152baea8a8703bcb57d61.zip
chromium_src-a22998a223ecdcd926d152baea8a8703bcb57d61.tar.gz
chromium_src-a22998a223ecdcd926d152baea8a8703bcb57d61.tar.bz2
This CL introduces a lightweight bindings system for V8 called gin
Unlike the extensions V8 bindings, gin is based on ObjectTemplates rather than on evaluating script. Unlike the Blink V8 bindings, gin isn't tightly coupled to Blink. In fact, gin's only link-time dependency is V8. We plan to use gin to build the V8 bindings for Mojo (see https://codereview.chromium.org/59153005/ for an example of how they will be used). In the long term, gin could serve as a basis for both the Blink and the extension system bindings, but we don't have any immediate plans to pursue that use of this code. This code is largely inspired by a lightweight bindings system designed by Aaron Boodman. Review URL: https://codereview.chromium.org/67763002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234160 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/gin.gyp')
-rw-r--r--gin/gin.gyp54
1 files changed, 54 insertions, 0 deletions
diff --git a/gin/gin.gyp b/gin/gin.gyp
new file mode 100644
index 0000000..ca133dd
--- /dev/null
+++ b/gin/gin.gyp
@@ -0,0 +1,54 @@
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ 'chromium_code': 1,
+ },
+ 'targets': [
+ {
+ 'target_name': 'gin',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '..'
+ ],
+ 'dependencies': [
+ '../v8/tools/gyp/v8.gyp:v8',
+ ],
+ 'export_dependent_settings': [
+ '../v8/tools/gyp/v8.gyp:v8',
+ ],
+ 'sources': [
+ 'array_buffer.cc',
+ 'array_buffer.h',
+ 'converter.cc',
+ 'converter.h',
+ 'initialize.cc',
+ 'initialize.h',
+ 'per_isolate_data.cc',
+ 'per_isolate_data.h',
+ 'runner.cc',
+ 'runner.h',
+ 'wrapper_info.cc',
+ 'wrapper_info.h',
+ ],
+ },
+ {
+ 'target_name': 'gin_unittests',
+ 'type': 'executable',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../base/base.gyp:run_all_unittests',
+ '../testing/gtest.gyp:gtest',
+ 'gin',
+ ],
+ 'sources': [
+ 'test/v8_test.cc',
+ 'test/run_all_unittests.cc',
+ 'converter_unittest.cc',
+ 'runner_unittest.cc',
+ ],
+ },
+ ],
+}