changed method of finding libqcocoa.dylib
This commit is contained in:
parent
b6a1b57420
commit
4582cdc104
|
@ -33,12 +33,10 @@ cd MacOS || exit 1
|
||||||
cp @CMAKE_RUNTIME_OUTPUT_DIRECTORY@/* . || exit 1
|
cp @CMAKE_RUNTIME_OUTPUT_DIRECTORY@/* . || exit 1
|
||||||
|
|
||||||
# copy the qt platform plugin
|
# copy the qt platform plugin
|
||||||
# TODO: this is hacky and will probably break if there is more than one qt
|
# get the .dylib location from the DYLD output of running bin/barrier
|
||||||
# version installed. need a better way to find this library
|
B_COCOA=$(DYLD_PRINT_LIBRARIES=1 \
|
||||||
B_COCOA=$(find /usr/local/Cellar/qt -type f -name libqcocoa.dylib | head -1)
|
@CMAKE_RUNTIME_OUTPUT_DIRECTORY@/barrier 2>&1 \
|
||||||
if [ "x$B_COCOA" = "x" ]; then
|
| grep --only-matching --max-count 1 '/.*libqcocoa.dylib$')
|
||||||
B_COCOA=$(find /opt/local/libexec/qt5/plugins -type f -name libqcocoa.dylib | head -1)
|
|
||||||
fi
|
|
||||||
if [ "x$B_COCOA" = "x" ]; then
|
if [ "x$B_COCOA" = "x" ]; then
|
||||||
echo "Could not find cocoa platform plugin"
|
echo "Could not find cocoa platform plugin"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue