QMake: execute script after build

后端 未结 2 1251
心在旅途
心在旅途 2021-01-19 15:29

This is for setting up the application bundle of a MacOSX app. I have a script which copies a few files and does some other things. So I want to execute the script after the

2条回答
  •  悲哀的现实
    2021-01-19 16:03

    There is related questions there and there. I quote my answer for first of them:

    Another way to make things in given order is to use empty "super" target:

    super.depends = target_pre first target_post
    QMAKE_EXTRA_TARGETS += super
    

    Where first - is default qmake target, and target_pre and target_post some custom targets. Now make super just do the thing.

    EDIT: looks like in last versions of Qt build of dependencies is running in paralell so this solution wouldn't work.

提交回复
热议问题