blob: 097b5fae0776ba7fdc3014494cebbdc19e347fb5 [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.
# This files contains all targets that should be created by gyp_cobalt by
# default.
{
'variables': {
'common_loader_app_sources': [
'loader_app.cc',
'system_get_extension_shim.h',
'system_get_extension_shim.cc',
],
'common_loader_app_dependencies': [
'<(DEPTH)/starboard/loader_app/installation_manager.gyp:installation_manager',
'<(DEPTH)/starboard/starboard.gyp:starboard',
],
},
'targets': [
{
'target_name': 'loader_app',
'type': '<(final_executable_type)',
'conditions': [
['target_arch in ["x86", "x64", "arm", "arm64"] ', {
'sources': [
'<@(common_loader_app_sources)',
],
'dependencies': [
'<(DEPTH)/starboard/elf_loader/elf_loader.gyp:elf_loader',
'<@(common_loader_app_dependencies)',
# TODO: Remove this dependency once MediaSession is migrated to use CobaltExtensions.
'<@(cobalt_platform_dependencies)',
],
}],
],
},
{
'target_name': 'loader_app_deploy',
'type': 'none',
'dependencies': [
'loader_app',
],
'variables': {
'executable_name': 'loader_app',
},
'includes': [ '<(DEPTH)/starboard/build/deploy.gypi' ],
},
{
'target_name': 'loader_app_sys',
'type': '<(final_executable_type)',
'conditions': [
['target_arch in ["x86", "x64", "arm", "arm64"] ', {
'sources': [
'<@(common_loader_app_sources)',
],
'dependencies': [
'<(DEPTH)/starboard/elf_loader/elf_loader.gyp:elf_loader_sys',
'<@(common_loader_app_dependencies)',
# TODO: Remove this dependency once MediaSession is migrated to use CobaltExtensions.
'<@(cobalt_platform_dependencies)',
],
'ldflags': [
'-Wl,--dynamic-list=<(DEPTH)/starboard/starboard.syms',
'-ldl' ,
],
}],
],
},
{
'target_name': 'loader_app_sys_deploy',
'type': 'none',
'dependencies': [
'loader_app',
],
'variables': {
'executable_name': 'loader_app_sys',
},
'includes': [ '<(DEPTH)/starboard/build/deploy.gypi' ],
},
],
}