Fix macOS build
This commit is contained in:
parent
13454ba688
commit
851ae281e6
3 changed files with 9 additions and 3 deletions
|
@ -27,7 +27,11 @@ endif()
|
||||||
# note: unshield does not work on windows per maintainer notice in README, so we might as well not even attempt to look
|
# note: unshield does not work on windows per maintainer notice in README, so we might as well not even attempt to look
|
||||||
# for it.
|
# for it.
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
set(LIBRARIES unshield ${LIBRARIES})
|
find_package(PkgConfig REQUIRED)
|
||||||
|
pkg_check_modules(libunshield REQUIRED libunshield)
|
||||||
|
|
||||||
|
set(LIBRARIES ${libunshield_LIBRARIES} ${LIBRARIES})
|
||||||
|
set(LIB_DIRS ${libunshield_LIBRARY_DIRS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(ZLIB QUIET)
|
find_package(ZLIB QUIET)
|
||||||
|
@ -68,5 +72,5 @@ add_library(libxiv STATIC
|
||||||
src/installextract.cpp
|
src/installextract.cpp
|
||||||
src/patch.cpp)
|
src/patch.cpp)
|
||||||
target_include_directories(libxiv PUBLIC include PRIVATE src)
|
target_include_directories(libxiv PUBLIC include PRIVATE src)
|
||||||
target_link_libraries(libxiv PUBLIC
|
target_link_libraries(libxiv PUBLIC ${LIBRARIES})
|
||||||
${LIBRARIES})
|
target_link_directories(libxiv PUBLIC ${LIB_DIRS})
|
|
@ -5,6 +5,7 @@
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
EXH readEXH(const std::string_view path) {
|
EXH readEXH(const std::string_view path) {
|
||||||
EXH exh;
|
EXH exh;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
void commonParseSqPack(FILE* file, IndexFile<T>& index) {
|
void commonParseSqPack(FILE* file, IndexFile<T>& index) {
|
||||||
|
|
Reference in a new issue