mirror of https://github.com/encounter/SDL.git
configure: List Metal in video drivers.
This commit is contained in:
parent
dc04f290a3
commit
7472963805
|
@ -21220,6 +21220,7 @@ fi
|
||||||
$as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
|
$as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
|
||||||
|
|
||||||
SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
|
SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
|
||||||
|
SUMMARY_video="${SUMMARY_video} metal"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24433,7 +24434,7 @@ $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
|
||||||
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
|
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
|
||||||
|
|
||||||
if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
|
if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
|
||||||
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore -Wl,-weak_framework,Metal"
|
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*-nacl|*-pnacl)
|
*-nacl|*-pnacl)
|
||||||
|
|
|
@ -2062,6 +2062,7 @@ AC_HELP_STRING([--enable-render-metal], [enable the Metal render driver [[defaul
|
||||||
dnl This should maybe make sure you have a supported SDK version.
|
dnl This should maybe make sure you have a supported SDK version.
|
||||||
AC_DEFINE(SDL_VIDEO_RENDER_METAL, 1, [ ])
|
AC_DEFINE(SDL_VIDEO_RENDER_METAL, 1, [ ])
|
||||||
SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
|
SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
|
||||||
|
SUMMARY_video="${SUMMARY_video} metal"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue