diff --git a/src/plugins/duieditor/duieditor.pri b/src/plugins/duieditor/duieditor.pri
new file mode 100644
index 0000000000000000000000000000000000000000..c23c6294231829f146536c096f7c77905f841b42
--- /dev/null
+++ b/src/plugins/duieditor/duieditor.pri
@@ -0,0 +1,3 @@
+include(duieditor_dependencies.pri)
+
+LIBS *= -l$$qtLibraryTarget(DuiEditor)
\ No newline at end of file
diff --git a/src/plugins/duieditor/duieditor.pro b/src/plugins/duieditor/duieditor.pro
index ca06112d9d4d732c4efa85b05a76f2796bda5e5b..9aeeebe5b1ad81c287bef645658b1d0164a07bb6 100644
--- a/src/plugins/duieditor/duieditor.pro
+++ b/src/plugins/duieditor/duieditor.pro
@@ -2,10 +2,7 @@ TEMPLATE = lib
 TARGET = DuiEditor
 
 include(../../qtcreatorplugin.pri)
-include(../../plugins/coreplugin/coreplugin.pri)
-include(../../plugins/texteditor/texteditor.pri)
-include(../../shared/qscripthighlighter/qscripthighlighter.pri)
-include(../../shared/indenter/indenter.pri)
+include(duieditor_dependencies.pri)
 
 include(parser/parser.pri)
 include(rewriter/rewriter.pri)
diff --git a/src/plugins/duieditor/duieditor_dependencies.pri b/src/plugins/duieditor/duieditor_dependencies.pri
new file mode 100644
index 0000000000000000000000000000000000000000..6163cfc764f83269aff57b079420f1a26fa54396
--- /dev/null
+++ b/src/plugins/duieditor/duieditor_dependencies.pri
@@ -0,0 +1,5 @@
+include(../../plugins/coreplugin/coreplugin.pri)
+include(../../plugins/texteditor/texteditor.pri)
+include(../../shared/qscripthighlighter/qscripthighlighter.pri)
+include(../../shared/indenter/indenter.pri)
+