mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
ae2486ff16
Summary: Pull Request resolved: https://github.com/facebook/osquery/pull/5323 xcode needs unique target names not to fail on buck generated project Reviewed By: marekcirkos, akindyakov Differential Revision: D13449869 fbshipit-source-id: 73511aeaa3245586adc293fbe0311f51f71ea12f
82 lines
2.1 KiB
Python
82 lines
2.1 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_library", "osquery_cxx_test")
|
|
load("//tools/build_defs/oss/osquery:native.bzl", "osquery_target")
|
|
load("//tools/build_defs/oss/osquery:platforms.bzl", "FREEBSD", "MACOSX")
|
|
load("//tools/build_defs/oss/osquery:third_party.bzl", "osquery_tp_target")
|
|
|
|
osquery_cxx_library(
|
|
name = "utils",
|
|
srcs = [
|
|
"base64.cpp",
|
|
"chars.cpp",
|
|
"only_movable.cpp",
|
|
],
|
|
header_namespace = "osquery/utils",
|
|
exported_headers = [
|
|
"base64.h",
|
|
"chars.h",
|
|
"map_take.h",
|
|
"mutex.h",
|
|
"only_movable.h",
|
|
"scope_guard.h",
|
|
],
|
|
exported_platform_headers = [
|
|
(
|
|
MACOSX,
|
|
[
|
|
"darwin/plist.h",
|
|
],
|
|
),
|
|
],
|
|
exported_post_platform_linker_flags = [
|
|
(
|
|
FREEBSD,
|
|
[
|
|
"-lglog",
|
|
],
|
|
),
|
|
],
|
|
platform_srcs = [
|
|
(
|
|
MACOSX,
|
|
[
|
|
"darwin/plist.mm",
|
|
],
|
|
),
|
|
],
|
|
tests = [":utils_tests"],
|
|
visibility = ["PUBLIC"],
|
|
deps = [
|
|
osquery_tp_target("glog"),
|
|
],
|
|
exported_deps = [
|
|
osquery_target("osquery/logger:logger"),
|
|
osquery_target("osquery/utils/config:config"),
|
|
osquery_target("osquery/utils/conversions:conversions"),
|
|
osquery_target("osquery/utils/expected:expected"),
|
|
osquery_target("osquery/utils/info:info"),
|
|
osquery_target("osquery/utils/status:status"),
|
|
],
|
|
)
|
|
|
|
osquery_cxx_test(
|
|
name = "utils_tests",
|
|
srcs = [
|
|
"tests/base64.cpp",
|
|
"tests/chars.cpp",
|
|
"tests/map_take.cpp",
|
|
"tests/scope_guard.cpp",
|
|
],
|
|
visibility = ["PUBLIC"],
|
|
deps = [
|
|
":utils",
|
|
],
|
|
)
|