Put the Android extra linking cmake code behind a variable

The env variable check doesn't work on binary-factory for some reason so
use an actual variable that will be given by Craft
remotes/origin/work/fhek/foreground_background_text
Albert Astals Cid 4 years ago
parent d6b1524987
commit f234bdf494
  1. 4
      mobile/app/CMakeLists.txt

@ -13,8 +13,8 @@ if (ANDROID)
# Unfortunately gitlab CI for now doesn't use Craft so we need
# to differentiate between gitlab CI and the binary factory
if (DEFINED ENV{craftRoot})
message("Linking in extra libraies to help androiddeployqt")
if (ANDROID_LINK_EXTRA_LIBRARIES)
message("Linking in extra libraries to help androiddeployqt")
# androiddeployqt is not super smart and sometimes fails packaging
# some of the libraries we only use in plugins, here we help it by linking to those "extra" libs
# that are not really needed

Loading…
Cancel
Save