mirror of
https://github.com/github/codeql.git
synced 2026-08-04 09:23:23 +02:00
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
|
load("@rules_license//rules:license.bzl", "license")
|
|
|
|
package(
|
|
default_applicable_licenses = [":license"],
|
|
)
|
|
|
|
exports_files([
|
|
"LICENSE",
|
|
])
|
|
|
|
license(
|
|
name = "license",
|
|
license_kinds = ["@rules_license//licenses/spdx:MIT"],
|
|
license_text = "LICENSE",
|
|
)
|
|
|
|
cc_library(
|
|
name = "fmt",
|
|
srcs = [
|
|
#"src/fmt.cc", # No C++ module support, yet in Bazel (https://github.com/bazelbuild/bazel/pull/19940)
|
|
"src/format.cc",
|
|
"src/os.cc",
|
|
],
|
|
hdrs = glob([
|
|
"include/fmt/*.h",
|
|
]),
|
|
# codeql change: disable UTF8 support, it's causing issues on Windows
|
|
# copts = select({
|
|
# "@rules_cc//cc/compiler:msvc-cl": ["/utf-8"],
|
|
# "//conditions:default": [],
|
|
# }),
|
|
defines = select({
|
|
"@rules_cc//cc/compiler:msvc-cl": ["FMT_UNICODE=0"],
|
|
"//conditions:default": [],
|
|
}),
|
|
includes = ["include"],
|
|
strip_include_prefix = "include", # workaround: only needed on some macOS systems (see https://github.com/bazelbuild/bazel-central-registry/issues/1537)
|
|
visibility = ["//visibility:public"],
|
|
)
|