@@ -1176,16 +1176,21 @@ def main():
1176
1176
mkdir_p (libswiftdir )
1177
1177
mkdir_p (libincludedir )
1178
1178
1179
- # Add libFoundation.
1180
- symlink_force (os .path .join (args .foundation_path , 'libFoundation.so' ), libswiftdir )
1179
+ for module in ["Foundation" , "FoundationNetworking" , "FoundationXML" ]:
1180
+ # Add the library.
1181
+ symlink_force (os .path .join (args .foundation_path , 'lib' + module + '.so' ), libswiftdir )
1181
1182
1182
- # Add Foundation's swiftmodule.
1183
- for module_file in ["Foundation .swiftmodule" , "Foundation .swiftdoc" ]:
1184
- symlink_force (os .path .join (args .foundation_path , 'swift' , module_file ), libincludedir )
1183
+ # Add Foundation's swiftmodule.
1184
+ for extension in [".swiftmodule" , ".swiftdoc" ]:
1185
+ symlink_force (os .path .join (args .foundation_path , 'swift' , module + extension ), libincludedir )
1185
1186
1186
1187
# Add CoreFoundation "framework". This just contains the header and the modulemap.
1187
1188
core_foundation_path = os .path .join (args .foundation_path , "CoreFoundation.framework" )
1188
1189
symlink_force (core_foundation_path , libincludedir )
1190
+ cf_url_session_path = os .path .join (args .foundation_path , "CFURLSessionInterface.framework" )
1191
+ symlink_force (cf_url_session_path , libincludedir )
1192
+ cf_xml_path = os .path .join (args .foundation_path , "CFXMLInterface.framework" )
1193
+ symlink_force (cf_xml_path , libincludedir )
1189
1194
1190
1195
# Add symlinks for dispatch.
1191
1196
symlink_force (os .path .join (args .libdispatch_build_dir , 'libBlocksRuntime.so' ), libswiftdir )
0 commit comments