mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Support generation of working Xcode project for signature purposes on MacOS (#15303)
This commit is contained in:
parent
ec7738934b
commit
e55ba9c390
13 changed files with 309 additions and 30 deletions
24
util/ci/build_xcode.sh
Executable file
24
util/ci/build_xcode.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
cmake .. \
|
||||
-DCMAKE_FIND_FRAMEWORK=LAST \
|
||||
-DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE \
|
||||
-DFREETYPE_LIBRARY=/opt/homebrew/lib/libfreetype.a \
|
||||
-DGETTEXT_INCLUDE_DIR=/path/to/include/dir \
|
||||
-DGETTEXT_LIBRARY=/opt/homebrew/lib/libintl.a \
|
||||
-DLUA_LIBRARY=/opt/homebrew/lib/libluajit-5.1.a \
|
||||
-DOGG_LIBRARY=/opt/homebrew/lib/libogg.a \
|
||||
-DVORBIS_LIBRARY=/opt/homebrew/lib/libvorbis.a \
|
||||
-DVORBISFILE_LIBRARY=/opt/homebrew/lib/libvorbisfile.a \
|
||||
-DZSTD_LIBRARY=/opt/homebrew/lib/libzstd.a \
|
||||
-DGMP_LIBRARY=/opt/homebrew/lib/libgmp.a \
|
||||
-DENABLE_SYSTEM_JSONCPP=OFF \
|
||||
-DENABLE_LEVELDB=OFF \
|
||||
-DENABLE_POSTGRESQL=OFF \
|
||||
-DENABLE_REDIS=OFF \
|
||||
-DJPEG_LIBRARY=/opt/homebrew/lib/libjpeg.a \
|
||||
-DPNG_LIBRARY=/opt/homebrew/lib/libpng.a \
|
||||
-DCMAKE_EXE_LINKER_FLAGS=-lbz2\
|
||||
-GXcode
|
||||
xcodebuild -project luanti.xcodeproj -scheme luanti -configuration Release build
|
||||
xcodebuild -project luanti.xcodeproj -scheme luanti -archivePath ./luanti.xcarchive archive
|
Loading…
Add table
Add a link
Reference in a new issue