blob: 4e2915c06ad108421d1b9790ecaefbf9b7613902 [file] [log] [blame] [edit]
# Copyright 2019 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//common-mk/pkg_config.gni")
group("all") {
deps = [
":dev_install",
":install_bashrc",
":install_envd",
":install_make_defaults",
]
if (use.test) {
deps += [ ":dev_install_test" ]
}
}
pkg_config("target_defaults") {
pkg_deps = [
"libbrillo",
"libchrome",
"vboot_host",
]
}
static_library("libdev_install") {
sources = [ "dev_install.cc" ]
configs += [ ":target_defaults" ]
}
executable("dev_install") {
sources = [ "dev_install_main.cc" ]
install_path = "bin"
configs += [ ":target_defaults" ]
deps = [ ":libdev_install" ]
}
install_config("install_bashrc") {
sources = [ "share/bashrc" ]
outputs = [ "dev-install.sh" ]
install_path = "/etc/bash/bashrc.d"
}
install_config("install_make_defaults") {
sources = [ "share/make.defaults" ]
install_path = "/usr/share/dev-install/portage/make.profile"
}
install_config("install_envd") {
sources = [ "share/99devinstall" ]
install_path = "/etc/env.d"
}
if (use.test) {
pkg_config("test_config") {
pkg_deps = [ "libchrome-test" ]
}
executable("dev_install_test") {
sources = [ "dev_install_test.cc" ]
run_test = true
configs += [
"//common-mk:test",
":target_defaults",
":test_config",
]
deps = [
":libdev_install",
"//common-mk/testrunner",
]
}
}