(self, name)
| 778 | |
| 779 | # Internal methods. |
| 780 | def adjust_lib_name(self, name): |
| 781 | global lib_prefix |
| 782 | global dll_prefix |
| 783 | result = name |
| 784 | |
| 785 | pos = name.rfind(".") |
| 786 | if pos != -1: |
| 787 | suffix = name[pos:] |
| 788 | if suffix == ".lib": |
| 789 | (head, tail) = os.path.split(name) |
| 790 | if lib_prefix: |
| 791 | tail = lib_prefix + tail |
| 792 | result = os.path.join(head, tail) |
| 793 | elif suffix == ".dll": |
| 794 | (head, tail) = os.path.split(name) |
| 795 | if dll_prefix: |
| 796 | tail = dll_prefix + tail |
| 797 | result = os.path.join(head, tail) |
| 798 | # If we want to use this name in a Jamfile, we better convert \ to /, |
| 799 | # as otherwise we would have to quote \. |
| 800 | result = result.replace("\\", "/") |
| 801 | return result |
| 802 | |
| 803 | def adjust_suffix(self, name): |
| 804 | if not self.translate_suffixes: |
nothing calls this directly
no outgoing calls
no test coverage detected