Class: HMap::Target::TargetContext

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

Instance Attribute Summary collapse

Attributes inherited from Context

#build_dir, #build_root, #hmap_root, #temp_dir, #temp_name

Instance Method Summary collapse

Methods inherited from Context

#temp_path

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.



7
8
9
10
11
12
13
# File 'lib/hmap/xc/target/target_context.rb', line 7

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_nameObject (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

Returns:

  • (Boolean)


15
16
17
# File 'lib/hmap/xc/target/target_context.rb', line 15

def build_as_framework_swift?
  @build_as_framework_swift
end

#build_path(platform) ⇒ Object



23
24
25
26
# File 'lib/hmap/xc/target/target_context.rb', line 23

def build_path(platform)
  path = super(platform)
  File.join(path, @full_product_name)
end

#defines_modules?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/hmap/xc/target/target_context.rb', line 19

def defines_modules?
  @defines_modules
end