Skip to content
This repository was archived by the owner on Aug 24, 2025. It is now read-only.

Commit 5ae9929

Browse files
committed
project: Fix build events when OutDir contains spaces.
1 parent d056a39 commit 5ae9929

File tree

2 files changed

+192
-192
lines changed

2 files changed

+192
-192
lines changed

SMP/libcrypto.vcxproj

Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,10 +1197,10 @@
11971197
<AdditionalOptions>/IGNORE:4221 %(AdditionalOptions)</AdditionalOptions>
11981198
</Lib>
11991199
<PostBuildEvent>
1200-
<Command>mkdir $(OutDir)\include
1201-
mkdir $(OutDir)\include\openssl
1202-
copy ..\include\openssl\*.h $(OutDir)\include\openssl
1203-
copy .\openssl\opensslconf.h $(OutDir)\include\openssl
1200+
<Command>mkdir "$(OutDir)"\include
1201+
mkdir "$(OutDir)"\include\openssl
1202+
copy ..\include\openssl\*.h "$(OutDir)"\include\openssl
1203+
copy .\openssl\opensslconf.h "$(OutDir)"\include\openssl
12041204
mkdir $(OutDir)\licenses
12051205
copy ..\LICENSE $(OutDir)\licenses\openssl.txt</Command>
12061206
</PostBuildEvent>
@@ -1281,8 +1281,8 @@ perl ..\crypto\ec\asm\ecp_nistz256-x86.pl win32n %FLAGC% &gt;.\crypto\ecp_nistz2
12811281
if not exist .\crypto\poly1305-x86.asm (
12821282
perl ..\crypto\poly1305\asm\poly1305-x86.pl win32n %FLAGC% &gt;.\crypto\poly1305-x86.asm
12831283
)
1284-
if exist $(OutDir)\include\openssl (
1285-
rd /s /q $(OutDir)\include\openssl
1284+
if exist "$(OutDir)"\include\openssl (
1285+
rd /s /q "$(OutDir)"\include\openssl
12861286
cd ../
12871287
cd $(ProjectDir)
12881288
)</Command>
@@ -1292,8 +1292,8 @@ cd $(ProjectDir)
12921292
</CustomBuildStep>
12931293
<CustomBuildStep>
12941294
<Outputs>force_clean</Outputs>
1295-
<Command>if exist $(OutDir)\include\openssl (
1296-
rmdir /s /q $(OutDir)\include\openssl
1295+
<Command>if exist "$(OutDir)"\include\openssl (
1296+
rmdir /s /q "$(OutDir)"\include\openssl
12971297
)
12981298
if exist $(OutDir)\licenses\openssl.txt (
12991299
del /f /q $(OutDir)\licenses\openssl.txt
@@ -1325,10 +1325,10 @@ del /f /q $(OutDir)\licenses\openssl.txt
13251325
<AdditionalOptions>/IGNORE:4221 %(AdditionalOptions)</AdditionalOptions>
13261326
</Lib>
13271327
<PostBuildEvent>
1328-
<Command>mkdir $(OutDir)\include
1329-
mkdir $(OutDir)\include\openssl
1330-
copy ..\include\openssl\*.h $(OutDir)\include\openssl
1331-
copy .\openssl\opensslconf.h $(OutDir)\include\openssl
1328+
<Command>mkdir "$(OutDir)"\include
1329+
mkdir "$(OutDir)"\include\openssl
1330+
copy ..\include\openssl\*.h "$(OutDir)"\include\openssl
1331+
copy .\openssl\opensslconf.h "$(OutDir)"\include\openssl
13321332
mkdir $(OutDir)\licenses
13331333
copy ..\LICENSE $(OutDir)\licenses\openssl.txt</Command>
13341334
</PostBuildEvent>
@@ -1423,8 +1423,8 @@ perl ..\crypto\ec\asm\ecp_nistz256-avx2.pl nasm .\crypto\ecp_nistz256-avx2.asm
14231423
if not exist .\crypto\poly1305-x86_64.asm (
14241424
perl ..\crypto\poly1305\asm\poly1305-x86_64.pl nasm .\crypto\poly1305-x86_64.asm
14251425
)
1426-
if exist $(OutDir)\include\openssl (
1427-
rd /s /q $(OutDir)\include\openssl
1426+
if exist "$(OutDir)"\include\openssl (
1427+
rd /s /q "$(OutDir)"\include\openssl
14281428
cd ../
14291429
cd $(ProjectDir)
14301430
)</Command>
@@ -1434,8 +1434,8 @@ cd $(ProjectDir)
14341434
</CustomBuildStep>
14351435
<CustomBuildStep>
14361436
<Outputs>force_clean</Outputs>
1437-
<Command>if exist $(OutDir)\include\openssl (
1438-
rmdir /s /q $(OutDir)\include\openssl
1437+
<Command>if exist "$(OutDir)"\include\openssl (
1438+
rmdir /s /q "$(OutDir)"\include\openssl
14391439
)
14401440
if exist $(OutDir)\licenses\openssl.txt (
14411441
del /f /q $(OutDir)\licenses\openssl.txt
@@ -1469,10 +1469,10 @@ del /f /q $(OutDir)\licenses\openssl.txt
14691469
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
14701470
</Link>
14711471
<PostBuildEvent>
1472-
<Command>mkdir $(OutDir)\include
1473-
mkdir $(OutDir)\include\openssl
1474-
copy ..\include\openssl\*.h $(OutDir)\include\openssl
1475-
copy .\openssl\opensslconf.h $(OutDir)\include\openssl
1472+
<Command>mkdir "$(OutDir)"\include
1473+
mkdir "$(OutDir)"\include\openssl
1474+
copy ..\include\openssl\*.h "$(OutDir)"\include\openssl
1475+
copy .\openssl\opensslconf.h "$(OutDir)"\include\openssl
14761476
mkdir $(OutDir)\licenses
14771477
copy ..\LICENSE $(OutDir)\licenses\openssl.txt</Command>
14781478
</PostBuildEvent>
@@ -1553,8 +1553,8 @@ perl ..\crypto\ec\asm\ecp_nistz256-x86.pl win32n %FLAGC% &gt;.\crypto\ecp_nistz2
15531553
if not exist .\crypto\poly1305-x86.asm (
15541554
perl ..\crypto\poly1305\asm\poly1305-x86.pl win32n %FLAGC% &gt;.\crypto\poly1305-x86.asm
15551555
)
1556-
if exist $(OutDir)\include\openssl (
1557-
rd /s /q $(OutDir)\include\openssl
1556+
if exist "$(OutDir)"\include\openssl (
1557+
rd /s /q "$(OutDir)"\include\openssl
15581558
cd ../
15591559
cd $(ProjectDir)
15601560
)</Command>
@@ -1564,8 +1564,8 @@ cd $(ProjectDir)
15641564
</CustomBuildStep>
15651565
<CustomBuildStep>
15661566
<Outputs>force_clean</Outputs>
1567-
<Command>if exist $(OutDir)\include\openssl (
1568-
rmdir /s /q $(OutDir)\include\openssl
1567+
<Command>if exist "$(OutDir)"\include\openssl (
1568+
rmdir /s /q "$(OutDir)"\include\openssl
15691569
)
15701570
if exist $(OutDir)\licenses\openssl.txt (
15711571
del /f /q $(OutDir)\licenses\openssl.txt
@@ -1598,10 +1598,10 @@ del /f /q $(OutDir)\licenses\openssl.txt
15981598
<MinimumRequiredVersion>6.0</MinimumRequiredVersion>
15991599
</Link>
16001600
<PostBuildEvent>
1601-
<Command>mkdir $(OutDir)\include
1602-
mkdir $(OutDir)\include\openssl
1603-
copy ..\include\openssl\*.h $(OutDir)\include\openssl
1604-
copy .\openssl\opensslconf.h $(OutDir)\include\openssl
1601+
<Command>mkdir "$(OutDir)"\include
1602+
mkdir "$(OutDir)"\include\openssl
1603+
copy ..\include\openssl\*.h "$(OutDir)"\include\openssl
1604+
copy .\openssl\opensslconf.h "$(OutDir)"\include\openssl
16051605
mkdir $(OutDir)\licenses
16061606
copy ..\LICENSE $(OutDir)\licenses\openssl.txt</Command>
16071607
</PostBuildEvent>
@@ -1696,8 +1696,8 @@ perl ..\crypto\ec\asm\ecp_nistz256-avx2.pl nasm .\crypto\ecp_nistz256-avx2.asm
16961696
if not exist .\crypto\poly1305-x86_64.asm (
16971697
perl ..\crypto\poly1305\asm\poly1305-x86_64.pl nasm .\crypto\poly1305-x86_64.asm
16981698
)
1699-
if exist $(OutDir)\include\openssl (
1700-
rd /s /q $(OutDir)\include\openssl
1699+
if exist "$(OutDir)"\include\openssl (
1700+
rd /s /q "$(OutDir)"\include\openssl
17011701
cd ../
17021702
cd $(ProjectDir)
17031703
)</Command>
@@ -1707,8 +1707,8 @@ cd $(ProjectDir)
17071707
</CustomBuildStep>
17081708
<CustomBuildStep>
17091709
<Outputs>force_clean</Outputs>
1710-
<Command>if exist $(OutDir)\include\openssl (
1711-
rmdir /s /q $(OutDir)\include\openssl
1710+
<Command>if exist "$(OutDir)"\include\openssl (
1711+
rmdir /s /q "$(OutDir)"\include\openssl
17121712
)
17131713
if exist $(OutDir)\licenses\openssl.txt (
17141714
del /f /q $(OutDir)\licenses\openssl.txt
@@ -1751,10 +1751,10 @@ del /f /q $(OutDir)\licenses\openssl.txt
17511751
<AdditionalOptions>/IGNORE:4221 %(AdditionalOptions)</AdditionalOptions>
17521752
</Lib>
17531753
<PostBuildEvent>
1754-
<Command>mkdir $(OutDir)\include
1755-
mkdir $(OutDir)\include\openssl
1756-
copy ..\include\openssl\*.h $(OutDir)\include\openssl
1757-
copy .\openssl\opensslconf.h $(OutDir)\include\openssl
1754+
<Command>mkdir "$(OutDir)"\include
1755+
mkdir "$(OutDir)"\include\openssl
1756+
copy ..\include\openssl\*.h "$(OutDir)"\include\openssl
1757+
copy .\openssl\opensslconf.h "$(OutDir)"\include\openssl
17581758
mkdir $(OutDir)\licenses
17591759
copy ..\LICENSE $(OutDir)\licenses\openssl.txt</Command>
17601760
</PostBuildEvent>
@@ -1835,8 +1835,8 @@ perl ..\crypto\ec\asm\ecp_nistz256-x86.pl win32n %FLAGC% &gt;.\crypto\ecp_nistz2
18351835
if not exist .\crypto\poly1305-x86.asm (
18361836
perl ..\crypto\poly1305\asm\poly1305-x86.pl win32n %FLAGC% &gt;.\crypto\poly1305-x86.asm
18371837
)
1838-
if exist $(OutDir)\include\openssl (
1839-
rd /s /q $(OutDir)\include\openssl
1838+
if exist "$(OutDir)"\include\openssl (
1839+
rd /s /q "$(OutDir)"\include\openssl
18401840
cd ../
18411841
cd $(ProjectDir)
18421842
)</Command>
@@ -1846,8 +1846,8 @@ cd $(ProjectDir)
18461846
</CustomBuildStep>
18471847
<CustomBuildStep>
18481848
<Outputs>force_clean</Outputs>
1849-
<Command>if exist $(OutDir)\include\openssl (
1850-
rmdir /s /q $(OutDir)\include\openssl
1849+
<Command>if exist "$(OutDir)"\include\openssl (
1850+
rmdir /s /q "$(OutDir)"\include\openssl
18511851
)
18521852
if exist $(OutDir)\licenses\openssl.txt (
18531853
del /f /q $(OutDir)\licenses\openssl.txt
@@ -1887,10 +1887,10 @@ del /f /q $(OutDir)\licenses\openssl.txt
18871887
<AdditionalOptions>/IGNORE:4221 %(AdditionalOptions)</AdditionalOptions>
18881888
</Lib>
18891889
<PostBuildEvent>
1890-
<Command>mkdir $(OutDir)\include
1891-
mkdir $(OutDir)\include\openssl
1892-
copy ..\include\openssl\*.h $(OutDir)\include\openssl
1893-
copy .\openssl\opensslconf.h $(OutDir)\include\openssl
1890+
<Command>mkdir "$(OutDir)"\include
1891+
mkdir "$(OutDir)"\include\openssl
1892+
copy ..\include\openssl\*.h "$(OutDir)"\include\openssl
1893+
copy .\openssl\opensslconf.h "$(OutDir)"\include\openssl
18941894
mkdir $(OutDir)\licenses
18951895
copy ..\LICENSE $(OutDir)\licenses\openssl.txt</Command>
18961896
</PostBuildEvent>
@@ -1971,8 +1971,8 @@ perl ..\crypto\ec\asm\ecp_nistz256-x86.pl win32n %FLAGC% &gt;.\crypto\ecp_nistz2
19711971
if not exist .\crypto\poly1305-x86.asm (
19721972
perl ..\crypto\poly1305\asm\poly1305-x86.pl win32n %FLAGC% &gt;.\crypto\poly1305-x86.asm
19731973
)
1974-
if exist $(OutDir)\include\openssl (
1975-
rd /s /q $(OutDir)\include\openssl
1974+
if exist "$(OutDir)"\include\openssl (
1975+
rd /s /q "$(OutDir)"\include\openssl
19761976
cd ../
19771977
cd $(ProjectDir)
19781978
)</Command>
@@ -1982,8 +1982,8 @@ cd $(ProjectDir)
19821982
</CustomBuildStep>
19831983
<CustomBuildStep>
19841984
<Outputs>force_clean</Outputs>
1985-
<Command>if exist $(OutDir)\include\openssl (
1986-
rmdir /s /q $(OutDir)\include\openssl
1985+
<Command>if exist "$(OutDir)"\include\openssl (
1986+
rmdir /s /q "$(OutDir)"\include\openssl
19871987
)
19881988
if exist $(OutDir)\licenses\openssl.txt (
19891989
del /f /q $(OutDir)\licenses\openssl.txt
@@ -2023,10 +2023,10 @@ del /f /q $(OutDir)\licenses\openssl.txt
20232023
<AdditionalOptions>/IGNORE:4221 %(AdditionalOptions)</AdditionalOptions>
20242024
</Lib>
20252025
<PostBuildEvent>
2026-
<Command>mkdir $(OutDir)\include
2027-
mkdir $(OutDir)\include\openssl
2028-
copy ..\include\openssl\*.h $(OutDir)\include\openssl
2029-
copy .\openssl\opensslconf.h $(OutDir)\include\openssl
2026+
<Command>mkdir "$(OutDir)"\include
2027+
mkdir "$(OutDir)"\include\openssl
2028+
copy ..\include\openssl\*.h "$(OutDir)"\include\openssl
2029+
copy .\openssl\opensslconf.h "$(OutDir)"\include\openssl
20302030
mkdir $(OutDir)\licenses
20312031
copy ..\LICENSE $(OutDir)\licenses\openssl.txt</Command>
20322032
</PostBuildEvent>
@@ -2121,8 +2121,8 @@ perl ..\crypto\ec\asm\ecp_nistz256-avx2.pl nasm .\crypto\ecp_nistz256-avx2.asm
21212121
if not exist .\crypto\poly1305-x86_64.asm (
21222122
perl ..\crypto\poly1305\asm\poly1305-x86_64.pl nasm .\crypto\poly1305-x86_64.asm
21232123
)
2124-
if exist $(OutDir)\include\openssl (
2125-
rd /s /q $(OutDir)\include\openssl
2124+
if exist "$(OutDir)"\include\openssl (
2125+
rd /s /q "$(OutDir)"\include\openssl
21262126
cd ../
21272127
cd $(ProjectDir)
21282128
)</Command>
@@ -2132,8 +2132,8 @@ cd $(ProjectDir)
21322132
</CustomBuildStep>
21332133
<CustomBuildStep>
21342134
<Outputs>force_clean</Outputs>
2135-
<Command>if exist $(OutDir)\include\openssl (
2136-
rmdir /s /q $(OutDir)\include\openssl
2135+
<Command>if exist "$(OutDir)"\include\openssl (
2136+
rmdir /s /q "$(OutDir)"\include\openssl
21372137
)
21382138
if exist $(OutDir)\licenses\openssl.txt (
21392139
del /f /q $(OutDir)\licenses\openssl.txt
@@ -2173,10 +2173,10 @@ del /f /q $(OutDir)\licenses\openssl.txt
21732173
<AdditionalOptions>/IGNORE:4221 %(AdditionalOptions)</AdditionalOptions>
21742174
</Lib>
21752175
<PostBuildEvent>
2176-
<Command>mkdir $(OutDir)\include
2177-
mkdir $(OutDir)\include\openssl
2178-
copy ..\include\openssl\*.h $(OutDir)\include\openssl
2179-
copy .\openssl\opensslconf.h $(OutDir)\include\openssl
2176+
<Command>mkdir "$(OutDir)"\include
2177+
mkdir "$(OutDir)"\include\openssl
2178+
copy ..\include\openssl\*.h "$(OutDir)"\include\openssl
2179+
copy .\openssl\opensslconf.h "$(OutDir)"\include\openssl
21802180
mkdir $(OutDir)\licenses
21812181
copy ..\LICENSE $(OutDir)\licenses\openssl.txt</Command>
21822182
</PostBuildEvent>
@@ -2271,8 +2271,8 @@ perl ..\crypto\ec\asm\ecp_nistz256-avx2.pl nasm .\crypto\ecp_nistz256-avx2.asm
22712271
if not exist .\crypto\poly1305-x86_64.asm (
22722272
perl ..\crypto\poly1305\asm\poly1305-x86_64.pl nasm .\crypto\poly1305-x86_64.asm
22732273
)
2274-
if exist $(OutDir)\include\openssl (
2275-
rd /s /q $(OutDir)\include\openssl
2274+
if exist "$(OutDir)"\include\openssl (
2275+
rd /s /q "$(OutDir)"\include\openssl
22762276
cd ../
22772277
cd $(ProjectDir)
22782278
)</Command>
@@ -2282,8 +2282,8 @@ cd $(ProjectDir)
22822282
</CustomBuildStep>
22832283
<CustomBuildStep>
22842284
<Outputs>force_clean</Outputs>
2285-
<Command>if exist $(OutDir)\include\openssl (
2286-
rmdir /s /q $(OutDir)\include\openssl
2285+
<Command>if exist "$(OutDir)"\include\openssl (
2286+
rmdir /s /q "$(OutDir)"\include\openssl
22872287
)
22882288
if exist $(OutDir)\licenses\openssl.txt (
22892289
del /f /q $(OutDir)\licenses\openssl.txt
@@ -2323,10 +2323,10 @@ del /f /q $(OutDir)\licenses\openssl.txt
23232323
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
23242324
</Link>
23252325
<PostBuildEvent>
2326-
<Command>mkdir $(OutDir)\include
2327-
mkdir $(OutDir)\include\openssl
2328-
copy ..\include\openssl\*.h $(OutDir)\include\openssl
2329-
copy .\openssl\opensslconf.h $(OutDir)\include\openssl
2326+
<Command>mkdir "$(OutDir)"\include
2327+
mkdir "$(OutDir)"\include\openssl
2328+
copy ..\include\openssl\*.h "$(OutDir)"\include\openssl
2329+
copy .\openssl\opensslconf.h "$(OutDir)"\include\openssl
23302330
mkdir $(OutDir)\licenses
23312331
copy ..\LICENSE $(OutDir)\licenses\openssl.txt</Command>
23322332
</PostBuildEvent>
@@ -2407,8 +2407,8 @@ perl ..\crypto\ec\asm\ecp_nistz256-x86.pl win32n %FLAGC% &gt;.\crypto\ecp_nistz2
24072407
if not exist .\crypto\poly1305-x86.asm (
24082408
perl ..\crypto\poly1305\asm\poly1305-x86.pl win32n %FLAGC% &gt;.\crypto\poly1305-x86.asm
24092409
)
2410-
if exist $(OutDir)\include\openssl (
2411-
rd /s /q $(OutDir)\include\openssl
2410+
if exist "$(OutDir)"\include\openssl (
2411+
rd /s /q "$(OutDir)"\include\openssl
24122412
cd ../
24132413
cd $(ProjectDir)
24142414
)</Command>
@@ -2418,8 +2418,8 @@ cd $(ProjectDir)
24182418
</CustomBuildStep>
24192419
<CustomBuildStep>
24202420
<Outputs>force_clean</Outputs>
2421-
<Command>if exist $(OutDir)\include\openssl (
2422-
rmdir /s /q $(OutDir)\include\openssl
2421+
<Command>if exist "$(OutDir)"\include\openssl (
2422+
rmdir /s /q "$(OutDir)"\include\openssl
24232423
)
24242424
if exist $(OutDir)\licenses\openssl.txt (
24252425
del /f /q $(OutDir)\licenses\openssl.txt
@@ -2458,10 +2458,10 @@ del /f /q $(OutDir)\licenses\openssl.txt
24582458
<MinimumRequiredVersion>6.0</MinimumRequiredVersion>
24592459
</Link>
24602460
<PostBuildEvent>
2461-
<Command>mkdir $(OutDir)\include
2462-
mkdir $(OutDir)\include\openssl
2463-
copy ..\include\openssl\*.h $(OutDir)\include\openssl
2464-
copy .\openssl\opensslconf.h $(OutDir)\include\openssl
2461+
<Command>mkdir "$(OutDir)"\include
2462+
mkdir "$(OutDir)"\include\openssl
2463+
copy ..\include\openssl\*.h "$(OutDir)"\include\openssl
2464+
copy .\openssl\opensslconf.h "$(OutDir)"\include\openssl
24652465
mkdir $(OutDir)\licenses
24662466
copy ..\LICENSE $(OutDir)\licenses\openssl.txt</Command>
24672467
</PostBuildEvent>
@@ -2556,8 +2556,8 @@ perl ..\crypto\ec\asm\ecp_nistz256-avx2.pl nasm .\crypto\ecp_nistz256-avx2.asm
25562556
if not exist .\crypto\poly1305-x86_64.asm (
25572557
perl ..\crypto\poly1305\asm\poly1305-x86_64.pl nasm .\crypto\poly1305-x86_64.asm
25582558
)
2559-
if exist $(OutDir)\include\openssl (
2560-
rd /s /q $(OutDir)\include\openssl
2559+
if exist "$(OutDir)"\include\openssl (
2560+
rd /s /q "$(OutDir)"\include\openssl
25612561
cd ../
25622562
cd $(ProjectDir)
25632563
)</Command>
@@ -2567,8 +2567,8 @@ cd $(ProjectDir)
25672567
</CustomBuildStep>
25682568
<CustomBuildStep>
25692569
<Outputs>force_clean</Outputs>
2570-
<Command>if exist $(OutDir)\include\openssl (
2571-
rmdir /s /q $(OutDir)\include\openssl
2570+
<Command>if exist "$(OutDir)"\include\openssl (
2571+
rmdir /s /q "$(OutDir)"\include\openssl
25722572
)
25732573
if exist $(OutDir)\licenses\openssl.txt (
25742574
del /f /q $(OutDir)\licenses\openssl.txt

0 commit comments

Comments
 (0)