mirror of
https://github.com/elementary/gala.git
synced 2024-12-29 20:21:39 +03:00
7c540a2a06
This allows us to completely replace libbamf in some specific cases (like system shell elements) Co-authored-by: Danielle Foré <danielle@elementary.io>
59 lines
1.6 KiB
Meson
59 lines
1.6 KiB
Meson
gala_lib_sources = files(
|
|
'ActivatableComponent.vala',
|
|
'App.vala',
|
|
'AppCache.vala',
|
|
'AppSystem.vala',
|
|
'Constants.vala',
|
|
'DragDropAction.vala',
|
|
'Drawing/BufferSurface.vala',
|
|
'Drawing/Color.vala',
|
|
'Drawing/Utilities.vala',
|
|
'Plugin.vala',
|
|
'Utils.vala',
|
|
'WindowIcon.vala',
|
|
'WindowManager.vala',
|
|
)
|
|
|
|
gala_resources = gnome.compile_resources(
|
|
'gala-resources',
|
|
join_paths(meson.source_root(), 'data', 'gala.gresource.xml'),
|
|
source_dir: join_paths(meson.source_root(), 'data'),
|
|
c_name: 'gala',
|
|
)
|
|
|
|
gala_lib = shared_library(
|
|
'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'
|
|
)
|
|
|
|
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')
|
|
)
|
|
|
|
gala_dep = declare_dependency(link_with: [gala_lib], include_directories: include_directories('.'))
|
|
|
|
pkg.generate(
|
|
gala_lib,
|
|
filebase: 'gala',
|
|
name: 'Gala',
|
|
description: 'Library to develop plugins for Gala',
|
|
subdirs: 'gala',
|
|
requires: [glib_dep, gobject_dep, gio_dep, gio_unix_dep, libmutter_dep],
|
|
variables: [
|
|
'datarootdir=${prefix}/@0@'.format(get_option('datadir')),
|
|
'pkgdatadir=${datarootdir}/gala'
|
|
]
|
|
)
|