-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add install script for non-debian builds (#535)
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# These scripts run as post-installation scripts. | ||
|
||
# They're designed to do nothing if DESTDIR is set, which happens | ||
# during debian builds for instance - there's a fake install target | ||
# so running these would be pointless. | ||
|
||
# When using deb packaging, these aren't needed, as these operations | ||
# are run automatically by the package manager. | ||
|
||
# They're really only necessary in straight builds where 'ninja install' | ||
# will be run directly, to install the program onto the system. | ||
|
||
|
||
# Re-compile gsettings | ||
meson.add_install_script('meson_install_schemas.py') |
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,10 @@ | ||
#!/usr/bin/python3 | ||
|
||
import os | ||
import subprocess | ||
|
||
schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas') | ||
|
||
if not os.environ.get('DESTDIR'): | ||
print('Compiling gsettings schemas...') | ||
subprocess.call(['glib-compile-schemas', schemadir]) |
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