Module: HMap::Project::Helper

Includes:
HeaderType
Included in:
HMap::Project
Defined in:
lib/hmap/xc/workspace/project_helper.rb

Instance Method Summary collapse

Methods included from HeaderType

#headers_hash, #private_entrys, #project_entrys, #public_entrys, #use_vfs?

Instance Method Details

#build_data_dirObject



79
80
81
# File 'lib/hmap/xc/workspace/project_helper.rb', line 79

def build_data_dir
  Constants::XCBuildData
end

#build_dirObject



49
# File 'lib/hmap/xc/workspace/project_helper.rb', line 49

def build_dir() end

#build_rootObject



67
68
69
# File 'lib/hmap/xc/workspace/project_helper.rb', line 67

def build_root
  workspace.build_root
end

#contextObject



83
84
85
86
87
88
89
# File 'lib/hmap/xc/workspace/project_helper.rb', line 83

def context
  HMap::Context.new(build_root,
                    temp_dir,
                    File.join(hmap_root, build_data_dir),
                    '',
                    build_dir)
end

#hmap_rootObject



75
76
77
# File 'lib/hmap/xc/workspace/project_helper.rb', line 75

def hmap_root
  File.join(workspace.hmap_root, temp_name)
end

#project_dirObject



55
56
57
# File 'lib/hmap/xc/workspace/project_helper.rb', line 55

def project_dir
  project.project_dir
end

#project_nameObject



51
52
53
# File 'lib/hmap/xc/workspace/project_helper.rb', line 51

def project_name
  project.root_object.name
end

#project_referencesObject



38
39
40
41
42
43
# File 'lib/hmap/xc/workspace/project_helper.rb', line 38

def project_references
  return @project_references if defined? @project_references
  
  project_references = PBXHelper.project_references(project)
  @project_references = project_references.map { |pr| Project.new(pr, workspace) }
end

#temp_dirObject



71
72
73
# File 'lib/hmap/xc/workspace/project_helper.rb', line 71

def temp_dir
  workspace.obj_root
end

#temp_nameObject



45
46
47
# File 'lib/hmap/xc/workspace/project_helper.rb', line 45

def temp_name
  "#{project_name}.build"
end

#temp_rootObject



63
64
65
# File 'lib/hmap/xc/workspace/project_helper.rb', line 63

def temp_root
  File.join(workspace.obj_root, temp_name)
end