blob: e603703f84bfe74d30cbf51fab75da8a316f06a7 [file] [log] [blame]
# Copyright 2019 The Cobalt Authors. 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': 'updater',
'type': 'static_library',
'sources': [
'configurator.cc',
'configurator.h',
'network_fetcher.cc',
'network_fetcher.h',
'patcher.cc',
'patcher.h',
'prefs.cc',
'prefs.h',
'unzipper.cc',
'unzipper.h',
'updater_module.cc',
'updater_module.h',
'updater_constants.cc',
'updater_constants.h',
'utils.cc',
'utils.h',
],
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/net/net.gyp:net',
'<(DEPTH)/cobalt/loader/loader.gyp:loader',
'<(DEPTH)/cobalt/network/network.gyp:network',
'<(DEPTH)/cobalt/script/engine.gyp:engine',
'<(DEPTH)/cobalt/script/script.gyp:script',
'<(DEPTH)/components/prefs/prefs.gyp:prefs',
'<(DEPTH)/components/update_client/update_client.gyp:update_client',
'<(DEPTH)/starboard/loader_app/app_key_files.gyp:app_key_files',
'<(DEPTH)/starboard/loader_app/drain_file.gyp:drain_file',
'<(DEPTH)/third_party/zlib/zlib.gyp:zip',
'<(DEPTH)/url/url.gyp:url',
],
},
{
'target_name': 'updater_sandbox',
'type': '<(final_executable_type)',
'dependencies': [
'updater',
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/cobalt/debug/debug.gyp:console_command_manager',
'<(DEPTH)/starboard/starboard.gyp:starboard',
],
'sources': [
'updater_sandbox.cc',
'updater.cc',
'updater.h',
],
},
{
'target_name': 'updater_sandbox_deploy',
'type': 'none',
'dependencies': [
'updater_sandbox',
],
'variables': {
'executable_name': 'updater_sandbox',
},
'includes': [ '<(DEPTH)/starboard/build/deploy.gypi' ],
},
{
'target_name': 'crash_sandbox',
'type': '<(final_executable_type)',
'dependencies': [
'<(DEPTH)/starboard/starboard.gyp:starboard',
],
'sources': [
'crash_sandbox.cc',
],
},
{
'target_name': 'crash_sandbox_deploy',
'type': 'none',
'dependencies': [
'crash_sandbox',
],
'variables': {
'executable_name': 'crash_sandbox',
},
'includes': [ '<(DEPTH)/starboard/build/deploy.gypi' ],
},
{
'target_name': 'noop_sandbox',
'type': '<(final_executable_type)',
'dependencies': [
'<(DEPTH)/starboard/starboard.gyp:starboard',
],
'sources': [
'noop_sandbox.cc',
],
},
{
'target_name': 'noop_sandbox_deploy',
'type': 'none',
'dependencies': [
'noop_sandbox',
],
'variables': {
'executable_name': 'noop_sandbox',
},
'includes': [ '<(DEPTH)/starboard/build/deploy.gypi' ],
},
]
}