forked from mruby/mruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_config.rb
46 lines (38 loc) · 1.04 KB
/
build_config.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
MRuby::Build.new("host") do |conf|
toolchain :clang
conf.cc do |cc|
cc.command = "xcrun"
cc.flags = %W(-sdk macosx clang -fembed-bitcode-marker)
end
conf.linker do |linker|
linker.command = "xcrun"
linker.flags = %W(-sdk macosx clang -fembed-bitcode-marker)
end
conf.gembox 'cinderella'
end
MRuby::CrossBuild.new('iphonesimulator') do |conf|
toolchain :clang
conf.cc do |cc|
cc.command = "xcrun"
cc.flags = %W(-sdk iphonesimulator clang -fembed-bitcode-marker)
end
conf.linker do |linker|
linker.command = "xcrun"
linker.flags = %W(-sdk iphonesimulator clang -fembed-bitcode-marker)
end
conf.bins = []
conf.gembox 'cinderella'
end
MRuby::CrossBuild.new('iphoneos') do |conf|
toolchain :clang
conf.cc do |cc|
cc.command = "xcrun"
cc.flags = %W(-sdk iphoneos clang -arch arm64 -fembed-bitcode-marker)
end
conf.linker do |linker|
linker.command = "xcrun"
linker.flags = %W(-sdk iphoneos clang -arch arm64 -fembed-bitcode-marker)
end
conf.bins = []
conf.gembox 'cinderella'
end