conanfile.py 862 B

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
  2. #
  3. import os
  4. from conans import ConanFile, CMake
  5. class FBX2glTFConan(ConanFile):
  6. settings = "os", "compiler", "build_type", "arch"
  7. requires = (
  8. "boost/1.84.0",
  9. "libiconv/1.17",
  10. "zlib/1.3.1",
  11. "libxml2/2.12.5",
  12. "fmt/5.3.0",
  13. )
  14. generators = "cmake_find_package", "cmake_paths"
  15. def configure(self):
  16. if (
  17. self.settings.compiler == "gcc"
  18. and self.settings.compiler.libcxx == "libstdc++"
  19. ):
  20. raise Exception(
  21. "Rerun 'conan install' with argument: '-s compiler.libcxx=libstdc++11'"
  22. )
  23. def build(self):
  24. cmake = CMake(self)
  25. cmake.definitions["FBXSDK_SDKS"] = os.getenv("FBXSDK_SDKS", "sdk")
  26. cmake.configure()
  27. cmake.build()