-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from games-on-whales/gstreamer
Implemented streaming audio and video via Gstreamer
- Loading branch information
Showing
82 changed files
with
7,850 additions
and
943 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# see: https://stackoverflow.com/questions/37582508/silence-cmp0048-warnings-in-vendored-projects | ||
cmake_policy(SET CMP0048 NEW) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# - Try to find the GLIB2 libraries | ||
# Once done this will define | ||
# | ||
# GLIB2_FOUND - system has glib2 | ||
# GLIB2_INCLUDE_DIR - the glib2 include directory | ||
# GLIB2_LIBRARIES - glib2 library | ||
|
||
# Copyright (c) 2008 Laurent Montel, <[email protected]> | ||
# | ||
# Redistribution and use is allowed according to the terms of the BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
|
||
|
||
if (GLIB2_INCLUDE_DIR AND GLIB2_LIBRARIES) | ||
# Already in cache, be silent | ||
set(GLIB2_FIND_QUIETLY TRUE) | ||
endif (GLIB2_INCLUDE_DIR AND GLIB2_LIBRARIES) | ||
|
||
if (NOT WIN32) | ||
find_package(PkgConfig QUIET) | ||
if (PKG_CONFIG_FOUND) | ||
pkg_check_modules(PKG_GLIB QUIET glib-2.0) | ||
endif () | ||
endif (NOT WIN32) | ||
|
||
find_path(GLIB2_MAIN_INCLUDE_DIR glib.h | ||
PATH_SUFFIXES glib-2.0 | ||
HINTS ${PKG_GLIB_INCLUDE_DIRS} ${PKG_GLIB_INCLUDEDIR}) | ||
|
||
# search the glibconfig.h include dir under the same root where the library is found | ||
find_library(GLIB2_LIBRARIES | ||
NAMES glib-2.0 | ||
HINTS ${PKG_GLIB_LIBRARY_DIRS} ${PKG_GLIB_LIBDIR}) | ||
|
||
find_path(GLIB2_INTERNAL_INCLUDE_DIR glibconfig.h | ||
PATH_SUFFIXES glib-2.0/include ../lib/glib-2.0/include | ||
HINTS ${PKG_GLIB_INCLUDE_DIRS} ${PKG_GLIB_LIBRARIES} ${CMAKE_SYSTEM_LIBRARY_PATH}) | ||
|
||
set(GLIB2_INCLUDE_DIR ${GLIB2_MAIN_INCLUDE_DIR}) | ||
|
||
# not sure if this include dir is optional or required | ||
# for now it is optional | ||
if (GLIB2_INTERNAL_INCLUDE_DIR) | ||
set(GLIB2_INCLUDE_DIR ${GLIB2_INCLUDE_DIR} ${GLIB2_INTERNAL_INCLUDE_DIR}) | ||
endif (GLIB2_INTERNAL_INCLUDE_DIR) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(GLIB2 DEFAULT_MSG GLIB2_LIBRARIES GLIB2_MAIN_INCLUDE_DIR) | ||
|
||
mark_as_advanced(GLIB2_INCLUDE_DIR GLIB2_LIBRARIES) | ||
|
||
|
||
find_program(GLIB2_GENMARSHAL_UTIL glib-genmarshal) | ||
|
||
macro(glib2_genmarshal output_name) | ||
file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/genmarshal_tmp) | ||
foreach (_declaration ${ARGN}) | ||
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/genmarshal_tmp "${_declaration}\n") | ||
endforeach () | ||
add_custom_command( | ||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${output_name}.h ${CMAKE_CURRENT_BINARY_DIR}/${output_name}.c | ||
COMMAND ${GLIB2_GENMARSHAL_UTIL} --header genmarshal_tmp > ${output_name}.h | ||
COMMAND ${GLIB2_GENMARSHAL_UTIL} --body genmarshal_tmp > ${output_name}.c | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
) | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# - Try to find GObject | ||
# Once done this will define | ||
# | ||
# GOBJECT_FOUND - system has GObject | ||
# GOBJECT_INCLUDE_DIR - the GObject include directory | ||
# GOBJECT_LIBRARIES - the libraries needed to use GObject | ||
# GOBJECT_DEFINITIONS - Compiler switches required for using GObject | ||
|
||
# Copyright (c) 2006, Tim Beaulen <[email protected]> | ||
# Copyright (c) 2008 Helio Chissini de Castro, <[email protected]> | ||
# | ||
# Redistribution and use is allowed according to the terms of the BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
|
||
|
||
IF (GOBJECT_INCLUDE_DIR AND GOBJECT_LIBRARIES) | ||
# in cache already | ||
SET(GObject_FIND_QUIETLY TRUE) | ||
ELSE (GOBJECT_INCLUDE_DIR AND GOBJECT_LIBRARIES) | ||
SET(GObject_FIND_QUIETLY FALSE) | ||
ENDIF (GOBJECT_INCLUDE_DIR AND GOBJECT_LIBRARIES) | ||
|
||
IF (NOT WIN32) | ||
FIND_PACKAGE(PkgConfig REQUIRED) | ||
# use pkg-config to get the directories and then use these values | ||
# in the FIND_PATH() and FIND_LIBRARY() calls | ||
PKG_CHECK_MODULES(PKG_GOBJECT2 REQUIRED gobject-2.0) | ||
SET(GOBJECT_DEFINITIONS ${PKG_GOBJECT2_CFLAGS}) | ||
ENDIF (NOT WIN32) | ||
|
||
FIND_PATH(GOBJECT_INCLUDE_DIR gobject/gobject.h | ||
HINTS ${PKG_GOBJECT2_INCLUDE_DIRS} ${PKG_GOBJECT2_INCLUDEDIR} | ||
PATHS /usr/include/glib-2.0/ | ||
PATH_SUFFIXES glib-2.0 | ||
) | ||
|
||
FIND_LIBRARY(_GObjectLibs NAMES gobject-2.0 | ||
HINTS | ||
${PKG_GOBJECT2_LIBRARY_DIRS} | ||
${PKG_GOBJECT2_LIBDIR} | ||
) | ||
FIND_LIBRARY(_GModuleLibs NAMES gmodule-2.0 | ||
HINTS | ||
${PKG_GOBJECT2_LIBRARY_DIRS} | ||
${PKG_GOBJECT2_LIBDIR} | ||
) | ||
FIND_LIBRARY(_GThreadLibs NAMES gthread-2.0 | ||
HINTS | ||
${PKG_GOBJECT2_LIBRARY_DIRS} | ||
${PKG_GOBJECT2_LIBDIR} | ||
) | ||
FIND_LIBRARY(_GLibs NAMES glib-2.0 | ||
HINTS | ||
${PKG_GOBJECT2_LIBRARY_DIRS} | ||
${PKG_GOBJECT2_LIBDIR} | ||
) | ||
|
||
SET(GOBJECT_LIBRARIES ${_GObjectLibs} ${_GModuleLibs} ${_GThreadLibs} ${_GLibs}) | ||
|
||
MARK_AS_ADVANCED(GOBJECT_INCLUDE_DIR GOBJECT_LIBRARIES) | ||
|
||
INCLUDE(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GObject DEFAULT_MSG GOBJECT_INCLUDE_DIR GOBJECT_LIBRARIES) |
Oops, something went wrong.