Skip to content

Commit

Permalink
configure: List Metal in video drivers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 8, 2017
1 parent dc04f29 commit 7472963
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure
Expand Up @@ -21220,6 +21220,7 @@ fi
$as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h

SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
SUMMARY_video="${SUMMARY_video} metal"
fi
}

Expand Down Expand Up @@ -24433,7 +24434,7 @@ $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"

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
;;
*-nacl|*-pnacl)
Expand Down
1 change: 1 addition & 0 deletions configure.in
Expand Up @@ -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.
AC_DEFINE(SDL_VIDEO_RENDER_METAL, 1, [ ])
SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
SUMMARY_video="${SUMMARY_video} metal"
fi
}

Expand Down

0 comments on commit 7472963

Please sign in to comment.