bcl: Fix copy_bcl for desktop-win32 profile

This commit is contained in:
Rémi Verschelde 2021-07-26 12:55:51 +02:00
parent c3a9d311bc
commit fb6da044d7
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -225,7 +225,7 @@ def copy_bcl(opts: DesktopOpts, product: str, target_platform: str, target: str)
from distutils.dir_util import copy_tree
from bcl import get_profile_install_dirs
dest_dir = path_join(opts.install_dir, '%s-%s-%s' % (product, target, opts.configuration), 'lib/mono/4.5')
for src_dir in get_profile_install_dirs(opts, 'desktop'):
for src_dir in get_profile_install_dirs(opts, 'desktop-win32' if target_platform == 'windows' else 'desktop'):
if not os.path.isdir(src_dir):
raise BuildError('BCL source directory does not exist: %s. The BCL must be built prior to this.' % src_dir)
copy_tree(src_dir, dest_dir)