build_xcode.sh 955 B

123456789101112131415161718192021222324
  1. #!/bin/bash -e
  2. cmake .. \
  3. -DCMAKE_FIND_FRAMEWORK=LAST \
  4. -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE \
  5. -DFREETYPE_LIBRARY=/opt/homebrew/lib/libfreetype.a \
  6. -DGETTEXT_INCLUDE_DIR=/path/to/include/dir \
  7. -DGETTEXT_LIBRARY=/opt/homebrew/lib/libintl.a \
  8. -DLUA_LIBRARY=/opt/homebrew/lib/libluajit-5.1.a \
  9. -DOGG_LIBRARY=/opt/homebrew/lib/libogg.a \
  10. -DVORBIS_LIBRARY=/opt/homebrew/lib/libvorbis.a \
  11. -DVORBISFILE_LIBRARY=/opt/homebrew/lib/libvorbisfile.a \
  12. -DZSTD_LIBRARY=/opt/homebrew/lib/libzstd.a \
  13. -DGMP_LIBRARY=/opt/homebrew/lib/libgmp.a \
  14. -DENABLE_SYSTEM_JSONCPP=OFF \
  15. -DENABLE_LEVELDB=OFF \
  16. -DENABLE_POSTGRESQL=OFF \
  17. -DENABLE_REDIS=OFF \
  18. -DJPEG_LIBRARY=/opt/homebrew/lib/libjpeg.a \
  19. -DPNG_LIBRARY=/opt/homebrew/lib/libpng.a \
  20. -DCMAKE_EXE_LINKER_FLAGS=-lbz2\
  21. -GXcode
  22. xcodebuild -project luanti.xcodeproj -scheme luanti -configuration Release build
  23. xcodebuild -project luanti.xcodeproj -scheme luanti -archivePath ./luanti.xcarchive archive