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



95
96
97
# File 'lib/hmap/xc/workspace/project_helper.rb', line 95

def build_data_dir
  Constants::XC_BUILD_DATA
end

#build_dirObject



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

def build_dir() end

#build_rootObject



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

def build_root
  workspace.build_root
end

#contextObject



99
100
101
102
103
104
105
# File 'lib/hmap/xc/workspace/project_helper.rb', line 99

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

#hmap_rootObject



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

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

#project_dirObject



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

def project_dir
  project.project_dir
end

#project_nameObject



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

def project_name
  project.root_object.name
end

#project_referencesObject



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

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



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

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

#temp_nameObject



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

def temp_name
  "#{project_name}.build"
end