mirror of
https://github.com/godotengine/FBX2glTF.git
synced 2025-12-31 21:48:37 +03:00
These updates fix building the project on my up to date Linux box due to missing cstdint headers on the older Draco versions it was pinned to, and bumps Conan 1.x to the latest semver-compatible release, which also introduces support for newer GCC compilers. While at it, I've also bumped the GitHub Actions checkout version tag to v4, from v3, and the runner image versions. The Ubuntu runner version was purposefully not updated to avoid the risk of making binaries less portable than before due to a bump in the `glibc` version that the compiler will link to.
34 lines
862 B
Python
34 lines
862 B
Python
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
|
|
#
|
|
|
|
import os
|
|
|
|
from conans import ConanFile, CMake
|
|
|
|
|
|
class FBX2glTFConan(ConanFile):
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
requires = (
|
|
"boost/1.84.0",
|
|
"libiconv/1.17",
|
|
"zlib/1.3.1",
|
|
"libxml2/2.12.5",
|
|
"fmt/5.3.0",
|
|
)
|
|
generators = "cmake_find_package", "cmake_paths"
|
|
|
|
def configure(self):
|
|
if (
|
|
self.settings.compiler == "gcc"
|
|
and self.settings.compiler.libcxx == "libstdc++"
|
|
):
|
|
raise Exception(
|
|
"Rerun 'conan install' with argument: '-s compiler.libcxx=libstdc++11'"
|
|
)
|
|
|
|
def build(self):
|
|
cmake = CMake(self)
|
|
cmake.definitions["FBXSDK_SDKS"] = os.getenv("FBXSDK_SDKS", "sdk")
|
|
cmake.configure()
|
|
cmake.build()
|