Class: HMap::TargetPlatformVFS
- Inherits:
-
Object
- Object
- HMap::TargetPlatformVFS
- Defined in:
- lib/hmap/xc/target/target_vfs.rb
Instance Method Summary collapse
- #build_dir ⇒ Object
- #defines_modules? ⇒ Boolean
-
#initialize(platform, setting) ⇒ TargetPlatformVFS
constructor
A new instance of TargetPlatformVFS.
- #module_dir ⇒ Object
- #module_path ⇒ Object
- #private_headers_dir ⇒ Object
- #private_module_path ⇒ Object
- #product_name ⇒ Object
- #public_headers_dir ⇒ Object
- #swift_header_path ⇒ Object
- #temp_dir ⇒ Object
Constructor Details
#initialize(platform, setting) ⇒ TargetPlatformVFS
Returns a new instance of TargetPlatformVFS.
20 21 22 23 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 20 def initialize(platform, setting) @platform = platform @setting = setting end |
Instance Method Details
#build_dir ⇒ Object
29 30 31 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 29 def build_dir @setting.build_path(@platform) end |
#defines_modules? ⇒ Boolean
37 38 39 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 37 def defines_modules? @setting.defines_modules? end |
#module_dir ⇒ Object
61 62 63 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 61 def module_dir File.join(build_dir, 'Modules') end |
#module_path ⇒ Object
41 42 43 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 41 def module_path File.join(temp_dir, 'module.modulemap') if defines_modules? end |
#private_headers_dir ⇒ Object
57 58 59 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 57 def private_headers_dir File.join(build_dir, 'PrivateHeaders') end |
#private_module_path ⇒ Object
45 46 47 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 45 def private_module_path File.join(temp_dir, 'module.private.modulemap') if defines_modules? end |
#product_name ⇒ Object
25 26 27 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 25 def product_name File.basename(build_dir, '.*') end |
#public_headers_dir ⇒ Object
53 54 55 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 53 def public_headers_dir File.join(build_dir, 'Headers') end |
#swift_header_path ⇒ Object
49 50 51 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 49 def swift_header_path File.join(build_dir, 'Headers', "#{product_name}-Swift.h") if @setting.build_as_framework_swift? end |
#temp_dir ⇒ Object
33 34 35 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 33 def temp_dir @setting.temp_path(@platform) end |