mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
ef85d1a643
This commit adds meson build support to mutter. It takes a step away from the three separate code bases with three different autotools setups into a single meson build system. There are still places that can be unified better, for example by removing various "config.h" style files from cogl and clutter, centralizing debug C flags and other configurable macros, and similar artifacts that are there only because they were once separate code bases. There are some differences between the autotools setup and the new meson. Here are a few: The meson setup doesn't generate wrapper scripts for various cogl and clutter test cases. What these tests did was more or less generate a tiny script that called an executable with a test name as the argument. To run particular tests, just run the test executable with the name of the test as the argument. The meson setup doesn't install test files anymore. The autotools test suite was designed towards working with installed tests, but it didn't really still, and now with meson, it doesn't install anything at all, but instead makes sure that everything runs with the uninstalled input files, binaries and libraries when running the test suite. Installable tests may come later. Tests from cogl, clutter and mutter are run on 'meson test'. In autotools, only cogl and clutter tests were run on 'make check'.
39 lines
1.1 KiB
Meson
39 lines
1.1 KiB
Meson
cogl_gles2_public_headers = [
|
|
'GLES2/gl2.h',
|
|
'GLES2/gl2ext.h',
|
|
'GLES2/gl2platform.h',
|
|
]
|
|
|
|
cogl_gles2_sources = [
|
|
'cogl-gles2-api.c',
|
|
]
|
|
|
|
libmutter_cogl_gles2 = shared_library('mutter-cogl-gles2-' + libmutter_api_version,
|
|
sources: [cogl_gles2_sources, cogl_gles2_public_headers],
|
|
c_args: cogl_c_args,
|
|
include_directories: [cogl_includepath, cogl_path_includepath],
|
|
link_depends: 'libmutter-cogl-gles2.map',
|
|
dependencies: [cogl_deps],
|
|
link_with: libmutter_cogl,
|
|
install_rpath: pkglibdir,
|
|
install_dir: pkglibdir,
|
|
install: true,
|
|
)
|
|
|
|
cogl_gles2_includedir = join_paths(cogl_includedir, 'cogl-gles2/GLES2')
|
|
install_headers(cogl_gles2_public_headers,
|
|
subdir: cogl_gles2_includedir)
|
|
|
|
pkg.generate(
|
|
name: 'CoglGles2',
|
|
filebase: 'mutter-cogl-gles2-' + libmutter_api_version,
|
|
description: 'A cogl GLES2 helper library for mutter',
|
|
libraries: [libmutter_cogl_gles2],
|
|
subdirs: join_paths(pkgname, 'cogl'),
|
|
requires: [cogl_pkg_deps, libmutter_cogl_name],
|
|
version: meson.project_version(),
|
|
variables: [
|
|
'apiversion=' + libmutter_api_version,
|
|
],
|
|
)
|