2014-01-20 07:58:58 -08:00
|
|
|
|
2015-02-03 21:07:11 -08:00
|
|
|
if(NOT MINGW)
|
2014-05-05 10:07:42 -07:00
|
|
|
add_subdirectory(w32-pthreads)
|
2015-02-03 21:07:11 -08:00
|
|
|
endif()
|
|
|
|
|
2014-04-14 14:27:52 -07:00
|
|
|
add_subdirectory(glad)
|
2014-12-06 21:45:51 -08:00
|
|
|
add_subdirectory(ipc-util)
|
2017-03-26 12:41:31 -07:00
|
|
|
|
|
|
|
if(BUILD_LIBFF)
|
|
|
|
add_subdirectory(libff)
|
|
|
|
endif()
|
|
|
|
|
2017-03-19 15:31:12 -07:00
|
|
|
add_subdirectory(media-playback)
|
deps/file-updater: Add file updater util. lib
This allows plugins to update and cache data files from a remote source.
Here are the steps that occur when the API initiates an update check:
1.) It checks to see if the local files are greater than the cached
files. If the local version is newer (for whatever reason), it
replaces the cached version(s) with the local version.
2.) A packages.json file is downloaded from the specified URL. That
packages.json file contains a version number and a list of files to
be updated.
3.) If the downloaded package version is greater than the cached
version, executes step 4-5 on each file.
4.) Checks the version for the file to update in packages.json, and if
the version is greater than the cached version, proceeds to step 5,
otherwise repeat step 4-5 for other files.
5.) Calls the callback given to the update function (if any) with the
file information (file name, buffer, etc), and if the callback
returns true, allows the cached file to be updated and replaced,
otherwise goes back to step 4-6 for the rest of the files.
NOTE: Files are never modified directly. All file saving/modification
is performed in a temporary directory, and then files are moved to their
destination. This should eliminate any possibility of file corruption
(or at least dramatically reduce the possibility).
2015-08-19 15:48:04 -07:00
|
|
|
add_subdirectory(file-updater)
|
2017-12-25 14:09:11 -08:00
|
|
|
add_subdirectory(obs-scripting)
|
2014-05-24 06:46:22 -07:00
|
|
|
|
2017-02-23 08:38:43 -08:00
|
|
|
if(WIN32)
|
|
|
|
add_subdirectory(blake2)
|
2017-02-20 04:47:20 -08:00
|
|
|
add_subdirectory(lzma)
|
2017-02-23 08:38:43 -08:00
|
|
|
endif()
|
|
|
|
|
2020-11-02 20:46:55 -08:00
|
|
|
add_subdirectory(libcaption)
|
2016-12-23 09:17:31 -08:00
|
|
|
|
2014-05-24 06:46:22 -07:00
|
|
|
find_package(Jansson 2.5 QUIET)
|
|
|
|
|
|
|
|
if(NOT JANSSON_FOUND)
|
|
|
|
message(STATUS "Jansson >=2.5 not found, building bundled version")
|
2014-07-17 09:02:43 -07:00
|
|
|
|
2014-05-24 06:46:22 -07:00
|
|
|
add_subdirectory(jansson)
|
2014-07-17 09:02:43 -07:00
|
|
|
|
|
|
|
set(OBS_JANSSON_IMPORT "jansson" CACHE INTERNAL "Internal var")
|
|
|
|
set(OBS_JANSSON_INCLUDE_DIRS "" CACHE INTERNAL "Internal var")
|
2014-05-24 06:46:22 -07:00
|
|
|
else()
|
|
|
|
message(STATUS "Using system Jansson library")
|
|
|
|
|
2014-07-17 09:02:43 -07:00
|
|
|
set(OBS_JANSSON_IMPORT "${JANSSON_LIBRARIES}" CACHE INTERNAL "Internal var")
|
|
|
|
set(OBS_JANSSON_INCLUDE_DIRS "${JANSSON_INCLUDE_DIRS}" CACHE INTERNAL "Internal var")
|
|
|
|
endif()
|