Difference between revisions of "Premake Project Manager"

From Qt Wiki
Jump to: navigation, search
 
m (Wieland moved page PremakeProjectManager to Premake Project Manager: underscores)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[http://industriousone.com/premake Premake] ''[industriousone.com]'' is a build configuration tool allowing user to describe C, C++, or C# software project using a simple, easy to read syntax. Main features are:
+
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}
  
 +
[[Category:Tools::QtCreator]]
 +
 +
[http://industriousone.com/premake Premake] is a build configuration tool allowing user to describe C, C+'', or C# software project using a simple, easy to read syntax. Main features are:
 
* Declarative syntax based on Lua
 
* Declarative syntax based on Lua
 
* Full power of general purpose language (Lua) available for non-trivial tasks
 
* Full power of general purpose language (Lua) available for non-trivial tasks
* Generation of project files for popular <span class="caps">IDE</span>s including Visual Studio and Xcode, which don’t require presence of Premake executable on actual build host
+
* Generation of project files for popular IDEs including Visual Studio and Xcode, which don’t require presence of Premake executable on actual build host
 
* Support for flexible build configuration, exposed to user as configure-style options
 
* Support for flexible build configuration, exposed to user as configure-style options
 
* Support for cross-compilation
 
* Support for cross-compilation
 
* Distributed as small sized single executable without external dependencies
 
* Distributed as small sized single executable without external dependencies
* Unlimited extensibility – define new <span class="caps">API</span>s, build tools, or even change behavior of build system internals from within your project!
+
* Unlimited extensibility – define new APIs, build tools, or even change behavior of build system internals from within your project!
* Support for building Qt projects see [http://industriousone.com/topic/full-stack-qt-based-development-premake-available-download]
+
* Support for building Qt projects - see [http://industriousone.com/topic/full-stack-qt-based-development-premake-available-download]
 +
 
  
 
This plugin allows user to open, browse, build, and debug Premake projects inside Qt Creator.
 
This plugin allows user to open, browse, build, and debug Premake projects inside Qt Creator.
Line 15: Line 19:
 
* Repository: https://gitorious.org/qtcreator-premake-plugin
 
* Repository: https://gitorious.org/qtcreator-premake-plugin
  
==Installation==
+
== Installation ==
 
+
You can get binary version for Windows from [http://industriousone.com/topic/full-stack-qt-based-development-premake-available-download]. For other operating systems, or if you want bleeding edge version, get the source code:
You can get binary version for Windows from [http://industriousone.com/topic/full-stack-qt-based-development-premake-available-download]. For other operating systems, or if you want bleeding edge version, get the source code:<br /> and follow instruction in <span class="caps">README</span> file.
+
<code>
 +
git://gitorious.org/qtcreator-premake-plugin/qtcreator-premake-plugin.git
 +
git submodule init
 +
git submodule update
 +
</code>
 +
and follow instruction in README file.
  
==Usage==
+
== Usage ==
 +
Open project file "premake4.lua" in Qt Creator just like you open .pro files.
  
Open project file “premake4.lua” in Qt Creator just like you open .pro files.
+
=== Simple Qt project ===
 +
<code>
 +
require "qt-support"
  
===Simple Qt project===
+
solution "MyApplication"
 +
configurations { "Debug", "Release" }
  
===More documentation===
+
project "MyApplication"
 +
kind "WindowedApp"
 +
language "C''+"
 +
uses "Qt"
 +
files {
 +
"src/*'''.h",
 +
"src/.cpp",
 +
"src/.ui",
 +
"src/.qrc"
 +
}
 +
configuration "Debug"
 +
flags { "Symbols" }
  
https://bitbucket.org/premake/premake-dev/wiki/Getting_started_with_Qt_and_Premake<br />https://bitbucket.org/premake/premake-dev/wiki/Qt_add-on_reference_manual
+
configuration "Release"
 +
flags { "Optimize" }
 +
</code>
  
===More complex examples===
+
=== More documentation ===
 +
https://bitbucket.org/premake/premake-dev/wiki/Getting_started_with_Qt_and_Premake
 +
https://bitbucket.org/premake/premake-dev/wiki/Qt_add-on_reference_manual
  
 +
=== More complex examples ===
 
https://github.com/annulen/qt-examples-premake
 
https://github.com/annulen/qt-examples-premake
  
==Current status==
+
== Current status ==
 +
Right now plugin is of "beta" quality.
  
Right now plugin is of “beta” quality.
+
''' Works on Linux, Mac OS X, and Windows
 
 
* Works on Linux, Mac OS X, and Windows
 
 
* Source compatible with Qt Creator 2.3, 2.4, and 2.5
 
* Source compatible with Qt Creator 2.3, 2.4, and 2.5
 
* Allows to open and browse premake4.lua projects
 
* Allows to open and browse premake4.lua projects
* Allows to change toolchains and Qt versions from <span class="caps">GUI</span>
+
* Allows to change toolchains and Qt versions from GUI
 
* Imports build configurations from project file
 
* Imports build configurations from project file
 
* Includes basic Lua editor to simplify project writing
 
* Includes basic Lua editor to simplify project writing
  
 
What is missing
 
What is missing
 
+
* -Run configurations are not created automatically for built executables- Available in master
* <del>Run configurations are not created automatically for built executables</del> Available in master
 
 
* No project create/import wizard
 
* No project create/import wizard
* Debugging from <span class="caps">IDE</span> on Windows is broken
+
* Debugging from IDE on Windows is broken
 
 
===Categories:===
 
 
 
* [[:Category:Tools|Tools]]
 
** [[:Category:Tools::Qt-Creator|Qt Creator]]
 

Latest revision as of 21:47, 28 June 2015

Premake is a build configuration tool allowing user to describe C, C+, or C# software project using a simple, easy to read syntax. Main features are:
  • Declarative syntax based on Lua
  • Full power of general purpose language (Lua) available for non-trivial tasks
  • Generation of project files for popular IDEs including Visual Studio and Xcode, which don’t require presence of Premake executable on actual build host
  • Support for flexible build configuration, exposed to user as configure-style options
  • Support for cross-compilation
  • Distributed as small sized single executable without external dependencies
  • Unlimited extensibility – define new APIs, build tools, or even change behavior of build system internals from within your project!
  • Support for building Qt projects - see [1]
This plugin allows user to open, browse, build, and debug Premake projects inside Qt Creator.

Installation

You can get binary version for Windows from [2]. For other operating systems, or if you want bleeding edge version, get the source code: git://gitorious.org/qtcreator-premake-plugin/qtcreator-premake-plugin.git git submodule init git submodule update and follow instruction in README file.

Usage

Open project file "premake4.lua" in Qt Creator just like you open .pro files.

Simple Qt project

require "qt-support"

solution "MyApplication"

configurations { "Debug", "Release" }
project "MyApplication"
kind "WindowedApp"
language "C+"
uses "Qt"
files {
"src/*.h",
"src/.cpp",
"src/.ui",
"src/.qrc"
}
configuration "Debug"
flags { "Symbols" }
configuration "Release"
flags { "Optimize" }

More documentation

https://bitbucket.org/premake/premake-dev/wiki/Getting_started_with_Qt_and_Premake https://bitbucket.org/premake/premake-dev/wiki/Qt_add-on_reference_manual

More complex examples

https://github.com/annulen/qt-examples-premake

Current status

Right now plugin is of "beta" quality.

Works on Linux, Mac OS X, and Windows

  • Source compatible with Qt Creator 2.3, 2.4, and 2.5
  • Allows to open and browse premake4.lua projects
  • Allows to change toolchains and Qt versions from GUI
  • Imports build configurations from project file
  • Includes basic Lua editor to simplify project writing

What is missing

  • -Run configurations are not created automatically for built executables- Available in master
  • No project create/import wizard
  • Debugging from IDE on Windows is broken