Groterik / qtcreator-dubmanager

QtCreator plugin for dub manager support (dlang, d programming language)
MIT License
7 stars 2 forks source link

Build Status Build status Bintray

About

The Qt Creator plugin for basic support of DUB package manager.

The plugin provides most standard features of project management for DUB projects such as building, running, visual source tree, etc.

Installation

Build from the sources or download precompiled version from Bintray: project page or downloads directory.

Note: since Travis-CI is used to build binaries for linux and Appveyor -- for windows, build numbers for same revision but different platforms can differ.

Copy the plugin shared library and pluginspec file into local Qt Creator plugin directory:

You can also set the plugin directory for Qt Creator using command line argument -pluginpath <dir>.

Run Qt Creator and enable the plugin on Help -> About Plugins page. Restart Qt Creator.

TODO

Building

  1. clone the project.
  2. cd to the project directory
  3. run qmake && make or open dubprojectmanager.pro in the Qt Creator and build the project from IDE. May be you should set QTC_SOURCE and/or QTC_BUILD variables for qmake for QtCreator's sources and libraries correspondingly. It can be done with the following syntax: qmake "QTC_SOURCE=$MY_QTCREATOR_SOURCE_PATH" "QTC_BUILD=$MY_QTCREATOR_LIB_PATH"
  4. if successful, the plugin shared library will appear in local plugin directory.
  5. on Mac OS X: run fix_mac.sh $PATH_TO_PLUGIN/libDubProjectManager.dylib to fix rpath constants (mess with Qt libraries and QtC's Qt libraries).

Build requirements

  1. Qt >= 5.4.0
  2. Qt Creator >= 3.3.0 (with sources for plugins building, of course)

Implementation notes

The plugin uses dub executable for generating correct project information. The plugin parses dub output for describing any projects but the file dub.json (or dub.sdl) itself is not parsed by the plugin.