Skip to content

Commit

Permalink
Added meson and flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
mfep committed Nov 5, 2023
1 parent d927d0b commit 213e26c
Show file tree
Hide file tree
Showing 22 changed files with 590 additions and 30 deletions.
1 change: 1 addition & 0 deletions .flatpak-builder/ccache/disabled/ccache.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
disable = true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/.flatpak-builder
/target
/build
/builddir
10 changes: 10 additions & 0 deletions build-aux/dist-vendor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
export DIST="$1"
export SOURCE_ROOT="$2"

cd "$SOURCE_ROOT"
mkdir "$DIST"/.cargo
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > $DIST/.cargo/config
# Move vendor into dist tarball directory
mv vendor "$DIST"

37 changes: 37 additions & 0 deletions build-aux/xyz.safeworlds.hiit.Devel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
id: xyz.safeworlds.hiit.Devel
runtime: org.gnome.Platform
runtime-version: "45"
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable # 23.08
- org.freedesktop.Sdk.Extension.llvm16
command: hiit
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --socket=pulseaudio
- --device=dri
- --env=RUST_LOG=gtk_rust_template=debug
- --env=G_MESSAGES_DEBUG=none
- --env=RUST_BACKTRACE=1
build-options:
append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm16/bin
prepend-ld-library-path: /usr/lib/sdk/llvm16/lib
build-args:
- --share=network
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: clang
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS: -C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: clang
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS: -C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold
modules:
- name: hiit
buildsystem: meson
run-tests: true
config-opts:
- -Dprofile=development
sources:
- type: dir
path: ../
10 changes: 10 additions & 0 deletions data/icons/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
install_data(
'@[email protected]'.format(application_id),
install_dir: iconsdir / 'hicolor' / 'scalable' / 'apps'
)

install_data(
'@[email protected]'.format(base_id),
install_dir: iconsdir / 'hicolor' / 'symbolic' / 'apps',
rename: '@[email protected]'.format(application_id)
)
4 changes: 4 additions & 0 deletions data/icons/xyz.safeworlds.hiit-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
119 changes: 119 additions & 0 deletions data/icons/xyz.safeworlds.hiit.Devel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
43 changes: 43 additions & 0 deletions data/icons/xyz.safeworlds.hiit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 213e26c

Please sign in to comment.