Unsolved iOS builds ignoring PRE_TARGETDEPS and QMAKE_EXTRA_TARGETS
-
I need to compile another team's c code as a library. I have this working for Windows, Mac and Android, but my iOS build seems to ignore the PRE_TARGETDEPS variable. Essentially I have the following in my .pro file, but the
mydep.commands =
line never executes, even if I change it tomydep.commands = echo Hello
.ios { QMAKE_EXTRA_TARGETS += mydep PRE_TARGETDEPS += mydep mydep.commands = make myioslib -C $$PWD/libs/mylib HEADERS += $$PWD/libs/mylib/libmylib.h LIBS += -L$$PWD/libs/mylib/ -lmylib }
LIBS +=
gets seen, because the build then fails during linkingI'm using Qt 5.12.1
Is there anything special I need to do for iOS?
Thanks for any help
-
Current workaround is...
ios { system("make myioslib -C $$PWD/libs/mylib") HEADERS += $$PWD/libs/mylib/libmylib.h LIBS += -L$$PWD/libs/mylib/ -lmylib }