Skip to content

Commit fd8e6a8

Browse files
committed
Add native library packages
- Fixes #101
1 parent 929566a commit fd8e6a8

File tree

18 files changed

+394
-0
lines changed

18 files changed

+394
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib~=0.2.0",
6+
"hatch-robotpy~=0.2",
7+
"robotpy-native-wpiutil==2025.3.2",
8+
"robotpy-native-wpimath==2025.3.2",
9+
]
10+
11+
[project]
12+
name = "robotpy-native-apriltag"
13+
version = "2025.3.2"
14+
description = "WPILib AprilTag Library"
15+
license = "BSD-3-Clause"
16+
17+
dependencies = [
18+
"robotpy-native-wpiutil==2025.3.2",
19+
"robotpy-native-wpimath==2025.3.2",
20+
]
21+
22+
[tool.hatch.build.targets.wheel]
23+
packages = ["src/native"]
24+
25+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
26+
artifact_id = "apriltag-cpp"
27+
group_id = "edu.wpi.first.apriltag"
28+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
29+
version = "2025.3.2"
30+
31+
extract_to = "src/native/apriltag"
32+
libs = ["apriltag"]
33+
34+
[[tool.hatch.build.hooks.nativelib.pcfile]]
35+
pcfile = "src/native/apriltag/robotpy-native-apriltag.pc"
36+
name = "apriltag"
37+
38+
includedir = "src/native/apriltag/include"
39+
libdir = "src/native/apriltag/lib"
40+
shared_libraries = ["apriltag"]
41+
requires = ["robotpy-native-wpiutil", "robotpy-native-wpimath"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib~=0.2.0",
6+
"hatch-robotpy~=0.2",
7+
"robotpy-native-wpiutil==2025.3.2",
8+
"robotpy-native-wpinet==2025.3.2",
9+
]
10+
11+
[project]
12+
name = "robotpy-native-ntcore"
13+
version = "2025.3.2"
14+
description = "WPILib NetworkTables Library"
15+
license = "BSD-3-Clause"
16+
17+
dependencies = [
18+
"robotpy-native-wpiutil==2025.3.2",
19+
"robotpy-native-wpinet==2025.3.2",
20+
]
21+
22+
[tool.hatch.build.targets.wheel]
23+
packages = ["src/native"]
24+
25+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
26+
artifact_id = "ntcore-cpp"
27+
group_id = "edu.wpi.first.ntcore"
28+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
29+
version = "2025.3.2"
30+
31+
extract_to = "src/native/ntcore"
32+
libs = ["ntcore"]
33+
34+
[[tool.hatch.build.hooks.nativelib.pcfile]]
35+
pcfile = "src/native/ntcore/robotpy-native-ntcore.pc"
36+
name = "ntcore"
37+
38+
includedir = "src/native/ntcore/include"
39+
libdir = "src/native/ntcore/lib"
40+
shared_libraries = ["ntcore"]
41+
requires = ["robotpy-native-wpinet", "robotpy-native-wpiutil"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib~=0.2.0",
6+
"hatch-robotpy~=0.2",
7+
"robotpy-native-wpilib==2025.3.2",
8+
]
9+
10+
[project]
11+
name = "robotpy-native-romi"
12+
version = "2025.3.2"
13+
description = "WPILib Romi support library"
14+
license = "BSD-3-Clause"
15+
16+
dependencies = [
17+
"robotpy-native-wpilib==2025.3.2",
18+
]
19+
20+
[tool.hatch.build.targets.wheel]
21+
packages = ["src/native"]
22+
23+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
24+
artifact_id = "romiVendordep-cpp"
25+
group_id = "edu.wpi.first.romiVendordep"
26+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
27+
version = "2025.3.2"
28+
29+
extract_to = "src/native/romi"
30+
libs = ["romiVendordep"]
31+
32+
[[tool.hatch.build.hooks.nativelib.pcfile]]
33+
pcfile = "src/native/romi/robotpy-native-romi.pc"
34+
name = "romi"
35+
36+
includedir = "src/native/romi/include"
37+
libdir = "src/native/romi/lib"
38+
shared_libraries = ["romiVendordep"]
39+
requires = ["robotpy-native-wpilib"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib~=0.2.0",
6+
"hatch-robotpy~=0.2",
7+
"robotpy-native-wpiutil==2025.3.2",
8+
]
9+
10+
[project]
11+
name = "robotpy-native-wpihal"
12+
version = "2025.3.2"
13+
description = "WPILib HAL implementation"
14+
license = "BSD-3-Clause"
15+
16+
dependencies = [
17+
"robotpy-native-wpiutil==2025.3.2",
18+
]
19+
20+
[tool.hatch.build.targets.wheel]
21+
packages = ["src/native"]
22+
23+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
24+
artifact_id = "hal-cpp"
25+
group_id = "edu.wpi.first.hal"
26+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
27+
version = "2025.3.2"
28+
29+
extract_to = "src/native/wpihal"
30+
libs = ["wpiHal"]
31+
32+
[[tool.hatch.build.hooks.nativelib.pcfile]]
33+
pcfile = "src/native/wpihal/robotpy-native-wpihal.pc"
34+
name = "wpihal"
35+
36+
includedir = "src/native/wpihal/include"
37+
libdir = "src/native/wpihal/lib"
38+
shared_libraries = ["wpiHal"]
39+
requires = ["robotpy-native-wpiutil"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/src
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatchling",
5+
"hatch-nativelib~=0.2.0",
6+
"hatch-robotpy~=0.2",
7+
"robotpy-native-wpiutil==2025.3.2",
8+
"robotpy-native-wpinet==2025.3.2",
9+
"robotpy-native-ntcore==2025.3.2",
10+
"robotpy-native-wpimath==2025.3.2",
11+
"robotpy-native-wpihal==2025.3.2",
12+
]
13+
14+
[project]
15+
name = "robotpy-native-wpilib"
16+
version = "2025.3.2"
17+
description = "WPILib Robotics Library"
18+
license = "BSD-3-Clause"
19+
20+
dependencies = [
21+
"robotpy-native-wpiutil==2025.3.2",
22+
"robotpy-native-wpinet==2025.3.2",
23+
"robotpy-native-ntcore==2025.3.2",
24+
"robotpy-native-wpimath==2025.3.2",
25+
"robotpy-native-wpihal==2025.3.2",
26+
]
27+
28+
[tool.hatch.build.targets.wheel]
29+
packages = ["src/native"]
30+
31+
[[tool.hatch.build.hooks.robotpy.maven_lib_download]]
32+
artifact_id = "wpilibc-cpp"
33+
group_id = "edu.wpi.first.wpilibc"
34+
repo_url = "https://frcmaven.wpi.edu/artifactory/release"
35+
version = "2025.3.2"
36+
37+
extract_to = "src/native/wpilib"
38+
libs = ["wpilibc"]
39+
40+
[[tool.hatch.build.hooks.nativelib.pcfile]]
41+
pcfile = "src/native/wpilib/robotpy-native-wpilib.pc"
42+
name = "wpilib"
43+
44+
includedir = "src/native/wpilib/include"
45+
libdir = "src/native/wpilib/lib"
46+
shared_libraries = ["wpilibc"]
47+
requires = ["robotpy-native-wpiutil", "robotpy-native-wpinet", "robotpy-native-ntcore", "robotpy-native-wpimath", "robotpy-native-wpihal"]

0 commit comments

Comments
 (0)