All Projects → kurocha → teapot

kurocha / teapot

Licence: other
Teapot is a tool for managing complex cross-platform builds.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to teapot

rudebuild
A non-intrusive bulk/unity C++ build tool for Visual Studio
Stars: ✭ 16 (-71.43%)
Mutual labels:  build-tool
AnyStatus
A remote control for your CI/CD pipelines and more
Stars: ✭ 38 (-32.14%)
Mutual labels:  build-tool
spring-boot-project-builder
快速构建Spring Boot项目
Stars: ✭ 20 (-64.29%)
Mutual labels:  build-tool
presetter
🛹 Reuse and manage build scripts, devDependencies and config files from your favourite presets, instead of copy and paste!
Stars: ✭ 61 (+8.93%)
Mutual labels:  build-tool
jagen
A software engineer's workspace manager and build systems wrapper
Stars: ✭ 32 (-42.86%)
Mutual labels:  build-tool
shipwright.nvim
⚓ Build stuff, or don't. IDC.
Stars: ✭ 27 (-51.79%)
Mutual labels:  build-tool
alfred
(v0.2) Even Batman needs a little help. Task runner. Automator. Build system.
Stars: ✭ 62 (+10.71%)
Mutual labels:  build-tool
makesure
Simple task/command runner with declarative goals and dependencies
Stars: ✭ 230 (+310.71%)
Mutual labels:  build-tool
image-optimizer
Smart image optimization
Stars: ✭ 15 (-73.21%)
Mutual labels:  build-tool
BuildMonkey
Build artefacts for creating a Eclipse RCP application with gradle
Stars: ✭ 11 (-80.36%)
Mutual labels:  build-tool
pyke
🔨🐍 Make-like build utility for Python projects with extensive DSL features
Stars: ✭ 13 (-76.79%)
Mutual labels:  build-tool
hotbuild
a cross platform hot compilation tool for golang
Stars: ✭ 181 (+223.21%)
Mutual labels:  build-tool
BuildAMation
Build system and project generator for C/C++ desktop software development. Uses C# for build scripts. It is no longer under active development.
Stars: ✭ 13 (-76.79%)
Mutual labels:  build-tool
kbdashboard
Tool to configure, build and install multiple linux kernels.
Stars: ✭ 14 (-75%)
Mutual labels:  build-tool
obs-docu
Official Open Build Service Documentation. Content gets reviewed and edited. Generated books are available at http://www.openbuildservice.org
Stars: ✭ 26 (-53.57%)
Mutual labels:  build-tool
Xake
Another MAKE utility implementation on F#, fully declarative with no-brain parallelism, inspired by Shake
Stars: ✭ 24 (-57.14%)
Mutual labels:  build-tool
bob-build
Meta-build system using Blueprint and ninja
Stars: ✭ 24 (-57.14%)
Mutual labels:  build-tool
teapot
Tcl TEApot
Stars: ✭ 36 (-35.71%)
Mutual labels:  teapot
modular-styles
Extract CSS into CSS Modules for any language!
Stars: ✭ 25 (-55.36%)
Mutual labels:  build-tool
grunt-retire
Grunt plugin for retire.
Stars: ✭ 89 (+58.93%)
Mutual labels:  build-tool

Teapot

Teapot is a decentralised build tool for managing complex cross-platform projects. It has many goals but it is primarily designed to improve the experience for developers trying to make cross-platform applications and libraries with a minimum of overhead.

  • Provide useful feedback when dependencies are not met or errors are encountered.
  • Decentralised dependency management allows use within private organisations without exposing code.
  • Generators can simplify the construction of new projects as well as assist with the development of existing ones.
  • The build subsystem provides a simple set of canonical operations for building libraries and executables to minimise configuration overhead.

Build Status Code Climate Coverage Status Gitter Chat

Installation

Ensure that you already have a working install of Ruby 2.0.0+ and run the following to install teapot:

$ gem install teapot

Usage

Teapot doesn't have a default centralised package management system but there is a canonical one for developing cross-platform C++ applications. This example shows how to use this framework.

Create Project

Firstly, create your project by running:

$ teapot create "My Project" https://github.com/kurocha generate-project
$ cd my-project

You will be asked to merge the project file. At present, merge tools are not very good and thus you may need to take a moment to review the changes. You want to keep most of the original file, but you would like to add the define_target blocks which are being added.

In the resulting project directory that has been created, you can see the list of dependencies:

$ teapot list
... lots of output ...

To only see things exported by your current project, you can run:

$ teapot list root
Package root (from /private/tmp/my-project):
	#<Teapot::Project "my-project">
		My Project description.
		- Summary: A brief one line summary of the project.
		- License: MIT License
		- Version: 0.1.0
		- Author: Samuel Williams <[email protected]>
	#<Teapot::Target "my-project-library">
		- depends on "Build/Files"
		- depends on "Build/Clang"
		- depends on :platform
		- depends on "Language/C++14" {:private=>true}
		- provides "Library/MyProject"
	#<Teapot::Target "my-project-test">
		- depends on "Library/UnitTest"
		- depends on "Library/MyProject"
		- provides "Test/MyProject"
	#<Teapot::Target "my-project-executable">
		- depends on "Build/Files"
		- depends on "Build/Clang"
		- depends on :platform
		- depends on "Language/C++14" {:private=>true}
		- depends on "Library/MyProject"
		- provides "Executable/MyProject"
	#<Teapot::Target "my-project-run">
		- depends on "Executable/MyProject"
		- provides "Run/MyProject"
	#<Teapot::Configuration "development" visibility=private>
		- references root from /private/tmp/my-project
		- clones platforms from https://github.com/kurocha/platforms
		- clones unit-test from https://github.com/kurocha/unit-test
		- clones generate-cpp-class from https://github.com/kurocha/generate-cpp-class
		- clones generate-project from https://github.com/kurocha/generate-project
		- clones variants from https://github.com/kurocha/variants
		- clones platform-darwin-osx from https://github.com/kurocha/platform-darwin-osx
		- clones platform-darwin-ios from https://github.com/kurocha/platform-darwin-ios
		- clones build-clang from https://github.com/kurocha/build-clang
		- clones build-darwin from https://github.com/kurocha/build-darwin
		- clones build-files from https://github.com/kurocha/build-files
		- clones streams from https://github.com/kurocha/streams
		- clones generate-template from https://github.com/kurocha/generate-template
	#<Teapot::Configuration "my-project" visibility=public>
		- references root from /private/tmp/my-project

Run Tests

Testing is a good idea, and teapot supports test driven development.

$ teapot Test/MyProject

Wildcard Targets

To run all tests:

$ teapot "Test/*"

Provided you are using an environment that supports sanitizers, you can test more thoroughly using:

$ teapot "Test/*" variant-sanitize

Run Project

We can now build and run the project executable:

$ teapot Run/MyProject
I'm a little teapot,
Short and stout,
Here is my handle (one hand on hip),
Here is my spout (other arm out with elbow and wrist bent).
When I get all steamed up,
Hear me shout,
Tip me over and pour me out! (lean over toward spout)

                              ~
                   ___^___   __
               .- /       \./ /
              /  /          _/
              \__|         |
                  \_______/

The resulting executables and libraries will be framework dependent, but are typically located in:

$ cd teapot/platforms/development/$PLATFORM-debug/bin
$ ./$PROJECT_NAME

Cloning Project

You can clone another project which will fetch all dependencies:

$ teapot clone https://github.com/kurocha/tagged-format
$ cd tagged-format
$ teapot build Executable/TaggedFormat

Open Issues

  • Should packages be built into a shared prefix or should they be built into unique prefixes and joined together either via install or -L and -I?
    • Relative include paths might fail to work correctly if headers are not installed into same directory.
  • Should packages have some way to expose system requirements, e.g. installed compiler, libraries, etc. Perhaps some kind of Package#valid? which allows custom logic?

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Released under the MIT license.

Copyright, 2012, 2014, by Samuel G. D. Williams.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].