]> git.sesse.net Git - vlc/commitdiff
cmake: Support for libs/loader.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 31 Mar 2008 15:39:53 +0000 (17:39 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 31 Mar 2008 15:41:35 +0000 (17:41 +0200)
extras/buildsystem/cmake/CMakeLists/libs_loaders_CMakeLists.txt [new file with mode: 0644]
extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt
extras/buildsystem/cmake/include/config.cmake
extras/buildsystem/cmake/scripts/convert_vlc_to_cmake.sh

diff --git a/extras/buildsystem/cmake/CMakeLists/libs_loaders_CMakeLists.txt b/extras/buildsystem/cmake/CMakeLists/libs_loaders_CMakeLists.txt
new file mode 100644 (file)
index 0000000..560bf6f
--- /dev/null
@@ -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)
index 35f3e497f21ae6c8fa3a2fea80bc609d073ba32f..d752c1c8ac0583acb2145179fbf3239cb547ff9f 100644 (file)
@@ -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)
index 35cc80383713641f58308afb1090b204a9a4784a..64f2f69b475b06c9892f3e1a6be4c97099d4a4f4 100644 (file)
@@ -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)
 
index 47731762a0a589225be479286fe42b7141110b57..4cab1f72762d3560db07d7d36a42f7d5e9a7d5cd 100755 (executable)
@@ -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