1# Copyright 2013 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5{ 6 'variables': { 7 'chromium_code': 1, 8 }, 9 'targets': [ 10 { 11 'target_name': 'gin', 12 'type': '<(component)', 13 'dependencies': [ 14 '../base/base.gyp:base', 15 '../v8/tools/gyp/v8.gyp:v8', 16 ], 17 'export_dependent_settings': [ 18 '../base/base.gyp:base', 19 '../v8/tools/gyp/v8.gyp:v8', 20 ], 21 'defines': [ 22 'GIN_IMPLEMENTATION', 23 ], 24 'sources': [ 25 'arguments.cc', 26 'arguments.h', 27 'array_buffer.cc', 28 'array_buffer.h', 29 'context_holder.cc', 30 'converter.cc', 31 'converter.h', 32 'dictionary.cc', 33 'dictionary.h', 34 'function_template.cc', 35 'function_template.h', 36 'gin_export.h', 37 'handle.h', 38 'isolate_holder.cc', 39 'modules/console.cc', 40 'modules/console.h', 41 'modules/file_module_provider.cc', 42 'modules/file_module_provider.h', 43 'modules/module_registry.cc', 44 'modules/module_registry.h', 45 'modules/module_runner_delegate.cc', 46 'modules/module_runner_delegate.h', 47 'object_template_builder.cc', 48 'object_template_builder.h', 49 'per_context_data.cc', 50 'per_context_data.h', 51 'per_isolate_data.cc', 52 'per_isolate_data.h', 53 'public/context_holder.h', 54 'public/gin_embedders.h', 55 'public/isolate_holder.h', 56 'public/wrapper_info.h', 57 'runner.cc', 58 'runner.h', 59 'try_catch.cc', 60 'try_catch.h', 61 'wrappable.cc', 62 'wrappable.h', 63 'wrapper_info.cc', 64 ], 65 }, 66 { 67 'target_name': 'gin_shell', 68 'type': 'executable', 69 'dependencies': [ 70 '../base/base.gyp:base', 71 '../base/base.gyp:base_i18n', 72 '../v8/tools/gyp/v8.gyp:v8', 73 'gin', 74 ], 75 'sources': [ 76 'shell/gin_main.cc', 77 ], 78 'msvs_settings': { 79 'VCLinkerTool': { 80 'SubSystem': '1', # /SUBSYSTEM:CONSOLE 81 }, 82 }, 83 }, 84 { 85 'target_name': 'gin_test', 86 'type': 'static_library', 87 'dependencies': [ 88 '../testing/gtest.gyp:gtest', 89 '../v8/tools/gyp/v8.gyp:v8', 90 'gin', 91 ], 92 'export_dependent_settings': [ 93 '../testing/gtest.gyp:gtest', 94 'gin', 95 ], 96 'sources': [ 97 'test/file_runner.cc', 98 'test/file_runner.h', 99 'test/gtest.cc', 100 'test/gtest.h', 101 'test/v8_test.cc', 102 'test/v8_test.h', 103 ], 104 }, 105 { 106 'target_name': 'gin_unittests', 107 'type': 'executable', 108 'dependencies': [ 109 '../base/base.gyp:run_all_unittests', 110 '../v8/tools/gyp/v8.gyp:v8', 111 'gin_test', 112 ], 113 'sources': [ 114 'converter_unittest.cc', 115 'test/run_all_unittests.cc', 116 'test/run_js_tests.cc', 117 'runner_unittest.cc', 118 'wrappable_unittest.cc', 119 ], 120 }, 121 ], 122} 123