2018-09-21 18:54:31 +00:00
|
|
|
# Copyright (c) 2014-present, Facebook, Inc.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
2019-01-21 19:48:49 +00:00
|
|
|
# This source code is licensed as defined on the LICENSE file found in the
|
|
|
|
# root directory of this source tree.
|
2018-09-21 18:54:31 +00:00
|
|
|
|
|
|
|
load("//tools/build_defs/oss/osquery:cxx.bzl", "osquery_cxx_library")
|
|
|
|
load("//tools/build_defs/oss/osquery:native.bzl", "osquery_target")
|
|
|
|
load("//tools/build_defs/oss/osquery:platforms.bzl", "LINUX", "MACOSX", "POSIX", "WINDOWS")
|
|
|
|
load("//tools/build_defs/oss/osquery:third_party.bzl", "osquery_tp_target")
|
|
|
|
|
|
|
|
osquery_cxx_library(
|
|
|
|
name = "main",
|
|
|
|
srcs = [
|
|
|
|
"main.cpp",
|
|
|
|
],
|
|
|
|
header_namespace = "osquery/main",
|
|
|
|
exported_headers = [
|
|
|
|
"main.h",
|
|
|
|
],
|
|
|
|
platform_deps = [
|
|
|
|
(
|
|
|
|
LINUX,
|
|
|
|
[
|
2019-02-19 15:10:26 +00:00
|
|
|
osquery_target("plugins/logger:aws_firehose"),
|
|
|
|
osquery_target("plugins/logger:aws_kinesis"),
|
|
|
|
osquery_target("plugins/logger:aws_log_forwarder"),
|
|
|
|
osquery_target("plugins/logger:kafka_producer"),
|
2018-09-21 18:54:31 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
(
|
|
|
|
MACOSX,
|
|
|
|
[
|
2019-02-19 15:10:26 +00:00
|
|
|
osquery_target("plugins/logger:aws_firehose"),
|
|
|
|
osquery_target("plugins/logger:aws_kinesis"),
|
|
|
|
osquery_target("plugins/logger:aws_log_forwarder"),
|
|
|
|
osquery_target("plugins/logger:kafka_producer"),
|
2018-09-21 18:54:31 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
(
|
|
|
|
WINDOWS,
|
|
|
|
[
|
2019-02-19 15:10:26 +00:00
|
|
|
osquery_target("plugins/logger:aws_firehose"),
|
|
|
|
osquery_target("plugins/logger:aws_kinesis"),
|
|
|
|
osquery_target("plugins/logger:aws_log_forwarder"),
|
|
|
|
osquery_target("plugins/logger:windows_event_log"),
|
2018-09-21 18:54:31 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
platform_srcs = [
|
|
|
|
(
|
|
|
|
POSIX,
|
|
|
|
[
|
|
|
|
"posix/main.cpp",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
(
|
|
|
|
WINDOWS,
|
|
|
|
[
|
|
|
|
"windows/main.cpp",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
visibility = ["PUBLIC"],
|
|
|
|
deps = [
|
|
|
|
osquery_target("osquery:headers"),
|
|
|
|
osquery_target("osquery/core:core"),
|
|
|
|
osquery_target("osquery/core/plugins:plugins"),
|
2019-01-16 19:50:38 +00:00
|
|
|
osquery_target("osquery/core/sql:core_sql"),
|
2018-09-21 18:54:31 +00:00
|
|
|
osquery_target("osquery/database:database"),
|
|
|
|
osquery_target("osquery/devtools:devtools"),
|
|
|
|
osquery_target("osquery/dispatcher:dispatcher"),
|
2019-03-13 13:12:12 +00:00
|
|
|
osquery_target("osquery/experimental/events_stream:events_stream_registry"),
|
2019-03-14 16:37:13 +00:00
|
|
|
osquery_target("osquery/experimental/tracing:syscalls_tracing"),
|
2018-09-21 18:54:31 +00:00
|
|
|
osquery_target("osquery/extensions:extensions"),
|
2019-02-26 19:11:53 +00:00
|
|
|
osquery_target("osquery/extensions:impl_thrift"),
|
2018-09-21 18:54:31 +00:00
|
|
|
osquery_target("osquery/logger:data_logger"),
|
|
|
|
osquery_target("osquery/process:process"),
|
|
|
|
osquery_target("osquery/numeric_monitoring:numeric_monitoring"),
|
|
|
|
osquery_target("osquery/registry:registry"),
|
|
|
|
osquery_target("osquery/remote/enroll:tls_enroll"),
|
|
|
|
osquery_target("osquery/sql:sql"),
|
2019-02-19 08:51:43 +00:00
|
|
|
osquery_target("plugins/config:filesystem_config"),
|
|
|
|
osquery_target("plugins/config:tls_config"),
|
|
|
|
osquery_target("plugins/config/parsers:parsers"),
|
2019-02-27 16:28:18 +00:00
|
|
|
osquery_target("plugins/config:update_config_plugin"),
|
2019-03-02 12:19:01 +00:00
|
|
|
osquery_target("plugins/database:ephemeral"),
|
|
|
|
osquery_target("plugins/database:rocksdb_plugin"),
|
|
|
|
osquery_target("plugins/database:sqlite_plugin"),
|
2019-02-19 08:51:44 +00:00
|
|
|
osquery_target("plugins/distributed:tls_distributed"),
|
2019-02-19 15:10:26 +00:00
|
|
|
osquery_target("plugins/logger:buffered"),
|
|
|
|
osquery_target("plugins/logger:filesystem_logger"),
|
|
|
|
osquery_target("plugins/logger:stdout"),
|
|
|
|
osquery_target("plugins/logger:syslog"),
|
|
|
|
osquery_target("plugins/logger:tls_logger"),
|
2019-03-02 12:19:01 +00:00
|
|
|
osquery_target("plugins/numeric_monitoring:numeric_monitoring_filesystem"),
|
2019-02-27 16:28:18 +00:00
|
|
|
osquery_target("plugins/remote/enroll:tls_enroll_plugin"),
|
2018-09-21 18:54:31 +00:00
|
|
|
osquery_target("specs:tables"),
|
|
|
|
osquery_tp_target("boost"),
|
|
|
|
],
|
|
|
|
)
|