this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Get stub generator to work outside /usr/lib

authored by

Andrew Hyatt and committed by
GitHub
dec7a4dc 8df457b0

+4 -7
+4 -7
tools/darling-stub-gen
··· 66 66 67 67 68 68 def extract_library_name(name): 69 - prefix_len = len(library_prefix) + len("lib") 70 - ext_len = len(".dylib") 71 - 72 - return name[prefix_len: len(name) - ext_len] 73 - 69 + name = re.search("/([A-Za-z0-9]+)\.dylib$", name).group(1) 70 + print(name) 71 + return name 74 72 75 73 def extract_framework_name(name): 76 74 return name[name.rfind("/") + 1:] 77 - 78 75 79 76 def write_objc_source_file_locs(cmake_file, classes, num_spaces): 80 77 for cls in classes: ··· 93 90 except FileExistsError: 94 91 pass 95 92 96 - if len(full_path) > len(library_prefix) and full_path[:len(library_prefix)] == library_prefix: 93 + if full_path.endswith(".dylib"): 97 94 library = True 98 95 target_name = extract_library_name(full_path) 99 96 elif len(full_path) > len(framework_prefix) and full_path[:len(framework_prefix)] == framework_prefix: