编程语言
首页 > 编程语言> > qt creator源码全方面分析(3-7)

qt creator源码全方面分析(3-7)

作者:互联网

目录

qtcreatortool.pri

上一节我们介绍了qtcreatorplugin.pri,现在我们介绍qtcreatortool.pri。

代码也不多

include(../qtcreator.pri)

TEMPLATE = app

CONFIG += console
CONFIG -= app_bundle

DESTDIR = $$IDE_LIBEXEC_PATH
REL_PATH_TO_LIBS = $$relative_path($$IDE_LIBRARY_PATH, $$IDE_LIBEXEC_PATH)
REL_PATH_TO_PLUGINS = $$relative_path($$IDE_PLUGIN_PATH, $$IDE_LIBEXEC_PATH)
osx {
    QMAKE_LFLAGS += -Wl,-rpath,@executable_path/$$REL_PATH_TO_LIBS,-rpath,@executable_path/$$REL_PATH_TO_PLUGINS
} else {
    QMAKE_RPATHDIR += \$\$ORIGIN/$$REL_PATH_TO_LIBS
    QMAKE_RPATHDIR += \$\$ORIGIN/$$REL_PATH_TO_PLUGINS
}
include(rpath.pri)

target.path  = $$INSTALL_LIBEXEC_PATH
INSTALLS += target

所有的关键变量及其取值都在前面介绍过了。这里不再赘述。把生成的工具库输出到了构建目录/bin文件夹中。


原创造福大家,共享改变世界

献出一片爱心,温暖作者心灵


标签:LIBEXEC,qt,creator,pri,源码,REL,path,PATH,IDE
来源: https://www.cnblogs.com/codeForFamily/p/qt-creator-ide-source-learn-3-7.html