mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
This follows the gradle build accurately. Gradle copies debug symbols into a second file (libfoo.so.debug) and links it back into the .so file. Disable this behavior when gradle doesn't do it today. Also, name everything correctly. When building debug builds, most libraries get a 'd' at the end of them. Do that here too.
69 lines
1.3 KiB
Python
69 lines
1.3 KiB
Python
load("@bazel_skylib//rules:write_file.bzl", "write_file")
|
|
load("@rules_pkg//:mappings.bzl", "pkg_files")
|
|
|
|
# Generate this because otherwise the linter wants to change the format.
|
|
write_file(
|
|
name = "manifest_write",
|
|
out = "MANIFEST.MF",
|
|
content = [
|
|
"Manifest-Version: 1.0",
|
|
"",
|
|
],
|
|
)
|
|
|
|
pkg_files(
|
|
name = "src_jar_dummy_manifest",
|
|
srcs = [
|
|
"MANIFEST.MF",
|
|
],
|
|
prefix = "META-INF",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
config_setting(
|
|
name = "compilation_mode_windows_fastbuild",
|
|
constraint_values = [
|
|
"@platforms//os:windows",
|
|
],
|
|
values = {
|
|
"compilation_mode": "fastbuild",
|
|
},
|
|
)
|
|
|
|
config_setting(
|
|
name = "compilation_mode_windows_dbg",
|
|
constraint_values = [
|
|
"@platforms//os:windows",
|
|
],
|
|
values = {
|
|
"compilation_mode": "dbg",
|
|
},
|
|
)
|
|
|
|
config_setting(
|
|
name = "compilation_mode_dbg",
|
|
values = {
|
|
"compilation_mode": "dbg",
|
|
},
|
|
)
|
|
|
|
config_setting(
|
|
name = "linux_compilation_mode_dbg",
|
|
constraint_values = [
|
|
"@platforms//os:linux",
|
|
],
|
|
values = {
|
|
"compilation_mode": "dbg",
|
|
},
|
|
)
|
|
|
|
config_setting(
|
|
name = "osx_compilation_mode_dbg",
|
|
constraint_values = [
|
|
"@platforms//os:osx",
|
|
],
|
|
values = {
|
|
"compilation_mode": "dbg",
|
|
},
|
|
)
|