summaryrefslogtreecommitdiffstats
path: root/gin
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-22 23:19:25 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-22 23:19:25 +0000
commit8f2cee045ef5325137b11d9330b18608c240a849 (patch)
tree23fa1c0a7bde92f5ba6727c8760c9c61ef1e570b /gin
parent4ba07b259d7b1b090755305d4967bda82d08cfc6 (diff)
downloadchromium_src-8f2cee045ef5325137b11d9330b18608c240a849.zip
chromium_src-8f2cee045ef5325137b11d9330b18608c240a849.tar.gz
chromium_src-8f2cee045ef5325137b11d9330b18608c240a849.tar.bz2
Add src/gin to the GN build.
TBR=aa@chromium.org Review URL: https://codereview.chromium.org/294163002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272361 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin')
-rw-r--r--gin/BUILD.gn130
1 files changed, 130 insertions, 0 deletions
diff --git a/gin/BUILD.gn b/gin/BUILD.gn
new file mode 100644
index 0000000..99fd1bd
--- /dev/null
+++ b/gin/BUILD.gn
@@ -0,0 +1,130 @@
+# Copyright 2014 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.
+
+component("gin") {
+ sources = [
+ "arguments.cc",
+ "arguments.h",
+ "array_buffer.cc",
+ "array_buffer.h",
+ "context_holder.cc",
+ "converter.cc",
+ "converter.h",
+ "dictionary.cc",
+ "dictionary.h",
+ "function_template.cc",
+ "function_template.h",
+ "gin_export.h",
+ "handle.h",
+ "interceptor.cc",
+ "interceptor.h",
+ "isolate_holder.cc",
+ "modules/console.cc",
+ "modules/console.h",
+ "modules/file_module_provider.cc",
+ "modules/file_module_provider.h",
+ "modules/module_registry.cc",
+ "modules/module_registry.h",
+ "modules/module_registry_observer.h",
+ "modules/module_runner_delegate.cc",
+ "modules/module_runner_delegate.h",
+ "modules/timer.cc",
+ "modules/timer.h",
+ "object_template_builder.cc",
+ "object_template_builder.h",
+ "per_context_data.cc",
+ "per_context_data.h",
+ "per_isolate_data.cc",
+ "per_isolate_data.h",
+ "public/context_holder.h",
+ "public/gin_embedders.h",
+ "public/isolate_holder.h",
+ "public/v8_platform.h",
+ "public/wrapper_info.h",
+ "runner.cc",
+ "runner.h",
+ "shell_runner.cc",
+ "shell_runner.h",
+ "try_catch.cc",
+ "try_catch.h",
+ "v8_platform.cc",
+ "wrappable.cc",
+ "wrappable.h",
+ "wrapper_info.cc",
+ ]
+
+ defines = [ "GIN_IMPLEMENTATION" ]
+ deps = [
+ "//base",
+ "//base/third_party/dynamic_annotations",
+ #TODO(GYP)
+ #"//v8",
+ ]
+
+ forward_dependent_configs_from = [
+ "//base",
+ #TODO(GYP)
+ #"//v8",
+ ]
+}
+
+# TODO(GYP) needs v8
+if (false) {
+ executable("gin_shell") {
+ sources = [
+ "shell/gin_main.cc",
+ ]
+
+ deps = [
+ ":gin",
+ "//base",
+ "//base:i18n",
+ "//v8",
+ ]
+ }
+
+ source_set("gin_test") {
+ sources = [
+ "test/file_runner.cc",
+ "test/file_runner.h",
+ "test/gc.cc",
+ "test/gc.h",
+ "test/gtest.cc",
+ "test/gtest.h",
+ "test/v8_test.cc",
+ "test/v8_test.h",
+ ]
+
+ deps = [
+ ":gin",
+ "//testing/gtest",
+ "//v8",
+ ]
+
+ forward_dependent_configs_from = [
+ ":gin",
+ "//testing/gtest",
+ ]
+ }
+
+ test("gin_unittests") {
+ sources = [
+ "converter_unittest.cc",
+ "interceptor_unittest.cc",
+ "modules/module_registry_unittest.cc",
+ "modules/timer_unittest.cc",
+ "per_context_data_unittest.cc",
+ "shell_runner_unittest.cc",
+ "test/run_all_unittests.cc",
+ "test/run_js_tests.cc",
+ "wrappable_unittest.cc",
+ ]
+
+ deps = [
+ ":gin_test",
+ "//base/test:run_all_unittests",
+ "//v8",
+ ]
+ }
+}