-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteapot.rb
55 lines (37 loc) · 1.43 KB
/
teapot.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Teapot v3.5.2 configuration generated at 2023-04-19 19:39:36 +1200
required_version "3.0"
define_project "scheduler-ruby" do |project|
project.title = "Scheduler (Ruby Interface)"
end
# Build Targets
define_target 'scheduler-ruby-library' do |target|
target.depends 'Language/C++17'
target.depends 'Build/Compile/Commands'
target.depends "Library/Time", public: true
target.depends "Library/ruby", public: true
target.provides 'Library/Scheduler' do
source_root = target.package.path + 'source'
library_path = build static_library: 'Scheduler', source_files: source_root.glob('Scheduler/**/*.cpp')
append linkflags library_path
append header_search_paths source_root
compile_commands destination_path: (source_root + "compile_commands.json")
end
end
# Configurations
define_configuration 'development' do |configuration|
configuration[:source] = "https://github.com/kurocha"
configuration.import "scheduler-ruby"
# Provides all the build related infrastructure:
configuration.require 'platforms'
# Provides unit testing infrastructure and generators:
configuration.require 'unit-test'
# Provides some useful C++ generators:
configuration.require 'generate-cpp-class'
configuration.require "generate-project"
configuration.require "build-compile-commands"
end
define_configuration "scheduler-ruby" do |configuration|
configuration.public!
configuration.require "time"
configuration.require "ruby"
end