forked from bcosorg/bcos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle_microhttpd.bat
48 lines (40 loc) · 3 KB
/
bundle_microhttpd.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
REM packaging microhttpd
if not exist package\microhttpd mkdir package\microhttpd
if not exist package\microhttpd\%PLATFORM% mkdir package\microhttpd\%PLATFORM%
if not exist package\microhttpd\%PLATFORM%\lib mkdir package\microhttpd\%PLATFORM%\lib
if not exist package\microhttpd\%PLATFORM%\bin mkdir package\microhttpd\%PLATFORM%\bin
if not exist package\microhttpd\%PLATFORM%\include mkdir package\microhttpd\%PLATFORM%\include
cd package\microhttpd\%PLATFORM%
if %PLATFORM% == Win32 (
if %CONFIGURATION% == Release (
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\libmicrohttpd-dll.dll bin\libmicrohttpd-dll.dll
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\libmicrohttpd-dll.exp lib\libmicrohttpd-dll.exp
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\libmicrohttpd-dll.lib lib\libmicrohttpd-dll.lib
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\libmicrohttpd-dll.pdb lib\libmicrohttpd-dll.pdb
)
if %CONFIGURATION% == Debug (
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\libmicrohttpd-dll_d.dll bin\libmicrohttpd-dll_d.dll
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\libmicrohttpd-dll_d.exp lib\libmicrohttpd-dll_d.exp
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\libmicrohttpd-dll_d.ilk lib\libmicrohttpd-dll_d.ilk
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\libmicrohttpd-dll_d.lib lib\libmicrohttpd-dll_d.lib
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\libmicrohttpd-dll_d.pdb lib\libmicrohttpd-dll_d.pdb
)
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\microhttpd.h include\microhttpd.h
)
if %PLATFORM% == x64 (
if %CONFIGURATION% == Release (
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\x64\libmicrohttpd-dll.dll bin\libmicrohttpd-dll.dll
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\x64\libmicrohttpd-dll.exp lib\libmicrohttpd-dll.exp
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\x64\libmicrohttpd-dll.lib lib\libmicrohttpd-dll.lib
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\x64\libmicrohttpd-dll.pdb lib\libmicrohttpd-dll.pdb
)
if %CONFIGURATION% == Debug (
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\x64\libmicrohttpd-dll_d.dll bin\libmicrohttpd-dll_d.dll
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\x64\libmicrohttpd-dll_d.exp lib\libmicrohttpd-dll_d.exp
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\x64\libmicrohttpd-dll_d.ilk lib\libmicrohttpd-dll_d.ilk
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\x64\libmicrohttpd-dll_d.lib lib\libmicrohttpd-dll_d.lib
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\x64\libmicrohttpd-dll_d.pdb lib\libmicrohttpd-dll_d.pdb
)
cmake -E copy ..\..\..\build\microhttpd\w32\VS2015\Output\x64\microhttpd.h include\microhttpd.h
)
cd ..\..\..