Class: XcodeArchiveCache::Injection::BuildFlagsChanger

Inherits:
Object
  • Object
show all
Includes:
Logs
Defined in:
lib/injection/build_flags_changer.rb

Instance Method Summary collapse

Methods included from Logs

#debug, #error, #info, #set_log_level

Instance Method Details

#add_capital_i_path(build_configuration, path) ⇒ Object

Parameters:

  • build_configuration (Xcodeproj::Project::Object::XCBuildConfiguration)
  • path (String)


62
63
64
65
# File 'lib/injection/build_flags_changer.rb', line 62

def add_capital_i_path(build_configuration, path)
  debug("using -I path #{path}")
  add_cflag(build_configuration, path_to_capital_i(path))
end

#add_framework_headers_iquote(build_configuration, artifact_location, node) ⇒ Object

Parameters:



29
30
31
32
33
# File 'lib/injection/build_flags_changer.rb', line 29

def add_framework_headers_iquote(build_configuration, artifact_location, node)
  headers_search_path = get_framework_headers_iquote(artifact_location, node)
  debug("using -iquote path #{headers_search_path}")
  add_cflag(build_configuration, headers_search_path)
end

#add_framework_linker_flag(build_configuration, node) ⇒ Object

Parameters:



18
19
20
21
22
23
24
# File 'lib/injection/build_flags_changer.rb', line 18

def add_framework_linker_flag(build_configuration, node)
  linker_flag = get_framework_linker_flag(node)
  if linker_flag
    debug("using linker flag #{linker_flag}")
    add_linker_flag(build_configuration, linker_flag)
  end
end

#add_framework_search_path(build_configuration, path) ⇒ Object

Parameters:

  • build_configuration (Xcodeproj::Project::Object::XCBuildConfiguration)
  • path (String)


10
11
12
13
# File 'lib/injection/build_flags_changer.rb', line 10

def add_framework_search_path(build_configuration, path)
  debug("using framework search path #{path}")
  add_flag_to_configuration(build_configuration, FRAMEWORK_SEARCH_PATHS_KEY, path_to_search_path(path))
end

#add_headers_search_path(build_configuration, path) ⇒ Object

Parameters:

  • build_configuration (Xcodeproj::Project::Object::XCBuildConfiguration)
  • path (String)


46
47
48
49
# File 'lib/injection/build_flags_changer.rb', line 46

def add_headers_search_path(build_configuration, path)
  debug("using headers search path #{path}")
  add_flag_to_configuration(build_configuration, HEADER_SEARCH_PATHS_KEY, path)
end

#add_iquote_path(build_configuration, path) ⇒ Object

Parameters:

  • build_configuration (Xcodeproj::Project::Object::XCBuildConfiguration)
  • path (String)


54
55
56
57
# File 'lib/injection/build_flags_changer.rb', line 54

def add_iquote_path(build_configuration, path)
  debug("using -iquote path #{path}")
  add_cflag(build_configuration, path_to_iquote(path))
end

#add_library_search_path(build_configuration, path) ⇒ Object

Parameters:

  • build_configuration (Xcodeproj::Project::Object::XCBuildConfiguration)
  • path (String)


38
39
40
41
# File 'lib/injection/build_flags_changer.rb', line 38

def add_library_search_path(build_configuration, path)
  debug("using library search path #{path}")
  add_flag_to_configuration(build_configuration, LIBRARY_SEARCH_PATHS_KEY, path_to_search_path(path))
end