Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
40f635b6
Commit
40f635b6
authored
Feb 04, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: config.cmake cleanup.
parent
7bd7b3d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
31 deletions
+34
-31
extras/buildsystem/cmake/include/config.cmake
extras/buildsystem/cmake/include/config.cmake
+29
-30
extras/buildsystem/cmake/include/vlc_module_funcs.cmake
extras/buildsystem/cmake/include/vlc_module_funcs.cmake
+5
-1
No files found.
extras/buildsystem/cmake/include/config.cmake
View file @
40f635b6
...
@@ -11,6 +11,7 @@ include( ${CMAKE_SOURCE_DIR}/cmake/vlc_check_type.cmake )
...
@@ -11,6 +11,7 @@ include( ${CMAKE_SOURCE_DIR}/cmake/vlc_check_type.cmake )
include
(
${
CMAKE_SOURCE_DIR
}
/cmake/pkg_check_modules.cmake
)
include
(
${
CMAKE_SOURCE_DIR
}
/cmake/pkg_check_modules.cmake
)
###########################################################
###########################################################
# Headers checks
###########################################################
###########################################################
vlc_check_include_files
(
malloc.h stdbool.h locale.h
)
vlc_check_include_files
(
malloc.h stdbool.h locale.h
)
...
@@ -25,21 +26,8 @@ vlc_check_include_files (kernel/OS.h)
...
@@ -25,21 +26,8 @@ vlc_check_include_files (kernel/OS.h)
vlc_check_include_files
(
mach-o/dyld.h
)
vlc_check_include_files
(
mach-o/dyld.h
)
check_symbol_exists
(
ntohl
"sys/param.h"
NTOHL_IN_SYS_PARAM_H
)
check_symbol_exists
(
scandir
"dirent.h"
HAVE_SCANDIR
)
check_symbol_exists
(
scandir
"dirent.h"
HAVE_SCANDIR
)
check_symbol_exists
(
localtime_r
"time.h"
HAVE_LOCALTIME_R
)
check_symbol_exists
(
getnameinfo
"sys/types.h;sys/socket.h;netdb.h"
HAVE_GETNAMEINFO
)
check_symbol_exists
(
getaddrinfo
"sys/types.h;sys/socket.h;netdb.h"
HAVE_GETADDRINFO
)
if
(
NOT HAVE_GETADDRINFO
)
check_library_exists
(
getaddrinfo nsl
""
HAVE_GETADDRINFO
)
endif
(
NOT HAVE_GETADDRINFO
)
find_library
(
HAVE_ICONV iconv
)
set
(
ICONV_CONST
" "
)
###########################################################
###########################################################
# Functions/structures checks
###########################################################
###########################################################
set
(
CMAKE_EXTRA_INCLUDE_FILES string.h
)
set
(
CMAKE_EXTRA_INCLUDE_FILES string.h
)
...
@@ -63,26 +51,31 @@ check_c_source_compiles(
...
@@ -63,26 +51,31 @@ check_c_source_compiles(
int main() { char* cs = nl_langinfo(CODESET); }"
int main() { char* cs = nl_langinfo(CODESET); }"
HAVE_LANGINFO_CODESET
)
HAVE_LANGINFO_CODESET
)
###########################################################
###########################################################
vlc_check_type
(
"struct addrinfo"
"sys/socket.h;netdb.h"
)
vlc_check_type
(
"struct addrinfo"
"sys/socket.h;netdb.h"
)
if
(
HAVE_STRUCT_ADDRINFO
)
if
(
HAVE_STRUCT_ADDRINFO
)
set
(
HAVE_ADDRINFO ON
)
set
(
HAVE_ADDRINFO ON
)
endif
(
HAVE_STRUCT_ADDRINFO
)
endif
(
HAVE_STRUCT_ADDRINFO
)
vlc_check_type
(
"struct timespec"
"time.h"
)
vlc_check_type
(
"struct timespec"
"time.h"
)
###########################################################
#include (CheckVariableExists)
###########################################################
###########################################################
###########################################################
check_c_source_compiles
(
check_c_source_compiles
(
"#include <stdint.h>
\n
#ifdef UINTMAX
\n
#error no uintmax
"#include <stdint.h>
\n
#ifdef UINTMAX
\n
#error no uintmax
#endif
#endif
int main() { return 0;}"
HAVE_STDINT_H_WITH_UINTMAX
)
int main() { return 0;}"
HAVE_STDINT_H_WITH_UINTMAX
)
check_symbol_exists
(
ntohl
"sys/param.h"
NTOHL_IN_SYS_PARAM_H
)
check_symbol_exists
(
scandir
"dirent.h"
HAVE_SCANDIR
)
check_symbol_exists
(
scandir
"dirent.h"
HAVE_SCANDIR
)
check_symbol_exists
(
localtime_r
"time.h"
HAVE_LOCALTIME_R
)
check_symbol_exists
(
getnameinfo
"sys/types.h;sys/socket.h;netdb.h"
HAVE_GETNAMEINFO
)
check_symbol_exists
(
getaddrinfo
"sys/types.h;sys/socket.h;netdb.h"
HAVE_GETADDRINFO
)
if
(
NOT HAVE_GETADDRINFO
)
check_library_exists
(
getaddrinfo nsl
""
HAVE_GETADDRINFO
)
endif
(
NOT HAVE_GETADDRINFO
)
find_library
(
HAVE_ICONV iconv
)
set
(
ICONV_CONST
" "
)
###########################################################
###########################################################
# Other check
# Other check
###########################################################
###########################################################
...
@@ -198,9 +191,6 @@ vlc_enable_modules(packetizer_mpeg4video packetizer_mpeg4audio)
...
@@ -198,9 +191,6 @@ vlc_enable_modules(packetizer_mpeg4video packetizer_mpeg4audio)
vlc_enable_modules
(
packetizer_vc1
)
vlc_enable_modules
(
packetizer_vc1
)
vlc_enable_modules
(
spatializer
)
vlc_enable_modules
(
spatializer
)
vlc_disable_modules
(
asf
)
# This module will be disabled but listed in options
if
(
NOT mingwce
)
if
(
NOT mingwce
)
set
(
enabled ON
)
set
(
enabled ON
)
endif
(
NOT mingwce
)
endif
(
NOT mingwce
)
...
@@ -215,17 +205,26 @@ vlc_register_modules(${enabled} converter_float a52tospdif dtstospdif audio_form
...
@@ -215,17 +205,26 @@ vlc_register_modules(${enabled} converter_float a52tospdif dtstospdif audio_form
set
(
enabled
)
set
(
enabled
)
if
(
NOT WIN32
)
if
(
NOT WIN32
)
vlc_
register_modules
(
${
enabled
}
screensaver motion
)
vlc_
enable_modules
(
screensaver
)
endif
(
NOT WIN32
)
endif
(
NOT WIN32
)
# Following modules will be disabled but listed in options
vlc_disable_modules
(
asf
)
# vlc_disable_module()
# This module is disabled because the CMakeList.txt which
# is generated isn't correct. We'll put that back
# when cmake will be accepted as default build system
vlc_disable_modules
(
motion
)
###########################################################
# libraries
###########################################################
pkg_check_modules
(
LIBCDDB libcddb>=0.9.5
)
pkg_check_modules
(
LIBCDDB libcddb>=0.9.5
)
if
(
${
LIBCDDB_FOUND
}
)
if
(
${
LIBCDDB_FOUND
}
)
#vlc_add_library
(cdda ${LIBCDDB_LIBRARIES})
vlc_module_add_link_libraries
(
cdda
${
LIBCDDB_LIBRARIES
}
)
vlc_add_compile_flag
(
cdda
${
LIBCDDB_CFLAGS
}
)
vlc_add_
module_
compile_flag
(
cdda
${
LIBCDDB_CFLAGS
}
)
endif
(
${
LIBCDDB_FOUND
}
)
endif
(
${
LIBCDDB_FOUND
}
)
set
(
MODULES_CFLAGS,
"-std=c99"
)
set
(
MODULES_CFLAGS,
"-std=c99"
)
...
...
extras/buildsystem/cmake/include/vlc_module_funcs.cmake
View file @
40f635b6
...
@@ -8,7 +8,7 @@ MACRO(vlc_add_module module_name)
...
@@ -8,7 +8,7 @@ MACRO(vlc_add_module module_name)
set
(
VLC_
${
module_name
}
_LINK_LIBRARIES
"VLC_
${
module_name
}
_LINK_LIBRARIES libvlc"
)
set
(
VLC_
${
module_name
}
_LINK_LIBRARIES
"VLC_
${
module_name
}
_LINK_LIBRARIES libvlc"
)
endif
(
WIN32
)
endif
(
WIN32
)
set_target_properties
(
vlc_
${
module_name
}
PROPERTIES COMPILE_FLAGS
set_target_properties
(
vlc_
${
module_name
}
PROPERTIES COMPILE_FLAGS
"-D__PLUGIN__ -DMODULE_NAME=
${
module_name
}
-DMODULE_NAME_IS_
${
module_name
}
-I
${
CMAKE_CURRENT_SOURCE_DIR
}
"
)
"-D__PLUGIN__ -DMODULE_NAME=
${
module_name
}
-DMODULE_NAME_IS_
${
module_name
}
-I
${
CMAKE_CURRENT_SOURCE_DIR
}
${
VLC_
${
module_name
}
_COMPILE_FLAG
}
"
)
if
(
VLC_
${
module_name
}
_LINK_LIBRARIES
)
if
(
VLC_
${
module_name
}
_LINK_LIBRARIES
)
target_link_libraries
(
vlc_
${
module_name
}
${
VLC_
${
module_name
}
_LINK_LIBRARIES
}
)
target_link_libraries
(
vlc_
${
module_name
}
${
VLC_
${
module_name
}
_LINK_LIBRARIES
}
)
endif
(
VLC_
${
module_name
}
_LINK_LIBRARIES
)
endif
(
VLC_
${
module_name
}
_LINK_LIBRARIES
)
...
@@ -41,3 +41,7 @@ MACRO(vlc_module_add_link_libraries module_name)
...
@@ -41,3 +41,7 @@ MACRO(vlc_module_add_link_libraries module_name)
set
(
VLC_
${
module_name
}
_LINK_LIBRARIES
${
VLC_
${
module_name
}
_LINK_LIBRARIES
}
${
ARGN
}
)
set
(
VLC_
${
module_name
}
_LINK_LIBRARIES
${
VLC_
${
module_name
}
_LINK_LIBRARIES
}
${
ARGN
}
)
ENDMACRO
(
vlc_module_add_link_libraries
)
ENDMACRO
(
vlc_module_add_link_libraries
)
MACRO
(
vlc_add_module_compile_flag module_name
)
set
(
VLC_
${
module_name
}
_COMPILE_FLAG
${
VLC_
${
module_name
}
_LINK_LIBRARIES
}
${
ARGN
}
)
ENDMACRO
(
vlc_add_module_compile_flag
)
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