Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
8f2dd4a7
Commit
8f2dd4a7
authored
Jul 19, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directx: simplify configure
parent
0555a4ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
34 deletions
+46
-34
configure.ac
configure.ac
+33
-26
modules/audio_output/Modules.am
modules/audio_output/Modules.am
+6
-7
modules/video_output/msw/Modules.am
modules/video_output/msw/Modules.am
+7
-1
No files found.
configure.ac
View file @
8f2dd4a7
...
...
@@ -3143,33 +3143,40 @@ then
fi
AC_ARG_ENABLE(directx,
[ --enable-directx Win32 DirectX support (default enabled on Win32)])
if test "${enable_directx}" != "no"; then
if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"; then
dnl DDraw
AC_CHECK_HEADERS(ddraw.h,
[ VLC_ADD_PLUGIN([directx aout_directx])
VLC_ADD_LIBS([directx],[-luser32 -lgdi32])
],[AC_MSG_ERROR([Cannot find DirectX headers!])]
)
dnl OpenGL
AC_CHECK_HEADERS(GL/wglew.h,
[ VLC_ADD_PLUGIN([glwin32])
VLC_ADD_LIBS([glwin32],[-lopengl32 -lgdi32])
],[],[
#include <windows.h>
#include <GL/gl.h>
])
[AS_HELP_STRING([--enable-directx],
[Microsoft DirectX support (default enabled on Windows)])],, [
AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"], [
enable_directx="yes"
], [
enable_directx="no"
])
])
have_directx="no"
AS_IF([test "${enable_directx}" != "no"], [
dnl DirectDraw
AC_CHECK_HEADERS(ddraw.h, [
have_directx="yes"
], [
AC_MSG_ERROR([Cannot find DirectX headers!])
])
dnl Direct3D
AC_CHECK_HEADERS(d3d9.h,
[ VLC_ADD_PLUGIN([direct3d])
VLC_ADD_LIBS([direct3d],[-lgdi32])
])
VLC_ADD_LIBS([direct3d directx glwin32],[-lole32 -luuid])
fi
fi
dnl OpenGL
AC_CHECK_HEADERS(GL/wglew.h, [
VLC_ADD_PLUGIN([glwin32])
VLC_ADD_LIBS([glwin32],[-lopengl32 -lgdi32])
],, [
#include <windows.h>
#include <GL/gl.h>
])
dnl Direct3D
AC_CHECK_HEADERS(d3d9.h, [
VLC_ADD_PLUGIN([direct3d])
VLC_ADD_LIBS([direct3d],[-lgdi32])
])
VLC_ADD_LIBS([direct3d glwin32],[-lole32 -luuid])
])
AM_CONDITIONAL([HAVE_DIRECTX], [test "$have_directx" = "yes"])
dnl
dnl Windows Direct2D plugin
...
...
modules/audio_output/Modules.am
View file @
8f2dd4a7
SOURCES_aout_directx = directx.c windows_audio_common.h packet.c
SOURCES_aout_file = file.c
SOURCES_waveout = waveout.c windows_audio_common.h packet.c
SOURCES_auhal = auhal.c packet.c
...
...
@@ -45,12 +44,12 @@ if HAVE_PULSE
libvlc_LTLIBRARIES += libpulse_plugin.la
endif
lib
wasapi_plugin_la_SOURCES = wasapi
.c
lib
wasapi
_plugin_la_CFLAGS = $(AM_CFLAGS)
lib
wasapi_plugin_la_LIBADD = $(AM_LIBADD) -lole32 -lksuser
lib
wasapi
_plugin_la_DEPENDENCIES =
if HAVE_
WASAPI
libvlc_LTLIBRARIES += lib
wasapi
_plugin.la
lib
aout_directx_plugin_la_SOURCES = directx.c windows_audio_common.h packet
.c
lib
aout_directx
_plugin_la_CFLAGS = $(AM_CFLAGS)
lib
aout_directx_plugin_la_LIBADD = $(AM_LIBADD)
lib
aout_directx
_plugin_la_DEPENDENCIES =
if HAVE_
DIRECTX
libvlc_LTLIBRARIES += lib
aout_directx
_plugin.la
endif
libkai_plugin_la_SOURCES = kai.c packet.c
...
...
modules/video_output/msw/Modules.am
View file @
8f2dd4a7
...
...
@@ -6,13 +6,19 @@ SOURCES_direct2d = \
common.c \
$(NULL)
SOURCES_directx
= \
libdirectx_plugin_la_SOURCES
= \
directx.c \
common.h \
events.h \
events.c \
common.c \
$(NULL)
libdirectx_plugin_la_CFLAGS = $(AM_CFLAGS)
libdirectx_plugin_la_LIBADD = $(AM_LIBADD) -luser32 -lgdi32 -lole32 -luuid
libdirectx_plugin_la_DEPENDENCIES =
if HAVE_DIRECTX
libvlc_LTLIBRARIES += libdirectx_plugin.la
endif
SOURCES_direct3d = \
direct3d.c \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment