Skip to content

Commit 14c4e5e

Browse files
committed
wip: add qnap support
1 parent aa5ccbd commit 14c4e5e

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
- build-android-rust
7474
- build-linux-rust
7575
- build-windows-rust
76+
- package-qnap
7677
- package-aar
7778
- package-aar-jdk-17
7879
runs-on: ubuntu-22.04

rust_build_utils/rust_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from pathlib import Path
1010
from rust_build_utils.msvc import activate_msvc, deactivate_msvc, is_msvc_active
1111

12-
1312
PackageList = Dict[str, Dict[str, str]]
1413

1514
LIPO_TARGET_OSES = ["macos", "ios", "tvos"]

rust_build_utils/rust_utils_config.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@
7070
},
7171
"post_build": ["rust_build_utils.linux_build_utils.strip"],
7272
},
73+
"qnap": {
74+
"archs": {
75+
"x86_64": {
76+
"strip_path": "/usr/bin/objcopy",
77+
"rust_target": "x86_64-unknown-linux-gnu",
78+
},
79+
},
80+
"post_build": ["rust_build_utils.linux_build_utils.strip"],
81+
},
7382
"windows": {
7483
"archs": {
7584
"x86_64": {

0 commit comments

Comments
 (0)