Sign framework after copying Info.plist

Otherwise the signature is wrong.
This commit is contained in:
Jonathan Schleifer 2017-10-20 00:21:09 +02:00
parent 687567e857
commit 16e662fb88
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3

View file

@ -278,6 +278,27 @@ ${SHARED_LIB} ${SHARED_LIB_NOINST}: ${EXT_DEPS} ${LIB_OBJS} ${LIB_OBJS_EXTRA}
done done
${FRAMEWORK}: ${EXT_DEPS} ${LIB_OBJS} ${LIB_OBJS_EXTRA} ${FRAMEWORK}: ${EXT_DEPS} ${LIB_OBJS} ${LIB_OBJS_EXTRA}
rm -fr $@
${MKDIR_P} $@
${MAKE} INSTALL_INCLUDES_IF_SUBDIR=${includesubdir} INSTALL_INCLUDES_DESTINATION=$$PWD/$@/Headers install-includes
if test -f Info.plist; then \
i=Info.plist; \
${INSTALL_STATUS}; \
if ${INSTALL} -m 644 $$i $@/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
fi
if test -f module.modulemap; then \
i=module.modulemap; \
${INSTALL_STATUS}; \
if ${MKDIR_P} $@/Modules && ${INSTALL} -m 644 $$i $@/Modules/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
fi
${LINK_STATUS} ${LINK_STATUS}
out="$@"; \ out="$@"; \
objs=""; \ objs=""; \
@ -303,8 +324,6 @@ ${FRAMEWORK}: ${EXT_DEPS} ${LIB_OBJS} ${LIB_OBJS_EXTRA}
done; \ done; \
cd ..; \ cd ..; \
done; \ done; \
rm -fr $$out; \
${MKDIR_P} $$out; \
if ${LD} -o $$out/$${out%.framework} $$objs ${FRAMEWORK_LDFLAGS} ${FRAMEWORK_LDFLAGS_INSTALL_NAME} ${LDFLAGS} ${LIBS} && codesign -fs ${CODESIGN_IDENTITY} --timestamp=none $$out; then \ if ${LD} -o $$out/$${out%.framework} $$objs ${FRAMEWORK_LDFLAGS} ${FRAMEWORK_LDFLAGS_INSTALL_NAME} ${LDFLAGS} ${LIBS} && codesign -fs ${CODESIGN_IDENTITY} --timestamp=none $$out; then \
${LINK_OK}; \ ${LINK_OK}; \
else \ else \
@ -314,26 +333,7 @@ ${FRAMEWORK}: ${EXT_DEPS} ${LIB_OBJS} ${LIB_OBJS_EXTRA}
for i in $$ars; do \ for i in $$ars; do \
dir=".$$(echo $$i | sed 's/\//_/g').objs"; \ dir=".$$(echo $$i | sed 's/\//_/g').objs"; \
rm -fr $$dir; \ rm -fr $$dir; \
done; \ done
${MAKE} INSTALL_INCLUDES_IF_SUBDIR=${includesubdir} INSTALL_INCLUDES_DESTINATION=$$PWD/$$out/Headers install-includes; \
if test -f Info.plist; then \
i=Info.plist; \
${INSTALL_STATUS}; \
if ${INSTALL} -m 644 $$i $$out/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
fi; \
if test -f module.modulemap; then \
i=module.modulemap; \
${INSTALL_STATUS}; \
if ${MKDIR_P} $$out/Modules && ${INSTALL} -m 644 $$i $$out/Modules/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
fi
${MORPHOS_LIB} ${MORPHOS_LIB_NOINST}: ${EXT_DEPS} ${MORPHOS_LIB_OBJS} ${MORPHOS_LIB_OBJS_EXTRA} ${MORPHOS_LIB} ${MORPHOS_LIB_NOINST}: ${EXT_DEPS} ${MORPHOS_LIB_OBJS} ${MORPHOS_LIB_OBJS_EXTRA}
${LINK_STATUS} ${LINK_STATUS}