2019-04-13 15:11:19 +02:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2018-01-08 13:48:59+0100
|
|
|
|
|
|
|
|
Use LZMA system libraries instead of bundled code.
|
|
|
|
|
|
|
|
---
|
|
|
|
CMakeLists.txt | 4 ++--
|
|
|
|
src/CMakeLists.txt | 4 ++--
|
|
|
|
tools/zipdir/CMakeLists.txt | 4 ++--
|
|
|
|
3 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
|
2024-04-30 13:16:58 +02:00
|
|
|
Index: gzdoom-g4.12.2/CMakeLists.txt
|
2019-04-13 15:11:19 +02:00
|
|
|
===================================================================
|
2024-04-30 13:16:58 +02:00
|
|
|
--- gzdoom-g4.12.2.orig/CMakeLists.txt
|
|
|
|
+++ gzdoom-g4.12.2/CMakeLists.txt
|
2023-11-03 10:26:46 +01:00
|
|
|
@@ -50,6 +50,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
2019-04-13 15:11:19 +02:00
|
|
|
|
|
|
|
list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
|
|
|
|
include( FindPackageHandleStandardArgs )
|
|
|
|
+include(FindPkgConfig)
|
|
|
|
|
|
|
|
# Support cross compiling
|
|
|
|
option( FORCE_CROSSCOMPILE "Turn on cross compiling." NO )
|
2024-05-01 11:12:22 +02:00
|
|
|
@@ -397,7 +398,7 @@ else()
|
2022-06-16 18:39:07 +02:00
|
|
|
set( BZIP2_LIBRARY bz2 )
|
2019-04-13 15:11:19 +02:00
|
|
|
endif()
|
|
|
|
|
2019-08-23 15:14:20 +02:00
|
|
|
-set( LZMA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/lzma/C" )
|
2019-04-13 15:11:19 +02:00
|
|
|
+pkg_check_modules(LZMA REQUIRED clzma)
|
2020-06-10 21:09:37 +02:00
|
|
|
|
|
|
|
if( NOT CMAKE_CROSSCOMPILING )
|
|
|
|
if( NOT CROSS_EXPORTS )
|
2024-05-01 11:12:22 +02:00
|
|
|
@@ -417,7 +418,6 @@ install(DIRECTORY docs/
|
2020-06-10 21:09:37 +02:00
|
|
|
|
|
|
|
option( DYN_OPENAL "Dynamically load OpenAL" ON )
|
2019-04-13 15:11:19 +02:00
|
|
|
|
2019-08-23 15:14:20 +02:00
|
|
|
-add_subdirectory( libraries/lzma )
|
2019-04-13 15:11:19 +02:00
|
|
|
add_subdirectory( tools )
|
2020-06-10 21:09:37 +02:00
|
|
|
add_subdirectory( wadsrc )
|
2024-05-01 11:12:22 +02:00
|
|
|
add_subdirectory( wadsrc_bm )
|
2024-04-30 13:16:58 +02:00
|
|
|
Index: gzdoom-g4.12.2/src/CMakeLists.txt
|
2019-04-13 15:11:19 +02:00
|
|
|
===================================================================
|
2024-04-30 13:16:58 +02:00
|
|
|
--- gzdoom-g4.12.2.orig/src/CMakeLists.txt
|
|
|
|
+++ gzdoom-g4.12.2/src/CMakeLists.txt
|
|
|
|
@@ -383,7 +383,7 @@ else()
|
|
|
|
message( SEND_ERROR "Could not find libvpx" )
|
2019-04-13 15:11:19 +02:00
|
|
|
endif()
|
2022-06-16 18:39:07 +02:00
|
|
|
|
2024-05-01 11:12:22 +02:00
|
|
|
-include_directories( SYSTEM "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${ZMUSIC_INCLUDE_DIR}" "${DRPC_INCLUDE_DIR}")
|
|
|
|
+include_directories( SYSTEM "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" "${ZMUSIC_INCLUDE_DIR}" "${DRPC_INCLUDE_DIR}")
|
2019-04-13 15:11:19 +02:00
|
|
|
|
|
|
|
if( ${HAVE_VM_JIT} )
|
|
|
|
add_definitions( -DHAVE_VM_JIT )
|
2024-04-30 13:16:58 +02:00
|
|
|
@@ -1267,7 +1267,7 @@ if( UNIX )
|
2019-04-13 15:11:19 +02:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2023-11-03 10:26:46 +01:00
|
|
|
-target_link_libraries( zdoom ${PROJECT_LIBRARIES} lzma ${ZMUSIC_LIBRARIES} )
|
|
|
|
+target_link_libraries( zdoom ${PROJECT_LIBRARIES} ${LZMA_LIBRARIES} ${ZMUSIC_LIBRARIES} )
|
2019-04-13 15:11:19 +02:00
|
|
|
|
2023-11-03 10:26:46 +01:00
|
|
|
include_directories(
|
|
|
|
BEFORE
|
2024-04-30 13:16:58 +02:00
|
|
|
Index: gzdoom-g4.12.2/tools/zipdir/CMakeLists.txt
|
2019-04-13 15:11:19 +02:00
|
|
|
===================================================================
|
2024-04-30 13:16:58 +02:00
|
|
|
--- gzdoom-g4.12.2.orig/tools/zipdir/CMakeLists.txt
|
|
|
|
+++ gzdoom-g4.12.2/tools/zipdir/CMakeLists.txt
|
2019-04-13 15:11:19 +02:00
|
|
|
@@ -1,9 +1,9 @@
|
2023-11-03 10:26:46 +01:00
|
|
|
cmake_minimum_required( VERSION 3.16 )
|
2019-04-13 15:11:19 +02:00
|
|
|
|
|
|
|
if( NOT CMAKE_CROSSCOMPILING )
|
2024-05-01 11:12:22 +02:00
|
|
|
- include_directories( SYSTEM "${ZLIB_INCLUDE_DIR} ${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" )
|
|
|
|
+ include_directories( SYSTEM "${ZLIB_INCLUDE_DIR} ${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" )
|
2019-04-13 15:11:19 +02:00
|
|
|
add_executable( zipdir
|
|
|
|
zipdir.c )
|
2024-05-01 11:12:22 +02:00
|
|
|
- target_link_libraries( zipdir ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} lzma )
|
|
|
|
+ target_link_libraries( zipdir ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LZMA_LDFLAGS} )
|
2019-04-13 15:11:19 +02:00
|
|
|
set( CROSS_EXPORTS ${CROSS_EXPORTS} zipdir PARENT_SCOPE )
|
|
|
|
endif()
|