-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteapot.rb
47 lines (34 loc) · 1.15 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
#
# This file is part of the "Teapot" project, and is released under the MIT license.
#
teapot_version "3.0"
define_target "picotls" do |target|
target.depends :platform
target.depends "Build/Make"
target.depends "Build/CMake"
target.depends "Library/openssl", public: true
target.provides "Library/picotls" do
source_files = target.package.path + "picotls"
cache_prefix = environment[:build_prefix] / environment.checksum + "picotls"
package_files = [
cache_prefix / "lib/libpicotls-openssl.a",
cache_prefix / "lib/libpicotls-core.a",
]
cmake source: source_files, install_prefix: cache_prefix, arguments: [
"-DBUILD_SHARED_LIBS=OFF",
], package_files: package_files
append linkflags package_files
append header_search_paths cache_prefix + "include"
end
end
define_configuration "development" do |configuration|
configuration[:source] = "https://github.com/kurocha/"
configuration.import "picotls"
configuration.require "platforms"
end
define_configuration "picotls" do |configuration|
configuration.public!
configuration.require "build-make"
configuration.require "build-cmake"
configuration.require "openssl"
end