mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
4a4a423182
As the first step into removing Cogl types that are covered by Graphene, remove CoglEuler and replace it by graphene_euler_t. This is a mostly straightforward replacement, except that the naming conventions changed a bit. Cogl uses "heading" for the Y axis, "pitch" for the X axis, and "roll" for the Z axis, and graphene uses the axis themselves. That means the 1st and 2nd arguments need to be swapped. Also adapt the matrix stack to store a graphene_euler_t in the rotation node -- that simplifies the code a bit as well. https://gitlab.gnome.org/GNOME/mutter/merge_requests/458
125 lines
2.1 KiB
Meson
125 lines
2.1 KiB
Meson
cogl_includesubdir = join_paths(pkgname, 'cogl')
|
|
cogl_includedir = join_paths(includedir, cogl_includesubdir)
|
|
cogl_srcdir = join_paths(top_srcdir, 'cogl')
|
|
cogl_builddir = join_paths(builddir, 'cogl')
|
|
|
|
cogl_includepath = include_directories('.', 'cogl')
|
|
|
|
cdata = configuration_data()
|
|
cdata.set('HAVE_COGL_GL', have_gl)
|
|
cdata.set('HAVE_COGL_GLES2', have_gles2)
|
|
cdata.set('ENABLE_UNIT_TESTS', have_cogl_tests)
|
|
|
|
cogl_config_h = configure_file(
|
|
input: 'cogl-config.h.meson',
|
|
output: 'cogl-config.h',
|
|
configuration: cdata)
|
|
|
|
# TODO: Remove this when autotools support is removed
|
|
cogl_mutter_config_h = configure_file(
|
|
input: 'cogl-config.h.meson',
|
|
output: 'cogl-mutter-config.h',
|
|
configuration: cdata)
|
|
|
|
cogl_pkg_deps = [
|
|
glib_dep,
|
|
gobject_dep,
|
|
graphene_dep,
|
|
]
|
|
|
|
cogl_pkg_private_deps = [
|
|
cairo_dep,
|
|
gmodule_no_export_dep,
|
|
gdk_pixbuf_dep,
|
|
#uprof_dep,
|
|
]
|
|
|
|
if have_wayland
|
|
cogl_pkg_deps += [
|
|
wayland_server_dep,
|
|
]
|
|
endif
|
|
|
|
if have_egl
|
|
cogl_pkg_deps += [
|
|
egl_dep,
|
|
]
|
|
endif
|
|
|
|
if have_x11
|
|
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 = []
|
|
if buildtype.startswith('debug')
|
|
cogl_debug_c_args += [
|
|
'-DCOGL_GL_DEBUG',
|
|
'-DCOGL_OBJECT_DEBUG',
|
|
'-DCOGL_ENABLE_DEBUG',
|
|
]
|
|
elif buildtype == 'release'
|
|
cogl_debug_c_args += [
|
|
'-DG_DISABLE_CHECKS',
|
|
'-DG_DISABLE_CAST_CHECKS',
|
|
]
|
|
endif
|
|
|
|
cogl_c_args += cogl_debug_c_args
|
|
|
|
if have_cogl_tests
|
|
subdir('test-fixtures')
|
|
endif
|
|
subdir('cogl')
|
|
subdir('cogl-path')
|
|
subdir('cogl-pango')
|
|
if have_gles2
|
|
subdir('cogl-gles2')
|
|
endif
|
|
if have_cogl_tests
|
|
subdir('tests')
|
|
endif
|