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



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

def build_data_dir
  Constants::XC_BUILD_DATA
end

#build_dirObject



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

def build_dir() end

#build_rootObject



73
74
75
# File 'lib/hmap/xc/workspace/project_helper.rb', line 73

def build_root
  workspace.build_root
end

#contextObject



90
91
92
93
94
95
96
# File 'lib/hmap/xc/workspace/project_helper.rb', line 90

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

#hmap_rootObject



81
82
83
84
# File 'lib/hmap/xc/workspace/project_helper.rb', line 81

def hmap_root
  # File.join(workspace.hmap_root, temp_name)
  File.join(project_dir, Constants::HMAP_DIR, temp_name)
end

#project_dirObject



69
70
71
# File 'lib/hmap/xc/workspace/project_helper.rb', line 69

def project_dir
  project.project_dir
end

#project_nameObject



65
66
67
# File 'lib/hmap/xc/workspace/project_helper.rb', line 65

def project_name
  project.root_object.name
end

#project_referencesObject



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

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



77
78
79
# File 'lib/hmap/xc/workspace/project_helper.rb', line 77

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

#temp_nameObject



59
60
61
# File 'lib/hmap/xc/workspace/project_helper.rb', line 59

def temp_name
  "#{project_name}.build"
end