aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2014-10-26 19:39:05 +0100
committermontellese <montellese@xbmc.org>2014-12-22 21:10:14 +0100
commit49b46eeb38ab961623ff160da28d55fd70e52fcd (patch)
treec7dc82a6db1e923dff1dd5b8328a10df5e84c7ea /project
parent20ecc1b353f7a7f2ad65fc1dcfc3b9f6ffd9dcef (diff)
[win32] binary addons: replace prebuilt libvorbis dependency with a cmake based one
Diffstat (limited to 'project')
-rw-r--r--project/cmake/addons/depends/windows/cmake/libvorbis/CMakeLists.txt37
-rw-r--r--project/cmake/addons/depends/windows/cmake/libvorbis/deps.txt1
-rw-r--r--project/cmake/addons/depends/windows/cmake/libvorbis/libvorbis.txt1
-rw-r--r--project/cmake/addons/depends/windows/prebuilt/vorbis/install.txt2
-rw-r--r--project/cmake/addons/depends/windows/prebuilt/vorbis/vorbis.txt1
5 files changed, 39 insertions, 3 deletions
diff --git a/project/cmake/addons/depends/windows/cmake/libvorbis/CMakeLists.txt b/project/cmake/addons/depends/windows/cmake/libvorbis/CMakeLists.txt
new file mode 100644
index 0000000000..90fb0a20de
--- /dev/null
+++ b/project/cmake/addons/depends/windows/cmake/libvorbis/CMakeLists.txt
@@ -0,0 +1,37 @@
+project(libvorbis)
+
+cmake_minimum_required(VERSION 2.8)
+
+add_definitions(-DWIN32 -D_WINDOWS -D_USRDLL -DLIBVORBIS_EXPORTS)
+
+set(LIBVROBIS_SOURCES lib/analysis.c
+ lib/bitrate.c
+ lib/block.c
+ lib/codebook.c
+ lib/envelope.c
+ lib/floor0.c
+ lib/floor1.c
+ lib/info.c
+ lib/lookup.c
+ lib/lpc.c
+ lib/lsp.c
+ lib/mapping0.c
+ lib/mdct.c
+ lib/psy.c
+ lib/registry.c
+ lib/res0.c
+ lib/sharedbook.c
+ lib/smallft.c
+ lib/synthesis.c
+ lib/vorbisenc.c
+ lib/window.c)
+
+include_directories(${PROJECT_SOURCE_DIR}/include ${CMAKE_INSTALL_PREFIX}/include)
+
+add_library(vorbis ${LIBVROBIS_SOURCES})
+
+set(HEADERS ${PROJECT_SOURCE_DIR}/include/vorbis/codec.h
+ ${PROJECT_SOURCE_DIR}/include/vorbis/vorbisenc.h
+ ${PROJECT_SOURCE_DIR}/include/vorbis/vorbisfile.h)
+install(FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/vorbis)
+install(TARGETS vorbis DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
diff --git a/project/cmake/addons/depends/windows/cmake/libvorbis/deps.txt b/project/cmake/addons/depends/windows/cmake/libvorbis/deps.txt
new file mode 100644
index 0000000000..be34a5b473
--- /dev/null
+++ b/project/cmake/addons/depends/windows/cmake/libvorbis/deps.txt
@@ -0,0 +1 @@
+libogg \ No newline at end of file
diff --git a/project/cmake/addons/depends/windows/cmake/libvorbis/libvorbis.txt b/project/cmake/addons/depends/windows/cmake/libvorbis/libvorbis.txt
new file mode 100644
index 0000000000..f398574999
--- /dev/null
+++ b/project/cmake/addons/depends/windows/cmake/libvorbis/libvorbis.txt
@@ -0,0 +1 @@
+libvorbis http://mirrors.xbmc.org/build-deps/sources/libvorbis-1.3.2.tar.gz \ No newline at end of file
diff --git a/project/cmake/addons/depends/windows/prebuilt/vorbis/install.txt b/project/cmake/addons/depends/windows/prebuilt/vorbis/install.txt
deleted file mode 100644
index 3021f12c1d..0000000000
--- a/project/cmake/addons/depends/windows/prebuilt/vorbis/install.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-include/vorbis/* include/vorbis
-lib/* lib
diff --git a/project/cmake/addons/depends/windows/prebuilt/vorbis/vorbis.txt b/project/cmake/addons/depends/windows/prebuilt/vorbis/vorbis.txt
deleted file mode 100644
index 23e56e2901..0000000000
--- a/project/cmake/addons/depends/windows/prebuilt/vorbis/vorbis.txt
+++ /dev/null
@@ -1 +0,0 @@
-vorbis http://mirrors.xbmc.org/build-deps/win32/libvorbis-vc100-1.3.1-lib.tar.bz2