You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
749 B

  1. #!/bin/bash
  2. echo -e "\n正在编译和安装 LuxMark……\n"
  3. echo -ne "\033]0;LuxMark stage\007"
  4. if [[ ! -d "LuxMark" ]] ; then
  5. echo
  6. echo -e "\n!!! LuxMark源码不可用,跳过这个阶段\n"
  7. else
  8. cd ${SHELLROOT}/LuxMark
  9. echo " * 正在配置 LuxMark"
  10. if ! cmake -G "Unix Makefiles" -Wno-dev \
  11. -D LUXMARK_CUSTOM_CONFIG=cmake/SpecializedConfig/Config_Linux-Static.cmake \
  12. -D LuxRays_HOME="${SHELLROOT}/LuxCore" . ; then
  13. echo -e "\n !!! 配置 LuxMark 失败,无法安装成功\n"
  14. exit 1
  15. fi
  16. sleep 2
  17. echo " * 正在编译 LuxMark"
  18. if cmake --build . --target all -- $MAKEOPTS ; then
  19. echo -e "\n * LuxMark ,编译和安装成功\n"
  20. else
  21. echo -e "\n !!! LuxMark ,编译和安装失败\n"
  22. exit 1
  23. fi
  24. fi
  25. exit 0