blob: ebd94265ccb18289a806f8a8a8f72a6fa0c6c8f0 [file] [log] [blame]
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{
'targets': [
{
'target_name': 'engine',
'type': 'static_library',
'sources': [
'conversion_helpers.cc',
'interface_data.h',
'native_promise.h',
'stack_trace_helpers.cc',
'type_traits.h',
'v8c_engine.cc',
'v8c_engine.h',
'v8c_global_environment.cc',
'v8c_global_environment.h',
'v8c_script_value_factory.cc',
'v8c_script_value_factory.h',
'v8c_source_code.cc',
'v8c_source_code.h',
'v8c_wrapper_handle.h',
'wrapper_factory.cc',
'wrapper_factory.h',
'<(DEPTH)/cobalt/script/shared/stub_script_debugger.cc',
],
'dependencies': [
'<(DEPTH)/cobalt/script/script.gyp:script',
'<(DEPTH)/v8/src/v8.gyp:v8',
'<(DEPTH)/v8/src/v8.gyp:v8_libplatform',
],
'defines': [
'ENGINE_SUPPORTS_INT64',
'ENGINE_SUPPORTS_JIT',
],
'all_dependent_settings': {
'defines': [
'ENGINE_SUPPORTS_INDEXED_DELETERS',
'ENGINE_SUPPORTS_INT64',
'ENGINE_SUPPORTS_STACK_TRACE_COLUMNS',
# TODO: Remove this when exact rooting and generational GC is enabled.
'ENGINE_USES_CONSERVATIVE_ROOTING',
],
},
# V8 always requires JIT. |cobalt_enable_jit| must be set to true to
# use V8. Failure to do will result in a build failure.
'conditions' :[
['cobalt_enable_jit == 0', {
'defines': [ '<(gyp_static_assert_false)', ],
}],
],
},
{
# Standalone shell executable for V8 within Cobalt.
'target_name': 'v8c',
'type': '<(final_executable_type)',
'sources': [
'v8c.cc',
],
'dependencies': [
':engine',
'<(DEPTH)/cobalt/base/base.gyp:base',
'<(DEPTH)/cobalt/script/script.gyp:standalone_javascript_runner',
'<(DEPTH)/v8/src/v8.gyp:v8',
'<(DEPTH)/v8/src/v8.gyp:v8_libplatform',
],
},
],
}