2017-09-08 09:37:54 +03:00
|
|
|
gala_lib_sources = files(
|
2020-07-20 23:06:57 +03:00
|
|
|
'ActivatableComponent.vala',
|
2022-10-11 03:47:37 +03:00
|
|
|
'App.vala',
|
2020-10-27 21:15:57 +03:00
|
|
|
'AppCache.vala',
|
2022-10-11 03:47:37 +03:00
|
|
|
'AppSystem.vala',
|
2020-07-20 23:06:57 +03:00
|
|
|
'Constants.vala',
|
2020-11-09 12:15:00 +03:00
|
|
|
'DragDropAction.vala',
|
2022-05-22 21:02:45 +03:00
|
|
|
'Drawing/BufferSurface.vala',
|
|
|
|
'Drawing/Color.vala',
|
|
|
|
'Drawing/Utilities.vala',
|
2020-07-20 23:06:57 +03:00
|
|
|
'Plugin.vala',
|
|
|
|
'Utils.vala',
|
|
|
|
'WindowIcon.vala',
|
|
|
|
'WindowManager.vala',
|
2017-09-08 09:37:54 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
gala_resources = gnome.compile_resources(
|
2020-07-20 23:06:57 +03:00
|
|
|
'gala-resources',
|
2023-02-21 22:05:43 +03:00
|
|
|
join_paths(meson.global_source_root(), 'data', 'gala.gresource.xml'),
|
|
|
|
source_dir: join_paths(meson.global_source_root(), 'data'),
|
2020-07-20 23:06:57 +03:00
|
|
|
c_name: 'gala',
|
2017-09-08 09:37:54 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
gala_lib = shared_library(
|
2020-07-20 23:06:57 +03:00
|
|
|
'gala',
|
|
|
|
gala_lib_sources,
|
|
|
|
gala_resources,
|
|
|
|
dependencies: [gala_base_dep],
|
|
|
|
include_directories: config_inc_dir,
|
|
|
|
install: true,
|
|
|
|
install_dir: [true, join_paths(get_option('includedir'), 'gala'), true],
|
|
|
|
install_rpath: mutter_typelib_dir,
|
|
|
|
version : '0.0.0'
|
2017-09-08 09:37:54 +03:00
|
|
|
)
|
|
|
|
|
2021-08-31 17:34:48 +03:00
|
|
|
deps_conf = configuration_data()
|
|
|
|
deps_conf.set('MUTTER_DEP', libmutter_dep.name())
|
|
|
|
config_h = configure_file(
|
|
|
|
input: 'gala.deps.in',
|
|
|
|
output: '@BASENAME@',
|
|
|
|
configuration: deps_conf,
|
|
|
|
install_dir: join_paths(get_option('datadir'), 'vala', 'vapi')
|
|
|
|
)
|
2017-09-08 09:37:54 +03:00
|
|
|
|
|
|
|
gala_dep = declare_dependency(link_with: [gala_lib], include_directories: include_directories('.'))
|
|
|
|
|
2020-03-06 18:47:25 +03:00
|
|
|
pkg.generate(
|
2020-07-20 23:06:57 +03:00
|
|
|
gala_lib,
|
|
|
|
filebase: 'gala',
|
|
|
|
name: 'Gala',
|
|
|
|
description: 'Library to develop plugins for Gala',
|
|
|
|
subdirs: 'gala',
|
2022-10-11 03:47:37 +03:00
|
|
|
requires: [glib_dep, gobject_dep, gio_dep, gio_unix_dep, libmutter_dep],
|
2020-07-20 23:06:57 +03:00
|
|
|
variables: [
|
|
|
|
'datarootdir=${prefix}/@0@'.format(get_option('datadir')),
|
|
|
|
'pkgdatadir=${datarootdir}/gala'
|
|
|
|
]
|
2017-09-08 09:37:54 +03:00
|
|
|
)
|