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}'
- XC_BUILD_DATA =
'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'
- OTHER_SWIFT_FLAGS =
'OTHER_SWIFT_FLAGS'
- 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 =
HMAP_TARGET_ROOT = [BUILD_DIR_KEY, ‘..’, ‘..’, HMAP_DIR,
PROJECT_TEMP_DIR, CONFIGURATION_EFFECTIVE_PLATFORM, TARGET_TEMP_DIR].join('/')
[SRCROOT, 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
- #hmap_xc_filename(type) ⇒ Object
-
#initialize ⇒ Constants
constructor
A new instance of Constants.
Constructor Details
#initialize ⇒ Constants
Returns a new instance of Constants.
65 66 67 |
# File 'lib/hmap/constants.rb', line 65 def initialize @build_as_framework = {} end |
Class Attribute Details
.instance ⇒ Object
50 51 52 |
# File 'lib/hmap/constants.rb', line 50 def self.instance @instance ||= new end |
Instance Method Details
#full_hmap_filename(type, product_name = nil) ⇒ Object
73 74 75 76 77 |
# File 'lib/hmap/constants.rb', line 73 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
79 80 81 82 83 84 85 |
# File 'lib/hmap/constants.rb', line 79 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
87 88 89 |
# File 'lib/hmap/constants.rb', line 87 def hmap_build_setting_key(type) build_setting_keys(type) end |
#hmap_build_setting_value(type) ⇒ Object
96 97 98 |
# File 'lib/hmap/constants.rb', line 96 def hmap_build_setting_value(type) build_setting_values[type] end |
#hmap_build_setting_values ⇒ Object
91 92 93 94 |
# File 'lib/hmap/constants.rb', line 91 def hmap_build_setting_values ss = build_setting_values.values.join(' ') ['$(inherited)', ss].join(' ') end |
#hmap_build_settings ⇒ Object
104 105 106 |
# File 'lib/hmap/constants.rb', line 104 def hmap_build_settings build_settings end |
#hmap_filename(type) ⇒ Object
69 70 71 |
# File 'lib/hmap/constants.rb', line 69 def hmap_filename(type) filenames[type] end |
#hmap_xc_filename(type) ⇒ Object
100 101 102 |
# File 'lib/hmap/constants.rb', line 100 def hmap_xc_filename(type) xc_filenames[type] end |