2018-09-21 18:54:31 +00:00
|
|
|
# Copyright (c) 2014-present, Facebook, Inc.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This source code is licensed under both the Apache 2.0 license (found in the
|
|
|
|
# LICENSE file in the root directory of this source tree) and the GPLv2 (found
|
|
|
|
# in the COPYING file in the root directory of this source tree).
|
|
|
|
# You may select, at your option, one of the above-listed licenses.
|
|
|
|
|
|
|
|
load("//tools/build_defs/oss/osquery:cxx.bzl", "osquery_cxx_binary", "osquery_cxx_library")
|
|
|
|
load("//tools/build_defs/oss/osquery:globs.bzl", "osquery_subdir_glob")
|
|
|
|
load("//tools/build_defs/oss/osquery:native.bzl", "osquery_target")
|
|
|
|
load("//tools/build_defs/oss/osquery:platforms.bzl", "FREEBSD")
|
|
|
|
load("//tools/build_defs/oss/osquery:third_party.bzl", "osquery_tp_target")
|
|
|
|
|
|
|
|
osquery_cxx_library(
|
|
|
|
name = "headers",
|
|
|
|
header_namespace = "osquery",
|
|
|
|
exported_headers = osquery_subdir_glob(
|
|
|
|
[
|
|
|
|
("include/osquery", "*.h"),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
exported_post_platform_linker_flags = [
|
|
|
|
(
|
|
|
|
FREEBSD,
|
|
|
|
[
|
|
|
|
"-lgflags",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
visibility = ["PUBLIC"],
|
|
|
|
deps = [
|
|
|
|
osquery_target("osquery/core/plugins:plugins"),
|
|
|
|
osquery_target("osquery/utils/info:info"),
|
|
|
|
osquery_target("osquery/utils/macros:macros"),
|
|
|
|
osquery_target("osquery/utils/system:system"),
|
|
|
|
osquery_tp_target("gflags"),
|
|
|
|
osquery_tp_target("googletest", "gtest"),
|
2018-12-12 18:37:40 +00:00
|
|
|
osquery_tp_target("sqlite"),
|
2018-09-21 18:54:31 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
osquery_cxx_binary(
|
|
|
|
name = "osqueryd",
|
|
|
|
visibility = ["PUBLIC"],
|
|
|
|
deps = [
|
|
|
|
osquery_target("osquery/main:main"),
|
|
|
|
],
|
|
|
|
)
|