Class: XCCache::Command::Pkg::Build
Instance Attribute Summary
#build_options, #install_options
Class Method Summary
collapse
Instance Method Summary
collapse
#str_to_sdks
#config
Constructor Details
#initialize(argv) ⇒ Build
19
20
21
22
23
24
|
# File 'lib/xccache/command/pkg/build.rb', line 19
def initialize(argv)
super
@targets = argv.arguments!
@out_dir = argv.option("out")
@include_checksum = argv.flag?("checksum")
end
|
Class Method Details
.options ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/xccache/command/pkg/build.rb', line 8
def self.options
[
*Options.build_options,
["--out=foo", "Output directory for the xcframework"],
["--checksum/no-checksum", "Whether to include checksum to the binary name"],
].concat(super)
end
|
Instance Method Details
#run ⇒ Object
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/xccache/command/pkg/build.rb', line 26
def run
pkg = SPM::Package.new
pkg.build(
targets: @targets,
config: @config,
out_dir: @out_dir,
checksum: @include_checksum,
**@build_options,
)
end
|