Skip to content

Commit b9edd97

Browse files
committed
Bump flatpak SDK to 47. Fix build.rs.
1 parent e0f0c6c commit b9edd97

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

build-aux/com.saivert.pwvucontrol.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
{
22
"app-id": "com.saivert.pwvucontrol",
33
"runtime": "org.gnome.Platform",
4-
"runtime-version": "46",
4+
"runtime-version": "47",
55
"sdk": "org.gnome.Sdk",
66
"sdk-extensions": [
77
"org.freedesktop.Sdk.Extension.rust-stable",
8-
"org.freedesktop.Sdk.Extension.llvm16"
8+
"org.freedesktop.Sdk.Extension.llvm18"
99
],
1010
"command": "pwvucontrol",
1111
"finish-args": [
1212
"--share=network",
1313
"--share=ipc",
1414
"--socket=fallback-x11",
15+
"--socket=pulseaudio",
1516
"--device=dri",
1617
"--socket=wayland",
1718
"--filesystem=xdg-run/pipewire-0"
1819
],
1920
"build-options": {
20-
"append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm16/bin",
21-
"prepend-ld-library-path": "/usr/lib/sdk/llvm16/lib",
21+
"append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm18/bin",
22+
"prepend-ld-library-path": "/usr/lib/sdk/llvm18/lib",
2223
"build-args" : [
2324
"--share=network"
2425
],
2526
"env": {
26-
"RUST_BACKTRACE": "1",
27-
"RUST_LOG": "pwvucontrol=debug",
2827
"CARGO_REGISTRIES_CRATES_IO_PROTOCOL": "sparse",
2928
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER": "clang",
3029
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS": "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold",
@@ -59,7 +58,7 @@
5958
{
6059
"type": "git",
6160
"tag": "0.4.16",
62-
"url": "https://gitlab.freedesktop.org/pipewire/wireplumber.git"
61+
"url": "https://github.com/PipeWire/wireplumber.git"
6362
}
6463
]
6564
},
@@ -87,4 +86,4 @@
8786
]
8887
}
8988
]
90-
}
89+
}

build.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ fn main() {
99
// also need to copy the generated config.rs file there.
1010
println!("cargo::rerun-if-changed=src/config.rs.in");
1111
let out_dir = env::var("OUT_DIR").unwrap();
12-
let sourcepath: PathBuf = ["builddir", "src", "config.rs"].iter().collect();
12+
let codegen_dir = env::var("CODEGEN_DIR").unwrap();
13+
let sourcepath: PathBuf = [&codegen_dir, "config.rs"].iter().collect();
1314
if !Path::exists(&sourcepath) {
1415
panic!("Please configure the project with meson once to generate config.rs!");
1516
}

src/meson.build

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ endif
2727

2828
cargo_env = [
2929
'CARGO_HOME=' + meson.project_build_root() / 'cargo-home',
30-
'OUT_DIR=' + meson.current_build_dir(),
30+
'CODEGEN_DIR=' + meson.current_build_dir(),
3131
]
3232

3333
custom_target(
@@ -50,4 +50,4 @@ custom_target(
5050
'src' / rust_target / meson.project_name(),
5151
'@OUTPUT@',
5252
],
53-
)
53+
)

0 commit comments

Comments
 (0)