Browse Source

cmake: Support for libs/loader.

pull/2/head
Pierre d'Herbemont 18 years ago
parent
commit
500894facc
  1. 14
      extras/buildsystem/cmake/CMakeLists/libs_loaders_CMakeLists.txt
  2. 1
      extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt
  3. 1
      extras/buildsystem/cmake/include/config.cmake
  4. 4
      extras/buildsystem/cmake/scripts/convert_vlc_to_cmake.sh

14
extras/buildsystem/cmake/CMakeLists/libs_loaders_CMakeLists.txt

@ -0,0 +1,14 @@
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)

1
extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt

@ -29,6 +29,7 @@ add_definitions(-D_GNU_SOURCE)
include_directories(${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include)
# our sources:
add_subdirectory(libs/loader)
add_subdirectory(src)
add_subdirectory(modules)
add_subdirectory(po)

1
extras/buildsystem/cmake/include/config.cmake

@ -20,6 +20,7 @@ OPTION( ENABLE_DYNAMIC_PLUGINS "Enable dynamic plugin" ON )
OPTION( UPDATE_CHECK "Enable automatic new version checking" OFF )
OPTION( ENABLE_NO_SYMBOL_CHECK "Don't check symbols of modules against libvlc. (Enabling this option speeds up compilation)" OFF )
OPTION( ENABLE_CONTRIB "Attempt to use VLC contrib system to get the third-party libraries" ON )
OPTION( ENABLE_LOADER "Enable the win32 codec loader" ON )
if(ENABLE_CONTRIB)

4
extras/buildsystem/cmake/scripts/convert_vlc_to_cmake.sh

@ -21,6 +21,10 @@ 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/loaders/CMakeLists.txt"
rm -f libs/loaders/CMakeLists.txt
ln -s ../$cmake_dir/CMakeLists/libs_loaders_CMakeLists.txt libs/loaders/CMakeLists.txt
echo "Installing modules/CMakeLists.txt"
rm -f modules/CMakeLists.txt
ln -s ../$cmake_dir/CMakeLists/modules_CMakeLists.txt modules/CMakeLists.txt

Loading…
Cancel
Save