Class: HMap::Constants
- Inherits:
-
Object
- Object
- HMap::Constants
- Defined in:
- lib/hmap/constants.rb
Overview
This modules groups all the constants known to HMap.
Constant Summary collapse
- BUILD_DIR =
'BUILD_DIR'- BUILD_DIR_KEY =
'${BUILD_DIR}'- OBJROOT =
'OBJROOT'- SRCROOT =
'${SRCROOT}'- HMAP_DIR =
'HMap'- HMAP_GEN_DIR =
'HMAP_GEN_DIR'- HMAP_GEN_DIR_VALUE =
'${HMAP_GEN_DIR}'- XCBuildData =
'XCBuildData'- PROJECT_TEMP_DIR =
'${PROJECT}.build'- TARGET_TEMP_DIR =
'${TARGET_NAME}.build'- TARGET_NAME =
'${TARGET_NAME}'- PRODUCT_NAME =
'PRODUCT_NAME'- PRODUCT_NAME_VALUE =
'${PRODUCT_NAME}'- CONFIGURATION_EFFECTIVE_PLATFORM =
'$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)'- USE_HEADERMAP =
'USE_HEADERMAP'- USER_HEADER_SEARCH_PATHS =
'USER_HEADER_SEARCH_PATHS'- HEADER_SEARCH_PATHS =
'HEADER_SEARCH_PATHS'- HMAP_HEADER_SETTING =
'HMAP_HEADER_SETTING'- HMAP_HEADER_SETTING_KEY =
'${HMAP_HEADER_SETTING}'- OTHER_CFLAGS =
'OTHER_CFLAGS'- OTHER_CPLUSPLUSFLAGS =
'OTHER_CPLUSPLUSFLAGS'- CONFIGURATION_BUILD_DIR =
'CONFIGURATION_BUILD_DIR'- XCBuildConfiguration =
Xcodeproj::Project::Object::XCBuildConfiguration
- PBXSourcesBuildPhase =
Xcodeproj::Project::Object::PBXSourcesBuildPhase
- PBXHeadersBuildPhase =
Xcodeproj::Project::Object::PBXHeadersBuildPhase
- PBXGroup =
Xcodeproj::Project::Object::PBXGroup
- PBXFileReference =
Xcodeproj::Project::Object::PBXFileReference
- PBXBuildFile =
Xcodeproj::Project::Object::PBXBuildFile
- PBXAggregateTarget =
Xcodeproj::Project::Object::PBXAggregateTarget
- HMAP_TARGET_ROOT =
[BUILD_DIR_KEY, '..', '..', HMAP_DIR, PROJECT_TEMP_DIR, CONFIGURATION_EFFECTIVE_PLATFORM, TARGET_TEMP_DIR].join('/')
- HMAP_GEN_DIR_ATTRIBUTE =
{ HMAP_GEN_DIR => HMAP_TARGET_ROOT }
- HMAP_FILE_TYPE =
i[own_target_headers all_non_framework_target_headers all_target_headers all_product_headers project_headers workspace_headers]
Class Attribute Summary collapse
Instance Method Summary collapse
- #full_hmap_filename(type, product_name = nil) ⇒ Object
- #full_hmap_filepath(type, path, dir = nil, product_name = nil) ⇒ Object
- #hmap_build_setting_key(type) ⇒ Object
- #hmap_build_setting_value(type) ⇒ Object
- #hmap_build_setting_values ⇒ Object
- #hmap_build_settings ⇒ Object
-
#hmap_filename(type) ⇒ Object
def full_product_name(name, type) name.join(‘.’, FILE_TYPES_BY_EXTENSION) end.
- #hmap_xc_filename(type) ⇒ Object
Class Attribute Details
.instance ⇒ Object
46 47 48 |
# File 'lib/hmap/constants.rb', line 46 def self.instance @instance ||= new end |
Instance Method Details
#full_hmap_filename(type, product_name = nil) ⇒ Object
69 70 71 72 73 |
# File 'lib/hmap/constants.rb', line 69 def full_hmap_filename(type, product_name = nil) name = hmap_filename(type) name = "#{product_name}-#{name}" if type != :all_product_headers && !product_name.nil? name end |
#full_hmap_filepath(type, path, dir = nil, product_name = nil) ⇒ Object
75 76 77 78 79 80 81 |
# File 'lib/hmap/constants.rb', line 75 def full_hmap_filepath(type, path, dir = nil, product_name = nil) name = full_hmap_filename(type, product_name) unless path.end_with?(hmap_filename(type)) path = Pathname.new(path) path = path.join(dir) unless dir.nil? path = path.join(name) unless name.nil? path end |
#hmap_build_setting_key(type) ⇒ Object
83 84 85 |
# File 'lib/hmap/constants.rb', line 83 def hmap_build_setting_key(type) build_setting_keys(type) end |
#hmap_build_setting_value(type) ⇒ Object
92 93 94 |
# File 'lib/hmap/constants.rb', line 92 def hmap_build_setting_value(type) build_setting_values[type] end |
#hmap_build_setting_values ⇒ Object
87 88 89 90 |
# File 'lib/hmap/constants.rb', line 87 def hmap_build_setting_values ss = build_setting_values.values.join(' ') ['$(inherited)', ss].join(' ') end |
#hmap_build_settings ⇒ Object
100 101 102 |
# File 'lib/hmap/constants.rb', line 100 def hmap_build_settings build_settings end |
#hmap_filename(type) ⇒ Object
def full_product_name(name, type)
name.join('.', FILE_TYPES_BY_EXTENSION[type])
end
65 66 67 |
# File 'lib/hmap/constants.rb', line 65 def hmap_filename(type) filenames[type] end |
#hmap_xc_filename(type) ⇒ Object
96 97 98 |
# File 'lib/hmap/constants.rb', line 96 def hmap_xc_filename(type) xc_filenames[type] end |