--- /dev/null
+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)
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)
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)
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