blob: a51b6780aa7f182a48dd25e7de0a495f0feaee6f [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'target_defaults': {
'include_dirs': [
'<(sysroot)/usr/include/verity',
],
'variables': {
'deps': [
'libbrillo-<(libbase_ver)',
'libchrome-<(libbase_ver)',
'vboot_host',
],
},
'link_settings': {
'libraries': [
'-ldm-bht',
],
},
},
'targets': [
{
'target_name': 'libcros_installer',
'type': 'static_library',
'sources': [
'cgpt_manager.cc',
'chromeos_install_config.cc',
'chromeos_legacy.cc',
'chromeos_postinst.cc',
'chromeos_setimage.cc',
'chromeos_verity.c',
'inst_util.cc',
],
},
{
'target_name': 'cros_installer',
'type': 'executable',
'dependencies': ['libcros_installer'],
'sources': [
'cros_installer_main.cc',
],
},
],
'conditions': [
['USE_mtd == 1', {
'targets': [
{
'target_name': 'nand_partition',
'type': 'executable',
'dependencies': ['libcros_installer'],
'sources': [
'nand_partition.cc',
'nand_partition_main.cc',
],
},
],
}],
['USE_test == 1', {
'targets': [
{
'target_name': 'cros_installer_unittest',
'type': 'executable',
'dependencies': [
'libcros_installer',
'../common-mk/testrunner.gyp:testrunner',
],
'variables': {
'deps': [
'libchrome-test-<(libbase_ver)',
],
},
'sources': [
'chromeos_install_config_unittest.cc',
'chromeos_legacy_unittest.cc',
'inst_util_unittest.cc',
],
},
],
}],
],
}