1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
From: Matthias Geiger <werdahias@riseup.net>
Date: Sat, 30 Sep 2023 14:44:44 -0400
Subject: Patch meson.build
This patch allows building of Loupe, patching the relevant
meson paths with the Debian ones. Additionally, we skip the doctests.
Forwarded: not-needed
Last-Update: 2025-02-02
---
meson_options.txt | 4 ++++
src/meson.build | 5 ++---
2 files changed, 7 insertions(+), 5 deletions(-)
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -16,4 +16,8 @@
'x11',
type: 'feature',
description: 'Enable X11 specific features.',
-)
\ No newline at end of file
+)
+option(
+ 'host_arch',
+ type: 'string',
+)
--- a/src/meson.build
+++ b/src/meson.build
@@ -16,7 +16,6 @@
endif
cargo_env = {
- 'CARGO_HOME': build_root / 'cargo-home',
'APP_ID': app_id,
'VERSION': version,
'LOCALEDIR': localedir,
@@ -48,7 +46,7 @@
output: meson.project_name(),
command: [
'cp',
- 'src' / rust_target / meson.project_name(),
+ build_root / 'src' / get_option('host_arch') / 'release' / meson.project_name(),
'@OUTPUT@',
],
)
@@ -78,4 +76,4 @@
],
is_parallel: false,
timeout: 1800,
-)
\ No newline at end of file
+)
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,9 @@
rust-version = "1.80"
license = "GPL-3.0-or-later"
+[lib]
+doctest = false
+
[profile.release]
lto = true
codegen-units = 1
|