55from pathlib import Path
66import sys
77
8- from shared import BITS , TRUE_FALSE , VS_VERSIONS , make_win_artifact_name
8+ from shared import PLATFORMS , TRUE_FALSE , VS_VERSION , make_win_artifact_name
99
1010CWD = Path .cwd ()
1111
@@ -22,22 +22,24 @@ def move(src, dest):
2222 workspace = Path (sys .argv [1 ])
2323 outbase = Path (sys .argv [2 ])
2424
25- for vsver , dynamic in product (VS_VERSIONS .keys (), TRUE_FALSE ):
26- base = outbase / 'msvs{}_{}' .format (vsver ,
27- 'dynamic' if dynamic else 'static' )
25+
26+ include_copied = False
27+
28+ for platform , uwp in product (PLATFORMS , TRUE_FALSE ):
29+ base = outbase / '{}{}' .format (platform ,
30+ '_uwp' if uwp else '' )
2831 base .mkdir (parents = True , exist_ok = True )
29- name_64 = make_win_artifact_name (vsver , dynamic , 64 )
30- name_32 = make_win_artifact_name (vsver , dynamic , 32 )
31- artifact_64 = workspace / name_64
32- artifact_32 = workspace / name_32
33- # Move over one set of includes
34- move (artifact_32 / 'include' , base / 'include' )
32+ name = make_win_artifact_name (platform , uwp )
33+
34+ artifact = workspace / name
35+
36+ if not include_copied :
37+ # Move over one set of includes to the base
38+ move (artifact / 'include' , outbase / 'include' )
39+ include_copied = True
3540
3641 # lib files
37- move (artifact_32 / 'lib' , base / 'lib32' )
38- move (artifact_64 / 'lib' , base / 'lib' )
42+ move (artifact / 'lib' , base / 'lib' )
3943
40- if dynamic :
41- # dll files
42- move (artifact_32 / 'bin' , base / 'bin32' )
43- move (artifact_64 / 'bin' , base / 'bin' )
44+ # dll files
45+ move (artifact / 'bin' , base / 'bin' )
0 commit comments