blob: f9865a500ffb1824f84131a8543a76f5a83bdeb1 [file] [log] [blame]
# Copyright 2019 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.
import("//common-mk/pkg_config.gni")
group("all") {
deps = [
":codelab",
":libcodelab",
]
if (use.test) {
deps += [ ":codelab_test" ]
}
}
pkg_config("target_defaults") {
pkg_deps = [
"libchrome-${libbase_ver}",
"libbrillo",
]
}
static_library("libcodelab") {
sources = [
"codelab.cc",
]
configs += [ ":target_defaults" ]
}
executable("codelab") {
sources = [
"main.cc",
]
configs += [ ":target_defaults" ]
deps = [
":libcodelab",
]
}
if (use.test) {
pkg_config("codelab_test_config") {
pkg_deps = [ "libchrome-test-${libbase_ver}" ]
}
executable("codelab_test") {
sources = [
"codelab_test.cc",
]
configs += [
"//common-mk:test",
":codelab_test_config",
":target_defaults",
]
deps = [
":libcodelab",
"//common-mk/testrunner",
]
}
}