pixi.toml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. [project]
  2. name = "cloudcompare"
  3. version = "2.14.0"
  4. description = "CloudCompare is a 3D point cloud processing software."
  5. authors = ["Daniel Girardeau-Montaut <admin@cloudcompare.org>"]
  6. channels = ["conda-forge"]
  7. platforms = ["osx-arm64"]
  8. [tasks.CloudCompare]
  9. # Start the built executable
  10. cmd = ".build/install/CloudCompare/CloudCompare.app/Contents/MacOS/CloudCompare"
  11. #input = ".build/install/CloudCompare/CloudCompare.app/Contents/MacOS/CloudCompare"
  12. depends-on = ["install"]
  13. [feature.build.dependencies]
  14. cmake = ">=3.27,<3.30"
  15. cxx-compiler = ">=1.7.0,<1.8"
  16. ninja = "1.12.*"
  17. [dependencies]
  18. qt = ">=5.15.8,<5.16"
  19. python = ">=3.11,<3.12"
  20. laszip = ">=3.4.3,<3.5"
  21. opencv = ">=4.9.0,<4.10"
  22. pcl = ">=1.14.1,<1.15"
  23. boost = ">=1.84.0,<1.85"
  24. pybind11 = ">=2.12.0,<2.13"
  25. pyqt = ">=5.15.7,<=5.15.9"
  26. scipy = ">=1.13.0,<1.14" # Needed by 3DFin
  27. scikit-learn = ">=1.5,<1.6"
  28. eigen = ">=3.4.0,<3.5"
  29. draco = ">=1.5.7,<1.6"
  30. xerces-c = ">=3.2.5,<3.3"
  31. occt = ">=7.7.1,<7.8" # Opencascade, >=7.8 needs cmake adjustements
  32. [feature.build.tasks.configure]
  33. # Configures CMake
  34. cmd = [
  35. "cmake",
  36. "-GNinja",
  37. "-S.",
  38. # We want build in the .build directory
  39. "-B.build",
  40. "-DCMAKE_BUILD_TYPE=Release",
  41. "-DCMAKE_PREFIX_PATH=$CONDA_PREFIX/lib",
  42. "-DEIGEN_ROOT_DIR=$CONDA_PREFIX/include/eigen3",
  43. "-DCMAKE_INSTALL_PREFIX=.build/install",
  44. "-DPLUGIN_IO_QLAS=ON",
  45. "-DPLUGIN_STANDARD_MASONRY_QMANUAL_SEG=ON",
  46. "-DPLUGIN_STANDARD_MASONRY_QAUTO_SEG=ON",
  47. "-DPLUGIN_STANDARD_3DMASC=ON",
  48. "-DPLUGIN_PYTHON=ON",
  49. "-DPLUGIN_STANDARD_QANIMATION=ON",
  50. "-DQANIMATION_WITH_FFMPEG_SUPPORT=ON",
  51. "-DPLUGIN_STANDARD_QBROOM=ON",
  52. "-DPLUGIN_STANDARD_QCSF=ON",
  53. "-DPLUGIN_STANDARD_QCANUPO=ON",
  54. "-DPLUGIN_STANDARD_QCLOUDLAYERS=ON",
  55. "-DPLUGIN_STANDARD_QCOMPASS=ON",
  56. "-DPLUGIN_STANDARD_QCOLORIMETRIC_SEGMENTER=ON",
  57. "-DPLUGIN_STANDARD_QFACETS=ON",
  58. "-DPLUGIN_STANDARD_QHPR=ON",
  59. "-DPLUGIN_STANDARD_QHOUGH_NORMALS=ON",
  60. "-DPLUGIN_STANDARD_QM3C2=ON",
  61. "-DPLUGIN_STANDARD_QMPLANE=ON",
  62. "-DPLUGIN_STANDARD_QMESH_BOOLEAN=OFF", #TODO: need libigl for osx-arm64
  63. "-DPLUGIN_STANDARD_QPCL=ON",
  64. "-DPLUGIN_STANDARD_QPCV=ON",
  65. "-DPLUGIN_STANDARD_QPOISSON_RECON=ON",
  66. "-DPLUGIN_STANDARD_QRANSAC_SD=ON",
  67. "-DPLUGIN_STANDARD_QSRA=ON",
  68. "-DPLUGIN_STANDARD_QTREEISO=OFF", #TODO: improve compatibility.
  69. #--IO PLUGINS--
  70. "-DPLUGIN_IO_QADDITIONAL=ON",
  71. "-DPLUGIN_IO_QCORE=ON",
  72. "-DPLUGIN_IO_QDRACO=OFF", #TODO
  73. "-DPLUGIN_IO_QE57=ON",
  74. "-DE57_RELEASE_LTO=OFF", #TODO: Needed else it won't find the AR/Ranlib binary
  75. "-DPLUGIN_IO_QFBX=OFF", # Possible, but it needs a proprietary SDK
  76. #"-DPLUGIN_IO_QLAS_FWF=ON" # Seems to be Windows only
  77. "-DPLUGIN_IO_QPHOTOSCAN=ON",
  78. "-DPLUGIN_IO_QRDB=OFF", # Needs a proprietary lib. The lib is not available for osx-arm64
  79. "-DPLUGIN_IO_QSTEP=ON",
  80. "-DOPENCASCADE_INC_DIR=$CONDA_PREFIX/include/opencascade",
  81. "-DOPENCASCADE_LIB_DIR=$CONDA_PREFIX/lib",
  82. #--GL PLUGINS--
  83. "-DPLUGIN_GL_QEDL=ON",
  84. "-DPLUGIN_GL_QSSAO=ON"
  85. ]
  86. inputs = ["CMakeLists.txt"]
  87. outputs = [".build/CMakeFiles/"]
  88. [feature.build.tasks.build]
  89. cmd = ["cmake", "--build", ".build"]
  90. depends-on = ["configure"]
  91. inputs = ["CMakeLists.txt", "qCC/"]
  92. outputs = [".build/qCC/CloudCompare"]
  93. [feature.build.tasks.install]
  94. cmd = ["cmake", "--install", ".build"]
  95. depends-on = ["configure"]
  96. outputs = [".build/install/CloudCompare/CloudCompare.app/Contents/MacOS/CloudCompare"]
  97. #TODO: macos only
  98. # This will embed dependencies and fix rpath accordingly
  99. [feature.build.tasks.bundle]
  100. cmd = [
  101. "python",
  102. "scripts/mac/bundle/libBundleCloudCompare.py",
  103. ".build/install",
  104. "--embed_python",
  105. ]
  106. depends-on = ["install"]
  107. # Bundel signature
  108. [feature.build.tasks.sign_bundle]
  109. cmd = [
  110. "python",
  111. "scripts/mac/bundle/signatureCloudCompare.py",
  112. ".build/install",
  113. "--embed_python",
  114. ]
  115. depends-on = ["install"]
  116. [environments]
  117. build = ["build"]
  118. [pypi-dependencies]
  119. 3dfin = { version = "==0.4.1" }