mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-25 16:23:46 +02:00
Make libzip Meson subproject use header files from the other Meson subprojects
This commit is contained in:
parent
77b7dda096
commit
cc52f2e332
3 changed files with 53 additions and 10 deletions
6
.github/workflows/autobuild.yml
vendored
6
.github/workflows/autobuild.yml
vendored
|
@ -351,7 +351,7 @@ jobs:
|
|||
- uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
msystem: mingw64
|
||||
install: base-devel git mingw-w64-x86_64-make mingw-w64-x86_64-cmake mingw-w64-x86_64-meson mingw-w64-x86_64-gcc
|
||||
install: base-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-meson mingw-w64-x86_64-cmake
|
||||
|
||||
- name: Build phase 2
|
||||
shell: msys2 {0}
|
||||
|
@ -427,7 +427,7 @@ jobs:
|
|||
echo 'Components: main universe' | sudo tee -a /etc/apt/sources.list.d/ubuntu.sources
|
||||
fi
|
||||
sudo apt update
|
||||
sudo apt install git build-essential make meson cmake -y
|
||||
sudo apt install git build-essential meson cmake -y
|
||||
if [ '${{ matrix.arch_mkxpz }}' != 'x86_64' ]
|
||||
then
|
||||
sudo apt install gcc-${{ matrix.arch_gcc }} g++-${{ matrix.arch_gcc }} -y
|
||||
|
@ -468,7 +468,7 @@ jobs:
|
|||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
brew install -q git make meson cmake
|
||||
brew install -q git meson cmake
|
||||
|
||||
- name: Build phase 2
|
||||
run: |
|
||||
|
|
|
@ -49,13 +49,6 @@ if get_option('retro') == true
|
|||
'ENABLE_LIB_ONLY': true,
|
||||
})
|
||||
|
||||
bzip2_options = cmake.subproject_options()
|
||||
bzip2_options.add_cmake_defines({
|
||||
'CMAKE_POSITION_INDEPENDENT_CODE': true,
|
||||
'ENABLE_STATIC_LIB': true,
|
||||
'ENABLE_LIB_ONLY': true,
|
||||
})
|
||||
|
||||
lzma_options = cmake.subproject_options()
|
||||
lzma_options.add_cmake_defines({
|
||||
'CMAKE_POSITION_INDEPENDENT_CODE': true,
|
||||
|
|
|
@ -99,3 +99,53 @@ diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
|||
target_include_directories(zip
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/lib>
|
||||
diff --git a/lib/zip_algorithm_bzip2.c b/lib/zip_algorithm_bzip2.c
|
||||
--- a/lib/zip_algorithm_bzip2.c
|
||||
+++ b/lib/zip_algorithm_bzip2.c
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include "zipint.h"
|
||||
|
||||
-#include <bzlib.h>
|
||||
+#include "../../bzip2/bzlib.h"
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
diff --git a/lib/zip_algorithm_deflate.c b/lib/zip_algorithm_deflate.c
|
||||
--- a/lib/zip_algorithm_deflate.c
|
||||
+++ b/lib/zip_algorithm_deflate.c
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
-#include <zlib.h>
|
||||
+#include "../../zlib/zlib.h"
|
||||
|
||||
struct ctx {
|
||||
zip_error_t *error;
|
||||
diff --git a/lib/zip_algorithm_xz.c b/lib/zip_algorithm_xz.c
|
||||
--- a/lib/zip_algorithm_xz.c
|
||||
+++ b/lib/zip_algorithm_xz.c
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "zipint.h"
|
||||
|
||||
#include <limits.h>
|
||||
-#include <lzma.h>
|
||||
+#include "../../lzma/src/liblzma/api/lzma.h"
|
||||
#include <stdlib.h>
|
||||
#include <zlib.h>
|
||||
|
||||
diff --git a/lib/zip_algorithm_zstd.c b/lib/zip_algorithm_zstd.c
|
||||
--- a/lib/zip_algorithm_zstd.c
|
||||
+++ b/lib/zip_algorithm_zstd.c
|
||||
@@ -34,8 +34,8 @@
|
||||
#include "zipint.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
-#include <zstd.h>
|
||||
-#include <zstd_errors.h>
|
||||
+#include "../../zstd/lib/zstd.h"
|
||||
+#include "../../zstd/lib/zstd_errors.h"
|
||||
|
||||
struct ctx {
|
||||
zip_error_t *error;
|
||||
|
|
Loading…
Add table
Reference in a new issue