Commit 500894fa authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

cmake: Support for libs/loader.

parent f51de264
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)
......@@ -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)
......
......@@ -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)
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment