Skip to content

Commit

Permalink
Add windows runtime to dlls
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed Dec 7, 2024
1 parent 7e3b33b commit 4ecd4cb
Show file tree
Hide file tree
Showing 13 changed files with 163 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .styleguide
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ generatedFileExclude {
BUILD.bazel
\.jinja2$
generate/vendor_dep.json$
\.dll$
\.patch$
}

repoRootNameOverride {
Expand Down
16 changes: 16 additions & 0 deletions maven_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ def __setup_jdk_dependencies(mctx):
strip_prefix = "jdk-17.0.12+7/Contents/Home",
)

runtime_files = [
"concrt140.dll",
"msvcp140.dll",
"msvcp140_1.dll",
"msvcp140_2.dll",
"msvcp140_atomic_wait.dll",
"msvcp140_codecvt_ids.dll",
"vccorlib140.dll",
"vcruntime140.dll",
"vcruntime140_1.dll",
"vcruntime140_threads.dll",
]

runtime_labels = [Label("@rules_bzlmodrio_jdk//msvc_runtime:" + f) for f in runtime_files]
win_patch_cmds = ["cp ../" + lbl.repo_name + "/msvc_runtime/" + lbl.name + " bin/" + lbl.name for lbl in runtime_labels]
remote_java_repository(
name = "roboriojdk_windows",
prefix = "roboriojdk",
Expand All @@ -64,6 +79,7 @@ def __setup_jdk_dependencies(mctx):
sha256 = "052049d687ebfda6a4032d54afcd0da6549a23bc2ed04cfaa509746eeacbae71",
urls = ["https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_windows_hotspot_17.0.12_7.zip"],
strip_prefix = "jdk-17.0.12+7",
patch_cmds = win_patch_cmds
)

def setup_legacy_setup_jdk_dependencies():
Expand Down
Binary file added msvc_runtime/concrt140.dll
Binary file not shown.
Binary file added msvc_runtime/msvcp140.dll
Binary file not shown.
Binary file added msvc_runtime/msvcp140_1.dll
Binary file not shown.
Binary file added msvc_runtime/msvcp140_2.dll
Binary file not shown.
Binary file added msvc_runtime/msvcp140_atomic_wait.dll
Binary file not shown.
Binary file added msvc_runtime/msvcp140_codecvt_ids.dll
Binary file not shown.
Binary file added msvc_runtime/vccorlib140.dll
Binary file not shown.
Binary file added msvc_runtime/vcruntime140.dll
Binary file not shown.
Binary file added msvc_runtime/vcruntime140_1.dll
Binary file not shown.
Binary file added msvc_runtime/vcruntime140_threads.dll
Binary file not shown.
147 changes: 145 additions & 2 deletions tests/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4ecd4cb

Please sign in to comment.