table of Contents
qtcreatortool.pri
On the one we introduced qtcreatorplugin.pri, now we introduce qtcreatortool.pri.
Code is not much
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
All of the key variables and their values are introduced in the previous. Not repeat them here. The output generated by the tool library to the build directory / bin folder.
原创造福大家,共享改变世界
献出一片爱心,温暖作者心灵