build: allow GSTREAMER_ROOT to be set manually
This commit is contained in:
parent
9ffda399d9
commit
4e24b69eaa
@ -21,10 +21,12 @@ if (NOT WIN32)
|
|||||||
pkg_check_modules(PKG_GLIB REQUIRED glib-2.0)
|
pkg_check_modules(PKG_GLIB REQUIRED glib-2.0)
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
|
||||||
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
if (NOT GSTREAMER_ROOT)
|
||||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||||
else ()
|
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
||||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
else ()
|
||||||
|
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
||||||
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
find_path(GLIB2_MAIN_INCLUDE_DIR glib.h
|
find_path(GLIB2_MAIN_INCLUDE_DIR glib.h
|
||||||
|
|||||||
@ -28,10 +28,12 @@ IF (NOT WIN32)
|
|||||||
SET(GOBJECT_DEFINITIONS ${PKG_GOBJECT2_CFLAGS})
|
SET(GOBJECT_DEFINITIONS ${PKG_GOBJECT2_CFLAGS})
|
||||||
ENDIF (NOT WIN32)
|
ENDIF (NOT WIN32)
|
||||||
|
|
||||||
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
if (NOT GSTREAMER_ROOT)
|
||||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||||
else ()
|
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
||||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
else ()
|
||||||
|
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
||||||
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
FIND_PATH(GOBJECT_INCLUDE_DIR gobject/gobject.h
|
FIND_PATH(GOBJECT_INCLUDE_DIR gobject/gobject.h
|
||||||
|
|||||||
@ -38,10 +38,12 @@ if (PKG_CONFIG_FOUND)
|
|||||||
OUTPUT_VARIABLE PKG_GSTREAMER_PLUGIN_DIR)
|
OUTPUT_VARIABLE PKG_GSTREAMER_PLUGIN_DIR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
if (NOT GSTREAMER_ROOT)
|
||||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||||
else ()
|
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
||||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
else ()
|
||||||
|
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
||||||
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
find_library(GSTREAMER_LIBRARY
|
find_library(GSTREAMER_LIBRARY
|
||||||
|
|||||||
@ -16,10 +16,12 @@ if (NOT WIN32)
|
|||||||
pkg_check_modules(PKG_ORC REQUIRED orc-0.4)
|
pkg_check_modules(PKG_ORC REQUIRED orc-0.4)
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
|
||||||
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
if (NOT GSTREAMER_ROOT)
|
||||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||||
else ()
|
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
||||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
else ()
|
||||||
|
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
||||||
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
find_path(ORC_INCLUDE_DIR orc/orc.h
|
find_path(ORC_INCLUDE_DIR orc/orc.h
|
||||||
|
|||||||
@ -20,10 +20,12 @@ macro(find_gstreamer_library _name _header _abi_version)
|
|||||||
pkg_check_modules(PKG_GSTREAMER_${_upper_name} gstreamer-${_lower_name}-${_abi_version})
|
pkg_check_modules(PKG_GSTREAMER_${_upper_name} gstreamer-${_lower_name}-${_abi_version})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
if (NOT GSTREAMER_ROOT)
|
||||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||||
else ()
|
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
||||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
else ()
|
||||||
|
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
||||||
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
find_library(GSTREAMER_${_upper_name}_LIBRARY
|
find_library(GSTREAMER_${_upper_name}_LIBRARY
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user