mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 00:55:27 +00:00
autotools: export relative path of an installed sdl2-config.cmake to the prefix root
This commit is contained in:
parent
8e13cc309e
commit
6f3474db2d
6
configure
vendored
6
configure
vendored
|
@ -653,6 +653,7 @@ SDL_RLD_FLAGS
|
||||||
SDL_STATIC_LIBS
|
SDL_STATIC_LIBS
|
||||||
SDL_LIBS
|
SDL_LIBS
|
||||||
SDL_CFLAGS
|
SDL_CFLAGS
|
||||||
|
cmake_prefix_relpath
|
||||||
INSTALL_SDL2_CONFIG
|
INSTALL_SDL2_CONFIG
|
||||||
LIBUSB_LIBS
|
LIBUSB_LIBS
|
||||||
LIBUSB_CFLAGS
|
LIBUSB_CFLAGS
|
||||||
|
@ -27052,6 +27053,11 @@ fi
|
||||||
|
|
||||||
SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
|
SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
|
||||||
|
|
||||||
|
eval pkg_prefix=$prefix
|
||||||
|
eval pkg_cmakedir=$libdir/cmake/SDL2
|
||||||
|
cmake_prefix_relpath="$(echo -n "$pkg_cmakedir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4688,6 +4688,12 @@ fi
|
||||||
|
|
||||||
SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
|
SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
|
||||||
|
|
||||||
|
dnl Calculate the location of the prefix, relative to the cmake folder
|
||||||
|
eval pkg_prefix=$prefix
|
||||||
|
eval pkg_cmakedir=$libdir/cmake/SDL2
|
||||||
|
cmake_prefix_relpath="$(echo -n "$pkg_cmakedir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
|
||||||
|
AC_SUBST([cmake_prefix_relpath])
|
||||||
|
|
||||||
dnl Expand the cflags and libraries needed by apps using SDL
|
dnl Expand the cflags and libraries needed by apps using SDL
|
||||||
AC_SUBST(SDL_CFLAGS)
|
AC_SUBST(SDL_CFLAGS)
|
||||||
AC_SUBST(SDL_LIBS)
|
AC_SUBST(SDL_LIBS)
|
||||||
|
|
Loading…
Reference in a new issue