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.
16 17 18 19 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 16 def initialize(platform, setting) @platform = platform @setting = setting end |
Instance Method Details
#build_dir ⇒ Object
25 26 27 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 25 def build_dir @setting.build_path(@platform) end |
#defines_modules? ⇒ Boolean
33 34 35 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 33 def defines_modules? @setting.defines_modules? end |
#module_dir ⇒ Object
57 58 59 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 57 def module_dir File.join(build_dir, 'Modules') end |
#module_path ⇒ Object
37 38 39 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 37 def module_path File.join(temp_dir, 'module.modulemap') if defines_modules? end |
#private_headers_dir ⇒ Object
53 54 55 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 53 def private_headers_dir File.join(build_dir, 'PrivateHeaders') end |
#private_module_path ⇒ Object
41 42 43 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 41 def private_module_path File.join(temp_dir, 'module.private.modulemap') if defines_modules? end |
#product_name ⇒ Object
21 22 23 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 21 def product_name File.basename(build_dir, '.*') end |
#public_headers_dir ⇒ Object
49 50 51 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 49 def public_headers_dir File.join(build_dir, 'Headers') end |
#swift_header_path ⇒ Object
45 46 47 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 45 def swift_header_path File.join(build_dir, 'Headers', "#{product_name}-Swift.h") if @setting.build_as_framework_swift? end |
#temp_dir ⇒ Object
29 30 31 |
# File 'lib/hmap/xc/target/target_vfs.rb', line 29 def temp_dir @setting.temp_path(@platform) end |