Class: Pod::Target
- Inherits:
-
Object
- Object
- Pod::Target
- Defined in:
- lib/swordfish/hmap/pod_target.rb,
lib/swordfish/native/target_architectures.rb
Instance Attribute Summary collapse
-
#prebuilt_hmap_target_names ⇒ Object
Returns the value of attribute prebuilt_hmap_target_names.
Class Method Summary collapse
Instance Method Summary collapse
- #add_prebuilt_hmap_target(name) ⇒ Object
- #concat_prebuilt_hmap_targets(names) ⇒ Object
- #save_hmap(hmap) ⇒ Object
Instance Attribute Details
#prebuilt_hmap_target_names ⇒ Object
Returns the value of attribute prebuilt_hmap_target_names.
10 11 12 |
# File 'lib/swordfish/hmap/pod_target.rb', line 10 def prebuilt_hmap_target_names @prebuilt_hmap_target_names end |
Class Method Details
.set_archs(post_context, is_only_arm64) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/swordfish/native/target_architectures.rb', line 4 def self.set_archs(post_context, is_only_arm64) post_context.aggregate_targets.each do |one| one.pod_targets.each { |target| target.loop_set_archs(is_only_arm64) } one.set_archs(is_only_arm64) end end |
Instance Method Details
#add_prebuilt_hmap_target(name) ⇒ Object
25 26 27 28 |
# File 'lib/swordfish/hmap/pod_target.rb', line 25 def add_prebuilt_hmap_target(name) @prebuilt_hmap_target_names = Array.new if @prebuilt_hmap_target_names == nil @prebuilt_hmap_target_names << name end |
#concat_prebuilt_hmap_targets(names) ⇒ Object
29 30 31 32 |
# File 'lib/swordfish/hmap/pod_target.rb', line 29 def concat_prebuilt_hmap_targets(names) @prebuilt_hmap_target_names = Array.new if @prebuilt_hmap_target_names == nil @prebuilt_hmap_target_names.concat(names) if names end |
#save_hmap(hmap) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/swordfish/hmap/pod_target.rb', line 11 def save_hmap(hmap) if hmap.empty? == false target_hmap_name="#{name}.hmap" relative_hmap_path = "#{SAVED_HMAP_DIR}/#{target_hmap_name}" target_hmap_path = sandbox.root.to_s + "/#{relative_hmap_path}" hmaps_dir = sandbox.root.to_s + "/#{SAVED_HMAP_DIR}" unless File.exist?(hmaps_dir) Dir.mkdir(hmaps_dir) end if hmap.save_to(target_hmap_path) reset_header_search_with_relative_hmap_path(relative_hmap_path) end end end |