mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
dshowsrcwrapper: support building 32- and 64-bit with CMake
https://bugzilla.gnome.org/show_bug.cgi?id=797338
This commit is contained in:
parent
1569264d1e
commit
a6d193bb1e
1 changed files with 14 additions and 4 deletions
|
@ -3,7 +3,12 @@ CMAKE_MINIMUM_REQUIRED (VERSION 2.8)
|
|||
|
||||
PROJECT(dshowsrcwrapper)
|
||||
|
||||
SET(GST_INSTALL_BASE "C:\\gstreamer\\1.0\\x86" CACHE PATH "Path to the GStreamer install base")
|
||||
IF ("${CMAKE_GENERATOR}" MATCHES "Win64")
|
||||
SET(ARCH_ "x86_64")
|
||||
ELSE ()
|
||||
SET(ARCH_ "x86")
|
||||
ENDIF ()
|
||||
SET(GST_INSTALL_BASE "C:\\gstreamer\\1.0\\${ARCH_}" CACHE PATH "Path to the GStreamer install base")
|
||||
SET(SDK_INSTALL_BASE "C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1" CACHE PATH "Path to the Windows SDK root")
|
||||
|
||||
SET_PROPERTY(
|
||||
|
@ -19,13 +24,18 @@ INCLUDE_DIRECTORIES(
|
|||
${GST_INSTALL_BASE}/lib/glib-2.0/include
|
||||
${GST_INSTALL_BASE}/lib/gstreamer-1.0/include
|
||||
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses
|
||||
${PROJECT_SOURCE_DIR}/../../win32/common
|
||||
)
|
||||
|
||||
IF ("${CMAKE_GENERATOR}" MATCHES "Win64")
|
||||
SET(ARCH_ "x64/")
|
||||
ELSE ()
|
||||
SET(ARCH_ "")
|
||||
ENDIF ()
|
||||
|
||||
LINK_DIRECTORIES(
|
||||
${GST_INSTALL_BASE}/lib
|
||||
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses/Release_MBCS
|
||||
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses/Debug_MBCS
|
||||
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses/${ARCH_}Release_MBCS
|
||||
${SDK_INSTALL_BASE}/Samples/multimedia/directshow/baseclasses/${ARCH_}Debug_MBCS
|
||||
)
|
||||
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS "${CMALE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
|
||||
|
|
Loading…
Reference in a new issue