build: Move libmutter_name to toplevel Meson file

The libmutter name will be reused by other Meson files,
so it makes sense to share it instead of rebuilding this
string every time.
This commit is contained in:
Georges Basile Stavracas Neto 2018-12-20 12:29:59 -02:00
parent 05ab8eebe8
commit dcb525397c
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385
2 changed files with 2 additions and 1 deletions

View File

@ -71,6 +71,8 @@ localedir = join_paths(datadir, 'locale')
top_srcdir = meson.current_source_dir()
builddir = meson.current_build_dir()
libmutter_name = 'mutter-' + libmutter_api_version
m_dep = cc.find_library('m', required: true)
x11_dep = dependency('x11')
gtk3_dep = dependency('gtk+-3.0', version: gtk3_req)

View File

@ -731,7 +731,6 @@ mutter_built_sources += mutter_marshal
mutter_built_sources += mutter_enum_types
mutter_built_sources += mutter_version
libmutter_name = 'mutter-' + libmutter_api_version
libmutter = shared_library(libmutter_name,
sources: [
mutter_sources,