updated mac build script

parent 5458bdee
......@@ -36,7 +36,7 @@ declare -a SRC_LIBS=(
"/usr/local/opt/boost/lib/libboost_iostreams-mt.dylib"
"/usr/local/opt/boost/lib/libboost_regex-mt.dylib"
"/usr/local/opt/boost/lib/libboost_program_options-mt.dylib"
"/usr/local/opt/boost-python3/lib/libboost_python38.dylib"
"/usr/local/opt/boost-python3/lib/libboost_python38-mt.dylib"
"/usr/local/opt/freetype/lib/libfreetype.6.dylib"
"/usr/local/opt/libpng/lib/libpng16.16.dylib"
"/usr/local/opt/libjpeg/lib/libjpeg.9.dylib"
......@@ -97,16 +97,21 @@ cp -v bin/takin_findsg "${PRG}/Contents/MacOS/"
cp -v bin/takin_pol "${PRG}/Contents/MacOS/"
cp -v bin/takinmod_py "${PRG}/Contents/MacOS/"
cp -v bin/takinmod_jl "${PRG}/Contents/MacOS/"
cp -v bin/convofit "${PRG}/Contents/MacOS/"
cp -v bin/convoseries "${PRG}/Contents/MacOS/"
cp -v bin/sfact "${PRG}/Contents/MacOS/"
cp -v bin/polextract "${PRG}/Contents/MacOS/"
cp -v bin/takin_structfact "${PRG}/Contents/MacOS/"
cp -v bin/takin_magstructfact "${PRG}/Contents/MacOS/"
cp -v bin/takin_scanbrowser "${PRG}/Contents/MacOS/"
cp -v bin/takin_magsgbrowser "${PRG}/Contents/MacOS/"
cp -v bin/takin_moldyn "${PRG}/Contents/MacOS/"
cp -v bin/takin_convofit "${PRG}/Contents/MacOS/"
cp -v bin/takin_convoseries "${PRG}/Contents/MacOS/"
cp -v bin/takin_polextract "${PRG}/Contents/MacOS/"
# data files
cp -v setup_mac/Info.plist "${PRG}/Contents/"
cp -rv data/res "${PRG}/Contents/"
cp -v data/res/takin.icns "${PRG}/Contents/Resources/"
cp -v data/res/icons/takin.icns "${PRG}/Contents/Resources/"
cp -rv doc/* "${PRG}/Contents/res/doc/"
# -----------------------------------------------------------------------------
......
......@@ -43,7 +43,7 @@ declare -a filestochange=(
"${PRG}/Contents/Frameworks/libtiff.5.dylib"
"${PRG}/Contents/Frameworks/libboost_iostreams-mt.dylib"
"${PRG}/Contents/Frameworks/libboost_filesystem-mt.dylib"
"${PRG}/Contents/Frameworks/libboost_python38.dylib"
"${PRG}/Contents/Frameworks/libboost_python38-mt.dylib"
"${PRG}/Contents/Frameworks/libboost_regex-mt.dylib"
"${PRG}/Contents/Frameworks/libboost_system-mt.dylib"
"${PRG}/Contents/Frameworks/libboost_program_options-mt.dylib"
......@@ -51,15 +51,20 @@ declare -a filestochange=(
"${PRG}/Contents/MacOS/takin_cif2xml"
"${PRG}/Contents/MacOS/takin_findsg"
"${PRG}/Contents/MacOS/takin_pol"
"${PRG}/Contents/MacOS/convofit"
"${PRG}/Contents/MacOS/convoseries"
"${PRG}/Contents/MacOS/sfact"
"${PRG}/Contents/MacOS/polextract"
"${PRG}/Contents/MacOS/takin_structfact"
"${PRG}/Contents/MacOS/takin_magstructfact"
"${PRG}/Contents/MacOS/takin_scanbrowser"
"${PRG}/Contents/MacOS/takin_magsgbrowser"
"${PRG}/Contents/MacOS/takin_moldyn"
"${PRG}/Contents/MacOS/takinmod_py"
"${PRG}/Contents/MacOS/takinmod_jl"
"${PRG}/Contents/MacOS/takin_convofit"
"${PRG}/Contents/MacOS/takin_convoseries"
"${PRG}/Contents/MacOS/takin_polextract"
)
# original symbols
declare -a changefrom=(
"/usr/local/Cellar/qt/${QT_VER}/lib/QtCore.framework/Versions/5/QtCore"
......@@ -109,7 +114,7 @@ declare -a changefrom=(
"/usr/local/opt/boost/lib/libboost_iostreams-mt.dylib"
"/usr/local/opt/boost/lib/libboost_regex-mt.dylib"
"/usr/local/opt/boost/lib/libboost_program_options-mt.dylib"
"/usr/local/opt/boost-python3/lib/libboost_python38.dylib"
"/usr/local/opt/boost-python3/lib/libboost_python38-mt.dylib"
"/usr/local/opt/freetype/lib/libfreetype.6.dylib"
"/usr/local/opt/libpng/lib/libpng16.16.dylib"
"/usr/local/opt/libjpeg/lib/libjpeg.9.dylib"
......@@ -167,7 +172,7 @@ declare -a changeto=(
"@executable_path/../Frameworks/libboost_iostreams-mt.dylib"
"@executable_path/../Frameworks/libboost_regex-mt.dylib"
"@executable_path/../Frameworks/libboost_program_options-mt.dylib"
"@executable_path/../Frameworks/libboost_python38.dylib"
"@executable_path/../Frameworks/libboost_python38-mt.dylib"
"@executable_path/../Frameworks/libfreetype.6.dylib"
"@executable_path/../Frameworks/libpng16.16.dylib"
"@executable_path/../Frameworks/libjpeg.9.dylib"
......
......@@ -26,3 +26,4 @@ convert ${FILE%\.svg}.png ${FILE%\.svg}.ico
# remove temporary file
rm ${FILE%\.svg}.png
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment