module Xcmake::XcodeprojHelper
Public Instance Methods
find_group_with_path(path)
click to toggle source
# File lib/xcmake/helpers/xcodeproj_helper.rb, line 15 def find_group_with_path(path) @project.main_group.find_subpath(path) end
find_target_with_path(path)
click to toggle source
# File lib/xcmake/helpers/xcodeproj_helper.rb, line 19 def find_target_with_path(path) target_name = path.split("/").first @project.targets.find { |t| t.name == target_name } end
group_paths()
click to toggle source
# File lib/xcmake/helpers/xcodeproj_helper.rb, line 7 def group_paths @project.main_group.recursive_children_groups.map(&:real_path).uniq end
is_target_path?(path)
click to toggle source
# File lib/xcmake/helpers/xcodeproj_helper.rb, line 11 def is_target_path?(path) @project.targets.map(&:name).include?(path) end
project_root()
click to toggle source
# File lib/xcmake/helpers/xcodeproj_helper.rb, line 3 def project_root @project.path.dirname.to_s end