diff options
author | Eike Ziller <eike.ziller@qt.io> | 2022-01-14 12:44:53 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2022-01-20 12:18:15 +0000 |
commit | 9d8a419d107ae8219c84bc9178bfed76b94fa930 (patch) | |
tree | 110e9f16dd2e3d9c03b2dc38d2b261663606fb4f /src/qtcreatorplugin.pri | |
parent | 3c3580c7701ccf43ca014e19aa5fa210e90b4ed3 (diff) | |
download | qt-creator-9d8a419d107ae8219c84bc9178bfed76b94fa930.tar.gz |
Remove qmake build files
Removes qmake as a build system for building Qt Creator itself.
Keep them for some tests that are not completely moved to CMake yet.
Change-Id: I846c6ef65626b6dfae6375fdc85d00677aa8c2fb
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/qtcreatorplugin.pri')
-rw-r--r-- | src/qtcreatorplugin.pri | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/src/qtcreatorplugin.pri b/src/qtcreatorplugin.pri deleted file mode 100644 index 4bb8e89853..0000000000 --- a/src/qtcreatorplugin.pri +++ /dev/null @@ -1,107 +0,0 @@ -include(../qtcreator_testvars.pri) - -depfile = $$replace(_PRO_FILE_PWD_, ([^/]+$), \\1/\\1_dependencies.pri) -exists($$depfile) { - include($$depfile) - isEmpty(QTC_PLUGIN_NAME): \ - error("$$basename(depfile) does not define QTC_PLUGIN_NAME.") -} else { - isEmpty(QTC_PLUGIN_NAME): \ - error("QTC_PLUGIN_NAME is empty. Maybe you meant to create $$basename(depfile)?") -} -TARGET = $$QTC_PLUGIN_NAME - -plugin_deps = $$QTC_PLUGIN_DEPENDS -plugin_test_deps = $$QTC_TEST_DEPENDS -plugin_recmds = $$QTC_PLUGIN_RECOMMENDS - -include(../qtcreator.pri) - -defineReplace(dependencyName) { - dependencies_file = - for(dir, QTC_PLUGIN_DIRS) { - exists($$dir/$$1/$${1}_dependencies.pri) { - dependencies_file = $$dir/$$1/$${1}_dependencies.pri - break() - } - } - isEmpty(dependencies_file): \ - error("Plugin dependency $$dep not found") - include($$dependencies_file) - return($$QTC_PLUGIN_NAME) -} - -# for substitution in the .json -dependencyList = -for(dep, plugin_deps) { - dependencyList += " { \"Name\" : \"$$dependencyName($$dep)\", \"Version\" : \"$$QTCREATOR_VERSION\" }" -} -for(dep, plugin_recmds) { - dependencyList += " { \"Name\" : \"$$dependencyName($$dep)\", \"Version\" : \"$$QTCREATOR_VERSION\", \"Type\" : \"optional\" }" -} -for(dep, plugin_test_deps) { - dependencyList += " { \"Name\" : \"$$dependencyName($$dep)\", \"Version\" : \"$$QTCREATOR_VERSION\", \"Type\" : \"test\" }" -} -dependencyList = $$join(dependencyList, ",$$escape_expand(\\n)") - -dependencyList = "\"Dependencies\" : [$$escape_expand(\\n)$$dependencyList$$escape_expand(\\n) ]" - -# use gui precompiled header for plugins by default -isEmpty(PRECOMPILED_HEADER):PRECOMPILED_HEADER = $$PWD/shared/qtcreator_gui_pch.h - -isEmpty(USE_USER_DESTDIR) { - DESTDIR = $$IDE_PLUGIN_PATH -} else { - win32 { - DESTDIRAPPNAME = "qtcreator" - DESTDIRBASE = "$$(LOCALAPPDATA)" - isEmpty(DESTDIRBASE):DESTDIRBASE="$$(USERPROFILE)\Local Settings\Application Data" - } else:macx { - DESTDIRAPPNAME = "Qt Creator" - DESTDIRBASE = "$$(HOME)/Library/Application Support" - } else:unix { - DESTDIRAPPNAME = "qtcreator" - DESTDIRBASE = "$$(XDG_DATA_HOME)" - isEmpty(DESTDIRBASE):DESTDIRBASE = "$$(HOME)/.local/share/data" - else:DESTDIRBASE = "$$DESTDIRBASE/data" - } - DESTDIR = "$$DESTDIRBASE/QtProject/$$DESTDIRAPPNAME/plugins/$$QTCREATOR_VERSION" -} -LIBS += -L$$DESTDIR -INCLUDEPATH += $$OUT_PWD - -# copy the plugin spec -isEmpty(TARGET) { - error("qtcreatorplugin.pri: You must provide a TARGET") -} - -PLUGINJSON = $$_PRO_FILE_PWD_/$${TARGET}.json -PLUGINJSON_IN = $${PLUGINJSON}.in -exists($$PLUGINJSON_IN) { - DISTFILES += $$PLUGINJSON_IN - QMAKE_SUBSTITUTES += $$PLUGINJSON_IN - PLUGINJSON = $$OUT_PWD/$${TARGET}.json -} else { - # need to support that for external plugins - DISTFILES += $$PLUGINJSON -} - -osx { - QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/ - QMAKE_LFLAGS += -compatibility_version $$QTCREATOR_COMPAT_VERSION -} - -RPATH_BASE = $$IDE_PLUGIN_PATH -include(rpath.pri) - -contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols - -TEMPLATE = lib -CONFIG += plugin plugin_with_soname -linux*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF - -target.path = $$INSTALL_PLUGIN_PATH -INSTALLS += target - -TARGET = $$qtLibraryTargetName($$TARGET) - |