Changeset 65f35e28ead51530840e0c4b488a8b219a019fe7
- Timestamp:
- 01/06/08 20:32:25
(4 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1212345145 +0200
- git-parent:
[7d218020ad0516530bcd6a3b3c18998bdf024a1b]
- git-author:
- Rafaël Carré <funman@videolan.org> 1212345145 +0200
- Message:
Fix various bugs / missing checks for cmake
Add ENABLE_NLS define, and make po files optional
Update source files to latest modifications
Add missing function checks
Define QT4LOCALEDIR
Require ncurses (I will submit a patch to cmake to check for ncursesw)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r025edf9 |
r65f35e2 |
|
| 36 | 36 | add_subdirectory(src) |
|---|
| 37 | 37 | add_subdirectory(modules) |
|---|
| 38 | | add_subdirectory(po) |
|---|
| | 38 | if(ENABLE_NLS) |
|---|
| | 39 | add_subdirectory(po) |
|---|
| | 40 | endif(ENABLE_NLS) |
|---|
| 39 | 41 | add_subdirectory(test) |
|---|
| 40 | 42 | |
|---|
| r85f5092 |
r65f35e2 |
|
| 7 | 7 | |
|---|
| 8 | 8 | # vlc |
|---|
| 9 | | add_executable(vlc vlc.c) |
|---|
| | 9 | if(SYS_WIN32) |
|---|
| | 10 | add_executable(vlc winvlc.c) |
|---|
| | 11 | else(SYS_WIN32) |
|---|
| | 12 | add_executable(vlc vlc.c) |
|---|
| | 13 | endif(SYS_WIN32) |
|---|
| 10 | 14 | target_link_libraries(vlc libvlccore libvlc) |
|---|
| 11 | 15 | |
|---|
| … | … | |
| 21 | 25 | set( SOURCES_libvlccore_common |
|---|
| 22 | 26 | libvlc.c |
|---|
| 23 | | libvlc-common.c |
|---|
| 24 | 27 | libvlc.h |
|---|
| 25 | 28 | libvlc-module.c |
|---|
| … | … | |
| 108 | 111 | config/configuration.h |
|---|
| 109 | 112 | config/core.c |
|---|
| | 113 | config/dirs.c |
|---|
| 110 | 114 | config/chain.c |
|---|
| 111 | 115 | config/file.c |
|---|
| … | … | |
| 126 | 130 | misc/xml.c |
|---|
| 127 | 131 | misc/devices.c |
|---|
| | 132 | version.c |
|---|
| 128 | 133 | extras/libc.c |
|---|
| 129 | 134 | ${CMAKE_BINARY_DIR}/include/vlc_about.h ) |
|---|
| rfb12085 |
r65f35e2 |
|
| 287 | 287 | #cmakedefine HAVE_UNSIGNED_LONG_LONG |
|---|
| 288 | 288 | #cmakedefine HAVE_UNSIGNED_LONG_LONG_INT |
|---|
| | 289 | #cmakedefine HAVE_USELOCALE |
|---|
| 289 | 290 | #cmakedefine HAVE_VASPRINTF |
|---|
| 290 | 291 | #cmakedefine HAVE_VA_COPY |
|---|
| rbf52311 |
r65f35e2 |
|
| 21 | 21 | OPTION( ENABLE_NO_SYMBOL_CHECK "Don't check symbols of modules against libvlc. (Enabling this option speeds up compilation)" OFF ) |
|---|
| 22 | 22 | OPTION( ENABLE_CONTRIB "Attempt to use VLC contrib system to get the third-party libraries" ON ) |
|---|
| 23 | | OPTION( ENABLE_LOADER "Enable the win32 codec loader" ON ) |
|---|
| | 23 | OPTION( ENABLE_LOADER "Enable the win32 codec loader" OFF ) |
|---|
| | 24 | OPTION( ENABLE_NLS "Enable translation of the program's messages" ON) |
|---|
| 24 | 25 | |
|---|
| 25 | 26 | if(ENABLE_CONTRIB) |
|---|
| … | … | |
| 72 | 73 | |
|---|
| 73 | 74 | set(PACKAGE "vlc") |
|---|
| | 75 | set(PACKAGE_NAME "vlc") #for gettext |
|---|
| 74 | 76 | set(PACKAGE_VERSION "${VLC_VERSION}") |
|---|
| 75 | 77 | set(PACKAGE_STRING "vlc") |
|---|
| … | … | |
| 135 | 137 | set(CMAKE_REQUIRED_LIBRARIES c) |
|---|
| 136 | 138 | set(CMAKE_EXTRA_INCLUDE_FILES string.h) |
|---|
| 137 | | vlc_check_functions_exist(strcpy strcasecmp) |
|---|
| 138 | | vlc_check_functions_exist(strcasestr strdup) |
|---|
| | 139 | vlc_check_functions_exist(strcpy strcasecmp strncasecmp) |
|---|
| | 140 | vlc_check_functions_exist(strcasestr stristr strdup) |
|---|
| 139 | 141 | vlc_check_functions_exist(strndup stricmp strnicmp) |
|---|
| 140 | 142 | vlc_check_functions_exist(atof strtoll atoll lldiv) |
|---|
| … | … | |
| 176 | 178 | set(CMAKE_EXTRA_INCLUDE_FILES sys/mman.h) |
|---|
| 177 | 179 | vlc_check_functions_exist(mmap) |
|---|
| | 180 | set(CMAKE_EXTRA_INCLUDE_FILES) |
|---|
| | 181 | |
|---|
| | 182 | set(CMAKE_EXTRA_INCLUDE_FILES locale.h) |
|---|
| | 183 | vlc_check_functions_exist(uselocale) |
|---|
| 178 | 184 | set(CMAKE_EXTRA_INCLUDE_FILES) |
|---|
| 179 | 185 | |
|---|
| … | … | |
| 504 | 510 | vlc_check_include_files (qt.h) |
|---|
| 505 | 511 | vlc_enable_modules(qt4) |
|---|
| 506 | | vlc_add_module_compile_flag(qt4 ${QT_CFLAGS} ) |
|---|
| | 512 | #execute_process leaves the trailing newline appended to the variable, unlike exec_program |
|---|
| | 513 | #execute_process( COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=prefix QtCore OUTPUT_VARIABLE QT4LOCALEDIR) |
|---|
| | 514 | exec_program( ${PKG_CONFIG_EXECUTABLE} ARGS --variable=prefix QtCore OUTPUT_VARIABLE QT4LOCALEDIR) |
|---|
| | 515 | set(QT4LOCALEDIR ${QT4LOCALEDIR}/share/qt4/translations ) |
|---|
| | 516 | vlc_add_module_compile_flag(qt4 ${QT_CFLAGS}) |
|---|
| | 517 | vlc_add_module_compile_flag(qt4 -DQT4LOCALEDIR=\\\\"${QT4LOCALEDIR}\\\\" ) |
|---|
| 507 | 518 | vlc_module_add_link_libraries(qt4 ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}) |
|---|
| 508 | 519 | |
|---|
| … | … | |
| 568 | 579 | endif(Live555_FOUND) |
|---|
| 569 | 580 | |
|---|
| | 581 | set(CURSES_NEED_NCURSES TRUE) |
|---|
| 570 | 582 | find_package(Curses) |
|---|
| 571 | 583 | if(CURSES_LIBRARIES) |
|---|