mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
a88a010e30
Summary: Hand port of https://github.com/facebook/osquery/pull/5154 to the new build system I'm moving toward generating constants for each column so that we can do used column lookups without having to do a string set lookup, but first I need to have the used columns information plumbed through as a bitfield. Once the code generation is in and all cases have been migrated to it, I'll remove the string variants of `isColumnUsed`/`isAnyColumnUsed`. Reviewed By: guliashvili Differential Revision: D13423615 fbshipit-source-id: 6a2afe7dad42942610dfe0f6f55bcee4603a25af
50 lines
1.6 KiB
Python
50 lines
1.6 KiB
Python
# 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"),
|
|
osquery_tp_target("sqlite"),
|
|
],
|
|
)
|
|
|
|
osquery_cxx_binary(
|
|
name = "osqueryd",
|
|
visibility = ["PUBLIC"],
|
|
deps = [
|
|
osquery_target("osquery/main:main"),
|
|
],
|
|
)
|