Returns the dictionary of variable mapping depending on the SDKROOT.
(self, sdkroot)
| 52 | self._archs = {"mac": mac, "ios": iphoneos, "iossim": iphonesimulator} |
| 53 | |
| 54 | def _VariableMapping(self, sdkroot): |
| 55 | """Returns the dictionary of variable mapping depending on the SDKROOT.""" |
| 56 | sdkroot = sdkroot.lower() |
| 57 | if "iphoneos" in sdkroot: |
| 58 | return self._archs["ios"] |
| 59 | elif "iphonesimulator" in sdkroot: |
| 60 | return self._archs["iossim"] |
| 61 | else: |
| 62 | return self._archs["mac"] |
| 63 | |
| 64 | def _ExpandArchs(self, archs, sdkroot): |
| 65 | """Expands variables references in ARCHS, and remove duplicates.""" |