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 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', 16 '../v8/tools/gyp/v8.gyp:v8', 17 18 ], 19 'export_dependent_settings': [ 20 '../base/base.gyp:base', 21 '../v8/tools/gyp/v8.gyp:v8', 22 ], 23 'defines': [ 24 'GIN_IMPLEMENTATION', 25 ], 26 'sources': [ 27 'arguments.cc', 28 'arguments.h', 29 'array_buffer.cc', 30 'array_buffer.h', 31 'context_holder.cc', 32 'converter.cc', 33 'converter.h', 34 'dictionary.cc', 35 'dictionary.h', 36 'function_template.cc', 37 'function_template.h', 38 'gin_export.h', 39 'handle.h', 40 'interceptor.cc', 41 'interceptor.h', 42 'isolate_holder.cc', 43 'modules/console.cc', 44 'modules/console.h', 45 'modules/file_module_provider.cc', 46 'modules/file_module_provider.h', 47 'modules/module_registry.cc', 48 'modules/module_registry.h', 49 'modules/module_registry_observer.h', 50 'modules/module_runner_delegate.cc', 51 'modules/module_runner_delegate.h', 52 'modules/timer.cc', 53 'modules/timer.h', 54 'object_template_builder.cc', 55 'object_template_builder.h', 56 'per_context_data.cc', 57 'per_context_data.h', 58 'per_isolate_data.cc', 59 'per_isolate_data.h', 60 'public/context_holder.h', 61 'public/gin_embedders.h', 62 'public/isolate_holder.h', 63 'public/v8_platform.h', 64 'public/wrapper_info.h', 65 'runner.cc', 66 'runner.h', 67 'shell_runner.cc', 68 'shell_runner.h', 69 'try_catch.cc', 70 'try_catch.h', 71 'v8_platform.cc', 72 'wrappable.cc', 73 'wrappable.h', 74 'wrapper_info.cc', 75 ], 76 }, 77 { 78 'target_name': 'gin_shell', 79 'type': 'executable', 80 'dependencies': [ 81 '../base/base.gyp:base', 82 '../base/base.gyp:base_i18n', 83 '../v8/tools/gyp/v8.gyp:v8', 84 'gin', 85 ], 86 'sources': [ 87 'shell/gin_main.cc', 88 ], 89 'msvs_settings': { 90 'VCLinkerTool': { 91 'SubSystem': '1', # /SUBSYSTEM:CONSOLE 92 }, 93 }, 94 }, 95 { 96 'target_name': 'gin_test', 97 'type': 'static_library', 98 'dependencies': [ 99 '../testing/gtest.gyp:gtest', 100 '../v8/tools/gyp/v8.gyp:v8', 101 'gin', 102 ], 103 'export_dependent_settings': [ 104 '../testing/gtest.gyp:gtest', 105 'gin', 106 ], 107 'sources': [ 108 'test/file_runner.cc', 109 'test/file_runner.h', 110 'test/gc.cc', 111 'test/gc.h', 112 'test/gtest.cc', 113 'test/gtest.h', 114 'test/v8_test.cc', 115 'test/v8_test.h', 116 ], 117 }, 118 { 119 'target_name': 'gin_unittests', 120 'type': 'executable', 121 'dependencies': [ 122 '../base/base.gyp:test_support_base', 123 '../v8/tools/gyp/v8.gyp:v8', 124 'gin_test', 125 ], 126 'sources': [ 127 'converter_unittest.cc', 128 'interceptor_unittest.cc', 129 'modules/module_registry_unittest.cc', 130 'modules/timer_unittest.cc', 131 'per_context_data_unittest.cc', 132 'shell_runner_unittest.cc', 133 'test/run_all_unittests.cc', 134 'test/run_js_tests.cc', 135 'wrappable_unittest.cc', 136 ], 137 }, 138 ], 139 } 140