Skip to content

Commit

Permalink
Add jvm packages for ubuntu/fedora and setup include paths
Browse files Browse the repository at this point in the history
Summary: Necessary for facebookinternal/fizz builds

Reviewed By: zpao

Differential Revision: D67216319

fbshipit-source-id: 8d8a76a7fb2ce3263224a2e1d0373ff5206589f9
  • Loading branch information
ckwalsh authored and facebook-github-bot committed Dec 13, 2024
1 parent ca687cb commit b74887e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions third-party/jvm/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,26 @@ load("@//third-party:defs.bzl", "system_library")

oncall("open_source")

FEDORA_JVM_ROOT = "/usr/lib/jvm/java-23-openjdk-23.0.1.0.11-1.rolling.fc40.x86_64"

UBUNTU_JVM_ROOT = "/usr/lib/jvm/java-21-openjdk-amd64"

system_library(
name = "jvm",
exported_preprocessor_flags = select({
"//os:linux-fedora": [
"-I{root}/include/".format(root = FEDORA_JVM_ROOT),
"-I{root}/include/linux/".format(root = FEDORA_JVM_ROOT),
],
"//os:linux-ubuntu": [
"-I{root}/include/".format(root = UBUNTU_JVM_ROOT),
"-I{root}/include/linux/".format(root = UBUNTU_JVM_ROOT),
],
"DEFAULT": [],
}),
packages = {
"//os:linux-fedora": ["java-latest-openjdk-devel"],
"//os:linux-ubuntu": ["openjdk-21-jdk-headless"],
"//os:macos-homebrew": ["openjdk"],
},
)

0 comments on commit b74887e

Please sign in to comment.