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

Unified Diff: mojo/mojo.gyp

Issue 59153005: Begin implementing V8 bindings for Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix style nits Created 7 years, 1 month 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
Index: mojo/mojo.gyp
diff --git a/mojo/mojo.gyp b/mojo/mojo.gyp
index 72e6477a521f07a7457cd8365cf9bcd4e12551e2..66240af074e47a5203a5a4db12ce758b9c4e5e87 100644
--- a/mojo/mojo.gyp
+++ b/mojo/mojo.gyp
@@ -25,6 +25,8 @@
'sample_app',
'mojo_bindings',
'mojo_bindings_test',
+ 'mojo_js_bindings',
+ 'mojo_js_bindings_unittests',
'native_viewport',
],
},
@@ -277,11 +279,10 @@
],
'dependencies': [
'../v8/tools/gyp/v8.gyp:v8',
+ 'mojo_js_bindings',
],
'sources': [
'apps/js/main.cc',
- 'apps/js/v8_environment.cc',
- 'apps/js/v8_environment.h',
],
},
{
@@ -339,6 +340,63 @@
],
},
{
+ 'target_name': 'mojo_js_bindings',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '..'
+ ],
+ 'dependencies': [
+ '../v8/tools/gyp/v8.gyp:v8',
+ 'mojo_system',
+ ],
+ 'export_dependent_settings': [
+ '../v8/tools/gyp/v8.gyp:v8',
+ ],
+ 'sources': [
+ 'public/bindings/js/v8_array_buffer.cc',
+ 'public/bindings/js/v8_array_buffer.h',
+ 'public/bindings/js/v8_conversions.h',
+ 'public/bindings/js/v8_core.cc',
+ 'public/bindings/js/v8_core.h',
+ 'public/bindings/js/v8_environment.cc',
+ 'public/bindings/js/v8_environment.h',
+ 'public/bindings/js/v8_exceptions.cc',
+ 'public/bindings/js/v8_exceptions.h',
+ 'public/bindings/js/v8_mojo.cc',
+ 'public/bindings/js/v8_mojo.h',
+ 'public/bindings/js/v8_per_isolate_data.cc',
+ 'public/bindings/js/v8_per_isolate_data.h',
+ 'public/bindings/js/v8_runner.cc',
+ 'public/bindings/js/v8_runner.h',
+ 'public/bindings/js/v8_string.cc',
+ 'public/bindings/js/v8_string.h',
+ 'public/bindings/js/v8_wrapper.cc',
+ 'public/bindings/js/v8_wrapper.h',
+ ],
+ },
+ {
+ 'target_name': 'mojo_js_bindings_unittests',
+ 'type': 'executable',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../base/base.gyp:run_all_unittests',
+ '../testing/gtest.gyp:gtest',
+ 'mojo_js_bindings',
+ ],
+ 'sources': [
+ 'public/bindings/js/test/run_all_unittests.cc',
+ 'public/bindings/js/v8_runner_unittest.cc',
+ ],
+ 'conditions': [
+ ['OS == "win"', {
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ 'msvs_disabled_warnings': [
+ 4267,
+ ],
+ }],
+ ],
+ },
+ {
'target_name': 'native_viewport',
'type': 'static_library',
'dependencies': [

Powered by Google App Engine
This is Rietveld 408576698