Class: HMap::TargetPlatformVFS

Inherits:
Object
  • Object
show all
Defined in:
lib/hmap/xc/target/target_vfs.rb

Instance Method Summary collapse

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_dirObject



29
30
31
# File 'lib/hmap/xc/target/target_vfs.rb', line 29

def build_dir
  @setting.build_path(@platform)
end

#defines_modules?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/hmap/xc/target/target_vfs.rb', line 37

def defines_modules?
  @setting.defines_modules?
end

#module_dirObject



61
62
63
# File 'lib/hmap/xc/target/target_vfs.rb', line 61

def module_dir
  File.join(build_dir, 'Modules')
end

#module_pathObject



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_dirObject



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_pathObject



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_nameObject



25
26
27
# File 'lib/hmap/xc/target/target_vfs.rb', line 25

def product_name
  File.basename(build_dir, '.*')
end

#public_headers_dirObject



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_pathObject



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_dirObject



33
34
35
# File 'lib/hmap/xc/target/target_vfs.rb', line 33

def temp_dir
  @setting.temp_path(@platform)
end