Get zlib, libxml2 and iconv all from Conan.
This commit is contained in:
parent
5b475476ba
commit
3afd9f3266
12
.travis.yml
12
.travis.yml
|
@ -9,17 +9,21 @@ matrix:
|
||||||
- APP_NAME="FBX2glTF-linux-x64"
|
- APP_NAME="FBX2glTF-linux-x64"
|
||||||
- CONAN_CONFIG="-s compiler.libcxx=libstdc++11"
|
- CONAN_CONFIG="-s compiler.libcxx=libstdc++11"
|
||||||
- FBXSDK_TARBALL="https://github.com/zellski/FBXSDK-Linux/archive/2019.2.tar.gz"
|
- FBXSDK_TARBALL="https://github.com/zellski/FBXSDK-Linux/archive/2019.2.tar.gz"
|
||||||
|
- TAR_WILDCARDS="--wildcards"
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode10.2
|
osx_image: xcode10.2
|
||||||
env:
|
env:
|
||||||
- APP_NAME="FBX2glTF-darwin-x64"
|
- APP_NAME="FBX2glTF-darwin-x64"
|
||||||
- CONAN_CONFIG="-s compiler=apple-clang -s compiler.version=10.0 -s compiler.libcxx=libc++"
|
- CONAN_CONFIG="-s compiler=apple-clang -s compiler.version=10.0 -s compiler.libcxx=libc++"
|
||||||
- FBXSDK_TARBALL="https://github.com/zellski/FBXSDK-Darwin/archive/2019.2.tar.gz"
|
- FBXSDK_TARBALL="https://github.com/zellski/FBXSDK-Darwin/archive/2019.2.tar.gz"
|
||||||
|
- TAR_WILDCARDS=""
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
language: generic
|
language: generic
|
||||||
cache:
|
|
||||||
directories:
|
#disabled for now
|
||||||
- ${HOME}/.conan
|
#cache:
|
||||||
|
# directories:
|
||||||
|
# - ${HOME}/.conan
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
@ -28,7 +32,7 @@ addons:
|
||||||
packages: zstd
|
packages: zstd
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- curl -sL "${FBXSDK_TARBALL}" | tar xz --strip-components=1 --wildcards */sdk
|
- curl -sL "${FBXSDK_TARBALL}" | tar xz --strip-components=1 ${TAR_WILDCARDS} */sdk
|
||||||
- zstd -d -r --rm sdk
|
- zstd -d -r --rm sdk
|
||||||
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
|
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
|
||||||
- source ci-helpers/travis/setup_conda.sh
|
- source ci-helpers/travis/setup_conda.sh
|
||||||
|
|
|
@ -41,14 +41,16 @@ include("${CMAKE_BINARY_DIR}/conan_paths.cmake")
|
||||||
|
|
||||||
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
find_package(Iconv QUIET)
|
|
||||||
|
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_BINARY_DIR}")
|
||||||
|
|
||||||
# stuff we get from Conan
|
# stuff we get from Conan
|
||||||
find_package(boost_filesystem REQUIRED)
|
find_package(boost_filesystem MODULE REQUIRED)
|
||||||
find_package(boost_optional REQUIRED)
|
find_package(boost_optional MODULE REQUIRED)
|
||||||
find_package(libxml2 REQUIRED)
|
find_package(libxml2 MODULE REQUIRED)
|
||||||
find_package(zlib REQUIRED)
|
find_package(zlib MODULE REQUIRED)
|
||||||
find_package(fmt REQUIRED)
|
find_package(fmt MODULE REQUIRED)
|
||||||
|
find_package(libiconv MODULE REQUIRED)
|
||||||
|
|
||||||
# create a compilation database for e.g. clang-tidy
|
# create a compilation database for e.g. clang-tidy
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
@ -202,12 +204,13 @@ target_link_libraries(libFBX2glTF
|
||||||
${FRAMEWORKS}
|
${FRAMEWORKS}
|
||||||
boost_filesystem::boost_filesystem
|
boost_filesystem::boost_filesystem
|
||||||
boost_optional::boost_optional
|
boost_optional::boost_optional
|
||||||
fmt::fmt
|
|
||||||
libxml2::libxml2
|
|
||||||
zlib::zlib
|
|
||||||
${DRACO_LIB}
|
${DRACO_LIB}
|
||||||
optimized ${FBXSDK_LIBRARY}
|
optimized ${FBXSDK_LIBRARY}
|
||||||
debug ${FBXSDK_LIBRARY_DEBUG}
|
debug ${FBXSDK_LIBRARY_DEBUG}
|
||||||
|
fmt::fmt
|
||||||
|
libxml2::libxml2
|
||||||
|
zlib::zlib
|
||||||
|
libiconv::libiconv
|
||||||
${CMAKE_DL_LIBS}
|
${CMAKE_DL_LIBS}
|
||||||
${CMAKE_THREAD_LIBS_INIT}
|
${CMAKE_THREAD_LIBS_INIT}
|
||||||
)
|
)
|
||||||
|
@ -219,6 +222,7 @@ target_include_directories(libFBX2glTF PUBLIC
|
||||||
fmt::fmt
|
fmt::fmt
|
||||||
libxml2::libxml2
|
libxml2::libxml2
|
||||||
zlib::zlib
|
zlib::zlib
|
||||||
|
libiconv::libiconv
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(libFBX2glTF SYSTEM PUBLIC
|
target_include_directories(libFBX2glTF SYSTEM PUBLIC
|
||||||
|
@ -231,11 +235,6 @@ target_include_directories(libFBX2glTF SYSTEM PUBLIC
|
||||||
${CPPCODEC_INCLUDE_DIR}
|
${CPPCODEC_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (Iconv_FOUND)
|
|
||||||
target_link_libraries(libFBX2glTF Iconv::Iconv)
|
|
||||||
target_include_directories(libFBX2glTF SYSTEM PUBLIC Iconv::Iconv)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
target_include_directories(appFBX2glTF PUBLIC
|
target_include_directories(appFBX2glTF PUBLIC
|
||||||
"third_party/CLI11"
|
"third_party/CLI11"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,8 +9,9 @@ environment:
|
||||||
|
|
||||||
stack: python %PYTHON%
|
stack: python %PYTHON%
|
||||||
|
|
||||||
cache:
|
#temporarily disabled
|
||||||
- C:\Users\appveyor\.conan\data -> appveyor.yml, conanfile.py
|
#cache:
|
||||||
|
# - C:\Users\appveyor\.conan\data -> appveyor.yml, conanfile.py
|
||||||
|
|
||||||
init:
|
init:
|
||||||
- git config --global filter.lfs.required false
|
- git config --global filter.lfs.required false
|
||||||
|
|
|
@ -10,6 +10,7 @@ class FBX2glTFConan(ConanFile):
|
||||||
settings = "os", "compiler", "build_type", "arch"
|
settings = "os", "compiler", "build_type", "arch"
|
||||||
requires = (
|
requires = (
|
||||||
("boost_filesystem/1.69.0@bincrafters/stable"),
|
("boost_filesystem/1.69.0@bincrafters/stable"),
|
||||||
|
("libiconv/1.15@bincrafters/stable"),
|
||||||
("zlib/1.2.11@conan/stable"),
|
("zlib/1.2.11@conan/stable"),
|
||||||
("libxml2/2.9.9@bincrafters/stable"),
|
("libxml2/2.9.9@bincrafters/stable"),
|
||||||
("fmt/5.3.0@bincrafters/stable"),
|
("fmt/5.3.0@bincrafters/stable"),
|
||||||
|
|
Loading…
Reference in New Issue