mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
f5dac3a5d9
Group all the three config files from clutter/cogl/meta into one and also remove unnused configurations and replace duplicated ones This also fixes Cogl usage of HAS_X11/HAS_XLIB to match the expected build options Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3368>
106 lines
1.7 KiB
Meson
106 lines
1.7 KiB
Meson
cogl_includesubdir = pkgname / 'cogl'
|
|
cogl_includedir = includedir / cogl_includesubdir
|
|
cogl_srcdir = meson.current_source_dir()
|
|
|
|
cogl_includepath = [mtk_includepath, include_directories('.', 'cogl')]
|
|
|
|
cogl_pkg_deps = [
|
|
glib_dep,
|
|
gio_dep,
|
|
gobject_dep,
|
|
graphene_dep,
|
|
]
|
|
|
|
cogl_pkg_private_deps = [
|
|
cairo_dep,
|
|
gmodule_no_export_dep,
|
|
libmutter_mtk_dep,
|
|
#uprof_dep,
|
|
]
|
|
|
|
if have_profiler
|
|
cogl_pkg_private_deps += [
|
|
libsysprof_capture_dep,
|
|
]
|
|
endif
|
|
|
|
if have_wayland
|
|
cogl_pkg_deps += [
|
|
wayland_server_dep,
|
|
]
|
|
endif
|
|
|
|
if have_egl
|
|
cogl_pkg_deps += [
|
|
egl_dep,
|
|
]
|
|
endif
|
|
|
|
if have_x11_client
|
|
cogl_pkg_deps += [
|
|
x11_dep,
|
|
]
|
|
cogl_pkg_private_deps += [
|
|
xext_dep,
|
|
xfixes_dep,
|
|
xdamage_dep,
|
|
xcomposite_dep,
|
|
xrandr_dep,
|
|
]
|
|
endif
|
|
|
|
if have_gl
|
|
cogl_pkg_deps += [
|
|
gl_dep,
|
|
]
|
|
endif
|
|
|
|
if have_gles2
|
|
cogl_pkg_deps += [
|
|
gles2_dep,
|
|
]
|
|
endif
|
|
|
|
cogl_deps = [
|
|
cogl_pkg_deps,
|
|
cogl_pkg_private_deps,
|
|
m_dep,
|
|
]
|
|
|
|
cogl_c_args = [
|
|
'-DCOGL_LOCALEDIR="@0@"'.format(localedir),
|
|
'-DCOGL_COMPILATION',
|
|
]
|
|
|
|
if have_gl
|
|
cogl_c_args += [
|
|
'-DCOGL_GL_LIBNAME="@0@"'.format(gl_libname)
|
|
]
|
|
endif
|
|
|
|
if have_gles2
|
|
cogl_c_args += [
|
|
'-DCOGL_GLES2_LIBNAME="@0@"'.format(gles2_libname)
|
|
]
|
|
endif
|
|
|
|
cogl_debug_c_args = []
|
|
buildtype = get_option('buildtype')
|
|
if get_option('debug')
|
|
cogl_debug_c_args += [
|
|
'-DCOGL_GL_DEBUG',
|
|
'-DCOGL_OBJECT_DEBUG',
|
|
'-DCOGL_ENABLE_DEBUG',
|
|
'-fno-omit-frame-pointer'
|
|
]
|
|
elif buildtype != 'plain'
|
|
cogl_debug_c_args += [
|
|
'-DG_DISABLE_CAST_CHECKS'
|
|
]
|
|
endif
|
|
supported_cogl_debug_c_args = cc.get_supported_arguments(cogl_debug_c_args)
|
|
cogl_c_args += cogl_debug_c_args
|
|
|
|
subdir('cogl')
|
|
subdir('cogl-pango')
|