@@ -407,42 +407,13 @@ def install_swiftpm(prefix, args):
407
407
dest = os .path .join (prefix , "libexec" , "swift" , "pm" )
408
408
install_binary (args , "swiftpm-xctest-helper" , dest )
409
409
410
- # Install PackageDescription runtime libraries .
411
- runtime_lib_dest = os .path .join (prefix , "lib" , "swift" , "pm" )
412
- runtime_lib_src = os . path . join (args . bootstrap_dir , "pm" )
410
+ # Install the PackageDescription library and associated modules .
411
+ dest = os .path .join (prefix , "lib" , "swift" , "pm" , "ManifestAPI " )
412
+ install_dylib (args , "PackageDescription" , dest , [ "PackageDescription" ] )
413
413
414
- files_to_install = ["libPackageDescription" + g_shared_lib_suffix ]
415
- if platform .system () == 'Darwin' :
416
- files_to_install .append ("PackageDescription.swiftinterface" )
417
- else :
418
- files_to_install .append ("PackageDescription.swiftmodule" )
419
- files_to_install .append ("PackageDescription.swiftdoc" )
420
-
421
- for file in files_to_install :
422
- src = os .path .join (runtime_lib_src , "ManifestAPI" , file )
423
- dest = os .path .join (runtime_lib_dest , "ManifestAPI" , file )
424
- mkdir_p (os .path .dirname (dest ))
425
-
426
- note ("Installing %s to %s" % (src , dest ))
427
-
428
- file_util .copy_file (src , dest , update = 1 )
429
-
430
- # Install PackagePlugin runtime libraries.
431
- files_to_install = ["libPackagePlugin" + g_shared_lib_suffix ]
432
- if platform .system () == 'Darwin' :
433
- files_to_install .append ("PackagePlugin.swiftinterface" )
434
- else :
435
- files_to_install .append ("PackagePlugin.swiftmodule" )
436
- files_to_install .append ("PackagePlugin.swiftdoc" )
437
-
438
- for file in files_to_install :
439
- src = os .path .join (runtime_lib_src , "PluginAPI" , file )
440
- dest = os .path .join (runtime_lib_dest , "PluginAPI" , file )
441
- mkdir_p (os .path .dirname (dest ))
442
-
443
- note ("Installing %s to %s" % (src , dest ))
444
-
445
- file_util .copy_file (src , dest , update = 1 )
414
+ # Install the PackagePlugin library and associated modules.
415
+ dest = os .path .join (prefix , "lib" , "swift" , "pm" , "PluginAPI" )
416
+ install_dylib (args , "PackagePlugin" , dest , ["PackagePlugin" ])
446
417
447
418
448
419
# Helper function that installs a dynamic library and a set of modules to a particular directory.
0 commit comments