Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4b3bc75d
Commit
4b3bc75d
authored
Jul 22, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unmaintained cmake support
parent
aa1868c7
Changes
30
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
0 additions
and
2594 deletions
+0
-2594
.gitignore
.gitignore
+0
-10
extras/buildsystem/cmake/CMakeLists/libs_loaders_CMakeLists.txt
.../buildsystem/cmake/CMakeLists/libs_loaders_CMakeLists.txt
+0
-14
extras/buildsystem/cmake/CMakeLists/modules_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/modules_CMakeLists.txt
+0
-11
extras/buildsystem/cmake/CMakeLists/po_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/po_CMakeLists.txt
+0
-84
extras/buildsystem/cmake/CMakeLists/qt4_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/qt4_CMakeLists.txt
+0
-51
extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt
+0
-74
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
+0
-309
extras/buildsystem/cmake/CMakeLists/test_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/test_CMakeLists.txt
+0
-44
extras/buildsystem/cmake/README
extras/buildsystem/cmake/README
+0
-12
extras/buildsystem/cmake/cmake_uninstall.cmake.in
extras/buildsystem/cmake/cmake_uninstall.cmake.in
+0
-21
extras/buildsystem/cmake/config.h.cmake
extras/buildsystem/cmake/config.h.cmake
+0
-422
extras/buildsystem/cmake/include/FindDlopen.cmake
extras/buildsystem/cmake/include/FindDlopen.cmake
+0
-41
extras/buildsystem/cmake/include/FindDvbpsi.cmake
extras/buildsystem/cmake/include/FindDvbpsi.cmake
+0
-36
extras/buildsystem/cmake/include/FindFFmpeg.cmake
extras/buildsystem/cmake/include/FindFFmpeg.cmake
+0
-55
extras/buildsystem/cmake/include/FindLive555.cmake
extras/buildsystem/cmake/include/FindLive555.cmake
+0
-46
extras/buildsystem/cmake/include/FindLua.cmake
extras/buildsystem/cmake/include/FindLua.cmake
+0
-39
extras/buildsystem/cmake/include/FindMatroska.cmake
extras/buildsystem/cmake/include/FindMatroska.cmake
+0
-44
extras/buildsystem/cmake/include/FindMpeg2.cmake
extras/buildsystem/cmake/include/FindMpeg2.cmake
+0
-36
extras/buildsystem/cmake/include/FindTaglib.cmake
extras/buildsystem/cmake/include/FindTaglib.cmake
+0
-28
extras/buildsystem/cmake/include/config.cmake
extras/buildsystem/cmake/include/config.cmake
+0
-651
extras/buildsystem/cmake/include/pkg_check_modules.cmake
extras/buildsystem/cmake/include/pkg_check_modules.cmake
+0
-360
extras/buildsystem/cmake/include/vlc_add_compile_flag.cmake
extras/buildsystem/cmake/include/vlc_add_compile_flag.cmake
+0
-19
extras/buildsystem/cmake/include/vlc_check_functions_exist.cmake
...buildsystem/cmake/include/vlc_check_functions_exist.cmake
+0
-10
extras/buildsystem/cmake/include/vlc_check_include_files.cmake
...s/buildsystem/cmake/include/vlc_check_include_files.cmake
+0
-10
extras/buildsystem/cmake/include/vlc_check_type.cmake
extras/buildsystem/cmake/include/vlc_check_type.cmake
+0
-10
extras/buildsystem/cmake/include/vlc_find_frameworks.cmake
extras/buildsystem/cmake/include/vlc_find_frameworks.cmake
+0
-7
extras/buildsystem/cmake/include/vlc_module_funcs.cmake
extras/buildsystem/cmake/include/vlc_module_funcs.cmake
+0
-58
extras/buildsystem/cmake/include/vlc_test_inline.cmake
extras/buildsystem/cmake/include/vlc_test_inline.cmake
+0
-23
extras/buildsystem/cmake/scripts/convert_modules_to_cmake.sh
extras/buildsystem/cmake/scripts/convert_modules_to_cmake.sh
+0
-15
extras/buildsystem/cmake/scripts/convert_vlc_to_cmake.sh
extras/buildsystem/cmake/scripts/convert_vlc_to_cmake.sh
+0
-54
No files found.
.gitignore
View file @
4b3bc75d
...
...
@@ -45,16 +45,6 @@ vlc_install_dir/*
plugins.dat
patches/*
# Ignore CMake Stuff
cmake
CMakeFiles
CTestTestfile.cmake
cmake_install.cmake
cmake_uninstall.cmake
CMakeCache.txt
CPackConfig.cmake
CPackSourceConfig.cmake
include/vlc/libvlc_version.h
# Ignore build dirs
...
...
extras/buildsystem/cmake/CMakeLists/libs_loaders_CMakeLists.txt
deleted
100644 → 0
View file @
aa1868c7
if(ENABLE_LOADER)
set(SOURCES_libloader ldt_keeper.c pe_image.c module.c ext.c win32.c
driver.c pe_resource.c resource.c registry.c afl.c vfl.c
wrapper.S stubs.s kludge.c)
add_library(loader STATIC ${SOURCES_libloader})
set_target_properties(loader PROPERTIES COMPILE_FLAGS
"-D__WINE__ -DHAVE_SYS_MMAN_H=1 -DHAVE_VSSCANF=1 -DWIN32_PATH=\\\"\\\" -DTRACE\\\(...\\\)=\\\(void\\\)0 -fno-PIC -U_FILE_OFFSET_BITS -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer")
target_link_libraries(loader pthread)
endif(ENABLE_LOADER)
extras/buildsystem/cmake/CMakeLists/modules_CMakeLists.txt
deleted
100644 → 0
View file @
aa1868c7
set( SUBMODULES
access access_filter access_output audio_filter
audio_mixer audio_output codec control demux
gui meta_engine misc mux packetizer
services_discovery stream_out video_chroma
video_filter video_output visualization )
foreach( submodule ${SUBMODULES} )
add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/${submodule} )
endforeach( submodule )
extras/buildsystem/cmake/CMakeLists/po_CMakeLists.txt
deleted
100644 → 0
View file @
aa1868c7
#TODO:
# disable NLS on demand
# installation
# update-po
# rebuild *.po if vlc.pot has changed (include POTFILES.in)
#FIXME: detection ?
find_program( GMSGFMT msgfmt )
find_program( MSGFMT msgfmt )
find_program( XGETTEXT xgettext )
find_program( MSGMERGE_UPDATE msgmerge --update )
find_program( MSGINIT msginit )
find_program( MSGCONV msgconv )
find_program( MSGFILTER msgfilter )
set( POFILES
af
ar
bn
ca
co
cs
da
de
el
en_GB
es
eu
fa
fi
fr
fur
gl
he
hi
hu
it
ja
ka
ko
lt
lv
ms
my
ne
nl
no
oc
pa
pl
ps
pt_BR
pt_PT
ro
ru
sk
sl
sq
sv
tet
th
tl
tr
zh_CN
zh_TW
)
FOREACH( pofile ${POFILES} )
set( po-target ${po-target} ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo )
ENDFOREACH( pofile)
ADD_CUSTOM_TARGET( all-po ALL
DEPENDS ${po-target}
)
foreach( pofile ${POFILES} )
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo
COMMAND rm -f ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo
COMMAND ${GMSGFMT} -c --statistics -o ${CMAKE_CURRENT_BINARY_DIR}/t-${pofile}.gmo ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}.po
COMMAND mv ${CMAKE_CURRENT_BINARY_DIR}/t-${pofile}.gmo ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}.po
)
endforeach( pofile )
extras/buildsystem/cmake/CMakeLists/qt4_CMakeLists.txt
deleted
100644 → 0
View file @
aa1868c7
set(qt4_SOURCES qt4.cpp menus.cpp main_interface.cpp dialogs_provider.cpp input_manager.cpp recents.cpp dialogs/playlist.cpp dialogs/bookmarks.cpp dialogs/preferences.cpp dialogs/mediainfo.cpp dialogs/extended.cpp dialogs/messages.cpp dialogs/errors.cpp dialogs/interaction.cpp dialogs/sout.cpp dialogs/help.cpp dialogs/gototime.cpp dialogs/open.cpp dialogs/vlm.cpp dialogs/podcast_configuration.cpp components/extended_panels.cpp components/info_panels.cpp components/preferences_widgets.cpp components/complete_preferences.cpp components/simple_preferences.cpp components/open_panels.cpp components/interface_widgets.cpp components/playlist/playlist_model.cpp components/playlist/playlist_item.cpp components/playlist/standardpanel.cpp components/playlist/playlist.cpp components/playlist/selector.cpp util/input_slider.cpp util/customwidgets.cpp util/registry.cpp )
set(qt4_UIS ui/equalizer.ui ui/v4l2.ui ui/video_effects.ui ui/open_file.ui ui/open_disk.ui ui/open_net.ui ui/open_capture.ui ui/open.ui ui/podcast_configuration.ui ui/sprefs_audio.ui ui/sprefs_input.ui ui/sprefs_interface.ui ui/sprefs_subtitles.ui ui/sprefs_video.ui ui/streampanel.ui ui/sout.ui ui/vlm.ui )
set(qt4_HEADERS
components/complete_preferences.hpp
components/extended_panels.hpp
components/info_panels.hpp
components/interface_widgets.hpp
components/open_panels.hpp
components/playlist/panels.hpp
components/playlist/playlist.hpp
components/playlist/playlist_item.hpp
components/playlist/playlist_model.hpp
components/playlist/selector.hpp
components/preferences_widgets.hpp
components/simple_preferences.hpp
dialogs/bookmarks.hpp
dialogs/errors.hpp
dialogs/extended.hpp
dialogs/gototime.hpp
dialogs/help.hpp
dialogs/interaction.hpp
dialogs/mediainfo.hpp
dialogs/messages.hpp
dialogs/open.hpp
dialogs/playlist.hpp
dialogs/podcast_configuration.hpp
dialogs/preferences.hpp
dialogs/sout.hpp
dialogs/vlm.hpp
dialogs_provider.hpp
input_manager.hpp
main_interface.hpp
menus.hpp
qt4.hpp
recents.hpp
util/customwidgets.hpp
util/input_slider.hpp
util/qvlcframe.hpp
util/registry.hpp
)
if(QT4_FOUND)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
vlc_get_module_compile_flags( MOC_FLAGS qt4 )
set(MOC_FLAGS "-DHAVE_CONFIG_H ${MOC_FLAGS}")
vlc_qt4_generate_moc(qt4_MOCS ${MOC_FLAGS} ${qt4_HEADERS})
vlc_qt4_wrap_ui(qt4_UIS_H ${qt4_UIS})
qt4_add_resources(qt4_SRCS vlc.qrc)
endif(QT4_FOUND)
vlc_add_module(qt4 ${qt4_SOURCES} ${qt4_SRCS} ${qt4_MOCS} ${qt4_UIS})
extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt
deleted
100644 → 0
View file @
aa1868c7
PROJECT(vlc)
cmake_policy(VERSION 2.6)
cmake_minimum_required(VERSION 2.6)
ENABLE_TESTING()
# Set the module path
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
# Our own include
include( vlc_module_funcs )
# Our config
include( config )
# Global definitions
add_definitions(-DHAVE_CONFIG_H)
add_definitions(-D__LIBVLC__)
# Large file support for Solaris and Linux:
add_definitions(-D_FILE_OFFSET_BITS=64 -D__USE_UNIX98)
# Thread safety:
add_definitions(-D_REENTRANT -D_THREAD_SAFE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Needed for glibc:
add_definitions(-D_GNU_SOURCE)
# Our main include directories
include_directories(${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include)
# our sources:
add_subdirectory(libs/loader)
add_subdirectory(src)
add_subdirectory(modules)
if(ENABLE_NLS)
add_subdirectory(po)
endif(ENABLE_NLS)
add_subdirectory(test)
# Enable uninstall
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/extras/buildsystem/cmake/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
add_custom_target(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
# Target to reinstall the CMake files (until cmake gets defaulted)
add_custom_target(recmake
COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && sh "${CMAKE_CURRENT_SOURCE_DIR}/extras/buildsystem/cmake/scripts/convert_vlc_to_cmake.sh")
# Enable CPack: Automatic package creation
set(README "${CMAKE_CURRENT_SOURCE_DIR}/README")
set(LICENCE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
if(APPLE)
set(README "${CMAKE_CURRENT_SOURCE_DIR}/extras/package/macosx/README.MacOSX.rtf")
set(LICENCE "") # FIXME: Mac OS X's Package Maker doesn't allow non .*
endif(APPLE)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "VLC Media Player")
set(CPACK_PACKAGE_VENDOR "VideoLAN Team")
set(CPACK_PACKAGE_DESCRIPTION_FILE ${README})
set(CPACK_RESOURCE_FILE_LICENSE ${LICENCE})
set(CPACK_PACKAGE_VERSION_MAJOR "${VLC_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${VLC_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${VLC_VERSION_PATCH}${VLC_VERSION_EXTRA}")
include(CPack)
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
deleted
100644 → 0
View file @
aa1868c7
add_definitions(-Dasm=__asm__ -D_INTL_REDIRECT_MACROS)
add_definitions(-DLOCALEDIR="${CMAKE_INSTALL_PREFIX}/locale")
add_definitions(-DPLUGIN_PATH="${CMAKE_INSTALL_PREFIX}/lib/vlc")
add_definitions(-DDATA_PATH="${CMAKE_INSTALL_PREFIX}/share/vlc")
# vlc
if(SYS_WIN32)
add_executable(vlc winvlc.c)
else(SYS_WIN32)
add_executable(vlc vlc.c)
endif(SYS_WIN32)
target_link_libraries(vlc libvlccore libvlc)
# libvlccore
set( SOURCES_libvlccore_beos misc/beos_specific.cpp )
set( SOURCES_libvlccore_darwin misc/darwin_specific.c )
set( SOURCES_libvlccore_win32 misc/win32_specific.c )
set( SOURCES_libvlccore_linux misc/linux_specific.c )
set( SOURCES_libvlccore_other misc/not_specific.c )
set( SOURCES_libvlccore_dirent extras/dirent.c )
set( SOURCES_libvlccore_getopt misc/getopt.c misc/getopt.h misc/getopt1.c )
set( SOURCES_libvlccore_common
libvlc.c
libvlc.h
libvlc-module.c
interface/interface.c
interface/intf_eject.c
interface/interaction.c
playlist/playlist_internal.h
playlist/thread.c
playlist/control.c
playlist/engine.c
playlist/sort.c
playlist/loadsave.c
playlist/tree.c
playlist/item.c
playlist/search.c
playlist/services_discovery.c
input/item.c
input/access.c
input/clock.c
input/control.c
input/decoder.c
input/decoder_synchro.c
input/demux.c
input/es_out.c
input/input.c
input/meta.c
input/input_internal.h
input/vlm_internal.h
input/stream.c
input/mem_stream.c
input/subtitles.c
input/var.c
video_output/video_output.c
video_output/vout_pictures.c
video_output/vout_pictures.h
video_output/video_text.c
video_output/video_widgets.c
video_output/vout_subpictures.c
video_output/vout_intf.c
audio_output/aout_internal.h
audio_output/common.c
audio_output/dec.c
audio_output/filters.c
audio_output/input.c
audio_output/mixer.c
audio_output/output.c
audio_output/intf.c
stream_output/stream_output.c
stream_output/stream_output.h
stream_output/announce.c
stream_output/profiles.c
stream_output/sap.c
stream_output/sdp.c
osd/osd.c
osd/osd_text.c
osd/osd_widgets.c
network/acl.c
network/getaddrinfo.c
network/io.c
network/tcp.c
network/udp.c
network/httpd.c
network/rootwrap.c
network/tls.c
network/poll.c
text/charset.c
text/strings.c
text/unicode.c
text/wincp.c
text/iso_lang.c
text/iso-639_def.h
misc/action.c
misc/md5.c
misc/rand.c
misc/mtime.c
misc/block.c
${CMAKE_BINARY_DIR}/src/modules/builtin.h
modules/modules.h
modules/modules.c
modules/cache.c
modules/entry.c
modules/os.c
misc/threads.c
misc/stats.c
misc/cpu.c
config/configuration.h
config/core.c
config/dirs.c
config/chain.c
config/file.c
config/intf.c
config/cmdline.c
misc/events.c
misc/image.c
misc/messages.c
misc/mime.c
misc/objects.c
misc/variables.h
misc/variables.c
misc/error.c
misc/update.h
misc/update.c
${CMAKE_BINARY_DIR}/src/misc/revision.c
input/vlm.c
input/vlmshell.c
misc/xml.c
misc/devices.c
version.c
extras/libc.c
${CMAKE_BINARY_DIR}/include/vlc_about.h )
set( SOURCES_libvlccore ${SOURCES_libvlccore_common} )
if(SYS_DARWIN)
set( SOURCES_libvlccore ${SOURCES_libvlccore} ${SOURCES_libvlccore_darwin} )
elseif(SYS_BEOS)
set( SOURCES_libvlccore ${SOURCES_libvlccore} ${SOURCES_libvlccore_beos} )
elseif(SYS_WIN32)
set( SOURCES_libvlccore ${SOURCES_libvlccore} ${SOURCES_libvlccore_win32} )
elseif(SYS_LINUX)
set( SOURCES_libvlccore ${SOURCES_libvlccore} ${SOURCES_libvlccore_linux} )
else(SYS_DARWIN)
set( SOURCES_libvlccore ${SOURCES_libvlccore} ${SOURCES_libvlccore_other} )
endif(SYS_DARWIN)
add_library(libvlccore SHARED ${SOURCES_libvlccore})
set_target_properties(libvlccore PROPERTIES
OUTPUT_NAME vlccore
SOVERSION 0 VERSION 0.0.0)
if(UPDATE_CHECK)
target_link_libraries(libvlccore ${LIBM} ${LIBRT} ${LIBICONV} ${Dlopen_LIBRARIES} "-lgcrypt")
else(UPDATE_CHECK)
target_link_libraries(libvlccore ${LIBM} ${LIBRT} ${LIBICONV} ${Dlopen_LIBRARIES})
endif(UPDATE_CHECK)
# libvlc
set( SOURCES_libvlc
control/libvlc_internal.h
control/core.c
control/log.c
control/playlist.c
control/vlm.c
control/video.c
control/audio.c
control/event.c
control/flat_media_list_view.c
control/hierarchical_media_list_view.c
control/hierarchical_node_media_list_view.c
control/media.c
control/media_player.c
control/media_list.c
control/media_list_path.h
control/media_list_player.c
control/media_list_view.c
control/media_library.c
control/mediacontrol_internal.h
control/mediacontrol_core.c
control/mediacontrol_util.c
control/mediacontrol_audio_video.c
control/media_discoverer.c )
add_library(libvlc SHARED ${SOURCES_libvlc})
set_target_properties(libvlc PROPERTIES OUTPUT_NAME vlc)
set_target_properties(libvlc PROPERTIES SOVERSION 2)
set_target_properties(libvlccore PROPERTIES VERSION 0.0.0)
set_source_files_properties(${SOURCES_libvlc} PROPERTIES COMPILE_FLAGS -DMODULE_STRING=\\"control\\")
set_source_files_properties(${SOURCES_libvlccore} PROPERTIES COMPILE_FLAGS -DMODULE_STRING=\\"main\\")
target_link_libraries(libvlc libvlccore)
##########################################################
# Install
install(TARGETS libvlccore libvlc DESTINATION lib)
install(TARGETS vlc DESTINATION bin)
##########################################################
# Libraries
# Carbon
if(APPLE)
find_library(CARBON_FRAMEWORK Carbon)
target_link_libraries(libvlccore ${CARBON_FRAMEWORK})
endif(APPLE)
##########################################################
# revision.c
set(rev "${CMAKE_BINARY_DIR}/src/misc/revision.c")
exec_program(dirname ARGS ${rev} OUTPUT_VARIABLE rev_dir)
add_custom_command(
OUTPUT ${rev}
COMMAND rm -f ${rev} ${rev}.tmp
COMMAND mkdir -p ${rev_dir}
COMMAND sh -c "echo '/* AUTOGENERATED FILE - DO NOT EDIT */' > ${rev}.tmp"
COMMAND sh -c "printf 'const char psz_vlc_changeset[] = \"' >> ${rev}.tmp"
COMMAND sh -c "printf `LANG=C git --git-dir=${CMAKE_SOURCE_DIR}/.git show-ref -s HEAD 2>/dev/null || printf exported` >> ${rev}.tmp"
COMMAND sh -c "echo '\";' >> ${rev}.tmp"
COMMAND mv -f ${rev}.tmp ${rev}
VERBATIM
)
set(rev)
##########################################################
# builtin.h
# No real use for this one, we just used to need it.
# We should really remove that.
set(builtin "${CMAKE_BINARY_DIR}/src/modules/builtin.h")
exec_program(dirname ARGS ${builtin} OUTPUT_VARIABLE builtin_dir)
add_custom_command(
OUTPUT ${builtin}
COMMAND mkdir -p ${builtin_dir}
COMMAND sh -c "echo '/* Auto generated by ${CMAKE_CURRENT_BUILD_DIR}/CMakeLists.txt */' > ${builtin}"
COMMAND sh -c "echo 'int vlc_entry__main( module_t* );' >> ${builtin}"
COMMAND sh -c "echo '#define ALLOCATE_ALL_BUILTINS() do {} while(0)' >> ${builtin}"
VERBATIM
)
set(should)
##########################################################
# vlc_about.h
set(about "${CMAKE_BINARY_DIR}/include/vlc_about.h")
exec_program(dirname ARGS ${about} OUTPUT_VARIABLE about_dir)
add_custom_command(
OUTPUT ${about}
COMMAND rm -f "${about}.tmp"
COMMAND mkdir -p ${about_dir}
COMMAND sh -c "echo '/* Automatically generated file - DO NOT EDIT */' > ${about}.tmp"
COMMAND sh -c "echo 'static const char psz_license[] =' >> ${about}.tmp"
COMMAND sh -c "cat ${CMAKE_SOURCE_DIR}/COPYING | sed s/\\\"/''/g | awk '{ print \"\\\"\"$0\"\\\\n\\\"\" }' >> ${about}.tmp"
COMMAND sh -c "echo ';' >> ${about}.tmp"
COMMAND sh -c "echo 'static const char psz_thanks[] =' >> ${about}.tmp"
COMMAND sh -c "grep -v '$$Id:' ${CMAKE_SOURCE_DIR}/THANKS | sed 's/\"/''/g' | awk '{ print \"\\\"\"$0\"\\\\n\\\"\" }'|sed 's/\"<.*.> \"//' >> ${about}.tmp"
COMMAND sh -c "echo ';' >> ${about}.tmp"
COMMAND sh -c "echo 'static const char psz_authors[] =' >> ${about}.tmp"
COMMAND sh -c "grep N: ${CMAKE_SOURCE_DIR}/AUTHORS | cut -d '\ ' -f 2- | sed 's/\"/''/g' | awk '{ print \"\\\"\"$0\"\\\\n\\\"\" }' >> ${about}.tmp"
COMMAND sh -c "echo ';' >> ${about}.tmp"
COMMAND sh -c "mv -f -- ${about}.tmp ${about}"
DEPENDS ${CMAKE_SOURCE_DIR}/AUTHORS ${CMAKE_SOURCE_DIR}/THANKS ${CMAKE_SOURCE_DIR}/COPYING
VERBATIM
)
set(about)
##########################################################
# SET_TARGET_PROPERTIES
# FIXME: Should probably be autodetected in configure?
# FIXME: This breaks on FreeBSD also
#if(NOT APPLE)
# set(LINK_FLAGS "-z defs --as-needed")
#endif(NOT APPLE)
target_link_libraries(libvlccore "${CMAKE_THREAD_LIBS_INIT}")
target_link_libraries(libvlc "${CMAKE_THREAD_LIBS_INIT}")
set_target_properties(libvlccore libvlc vlc PROPERTIES COMPILE_FLAGS
"-Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -I${CMAKE_BINARY_DIR}/src -I${CMAKE_BINARY_DIR}/include" )
##########################################################
# Tests
add_executable(test_i18n_atof test/i18n_atof.c)
add_executable(test_url test/url.c)
add_executable(test_utf8 test/utf8.c)
add_executable(test_dictionary test/dictionary.c)
target_link_libraries(test_i18n_atof libvlccore)
target_link_libraries(test_url libvlccore)
target_link_libraries(test_utf8 libvlccore)
target_link_libraries(test_dictionary libvlccore)
add_test(test_i18n_atof ${CMAKE_CURRENT_BINARY_DIR}/test_i18n_atof)
add_test(test_url ${CMAKE_CURRENT_BINARY_DIR}/test_url)
add_test(test_utf8 ${CMAKE_CURRENT_BINARY_DIR}/test_utf8)
add_test(test_dictionary ${CMAKE_CURRENT_BINARY_DIR}/test_dictionary)
extras/buildsystem/cmake/CMakeLists/test_CMakeLists.txt
deleted
100644 → 0
View file @
aa1868c7
add_executable(test_libvlc_core libvlc/core.c)
add_executable(test_libvlc_events libvlc/events.c)
#add_executable(test_libvlc_media_player libvlc/media_player.c
# samples/test.sample)
add_executable(test_libvlc_media_list libvlc/media_list.c)
#add_executable(test_libvlc_media_list_player libvlc/media_list_player.c
# samples/test.sample)
#add_executable(test_libvlc_meta libvlc/meta.c
# samples/meta.sample)
target_link_libraries(test_libvlc_core libvlc)
target_link_libraries(test_libvlc_events libvlc)
#target_link_libraries(test_libvlc_media_player libvlc)
target_link_libraries(test_libvlc_media_list libvlc)
#target_link_libraries(test_libvlc_media_list_player libvlc)
#target_link_libraries(test_libvlc_meta libvlc)
set(SAMPLES_SERVER http://streams.videolan.org/streams-videolan/reference)
MACRO(download_sample sample dest)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${dest}
COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/samples
COMMAND curl -L ${SAMPLES_SERVER}/${sample} > ${CMAKE_CURRENT_BINARY_DIR}/${dest}
)
ENDMACRO(download_sample)
#download_sample(avi/Hero-Div3.avi samples/test.sample)
#download_sample(metadata/id3tag/Wesh-Bonneville.mp3 samples/meta.sample)
add_test(test_libvlc_core
${CMAKE_CURRENT_BINARY_DIR}/test_libvlc_core)
add_test(test_libvlc_events
${CMAKE_CURRENT_BINARY_DIR}/test_libvlc_events)
add_test(test_libvlc_media_player
${CMAKE_CURRENT_BINARY_DIR}/test_libvlc_media_player)
add_test(test_libvlc_media_list
${CMAKE_CURRENT_BINARY_DIR}/test_libvlc_media_list)
add_test(test_libvlc_media_list_player
${CMAKE_CURRENT_BINARY_DIR}/test_libvlc_media_list_player)
add_test(test_libvlc_meta
${CMAKE_CURRENT_BINARY_DIR}/test_libvlc_meta)
extras/buildsystem/cmake/README
deleted
100644 → 0
View file @
aa1868c7
To use CMake:
First, as CMake isn't the default on vlc populate its CMakeLists files:
$ cd vlc && sh ./extras/buildsystem/cmake/scripts/convert_vlc_to_cmake.sh
WARNING: You are strongly encouraged to use cmake-2.5 (cvs version)
Now you can use CMake as usual:
$ cd vlc && mkdir build && cd build && cmake .. (or ccmake .. if you want a graphical view of the settings)
(This will create a build directory)
$ make [VERBOSE=1 if you want more details]
$ make install
extras/buildsystem/cmake/cmake_uninstall.cmake.in
deleted
100644 → 0
View file @
aa1868c7
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}")
FOREACH(file ${files})
MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
IF(EXISTS "$ENV{DESTDIR}${file}")
EXEC_PROGRAM(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
IF(NOT "${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
ENDIF(NOT "${rm_retval}" STREQUAL 0)
ELSE(EXISTS "$ENV{DESTDIR}${file}")
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
ENDIF(EXISTS "$ENV{DESTDIR}${file}")
ENDFOREACH(file)
extras/buildsystem/cmake/config.h.cmake
deleted
100644 → 0
View file @
aa1868c7
This diff is collapsed.
Click to expand it.
extras/buildsystem/cmake/include/FindDlopen.cmake
deleted
100644 → 0
View file @
aa1868c7
# From licq www.licq.org (GPL)
# - Find library containing dlopen()
# The following variables are set if dlopen is found. If dlopen is not
# found, Dlopen_FOUND is set to false.
# Dlopen_FOUND - System has dlopen.
# Dlopen_LIBRARIES - Link these to use dlopen.
#
# Copyright (c) 2007 Erik Johansson <erik@ejohansson.se>
# Redistribution and use is allowed according to the terms of the BSD license.
if
(
NOT Dlopen_SEARCHED
)
include
(
CheckLibraryExists
)
set
(
Dlopen_SEARCHED TRUE CACHE INTERNAL
""
)
set
(
Dlopen_FOUND FALSE CACHE INTERNAL
""
)
foreach
(
library c c_r dl
)
if
(
NOT Dlopen_FOUND
)
check_library_exists
(
${
library
}
dlopen
""
Dlopen_IN_
${
library
}
)
if
(
Dlopen_IN_
${
library
}
)
set
(
Dlopen_LIBRARIES
${
library
}
CACHE STRING
"Library containing dlopen"
)
set
(
Dlopen_FOUND TRUE CACHE INTERNAL
""
)
endif
(
Dlopen_IN_
${
library
}
)
endif
(
NOT Dlopen_FOUND
)
endforeach
(
library
)
if
(
Dlopen_FOUND
)
if
(
NOT Dlopen_FIND_QUIETLY
)
message
(
STATUS
"Found dlopen in:
${
Dlopen_LIBRARIES
}
"
)
endif
(
NOT Dlopen_FIND_QUIETLY
)
else
(
Dlopen_FOUND
)
if
(
Dlopen_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find the library containing dlopen"
)
endif
(
Dlopen_FIND_REQUIRED
)
endif
(
Dlopen_FOUND
)
mark_as_advanced
(
Dlopen_LIBRARIES
)
endif
(
NOT Dlopen_SEARCHED
)
extras/buildsystem/cmake/include/FindDvbpsi.cmake
deleted
100644 → 0
View file @
aa1868c7
# - Find library containing Dvbpsi()
# The following variables are set if Dvbpsi is found. If Dvbpsi is not
# found, Dvbpsi_FOUND is set to false.
# Dvbpsi_FOUND - System has Dvbpsi.
# Dvbpsi_LIBRARIES - Link these to use Dvbpsi.
# Dvbpsi_CFLAGS - Link these to use Dvbpsi.
if
(
NOT Dvbpsi_SEARCHED
)
include
(
CheckLibraryExists
)
set
(
Dvbpsi_SEARCHED TRUE CACHE INTERNAL
""
)
set
(
Dvbpsi_FOUND FALSE CACHE INTERNAL
""
)
pkg_check_modules
(
Dvbpsi dvbpsi
)
if
(
NOT Dvbpsi_FOUND
)
find_library
(
Dvbpsi_LIBRARY NAMES dvbpsi
)
if
(
Dvbpsi_LIBRARY
)
set
(
Dvbpsi_LIBRARIES
"
${
Dvbpsi_LIBRARY
}
"
CACHE INTERNAL
""
)
set
(
Dvbpsi_FOUND TRUE CACHE INTERNAL
""
)
endif
(
Dvbpsi_LIBRARY
)
endif
(
NOT Dvbpsi_FOUND
)
if
(
Dvbpsi_FOUND
)
if
(
NOT Dvbpsi_FIND_QUIETLY
)
message
(
STATUS
"Found Dvbpsi in:
${
Dvbpsi_LIBRARIES
}
"
)
endif
(
NOT Dvbpsi_FIND_QUIETLY
)
else
(
Dvbpsi_FOUND
)
if
(
Dvbpsi_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find the library containing Dvbpsi"
)
endif
(
Dvbpsi_FIND_REQUIRED
)
endif
(
Dvbpsi_FOUND
)
mark_as_advanced
(
Dvbpsi_LIBRARIES
)
endif
(
NOT Dvbpsi_SEARCHED
)
extras/buildsystem/cmake/include/FindFFmpeg.cmake
deleted
100644 → 0
View file @
aa1868c7
# - Find library containing FFmpeg()
# The following variables are set if FFmpeg is found. If FFmpeg is not
# found, FFmpeg_FOUND is set to false.
# FFmpeg_FOUND - System has FFmpeg.
# FFmpeg_LIBRARIES - Link these to use FFmpeg.
# FFmpeg_CFLAGS - Link these to use FFmpeg.
if
(
NOT FFmpeg_SEARCHED
)
include
(
CheckLibraryExists
)
set
(
FFmpeg_SEARCHED TRUE CACHE INTERNAL
""
)
set
(
FFmpeg_FOUND FALSE CACHE INTERNAL
""
)
pkg_check_modules
(
FFmpeg libffmpeg
)
if
(
NOT FFmpeg_FOUND
)
set
(
FFmpeg_LIBRARIES
""
)
foreach
(
library ffmpeg avcodec avformat avutil postproc swscale
)
find_library
(
${
library
}
_LIBRARY
${
library
}
)
if
(
${
library
}
_LIBRARY
)
pkg_check_modules
(
${
library
}
_LIBRARY lib
${
library
}
)
set
(
FFmpeg_LIBRARIES
"
${
library
}
;
${
FFmpeg_LIBRARIES
}
"
)
if
(
${
library
}
_LIBRARY_CFLAGS
)
set
(
FFmpeg_CFLAGS
${
FFmpeg_CFLAGS
}
${${
library
}
_LIBRARY_CFLAGS
}
)
endif
(
${
library
}
_LIBRARY_CFLAGS
)
set
(
FFmpeg_FOUND TRUE CACHE INTERNAL
""
)
endif
(
${
library
}
_LIBRARY
)
endforeach
(
library
)
foreach
(
library a52 faac lame z png mp3lame twolame
)
find_library
(
${
library
}
_LIBRARY
${
library
}
)
if
(
${
library
}
_LIBRARY
)
pkg_check_modules
(
${
library
}
_LIBRARY lib
${
library
}
)
set
(
FFmpeg_LIBRARIES
"
${
library
}
;
${
FFmpeg_LIBRARIES
}
"
)
if
(
${
library
}
_LIBRARY_CFLAGS
)
set
(
FFmpeg_CFLAGS
${
FFmpeg_CFLAGS
}
${${
library
}
_LIBRARY_CFLAGS
}
)
endif
(
${
library
}
_LIBRARY_CFLAGS
)
endif
(
${
library
}
_LIBRARY
)
endforeach
(
library
)
set
(
FFmpeg_LIBRARIES
"
${
FFmpeg_LIBRARIES
}
"
CACHE INTERNAL STRING
)
endif
(
NOT FFmpeg_FOUND
)
if
(
FFmpeg_FOUND
)
if
(
NOT FFmpeg_FIND_QUIETLY
)
message
(
STATUS
"Found FFmpeg in:
${
FFmpeg_LIBRARIES
}
"
)
endif
(
NOT FFmpeg_FIND_QUIETLY
)
else
(
FFmpeg_FOUND
)
if
(
FFmpeg_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find the library containing FFmpeg"
)
endif
(
FFmpeg_FIND_REQUIRED
)
endif
(
FFmpeg_FOUND
)
mark_as_advanced
(
FFmpeg_LIBRARIES
)
endif
(
NOT FFmpeg_SEARCHED
)
extras/buildsystem/cmake/include/FindLive555.cmake
deleted
100644 → 0
View file @
aa1868c7
# - Find library containing Live555()
# The following variables are set if Live555 is found. If Live555 is not
# found, Live555_FOUND is set to false.
# Live555_FOUND - System has Live555.
# Live555_LIBRARIES - Link these to use Live555.
# Live555_CFLAGS - Link these to use Live555.
if
(
NOT Live555_SEARCHED
)
include
(
CheckLibraryExists
)
set
(
Live555_SEARCHED TRUE CACHE INTERNAL
""
)
set
(
Live555_FOUND FALSE CACHE INTERNAL
""
)
pkg_check_modules
(
Live555 libLive555
)
if
(
NOT Live555_FOUND
)
set
(
Live555_LIBRARIES
""
)
foreach
(
library livemedia livemedia_pic
)
find_library
(
${
library
}
_LIBRARY
${
library
}
)
if
(
${
library
}
_LIBRARY
)
set
(
Live555_LIBRARIES
"
${
library
}
;
${
Live555_LIBRARIES
}
"
)
set
(
Live555_FOUND TRUE CACHE INTERNAL
""
)
endif
(
${
library
}
_LIBRARY
)
endforeach
(
library
)
foreach
(
library groupsock_pic groupsock BasicUsageEnvironment_pic BasicUsageEnvironment UsageEnvironment_pic UsageEnvironment
)
find_library
(
${
library
}
_LIBRARY
${
library
}
)
if
(
${
library
}
_LIBRARY
)
set
(
Live555_LIBRARIES
"
${
library
}
;
${
Live555_LIBRARIES
}
"
)
endif
(
${
library
}
_LIBRARY
)
endforeach
(
library
)
set
(
Live555_LIBRARIES
"
${
Live555_LIBRARIES
}
"
CACHE INTERNAL STRING
)
endif
(
NOT Live555_FOUND
)
if
(
Live555_FOUND
)
if
(
NOT Live555_FIND_QUIETLY
)
message
(
STATUS
"Found Live555 in:
${
Live555_LIBRARIES
}
"
)
endif
(
NOT Live555_FIND_QUIETLY
)
else
(
Live555_FOUND
)
if
(
Live555_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find the library containing Live555"
)
endif
(
Live555_FIND_REQUIRED
)
endif
(
Live555_FOUND
)
mark_as_advanced
(
Live555_LIBRARIES
)
endif
(
NOT Live555_SEARCHED
)
extras/buildsystem/cmake/include/FindLua.cmake
deleted
100644 → 0
View file @
aa1868c7
# - Find library containing Lua()
# The following variables are set if Lua is found. If Lua is not
# found, Lua_FOUND is set to false.
# Lua_FOUND - System has Lua.
# Lua_LIBRARIES - Link these to use Lua.
# Lua_CFLAGS - Link these to use Lua.
if
(
NOT Lua_SEARCHED
)
include
(
CheckLibraryExists
)
set
(
Lua_SEARCHED TRUE CACHE INTERNAL
""
)
set
(
Lua_FOUND FALSE CACHE INTERNAL
""
)
pkg_check_modules
(
Lua lua>=5.1
)
if
(
NOT Lua_FOUND
)
pkg_check_modules
(
Lua lua5.1
)
endif
(
NOT Lua_FOUND
)
if
(
NOT Lua_FOUND
)
find_library
(
Lua_LIBRARY NAMES lua5.1 lua51 lua
)
if
(
Lua_LIBRARY
)
set
(
Lua_LIBRARIES
"
${
Lua_LIBRARY
}
"
CACHE INTERNAL
""
)
set
(
Lua_FOUND TRUE CACHE INTERNAL
""
)
endif
(
Lua_LIBRARY
)
endif
(
NOT Lua_FOUND
)
if
(
Lua_FOUND
)
if
(
NOT Lua_FIND_QUIETLY
)
message
(
STATUS
"Found Lua in:
${
Lua_LIBRARIES
}
"
)
endif
(
NOT Lua_FIND_QUIETLY
)
else
(
Lua_FOUND
)
if
(
Lua_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find the library containing Lua"
)
endif
(
Lua_FIND_REQUIRED
)
endif
(
Lua_FOUND
)
mark_as_advanced
(
Lua_LIBRARIES
)
endif
(
NOT Lua_SEARCHED
)
extras/buildsystem/cmake/include/FindMatroska.cmake
deleted
100644 → 0
View file @
aa1868c7
# - Find library containing Matroska()
# The following variables are set if Matroska is found. If Matroska is not
# found, Matroska_FOUND is set to false.
# Matroska_FOUND - System has Matroska.
# Matroska_LIBRARIES - Link these to use Matroska.
# Matroska_CFLAGS - Link these to use Matroska.
if
(
NOT Matroska_SEARCHED
)
include
(
CheckLibraryExists
)
set
(
Matroska_SEARCHED TRUE CACHE INTERNAL
""
)
set
(
Matroska_FOUND FALSE CACHE INTERNAL
""
)
pkg_check_modules
(
matroska libmatroska
)
if
(
NOT Matroska_FOUND
)
set
(
Matroska_LIBRARIES
""
)
find_library
(
matroska_LIBRARY matroska
)
if
(
matroska_LIBRARY
)
set
(
Matroska_LIBRARIES
"
${
matroska_LIBRARY
}
"
)
set
(
Matroska_FOUND TRUE CACHE INTERNAL
""
)
endif
(
matroska_LIBRARY
)
foreach
(
library ebml ebml_pic
)
find_library
(
${
library
}
_LIBRARY
${
library
}
)
if
(
${
library
}
_LIBRARY
)
set
(
Matroska_LIBRARIES
"
${
library
}
;
${
Matroska_LIBRARIES
}
"
)
endif
(
${
library
}
_LIBRARY
)
endforeach
(
library
)
set
(
Matroska_LIBRARIES
"
${
Matroska_LIBRARIES
}
"
CACHE INTERNAL STRING
)
endif
(
NOT Matroska_FOUND
)
if
(
Matroska_FOUND
)
if
(
NOT Matroska_FIND_QUIETLY
)
message
(
STATUS
"Found Matroska in:
${
Matroska_LIBRARIES
}
"
)
endif
(
NOT Matroska_FIND_QUIETLY
)
else
(
Matroska_FOUND
)
if
(
Matroska_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find the library containing Matroska"
)
endif
(
Matroska_FIND_REQUIRED
)
endif
(
Matroska_FOUND
)
mark_as_advanced
(
Matroska_LIBRARIES
)
endif
(
NOT Matroska_SEARCHED
)
extras/buildsystem/cmake/include/FindMpeg2.cmake
deleted
100644 → 0
View file @
aa1868c7
# - Find library containing Mpeg2()
# The following variables are set if Mpeg2 is found. If Mpeg2 is not
# found, Mpeg2_FOUND is set to false.
# Mpeg2_FOUND - System has Mpeg2.
# Mpeg2_LIBRARIES - Link these to use Mpeg2.
# Mpeg2_CFLAGS - Link these to use Mpeg2.
if
(
NOT Mpeg2_SEARCHED
)
include
(
CheckLibraryExists
)
set
(
Mpeg2_SEARCHED TRUE CACHE INTERNAL
""
)
set
(
Mpeg2_FOUND FALSE CACHE INTERNAL
""
)
pkg_check_modules
(
Mpeg2 mpeg2
)
if
(
NOT Mpeg2_FOUND
)
find_library
(
Mpeg2_LIBRARY NAMES mpeg2
)
if
(
Mpeg2_LIBRARY
)
set
(
Mpeg2_LIBRARIES
"
${
Mpeg2_LIBRARY
}
"
CACHE INTERNAL
""
)
set
(
Mpeg2_FOUND TRUE CACHE INTERNAL
""
)
endif
(
Mpeg2_LIBRARY
)
endif
(
NOT Mpeg2_FOUND
)
if
(
Mpeg2_FOUND
)
if
(
NOT Mpeg2_FIND_QUIETLY
)
message
(
STATUS
"Found Mpeg2 in:
${
Mpeg2_LIBRARIES
}
"
)
endif
(
NOT Mpeg2_FIND_QUIETLY
)
else
(
Mpeg2_FOUND
)
if
(
Mpeg2_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find the library containing Mpeg2"
)
endif
(
Mpeg2_FIND_REQUIRED
)
endif
(
Mpeg2_FOUND
)
mark_as_advanced
(
Mpeg2_LIBRARIES
)
endif
(
NOT Mpeg2_SEARCHED
)
extras/buildsystem/cmake/include/FindTaglib.cmake
deleted
100644 → 0
View file @
aa1868c7
# - Find library containing Taglib()
# The following variables are set if Taglib is found. If Taglib is not
# found, Taglib_FOUND is set to false.
# Taglib_FOUND - System has Taglib.
# Taglib_LIBRARIES - Link these to use Taglib.
# Taglib_CFLAGS - Link these to use Taglib.
if
(
NOT Taglib_SEARCHED
)
include
(
CheckLibraryExists
)
set
(
Taglib_SEARCHED TRUE CACHE INTERNAL
""
)
set
(
Taglib_FOUND FALSE CACHE INTERNAL
""
)
pkg_check_modules
(
Taglib taglib
)
if
(
Taglib_FOUND
)
if
(
NOT Taglib_FIND_QUIETLY
)
message
(
STATUS
"Found Taglib in:
${
Taglib_LIBRARIES
}
"
)
endif
(
NOT Taglib_FIND_QUIETLY
)
else
(
Taglib_FOUND
)
if
(
Taglib_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find the library containing Taglib"
)
endif
(
Taglib_FIND_REQUIRED
)
endif
(
Taglib_FOUND
)
mark_as_advanced
(
Taglib_LIBRARIES
)
endif
(
NOT Taglib_SEARCHED
)
extras/buildsystem/cmake/include/config.cmake
deleted
100644 → 0
View file @
aa1868c7
This diff is collapsed.
Click to expand it.
extras/buildsystem/cmake/include/pkg_check_modules.cmake
deleted
100644 → 0
View file @
aa1868c7
This diff is collapsed.
Click to expand it.
extras/buildsystem/cmake/include/vlc_add_compile_flag.cmake
deleted
100644 → 0
View file @
aa1868c7
# - vlc_add_compile_flag(<_target> "flags...")
# From KDELibs
# Copyright (c) 2006, Oswald Buddenhagen, <ossi@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
MACRO
(
vlc_add_compile_flag _target _flg
)
GET_TARGET_PROPERTY
(
_flags
${
_target
}
COMPILE_FLAGS
)
if
(
_flags
)
set
(
_flags
"
${
_flags
}
${
_flg
}
"
)
else
(
_flags
)
set
(
_flags
"
${
_flg
}
"
)
endif
(
_flags
)
SET_TARGET_PROPERTIES
(
${
_target
}
PROPERTIES COMPILE_FLAGS
"
${
_flags
}
"
)
ENDMACRO
(
vlc_add_compile_flag
)
extras/buildsystem/cmake/include/vlc_check_functions_exist.cmake
deleted
100644 → 0
View file @
aa1868c7
include
(
CheckFunctionExists
)
MACRO
(
vlc_check_functions_exist functions
)
foreach
(
function
${
ARGV
}
)
# Construct the HAVE_ var
string
(
REGEX REPLACE
"[-./:;,?=+
\\
]"
"_"
function_escaped
${
function
}
)
string
(
TOUPPER
${
function_escaped
}
function_escaped
)
check_function_exists
(
${
function
}
HAVE_
${
function_escaped
}
)
endforeach
(
function
)
ENDMACRO
(
vlc_check_functions_exist
)
extras/buildsystem/cmake/include/vlc_check_include_files.cmake
deleted
100644 → 0
View file @
aa1868c7
include
(
CheckIncludeFiles
)
MACRO
(
vlc_check_include_files files
)
foreach
(
filepath
${
ARGV
}
)
# Construct the HAVE_ var
string
(
REGEX REPLACE
"[-./:;,?=+
\\
]"
"_"
filepath_escaped
${
filepath
}
)
string
(
TOUPPER
${
filepath_escaped
}
filepath_escaped
)
check_include_files
(
${
filepath
}
HAVE_
${
filepath_escaped
}
)
endforeach
(
filepath
)
ENDMACRO
(
vlc_check_include_files
)
extras/buildsystem/cmake/include/vlc_check_type.cmake
deleted
100644 → 0
View file @
aa1868c7
include
(
CheckTypeSize
)
MACRO
(
vlc_check_type type header
)
# Construct the HAVE_ var
string
(
REGEX REPLACE
"[ -./:;,?=+
\\
]"
"_"
type_escaped
${
type
}
)
string
(
TOUPPER
${
type_escaped
}
type_escaped
)
set
(
CMAKE_EXTRA_INCLUDE_FILES
${
header
}
)
check_type_size
(
${
type
}
HAVE_
${
type_escaped
}
)
set
(
CMAKE_EXTRA_INCLUDE_FILES
)
ENDMACRO
(
vlc_check_type
)
extras/buildsystem/cmake/include/vlc_find_frameworks.cmake
deleted
100644 → 0
View file @
aa1868c7
include
(
CMakeFindFrameworks
)
MACRO
(
vlc_find_frameworks frameworks
)
foreach
(
framework
${
ARGV
}
)
cmake_find_frameworks
(
${
framework
}
)
endforeach
(
framework
)
ENDMACRO
(
vlc_find_frameworks
)
\ No newline at end of file
extras/buildsystem/cmake/include/vlc_module_funcs.cmake
deleted
100644 → 0
View file @
aa1868c7
include
(
${
CMAKE_SOURCE_DIR
}
/cmake/vlc_add_compile_flag.cmake
)
MACRO
(
vlc_add_module module_name
)
if
(
ENABLE_VLC_MODULE_
${
module_name
}
)
add_library
(
${
module_name
}
_plugin MODULE
${
ARGN
}
)
if
(
NOT
${
ENABLE_NO_SYMBOL_CHECK
}
)
vlc_module_add_link_libraries
(
${
module_name
}
libvlc
)
endif
(
NOT
${
ENABLE_NO_SYMBOL_CHECK
}
)
vlc_get_module_compile_flags
(
compile_flags
${
module_name
}
)
set_target_properties
(
${
module_name
}
_plugin PROPERTIES COMPILE_FLAGS
"
${
compile_flags
}
"
)
set_target_properties
(
${
module_name
}
_plugin PROPERTIES LINK_FLAGS
"
${
VLC_
${
module_name
}
_LINK_FLAGS
}
"
)
if
(
VLC_
${
module_name
}
_LINK_LIBRARIES
)
target_link_libraries
(
${
module_name
}
_plugin
${
VLC_
${
module_name
}
_LINK_LIBRARIES
}
)
endif
(
VLC_
${
module_name
}
_LINK_LIBRARIES
)
install_targets
(
/modules
${
module_name
}
_plugin
)
endif
(
ENABLE_VLC_MODULE_
${
module_name
}
)
ENDMACRO
(
vlc_add_module
)
MACRO
(
vlc_get_module_compile_flags var module_name
)
set
(
${
var
}
"-D__PLUGIN__ -DMODULE_STRING=
\\\"
${
module_name
}
\\\"
-DMODULE_NAME_IS_
${
module_name
}
-I
${
CMAKE_CURRENT_SOURCE_DIR
}
${
VLC_
${
module_name
}
_COMPILE_FLAG
}
"
)
ENDMACRO
(
vlc_get_module_compile_flags
)
MACRO
(
vlc_register_modules module_state
)
foreach
(
module_name
${
ARGN
}
)
set
(
STATE module_state
)
if
(
STATE
)
set
(
VLC_ENABLED_MODULES_LIST
${
VLC_ENABLED_MODULES_LIST
}
${
module_name
}
_plugin
)
else
(
STATE
)
endif
(
STATE
)
OPTION
(
ENABLE_VLC_MODULE_
${
module_name
}
"Enable the
${
module_name
}
module"
${
module_state
}
)
endforeach
(
module_name
)
ENDMACRO
(
vlc_register_modules
)
MACRO
(
vlc_enable_modules module_names
)
vlc_register_modules
(
ON
${
ARGV
}
)
ENDMACRO
(
vlc_enable_modules
)
MACRO
(
vlc_disable_modules module_names
)
vlc_register_modules
(
OFF
${
ARGV
}
)
ENDMACRO
(
vlc_disable_modules
)
MACRO
(
vlc_set_module_properties module_name
)
set_target_properties
(
${
module_name
}
_plugin
${
ARGN
}
)
ENDMACRO
(
vlc_set_module_properties
)
MACRO
(
vlc_module_add_link_flags module_name
)
set
(
VLC_
${
module_name
}
_LINK_FLAGS
${
VLC_
${
module_name
}
_LINK_FLAGS
}
${
ARGN
}
)
ENDMACRO
(
vlc_module_add_link_flags
)
MACRO
(
vlc_module_add_link_libraries module_name
)
set
(
VLC_
${
module_name
}
_LINK_LIBRARIES
${
VLC_
${
module_name
}
_LINK_LIBRARIES
}
${
ARGN
}
)
ENDMACRO
(
vlc_module_add_link_libraries
)
MACRO
(
vlc_add_module_compile_flag module_name
)
set
(
VLC_
${
module_name
}
_COMPILE_FLAG
${
VLC_
${
module_name
}
_COMPILE_FLAG
}
${
ARGN
}
)
ENDMACRO
(
vlc_add_module_compile_flag
)
extras/buildsystem/cmake/include/vlc_test_inline.cmake
deleted
100644 → 0
View file @
aa1868c7
# This handy test is from Jack Kelly on the cmake email list.
# Here is a minimal working example. It tests the inline keyword,
# then __inline__ and then __inline. When it finds one that works,
# it will ADD_DEFINITIONS(-Dinline=${KEYWORD}) and if none work, it
# will ADD_DEFINITIONS(-Dinline=).
# Inspired from /usr/share/autoconf/autoconf/c.m4
include
(
CheckCSourceCompiles
)
FOREACH
(
KEYWORD
"inline"
"__inline__"
"__inline"
)
IF
(
NOT DEFINED C_INLINE
)
check_c_source_compiles
(
"typedef int foo_t; static inline foo_t static_foo(){return 0;}
foo_t foo(){return 0;} int main(int argc, char *argv[]){return 0;}"
C_HAS_
${
KEYWORD
}
)
IF
(
C_HAS_
${
KEYWORD
}
)
SET
(
C_INLINE TRUE
)
ADD_DEFINITIONS
(
"-Dinline=
${
KEYWORD
}
"
)
ENDIF
(
C_HAS_
${
KEYWORD
}
)
ENDIF
(
NOT DEFINED C_INLINE
)
ENDFOREACH
(
KEYWORD
)
IF
(
NOT DEFINED C_INLINE
)
ADD_DEFINITIONS
(
"-Dinline="
)
ENDIF
(
NOT DEFINED C_INLINE
)
extras/buildsystem/cmake/scripts/convert_modules_to_cmake.sh
deleted
100755 → 0
View file @
aa1868c7
#!/bin/sh
echo
"Searching
$1
"
for
file
in
`
find
$1
-name
"Modules.am"
`
;
do
cmake_file
=
`
dirname
$file
`
/CMakeLists.txt
echo
"Creating
$cmake_file
"
cat
$file
| perl
-ne
's/\\\n/ /g; print'
|
sed
-n
-e
"s/^SOURCES_
\(
[^
\
]*
\)
[ ]*=
\(
.*
\)
$/
vlc_add_module(
\1
\2
)/p"
|
tr
'\t'
' '
|
sed
's/ */ /g'
|
sed
's/\$(NULL)//g'
>
$cmake_file
dir
=
`
dirname
$file
`
echo
""
>>
$cmake_file
for
subdirfile
in
`
find
$dir
-name
"Modules.am"
`
;
do
if
[
"
$subdirfile
"
!=
"
$file
"
]
;
then
subdir
=
`
echo
\`
dirname
$subdirfile
\`
|
sed
-e
"s:
$dir
::"
|
sed
-e
"s:^/::"
`
echo
"add_subdirectory(
$subdir
)"
>>
$cmake_file
fi
done
done
extras/buildsystem/cmake/scripts/convert_vlc_to_cmake.sh
deleted
100755 → 0
View file @
aa1868c7
#!/bin/sh
cmake_dir
=
extras/buildsystem/cmake
if
!
test
-e
configure.ac
then
echo
"***"
echo
"*** Error: You must run that script from the root vlc source tree"
echo
"***"
exit
-1
fi
echo
"Installing CMakeLists.txt"
rm
-f
CMakeLists.txt
ln
-sf
$cmake_dir
/CMakeLists/root_CMakeLists.txt CMakeLists.txt
echo
"Installing src/CMakeLists.txt"
rm
-f
src/CMakeLists.txt
ln
-sf
../
$cmake_dir
/CMakeLists/src_CMakeLists.txt src/CMakeLists.txt
echo
"Removing old modules/gui/qt4/CMakeLists.txt"
rm
-f
modules/gui/qt4/CMakeLists.txt
echo
"Installing libs/loader/CMakeLists.txt"
rm
-f
libs/loader/CMakeLists.txt
ln
-s
../../
$cmake_dir
/CMakeLists/libs_loaders_CMakeLists.txt libs/loader/CMakeLists.txt
echo
"Installing modules/CMakeLists.txt"
rm
-f
modules/CMakeLists.txt
ln
-s
../
$cmake_dir
/CMakeLists/modules_CMakeLists.txt modules/CMakeLists.txt
echo
"Installing po/CMakeLists.txt"
rm
-f
po/CMakeLists.txt
ln
-s
../
$cmake_dir
/CMakeLists/po_CMakeLists.txt po/CMakeLists.txt
echo
"installing test/CMakeLists.txt"
rm
-f
test
/CMakeLists.txt
ln
-sf
../
$cmake_dir
/CMakeLists/test_CMakeLists.txt
test
/CMakeLists.txt
echo
"installing include/config.h.cmake"
rm
-f
include/config.h.cmake
ln
-sf
../
$cmake_dir
/config.h.cmake include/config.h.cmake
echo
"Installing cmake/"
rm
-f
cmake
ln
-sf
$cmake_dir
/include cmake
echo
"Generating CMakeLists for modules/"
sh
$cmake_dir
/scripts/convert_modules_to_cmake.sh modules
echo
"Installing modules/gui/qt4/CMakeLists.txt"
rm
-f
modules/gui/qt4/CMakeLists.txt
ln
-sf
../../../
$cmake_dir
/CMakeLists/qt4_CMakeLists.txt modules/gui/qt4/CMakeLists.txt
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment