Skip to content

Instantly share code, notes, and snippets.

@ioquatix
Last active February 6, 2019 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ioquatix/1cbd264f861176cb7a99591cda9e3776 to your computer and use it in GitHub Desktop.
Save ioquatix/1cbd264f861176cb7a99591cda9e3776 to your computer and use it in GitHub Desktop.
#
# This file is part of the "Teapot" project, and is released under the MIT license.
#
teapot_version "2.3"
# Project Metadata
define_project "time" do |project|
project.title = 'Time'
project.summary = 'Provides time related abstractions.'
project.license = "MIT License"
project.add_author 'Samuel Williams', email: 'samuel.williams@oriontransfer.co.nz'
project.version = "1.0.0"
end
# Build Targets
define_target 'time-library' do |target|
target.depends 'Build/Files'
target.depends 'Build/Clang'
target.depends :platform
target.depends "Language/C++11", private: true
target.provides "Library/Time" do
build target: target, static_library: 'Time'
end
end
define_target "time-tests" do |target|
target.depends "Language/C++14", private: true
target.depends "Library/UnitTest"
target.depends "Library/Time"
target.provides "Test/Time" do
run target: target, tests: 'Time'
end
end
# Configurations
define_configuration "test" do |configuration|
configuration[:source] = "http://github.com/kurocha/"
# Provides all the build related infrastructure:
configuration.require "platforms"
configuration.require "build-files"
# Provides unit testing infrastructure and generators:
configuration.require "unit-test"
# Provides some useful C++ generators:
configuration.require "generate-project"
configuration.require "generate-travis"
configuration.require "generate-cpp-class"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment