Skip to content

Commit 34e7256

Browse files
committed
SDL 3.8!
Signed-off-by: Justin Dickow <[email protected]>
1 parent 2eef966 commit 34e7256

File tree

6,180 files changed

+1613231
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,180 files changed

+1613231
-0
lines changed

CMakeLists.txt

+528
Large diffs are not rendered by default.

Doxyfile

+1,917
Large diffs are not rendered by default.

FindQt.sh

+174
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2013, Ford Motor Company
4+
# All rights reserved.
5+
#
6+
# Redistribution and use in source and binary forms, with or without
7+
# modification, are permitted provided that the following conditions are met:
8+
#
9+
# Redistributions of source code must retain the above copyright notice, this
10+
# list of conditions and the following disclaimer.
11+
#
12+
# Redistributions in binary form must reproduce the above copyright notice,
13+
# this list of conditions and the following
14+
# disclaimer in the documentation and/or other materials provided with the
15+
# distribution.
16+
#
17+
# Neither the name of the Ford Motor Company nor the names of its contributors
18+
# may be used to endorse or promote products derived from this software
19+
# without specific prior written permission.
20+
#
21+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
25+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31+
# POSSIBILITY OF SUCH DAMAGE.
32+
33+
usage() {
34+
echo "Usage: $0 [-v <version>] [-b] [<file name>]"
35+
echo
36+
echo " Look for file in Qt directory."
37+
echo " If file name isn't set then look for bin directory."
38+
echo
39+
echo " -v <version> look for Qt specific version x.x.x"
40+
echo " -b look for binary file"
41+
echo
42+
}
43+
44+
version2int() {
45+
IFS="."
46+
local ver=0
47+
for i in $1; do
48+
ver=$(( $ver * 32 + $i ))
49+
done
50+
echo $ver
51+
}
52+
53+
version_match() {
54+
v1=$(version2int $1)
55+
v2=$(version2int $2)
56+
# It's bash way to say "if ((version1 < version2) and (major1 == major2))
57+
if [[ ( $v1 -le $v2 ) && ( $(( ($v1 / 1024) - ($v2 / 1024) )) == 0 ) ]]; then
58+
return 0;
59+
else
60+
return 1;
61+
fi
62+
}
63+
64+
qmake_data() {
65+
$1 --version 2>/dev/null | grep "Using Qt version" | sed "s/.*Qt version \\([0-9\\.]*\\) in \\(.*\\)$/\\$2/"
66+
}
67+
68+
find_binary() {
69+
local qt_binary="$1/$2" # check specified binary
70+
if [[ -x $qt_binary && ! -d $qt_binary ]]; then # to be executable and not to be directory
71+
echo -n $qt_binary # output without newline
72+
return 0
73+
fi
74+
return 1
75+
}
76+
77+
find_file() {
78+
local qt_file=$(find $1 -name "$2" -type f -print0 -quit 2>/dev/null) # check specified binary
79+
if [[ -n $qt_file && ! -d $qt_file ]]; then # if found
80+
echo -n $qt_file #output without newline
81+
return 0
82+
fi
83+
return 1
84+
}
85+
86+
type=file
87+
version="0.0.0"
88+
while getopts :v:b option; do
89+
case "$option" in
90+
v) version=$OPTARG ;;
91+
b) type=binary ;;
92+
*) usage; exit 1; ;;
93+
esac
94+
done
95+
96+
shift $(( OPTIND - 1 ))
97+
if [[ -z $1 ]]; then
98+
type=bindir
99+
else
100+
file_name=$1
101+
fi
102+
103+
## First attempt - using locate
104+
if command -v locate > /dev/null; then
105+
for searchloc in $CUSTOM_QT_DIR ~ /opt /usr/local; do
106+
qmake_list=$(locate $searchloc/*/bin/qmake)
107+
for qmake in $qmake_list; do
108+
if [[ ! -x $qmake || -d $qmake ]]; then
109+
continue
110+
fi
111+
# called with "qmake 1" return qmake version
112+
qt_version=$(qmake_data $qmake 1)
113+
if ! version_match $version $qt_version; then
114+
continue
115+
fi
116+
117+
case $type in
118+
binary)
119+
qt_dir=$(dirname $qmake 2> /dev/null)
120+
if find_binary $qt_dir $file_name; then
121+
exit 0
122+
fi
123+
;;
124+
file)
125+
# called with "qmake 2" return Qt installation dir
126+
qt_installdir=$(qmake_data $qmake 2)
127+
if find_file $qt_installdir $file_name; then
128+
exit 0
129+
fi
130+
;;
131+
bindir)
132+
echo -n $(dirname $qmake 2>/dev/null)
133+
exit 0
134+
;;
135+
esac
136+
done
137+
done
138+
fi
139+
140+
## Second attempt - using find
141+
export -f find_file
142+
export -f qmake_data
143+
export -f version_match
144+
export -f version2int
145+
146+
qmake=$(find -L $CUSTOM_QT_DIR ~ /opt /usr/local -name '.*' -prune \
147+
-o -name qmake -type f \
148+
-executable \
149+
-exec /bin/bash -c "version_qt=\$(qmake_data {} 1);version_match $version \$version_qt" {} \; -print -quit > /dev/null)
150+
if ! [ $? ]; then
151+
exit 1;
152+
fi
153+
154+
case $type in
155+
binary)
156+
qt_dir=$(dirname $qmake 2>/dev/null)
157+
if find_binary $qt_dir $file_name; then
158+
exit 0
159+
fi
160+
;;
161+
file)
162+
# called with "qmake 2" return Qt installation dir
163+
qt_installdir=$(qmake_data $qmake 2)
164+
if find_file $qt_installdir $file_name; then
165+
exit 0
166+
fi
167+
;;
168+
bindir)
169+
echo -n $(dirname $qmake 2>/dev/null)
170+
exit 0
171+
;;
172+
esac
173+
174+
exit 1

cmake/Modules/FindGlib-2.0.cmake

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
FILE(TO_CMAKE_PATH "$ENV{GLIB2_DIR}" TRY1_DIR)
2+
FILE(TO_CMAKE_PATH "${GLIB2_DIR}" TRY2_DIR)
3+
FILE(GLOB GLIB2_DIR ${TRY1_DIR} ${TRY2_DIR})
4+
5+
FIND_PATH(GLIB_glib_2_INCLUDE_DIR glib.h
6+
PATHS ${GLIB2_DIR}/include ${GLIB2_DIR}/include/glib-2.0 /usr/local/include/glib-2.0 /usr/include/glib-2.0 /usr/lib/glib-2.0/include/
7+
ENV INCLUDE DOC "Directory containing glib.h include file")
8+
9+
FIND_PATH(GLIB_glibconfig_2_INCLUDE_DIR glibconfig.h
10+
PATHS ${GLIB2_DIR}/include ${GLIB2_DIR}/include/glib-2.0 ${GLIB2_DIR}/lib/include ${GLIB2_DIR}/lib/glib-2.0/include /usr/local/include/glib-2.0 /usr/include/glib-2.0 /usr/lib/glib-2.0/include /usr/local/lib/glib-2.0/include
11+
ENV INCLUDE DOC "Directory containing glibconfig.h include file")
12+
13+
FIND_LIBRARY(GLIB_glib_2_LIBRARY NAMES glib-2.0
14+
PATHS ${GLIB2_DIR}/bin ${GLIB2_DIR}/win32/bin ${GLIB2_DIR}/lib ${GLIB2_DIR}/win32/lib /usr/local/lib /usr/lib
15+
ENV LIB
16+
DOC "glib library to link with"
17+
NO_SYSTEM_ENVIRONMENT_PATH)
18+
19+
FIND_LIBRARY(GLIB_gmodule_2_LIBRARY NAMES gmodule-2.0
20+
PATHS ${GLIB2_DIR}/bin ${GLIB2_DIR}/win32/bin ${GLIB2_DIR}/lib ${GLIB2_DIR}/win32/lib /usr/local/lib /usr/lib
21+
ENV LIB
22+
DOC "gmodule library to link with"
23+
NO_SYSTEM_ENVIRONMENT_PATH)
24+
25+
FIND_LIBRARY(GLIB_gobject_2_LIBRARY NAMES gobject-2.0
26+
PATHS ${GLIB2_DIR}/bin ${GLIB2_DIR}/win32/bin ${GLIB2_DIR}/lib ${GLIB2_DIR}/win32/lib /usr/local/lib /usr/lib
27+
ENV LIB
28+
DOC "gobject library to link with"
29+
NO_SYSTEM_ENVIRONMENT_PATH)
30+
31+
FIND_LIBRARY(GLIB_gthread_2_LIBRARY NAMES gthread-2.0
32+
PATHS ${GLIB2_DIR}/bin ${GLIB2_DIR}/win32/bin ${GLIB2_DIR}/lib ${GLIB2_DIR}/win32/lib /usr/local/lib /usr/lib
33+
ENV LIB
34+
DOC "gthread library to link with"
35+
NO_SYSTEM_ENVIRONMENT_PATH)
36+
37+
IF (GLIB_glib_2_INCLUDE_DIR AND GLIB_glibconfig_2_INCLUDE_DIR AND GLIB_glib_2_LIBRARY AND GLIB_gmodule_2_LIBRARY AND GLIB_gobject_2_LIBRARY AND GLIB_gthread_2_LIBRARY)
38+
SET(GLIB2_INCLUDE_DIR ${GLIB_glib_2_INCLUDE_DIR} ${GLIB_glibconfig_2_INCLUDE_DIR})
39+
list(REMOVE_DUPLICATES GLIB2_INCLUDE_DIR)
40+
SET(GLIB2_LIBRARIES ${GLIB_glib_2_LIBRARY} ${GLIB_gmodule_2_LIBRARY} ${GLIB_gobject_2_LIBRARY} ${GLIB_gthread_2_LIBRARY})
41+
list(REMOVE_DUPLICATES GLIB2_LIBRARIES)
42+
SET(GLIB2_FOUND TRUE)
43+
ENDIF (GLIB_glib_2_INCLUDE_DIR AND GLIB_glibconfig_2_INCLUDE_DIR AND GLIB_glib_2_LIBRARY AND GLIB_gmodule_2_LIBRARY AND GLIB_gobject_2_LIBRARY AND GLIB_gthread_2_LIBRARY)

cmake/Modules/FindGstreamer-1.0.cmake

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
FILE(TO_CMAKE_PATH "$ENV{GSTREAMER_DIR}" TRY1_DIR)
2+
FILE(TO_CMAKE_PATH "${GSTREAMER_DIR}" TRY2_DIR)
3+
FILE(GLOB GSTREAMER_DIR ${TRY1_DIR} ${TRY2_DIR})
4+
5+
FIND_PATH(GSTREAMER_gst_INCLUDE_DIR gst/gst.h
6+
PATHS ${GSTREAMER_DIR}/include /usr/local/include/gstreamer-1.0 /usr/include/gstreamer-1.0
7+
ENV INCLUDE DOC "Directory containing gst/gst.h include file")
8+
9+
FIND_PATH(GSTREAMER_gstconfig_INCLUDE_DIR gst/gstconfig.h
10+
PATHS ${GSTREAMER_DIR}/include ${GSTREAMER_DIR}/lib/include /usr/local/include/gstreamer-1.0 /usr/include/gstreamer-1.0 /usr/local/lib/include/gstreamer-1.0 /usr/lib/include/gstreamer-1.0
11+
ENV INCLUDE DOC "Directory containing gst/gstconfig.h include file")
12+
13+
FIND_LIBRARY(GSTREAMER_gstaudio_LIBRARY NAMES gstaudio-1.0 libgstaudio-1.0
14+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
15+
ENV LIB
16+
DOC "gstaudio library to link with"
17+
NO_SYSTEM_ENVIRONMENT_PATH)
18+
19+
FIND_LIBRARY(GSTREAMER_gstapp_LIBRARY NAMES gstapp-1.0 libgstapp-1.0
20+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
21+
ENV LIB
22+
DOC "gstapp library to link with"
23+
NO_SYSTEM_ENVIRONMENT_PATH)
24+
25+
FIND_LIBRARY(GSTREAMER_gstbase_LIBRARY NAMES gstbase-1.0 libgstbase-1.0
26+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
27+
ENV LIB
28+
DOC "gstbase library to link with"
29+
NO_SYSTEM_ENVIRONMENT_PATH)
30+
31+
FIND_LIBRARY(GLIB_gstcdda_LIBRARY NAMES gstcdda-1.0 libgstcdda-1.0
32+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
33+
ENV LIB
34+
DOC "gstcdda library to link with"
35+
NO_SYSTEM_ENVIRONMENT_PATH)
36+
37+
FIND_LIBRARY(GSTREAMER_gstcontroller_LIBRARY NAMES gstcontroller-1.0 libgstcontroller-1.0
38+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
39+
ENV LIB
40+
DOC "gstcontroller library to link with"
41+
NO_SYSTEM_ENVIRONMENT_PATH)
42+
43+
FIND_LIBRARY(GSTREAMER_gstdataprotocol_LIBRARY NAMES gstdataprotocol-1.0 libgstdataprotocol-1.0
44+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
45+
ENV LIB
46+
DOC "gstdataprotocol library to link with"
47+
NO_SYSTEM_ENVIRONMENT_PATH)
48+
49+
FIND_LIBRARY(GSTREAMER_gstinterfaces_LIBRARY NAMES gstinterfaces-1.0 libgstinterfaces-1.0
50+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
51+
ENV LIB
52+
DOC "gstinterfaces library to link with"
53+
NO_SYSTEM_ENVIRONMENT_PATH)
54+
55+
FIND_LIBRARY(GSTREAMER_gstnet_LIBRARY NAMES gstnet-1.0 libgstnet-1.0
56+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
57+
ENV LIB
58+
DOC "gstnet library to link with"
59+
NO_SYSTEM_ENVIRONMENT_PATH)
60+
61+
FIND_LIBRARY(GSTREAMER_gstnetbuffer_LIBRARY NAMES gstnetbuffer-1.0 libgstnetbuffer-1.0
62+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
63+
ENV LIB
64+
DOC "gstnetbuffer library to link with"
65+
NO_SYSTEM_ENVIRONMENT_PATH)
66+
67+
FIND_LIBRARY(GSTREAMER_gstpbutils_LIBRARY NAMES gstpbutils-1.0 libgstpbutils-1.0
68+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
69+
ENV LIB
70+
DOC "gstpbutils library to link with"
71+
NO_SYSTEM_ENVIRONMENT_PATH)
72+
73+
FIND_LIBRARY(GSTREAMER_gstreamer_LIBRARY NAMES gstreamer-1.0 libgstreamer-1.0
74+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
75+
ENV LIB
76+
DOC "gstreamer library to link with"
77+
NO_SYSTEM_ENVIRONMENT_PATH)
78+
79+
FIND_LIBRARY(GSTREAMER_gstriff_LIBRARY NAMES gstriff-1.0 libgstriff-1.0
80+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
81+
ENV LIB
82+
DOC "gstriff library to link with"
83+
NO_SYSTEM_ENVIRONMENT_PATH)
84+
85+
FIND_LIBRARY(GSTREAMER_gstrtp_LIBRARY NAMES gstrtp-1.0 libgstrtp-1.0
86+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
87+
ENV LIB
88+
DOC "gstrtp library to link with"
89+
NO_SYSTEM_ENVIRONMENT_PATH)
90+
91+
FIND_LIBRARY(GSTREAMER_gstrtsp_LIBRARY NAMES gstrtsp-1.0 libgstrtsp-1.0
92+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
93+
ENV LIB
94+
DOC "gstrtsp library to link with"
95+
NO_SYSTEM_ENVIRONMENT_PATH)
96+
97+
FIND_LIBRARY(GSTREAMER_gstsdp_LIBRARY NAMES gstsdp-1.0 libgstsdp-1.0
98+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
99+
ENV LIB
100+
DOC "gstsdp library to link with"
101+
NO_SYSTEM_ENVIRONMENT_PATH)
102+
103+
FIND_LIBRARY(GSTREAMER_gsttag_LIBRARY NAMES gsttag-1.0 libgsttag-1.0
104+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
105+
ENV LIB
106+
DOC "gsttag library to link with"
107+
NO_SYSTEM_ENVIRONMENT_PATH)
108+
109+
FIND_LIBRARY(GSTREAMER_gstvideo_LIBRARY NAMES gstvideo-1.0 libgstvideo-1.0
110+
PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin C:/gstreamer/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
111+
ENV LIB
112+
DOC "gstvideo library to link with"
113+
NO_SYSTEM_ENVIRONMENT_PATH)
114+
115+
116+
IF (GSTREAMER_gst_INCLUDE_DIR AND GSTREAMER_gstconfig_INCLUDE_DIR AND
117+
GSTREAMER_gstaudio_LIBRARY AND GSTREAMER_gstbase_LIBRARY AND GSTREAMER_gstcontroller_LIBRARY AND
118+
GSTREAMER_gstdataprotocol_LIBRARY AND GSTREAMER_gstinterfaces_LIBRARY AND GSTREAMER_gstnet_LIBRARY AND
119+
GSTREAMER_gstnetbuffer_LIBRARY AND GSTREAMER_gstpbutils_LIBRARY AND GSTREAMER_gstreamer_LIBRARY AND
120+
GSTREAMER_gstriff_LIBRARY AND GSTREAMER_gstrtp_LIBRARY AND GSTREAMER_gstrtsp_LIBRARY AND GSTREAMER_gstsdp_LIBRARY AND
121+
GSTREAMER_gsttag_LIBRARY AND GSTREAMER_gstvideo_LIBRARY)
122+
SET(GSTREAMER_INCLUDE_DIR ${GSTREAMER_gst_INCLUDE_DIR} ${GSTREAMER_gstconfig_INCLUDE_DIR})
123+
list(REMOVE_DUPLICATES GSTREAMER_INCLUDE_DIR)
124+
SET(GSTREAMER_LIBRARIES ${GSTREAMER_gstaudio_LIBRARY} ${GSTREAMER_gstbase_LIBRARY}
125+
${GSTREAMER_gstcontroller_LIBRARY} ${GSTREAMER_gstdataprotocol_LIBRARY} ${GSTREAMER_gstinterfaces_LIBRARY}
126+
${GSTREAMER_gstnet_LIBRARY} ${GSTREAMER_gstnetbuffer_LIBRARY} ${GSTREAMER_gstpbutils_LIBRARY}
127+
${GSTREAMER_gstreamer_LIBRARY} ${GSTREAMER_gstriff_LIBRARY} ${GSTREAMER_gstrtp_LIBRARY}
128+
${GSTREAMER_gstrtsp_LIBRARY} ${GSTREAMER_gstsdp_LIBRARY} ${GSTREAMER_gsttag_LIBRARY} ${GSTREAMER_gstvideo_LIBRARY})
129+
list(REMOVE_DUPLICATES GSTREAMER_LIBRARIES)
130+
SET(GSTREAMER_FOUND TRUE)
131+
ENDIF (GSTREAMER_gst_INCLUDE_DIR AND GSTREAMER_gstconfig_INCLUDE_DIR AND
132+
GSTREAMER_gstaudio_LIBRARY AND GSTREAMER_gstbase_LIBRARY AND GSTREAMER_gstcontroller_LIBRARY AND
133+
GSTREAMER_gstdataprotocol_LIBRARY AND GSTREAMER_gstinterfaces_LIBRARY AND GSTREAMER_gstnet_LIBRARY AND
134+
GSTREAMER_gstnetbuffer_LIBRARY AND GSTREAMER_gstpbutils_LIBRARY AND GSTREAMER_gstreamer_LIBRARY AND
135+
GSTREAMER_gstriff_LIBRARY AND GSTREAMER_gstrtp_LIBRARY AND GSTREAMER_gstrtsp_LIBRARY AND GSTREAMER_gstsdp_LIBRARY AND
136+
GSTREAMER_gsttag_LIBRARY AND GSTREAMER_gstvideo_LIBRARY)

cmake/Modules/FindLibXML2.cmake

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
find_path(LibXML2_ROOT_DIR NAMES include/libxml2/libxml/xpath.h)
2+
find_library(LibXML2_LIBRARIES
3+
NAMES xml2
4+
HINTS ${LibXML2_ROOT_DIR}/lib
5+
)
6+
find_path(LibXML2_INCLUDE_DIR
7+
NAMES libxml/tree.h
8+
HINTS ${LibXML2_ROOT_DIR}/include/libxml2
9+
)
10+
include(FindPackageHandleStandardArgs)
11+
find_package_handle_standard_args(LibXML2 DEFAULT_MSG
12+
LibXML2_LIBRARIES
13+
LibXML2_INCLUDE_DIR
14+
)
15+
16+
mark_as_advanced(
17+
LibXML2_ROOT_DIR
18+
LibXML2_LIBRARIES
19+
LibXML2_INCLUDE_DIR
20+
)

0 commit comments

Comments
 (0)