forked from mamolinux/leaptime-manager
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start porting to meson python build (mamolinux#73)
- Update ci with latest ubuntu release and build dependencies
- Loading branch information
Showing
5 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include debian/changelog | ||
graft src/LeaptimeManager/ui* | ||
global-exclude *.py[cod] | ||
graft data* | ||
graft src/LeapTimeManager/ui* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
project('leaptime-manager', | ||
version: run_command('head', '-1', 'debian/changelog', check: true).stdout().split(' ')[1].strip('(').strip(')'), | ||
default_options: ['warning_level=3', | ||
'prefix=/usr', | ||
] | ||
) | ||
|
||
application_id = meson.project_name() | ||
i18n = import('i18n') | ||
gnome = import('gnome') | ||
pymod = import('python') | ||
python = pymod.find_installation('python3') | ||
|
||
prefix = get_option('prefix') | ||
bindir = get_option('bindir') | ||
datadir = get_option('datadir') | ||
|
||
gnome.post_install( | ||
glib_compile_schemas: true, | ||
gtk_update_icon_cache: true, | ||
update_desktop_database: true, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
python3 -m build | ||
pip3 install -v ./dist/leaptime_manager-*.whl | ||
leaptime-manager -V | ||
set +x | ||
rm -rf builddir | ||
meson setup -Dprefix=$HOME/.local builddir | ||
meson compile -C builddir --verbose | ||
meson install -C builddir --dry-run | ||
# leaptime-manager -V | ||
# ninja uninstall -C builddir |