diff options
author | Christian Hergert <chergert@redhat.com> | 2023-03-22 16:44:31 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2023-03-22 16:44:31 -0700 |
commit | 37b9fae8ab0f31f64761762cb1693807add68613 (patch) | |
tree | ce2d72f42b97fa679f7bf56076b6978d9354f878 /loaders/python | |
parent | c68ecac0025caa5fa2401deff41d3b1959062600 (diff) | |
download | libpeas-37b9fae8ab0f31f64761762cb1693807add68613.tar.gz |
janitorial: clean up tree in preparation for libpeas-2.0
This starts the process of working towards a new Libpeas 2.0 ABI. The
goals of this ABI break are:
* Modernize and cleanup GObject usage within libpeas
* Use GObject's in more places to allow for better GIO integration
* Implement GListModel where it makes sense
* Remove GTK 3 and GTK-based APIs as those are trivial to implement in
applications with GTK 4 and newer.
* Drop Python 2 support
* Simplify support for new plugin loaders
# Conflicts:
# NEWS
# meson.build
Diffstat (limited to 'loaders/python')
-rw-r--r-- | loaders/python/meson.build | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/loaders/python/meson.build b/loaders/python/meson.build index 9ca733a..458781e 100644 --- a/loaders/python/meson.build +++ b/loaders/python/meson.build @@ -1,29 +1,29 @@ -python2_loader_name = 'pythonloader' +python3_loader_name = 'pythonloader' pygobject_version = pygobject_dep.version() pygobject_version_arr = pygobject_version.split('.') pygobject_version_major = pygobject_version_arr[0].to_int() pygobject_version_minor = pygobject_version_arr[1].to_int() -pygobject_version_micro = pygobject_version_arr[2].to_int() +pygobject_version_micro = pygobject_version_arr[3].to_int() -python2_loader_c = files( +python3_loader_c = files( 'peas-plugin-loader-python.c', 'peas-python-internal.c', ) -python2_loader_res = gnome.compile_resources( +python3_loader_res = gnome.compile_resources( 'peas-python-resources', 'peas-python.gresource.xml', export: true, ) -python2_loader_deps = [ +python3_loader_deps = [ libpeas_dep, - python2_dep, + python3_dep, pygobject_dep, ] -python2_loader_c_args = [ +python3_loader_c_args = [ '-DHAVE_CONFIG_H', '-DPEAS_LOCALEDIR="@0@"'.format(localedir), '-DPYGOBJECT_MAJOR_VERSION=@0@'.format(pygobject_version_major), @@ -31,12 +31,12 @@ python2_loader_c_args = [ '-DPYGOBJECT_MICRO_VERSION=@0@'.format(pygobject_version_micro), ] -python2_loader_sha = shared_module( - python2_loader_name, - python2_loader_c + python2_loader_res, +python3_loader_sha = shared_module( + python3_loader_name, + python3_loader_c + python3_loader_res, include_directories: rootdir, - dependencies: python2_loader_deps, - c_args: project_c_args + python2_loader_c_args, + dependencies: python3_loader_deps, + c_args: project_c_args + python3_loader_c_args, install: true, install_dir: join_paths( pkglibdir, |