-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for Meson build system
resolves #2
- Loading branch information
Showing
3 changed files
with
91 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
project('win32-details', | ||
version: '0.4', | ||
meson_version: '>= 0.59.0', | ||
default_options: [ 'warning_level=2', | ||
'werror=false', | ||
] | ||
) | ||
|
||
# Import modules | ||
python = import('python') | ||
|
||
# Nautilus extension directory | ||
EXTENSIONS_DIR = join_paths(get_option('prefix'), get_option('datadir'), 'nautilus-python/extensions') | ||
|
||
dependency('glib-2.0') | ||
dependency('gtk+-3.0') | ||
dependency('pygobject-3.0', version: '>= 3.40.0') | ||
|
||
# Check if python3 is installed | ||
PY_INSTALLDIR = python.find_installation('python3', required: true) | ||
|
||
# Check if exiftool is installed | ||
find_program('exiftool', required: true) | ||
|
||
# Install configuration data | ||
conf = configuration_data() | ||
conf.set('EXTENSIONS_DIR', EXTENSIONS_DIR) | ||
|
||
# Subdirs | ||
subdir('win32_details') |
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,16 @@ | ||
# Copy files to Python libraries directory (disable for now) | ||
#sources = [ | ||
# '__init__.py', | ||
# 'cli.py', | ||
# 'win32_details.py' | ||
#] | ||
#PY_INSTALLDIR.install_sources(sources, subdir: 'win32_details') | ||
|
||
# Copy extension code to Nautilus extensions directory | ||
configure_file( | ||
input: 'win32_details.py', | ||
output: 'win32_details.py', | ||
configuration: conf, | ||
install: true, | ||
install_dir: EXTENSIONS_DIR | ||
) |