Class: HMap::Target::TargetContext
- Defined in:
- lib/hmap/xc/target/target_context.rb
Instance Attribute Summary collapse
-
#product_name ⇒ Object
readonly
Returns the value of attribute product_name.
Attributes inherited from Context
#build_dir, #build_root, #hmap_root, #temp_dir, #temp_name
Instance Method Summary collapse
- #build_as_framework_swift? ⇒ Boolean
- #build_path(platform) ⇒ Object
- #defines_modules? ⇒ Boolean
-
#initialize(build_root, temp_dir, hmap_root, temp_name, build_dir, product_name, full_product_name, defines_modules, build_as_framework_swift) ⇒ TargetContext
constructor
A new instance of TargetContext.
Methods inherited from Context
Constructor Details
#initialize(build_root, temp_dir, hmap_root, temp_name, build_dir, product_name, full_product_name, defines_modules, build_as_framework_swift) ⇒ TargetContext
Returns a new instance of TargetContext.
8 9 10 11 12 13 14 |
# File 'lib/hmap/xc/target/target_context.rb', line 8 def initialize(build_root, temp_dir, hmap_root, temp_name, build_dir, product_name, full_product_name, defines_modules, build_as_framework_swift) super(build_root, temp_dir, hmap_root, temp_name, build_dir) @full_product_name = full_product_name @product_name = product_name @defines_modules = defines_modules @build_as_framework_swift = build_as_framework_swift end |
Instance Attribute Details
#product_name ⇒ Object (readonly)
Returns the value of attribute product_name.
6 7 8 |
# File 'lib/hmap/xc/target/target_context.rb', line 6 def product_name @product_name end |
Instance Method Details
#build_as_framework_swift? ⇒ Boolean
16 17 18 |
# File 'lib/hmap/xc/target/target_context.rb', line 16 def build_as_framework_swift? @build_as_framework_swift end |
#build_path(platform) ⇒ Object
24 25 26 27 |
# File 'lib/hmap/xc/target/target_context.rb', line 24 def build_path(platform) path = super(platform) File.join(path, @full_product_name) end |
#defines_modules? ⇒ Boolean
20 21 22 |
# File 'lib/hmap/xc/target/target_context.rb', line 20 def defines_modules? @defines_modules end |