aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/singlejar/BUILD
diff options
context:
space:
mode:
authorGravatar Loo Rong Jie <loorongjie@gmail.com>2018-07-17 03:57:01 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-07-17 03:58:16 -0700
commit8231cd72a4224823653b76a167e0107f6da9719d (patch)
treebe3f8d693ab0f7f1b97f66830a0094b23051702f /src/tools/singlejar/BUILD
parent715a7728e7e4a427c8d76545933f86bce5ddfbd9 (diff)
[singlejar] Add port library for various MSVC hacks
A small `port` library with various MSVC hacks. This is needed for future PRs. For non-Windows platforms, `port.cc` will produce an empty object file. #2241 /cc @laszlocsomor Closes #5501. PiperOrigin-RevId: 204889516
Diffstat (limited to 'src/tools/singlejar/BUILD')
-rw-r--r--src/tools/singlejar/BUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/singlejar/BUILD b/src/tools/singlejar/BUILD
index a855a22064..5c1da1ff21 100644
--- a/src/tools/singlejar/BUILD
+++ b/src/tools/singlejar/BUILD
@@ -31,6 +31,8 @@ filegroup(
"options.h",
"output_jar.cc",
"output_jar.h",
+ "port.cc",
+ "port.h",
"singlejar_main.cc",
"token_stream.h",
"transient_bytes.h",
@@ -345,6 +347,13 @@ cc_library(
)
cc_library(
+ name = "port",
+ srcs = ["port.cc"],
+ hdrs = ["port.h"],
+ visibility = ["//visibility:private"],
+)
+
+cc_library(
name = "mapped_file",
srcs = select({
"//src:windows": ["mapped_file_windows.inc"],