Last active
February 6, 2019 09:52
-
-
Save ioquatix/1cbd264f861176cb7a99591cda9e3776 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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: '[email protected]' | |
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