forked from jeppeter/nsduilib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.win
53 lines (35 loc) · 1.51 KB
/
makefile.win
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
52
53
PATH=$(PATH);\nosuch
all:check_env example\360SafeSetup.exe
check_env:check_vs check_cmake check_nsis check_git
check_vs:
@cscript //Nologo check_env.vbs visual_studio 10.0 2>>error.txt
check_cmake:
@cscript //Nologo check_env.vbs cmake 3.8.0 2>>error.txt
check_nsis:
@cscript //Nologo check_env.vbs nsis 3.0 2>>error.txt
check_git:
@cscript //Nologo check_env.vbs git 2.0 2>>error.txt
example\360SafeSetup.exe:example\plugin\nsduilib.dll example\360SafeSetup.nsi
@cd example && makensis 360SafeSetup.nsi && cd .. || cd ..
example\plugin\nsduilib.dll:build\nsduilib\Release\nsduilib.dll
@ mkdir example\plugin 2>NUL || echo ""
@ copy /Y build\nsduilib\Release\nsduilib.dll example\plugin\nsduilib.dll
build\nsduilib\Release\nsduilib.dll:build\nsduilib.sln
@cscript //Nologo runcompile.vbs -s build\nsduilib.sln -t "Release|Win32" "amd64_x86"
build\nsduilib.sln:src\winlib\CMakelists.txt
@mkdir build || echo "build already exist"
@(cd build && cmake ..\src && cd ..)
@cscript //Nologo change_precomp.vbs build\duilib\duilib.vcxproj
src\winlib\CMakelists.txt:src\winlib src\fakewinlib\CMakelists.txt
@(copy src\fakewinlib\CMakelists.txt src\winlib)
src\winlib:clibs\winlib
@mkdir src\winlib || echo "" >NUL
@(xcopy /E /Y clibs\winlib src\winlib) || echo "" >NUL
clibs\winlib:clibs
clibs:
@git clone https://github.com/jeppeter/clibs.git
clean:
@ rmdir /s /q src\winlib 2>NUL || echo "" >NUL
@ rmdir /s /q build 2>NUL || echo "" >NUL
@ del example\plugin\nsduilib.dll 2>NUL
@ del example\360SafeSetup.exe 2>NUL