blob: 1f619b54e4e2dbc85346a01d056fa7eb89eaf07a (
plain)
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
|
@ECHO off
set ME=%0
set DIR=%~dp0
if "%VSINSTALLDIR%" == "" (
echo.
echo %VSINSTALLDIR is not defined, run from within Visual Studio Command Prompt.
echo.
goto :DONE
)
echo %LIB% |find "LIB\amd64;" > nul
if %errorlevel% == 0 (
set DEST_DIR="%DIR%..\prebuilt\windows-x86_64/msvc"
goto :ARCH_FOUND
)
echo %LIB% |find "LIB;" > nul
if %errorlevel% == 0 (
set DEST_DIR="%DIR%..\prebuilt\windows-x86/msvc"
goto :ARCH_FOUND
)
:ARCH_FOUND
if "%DEST_DIR%" == "" (
echo.
echo Unknown Platform %Platform%.
echo.
goto :DONE
)
IF NOT EXIST "event.c" (
echo.
echo Cannot find event.c
echo Run script from within libevent directory:
echo libevent $ ..\%ME%
echo.
goto :DONE
)
nmake -f Makefile.nmake clean
nmake -f Makefile.nmake
copy libevent_core.lib %DEST_DIR%\lib
copy libevent_extras.lib %DEST_DIR%\lib
copy libevent.lib %DEST_DIR%\lib
:DONE
pause
|