forked from bcosorg/bcos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle_curl.bat
51 lines (40 loc) · 2.42 KB
/
bundle_curl.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
REM packaging curl
if not exist package\curl mkdir package\curl
if not exist package\curl\%PLATFORM% mkdir package\curl\%PLATFORM%
if not exist package\curl\%PLATFORM%\lib mkdir package\curl\%PLATFORM%\lib
if not exist package\curl\%PLATFORM%\bin mkdir package\curl\%PLATFORM%\bin
if not exist package\curl\%PLATFORM%\include mkdir package\curl\%PLATFORM%\include
if not exist package\curl\%PLATFORM%\include\curl mkdir package\curl\%PLATFORM%\include\curl
cd package\curl\%PLATFORM%
if %PLATFORM% == Win32 (
if %CONFIGURATION% == Release (
cmake -E copy ..\..\..\build\curl\build\lib\Release\libcurl.dll bin\libcurl.dll
cmake -E copy ..\..\..\build\curl\build\lib\Release\libcurl_imp.exp lib\libcurl.exp
cmake -E copy ..\..\..\build\curl\build\lib\Release\libcurl_imp.lib lib\libcurl.lib
)
if %CONFIGURATION% == Debug (
cmake -E copy ..\..\..\build\curl\build\lib\Debug\libcurl.dll bin\libcurld.dll
cmake -E copy ..\..\..\build\curl\build\lib\Debug\libcurl.ilk lib\libcurld.ilk
cmake -E copy ..\..\..\build\curl\build\lib\Debug\libcurl.pdb lib\libcurld.pdb
cmake -E copy ..\..\..\build\curl\build\lib\Debug\libcurl_imp.exp lib\libcurld.exp
cmake -E copy ..\..\..\build\curl\build\lib\Debug\libcurl_imp.lib lib\libcurld.lib
)
cmake -E copy ..\..\..\build\curl\build\include\curl\curlbuild.h include\curl\curlbuild.h
)
if %PLATFORM% == x64 (
if %CONFIGURATION% == Release (
cmake -E copy ..\..\..\build\curl\build64\lib\Release\libcurl.dll bin\libcurl.dll
cmake -E copy ..\..\..\build\curl\build64\lib\Release\libcurl_imp.exp lib\libcurl.exp
cmake -E copy ..\..\..\build\curl\build64\lib\Release\libcurl_imp.lib lib\libcurl.lib
)
if %CONFIGURATION% == Debug (
cmake -E copy ..\..\..\build\curl\build64\lib\Debug\libcurl.dll bin\libcurld.dll
cmake -E copy ..\..\..\build\curl\build64\lib\Debug\libcurl.ilk lib\libcurld.ilk
cmake -E copy ..\..\..\build\curl\build64\lib\Debug\libcurl.pdb lib\libcurld.pdb
cmake -E copy ..\..\..\build\curl\build64\lib\Debug\libcurl_imp.exp lib\libcurld.exp
cmake -E copy ..\..\..\build\curl\build64\lib\Debug\libcurl_imp.lib lib\libcurld.lib
)
cmake -E copy ..\..\..\build\curl\build64\include\curl\curlbuild.h include\curl\curlbuild.h
)
cmake -E copy_directory ..\..\..\build\curl\include\curl include\curl
cd ..\..\..