Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitad330a4

Browse files
author
Felipe \"Zimmerle\" Costa
committed
iis: Avoids directory link while building
Build scripts was creating links allowing the project tobe loaded into Visual Studio without care about thedependencies versions. Sometimes windows refuse to deletethose links leading the script to fail. This patchmoves the sources directories instead of create linksto it.
1 parent69c5cca commitad330a4

File tree

5 files changed

+176
-176
lines changed

5 files changed

+176
-176
lines changed

‎iis/dependencies/build_curl.bat‎

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
cd"%WORK_DIR%"
2-
3-
@ifNOT EXIST"%SOURCE_DIR%\%CURL%"goto file_not_found_bin
4-
5-
7z.exe x"%SOURCE_DIR%\%CURL%"
6-
7-
setCURL_DIR=%CURL:~0,-4%
8-
9-
mklink /D"curl""%CURL_DIR%"
10-
11-
copy /y CMakeLists.txt"%CURL_DIR%"
12-
CD"%CURL_DIR%"
13-
CMAKE -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True -DCURL_ZLIB=True
14-
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
15-
:: "%WORK_DIR%\fart.exe" -r -C "%WORK_DIR%\%CURL_DIR%\include\curl\curlbuild.h" LLU ULL
16-
NMAKE
17-
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
18-
cd"%WORK_DIR%"
19-
20-
copy /y"%WORK_DIR%\%CURL_DIR%\lib\libcurl.dll""%OUTPUT_DIR%"
21-
copy /y"%WORK_DIR%\%CURL_DIR%\lib\libcurl.pdb""%OUTPUT_DIR%"
22-
copy /y"%WORK_DIR%\%CURL_DIR%\lib\libcurl_imp.lib""%OUTPUT_DIR%"
23-
24-
exit /B0
25-
26-
:file_not_found_bin
27-
@echo File not found:"%SOURCE_DIR%\%CURL%"
28-
@goto failed
29-
30-
:build_failed
31-
@echo Problems during the building phase
32-
@goto failed
33-
34-
:failed
35-
@exit /B1
36-
1+
cd"%WORK_DIR%"
2+
3+
@ifNOT EXIST"%SOURCE_DIR%\%CURL%"goto file_not_found_bin
4+
5+
7z.exe x"%SOURCE_DIR%\%CURL%"
6+
7+
setCURL_DIR=%CURL:~0,-4%
8+
9+
move"%CURL_DIR%""curl"
10+
11+
::copy /y CMakeLists.txt "curl"
12+
CD"curl"
13+
CMAKE -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True -DCURL_ZLIB=True
14+
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
15+
:: "%WORK_DIR%\fart.exe" -r -C "%WORK_DIR%\curl\include\curl\curlbuild.h" LLU ULL
16+
NMAKE
17+
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
18+
cd"%WORK_DIR%"
19+
20+
copy /y"%WORK_DIR%\curl\lib\libcurl.dll""%OUTPUT_DIR%"
21+
copy /y"%WORK_DIR%\curl\lib\libcurl.pdb""%OUTPUT_DIR%"
22+
copy /y"%WORK_DIR%\curl\lib\libcurl_imp.lib""%OUTPUT_DIR%"
23+
24+
exit /B0
25+
26+
:file_not_found_bin
27+
@echo File not found:"%SOURCE_DIR%\%CURL%"
28+
@goto failed
29+
30+
:build_failed
31+
@echo Problems during the building phase
32+
@goto failed
33+
34+
:failed
35+
@exit /B1
36+

‎iis/dependencies/build_libxml2.bat‎

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
cd"%WORK_DIR%"
2-
3-
@ifNOT EXIST"%SOURCE_DIR%\%LIBXML2%"goto file_not_found_bin
4-
5-
@7z.exe x"%SOURCE_DIR%\%LIBXML2%" -so| 7z.exe x -aoa -si -ttar
6-
7-
setLIBXML2_DIR=%LIBXML2:~0,-7%
8-
9-
mklink /D"libxml2""%LIBXML2_DIR%"
10-
11-
:: fart.exe -r -i -C "%WORK_DIR%\%LIBXML2_DIR%\win32\*.*" \x2Fopt:nowin98 " "
12-
cd"%LIBXML2_DIR%\win32"
13-
CSCRIPT configure.js iconv=no vcmanifest=yes zlib=yes
14-
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
15-
NMAKE -f Makefile.msvc
16-
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
17-
18-
cd"%WORK%"
19-
20-
copy /y"%WORK_DIR%\%LIBXML2_DIR%\win32\bin.msvc\libxml2.dll""%OUTPUT_DIR%"
21-
copy /y"%WORK_DIR%\%LIBXML2_DIR%\win32\bin.msvc\libxml2.lib""%OUTPUT_DIR%"
22-
23-
@exit /B0
24-
25-
:file_not_found_bin
26-
@echo File not found:"%SOURCE_DIR%\%LIBXML2%"
27-
@goto failed
28-
29-
:build_failed
30-
@echo Problems during the building phase
31-
@goto failed
32-
33-
:failed
34-
@exit /B1
35-
1+
cd"%WORK_DIR%"
2+
3+
@ifNOT EXIST"%SOURCE_DIR%\%LIBXML2%"goto file_not_found_bin
4+
5+
@7z.exe x"%SOURCE_DIR%\%LIBXML2%" -so| 7z.exe x -aoa -si -ttar
6+
7+
setLIBXML2_DIR=%LIBXML2:~0,-7%
8+
9+
move"%LIBXML2_DIR%""libxml2"
10+
11+
:: fart.exe -r -i -C "%WORK_DIR%\%LIBXML2_DIR%\win32\*.*" \x2Fopt:nowin98 " "
12+
cd"libxml2\win32"
13+
CSCRIPT configure.js iconv=no vcmanifest=yes zlib=yes
14+
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
15+
NMAKE -f Makefile.msvc
16+
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
17+
18+
cd"%WORK%"
19+
20+
copy /y"%WORK_DIR%\libxml2\win32\bin.msvc\libxml2.dll""%OUTPUT_DIR%"
21+
copy /y"%WORK_DIR%\libxml2\win32\bin.msvc\libxml2.lib""%OUTPUT_DIR%"
22+
23+
@exit /B0
24+
25+
:file_not_found_bin
26+
@echo File not found:"%SOURCE_DIR%\%LIBXML2%"
27+
@goto failed
28+
29+
:build_failed
30+
@echo Problems during the building phase
31+
@goto failed
32+
33+
:failed
34+
@exit /B1
35+

‎iis/dependencies/build_lua.bat‎

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
cd"%WORK_DIR%"
2-
3-
@ifNOT EXIST"%SOURCE_DIR%\%LUA%"goto file_not_found_bin
4-
5-
@7z.exe x"%SOURCE_DIR%\%LUA%" -so| 7z.exe x -aoa -si -ttar
6-
7-
setLUA_DIR=%LUA:~0,-7%
8-
9-
mklink /D"lua""%LUA_DIR%"
10-
11-
cd"%LUA_DIR%\src"
12-
13-
CL /Ox /arch:SSE2 /GF /GL /Gy /FD /EHsc /MD /Zi /TC /wd4005 /D"_MBCS" /D"LUA_CORE" /D"LUA_BUILD_AS_DLL" /D"_CRT_SECURE_NO_WARNINGS" /D"WIN32" /D"NDEBUG" /D"_CONSOLE" /D"_WIN32" /D"_WINDLL" /c *.c
14-
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
15-
DEL lua.obj luac.obj
16-
LINK /DLL /LTCG /DEBUG /OUT:lua5.1.dll *.obj
17-
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
18-
IFEXIST lua5.1.dll.manifest MT -manifest lua5.1.dll.manifest -outputresource:lua5.1.dll;2
19-
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
20-
21-
cd"%WORK_DIR%"
22-
23-
copy /y"%WORK_DIR%\%LUA_DIR%\src\lua5.1.dll""%OUTPUT_DIR%"
24-
copy /y"%WORK_DIR%\%LUA_DIR%\src\lua5.1.pdb""%OUTPUT_DIR%"
25-
copy /y"%WORK_DIR%\%LUA_DIR%\src\lua5.1.lib""%OUTPUT_DIR%"
26-
27-
@exit /B0
28-
29-
:file_not_found_bin
30-
@echo File not found:"%SOURCE_DIR%\%LUA%"
31-
@goto failed
32-
33-
:build_failed
34-
@echo Problems during the building phase
35-
@goto failed
36-
37-
:failed
38-
@exit /B1
39-
1+
cd"%WORK_DIR%"
2+
3+
@ifNOT EXIST"%SOURCE_DIR%\%LUA%"goto file_not_found_bin
4+
5+
@7z.exe x"%SOURCE_DIR%\%LUA%" -so| 7z.exe x -aoa -si -ttar
6+
7+
setLUA_DIR=%LUA:~0,-7%
8+
9+
move"%LUA_DIR%""lua"
10+
11+
cd"lua\src"
12+
13+
CL /Ox /arch:SSE2 /GF /GL /Gy /FD /EHsc /MD /Zi /TC /wd4005 /D"_MBCS" /D"LUA_CORE" /D"LUA_BUILD_AS_DLL" /D"_CRT_SECURE_NO_WARNINGS" /D"WIN32" /D"NDEBUG" /D"_CONSOLE" /D"_WIN32" /D"_WINDLL" /c *.c
14+
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
15+
DEL lua.obj luac.obj
16+
LINK /DLL /LTCG /DEBUG /OUT:lua5.1.dll *.obj
17+
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
18+
IFEXIST lua5.1.dll.manifest MT -manifest lua5.1.dll.manifest -outputresource:lua5.1.dll;2
19+
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
20+
21+
cd"%WORK_DIR%"
22+
23+
copy /y"%WORK_DIR%\lua\src\lua5.1.dll""%OUTPUT_DIR%"
24+
copy /y"%WORK_DIR%\lua\src\lua5.1.pdb""%OUTPUT_DIR%"
25+
copy /y"%WORK_DIR%\lua\src\lua5.1.lib""%OUTPUT_DIR%"
26+
27+
@exit /B0
28+
29+
:file_not_found_bin
30+
@echo File not found:"%SOURCE_DIR%\%LUA%"
31+
@goto failed
32+
33+
:build_failed
34+
@echo Problems during the building phase
35+
@goto failed
36+
37+
:failed
38+
@exit /B1
39+

‎iis/dependencies/build_pcre.bat‎

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
cd"%WORK_DIR%"
2-
3-
@ifNOT EXIST"%SOURCE_DIR%\%APACHE_BIN%"goto file_not_found_bin
4-
5-
7z.exe x"%SOURCE_DIR%\%PCRE%"
6-
setPCRE_DIR=%PCRE:~0,-4%
7-
8-
mklink /D"pcre""%PCRE_DIR%"
9-
10-
cd"%PCRE_DIR%"
11-
CMAKE -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True
12-
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
13-
NMAKE
14-
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
15-
cd"%WORK%"
16-
17-
copy /y"%WORK_DIR%\%PCRE_DIR%\pcre.dll""%OUTPUT_DIR%"
18-
copy /y"%WORK_DIR%\%PCRE_DIR%\pcre.pdb""%OUTPUT_DIR%"
19-
copy /y"%WORK_DIR%\%PCRE_DIR%\pcre.lib""%OUTPUT_DIR%"
20-
echo"a"
21-
@exit /B0
22-
23-
:file_not_found_bin
24-
@echo File not found:"%SOURCE_DIR%\%PCRE%"
25-
@goto failed
26-
27-
:build_failed
28-
@echo Problems during the building phase
29-
@goto failed
30-
31-
:failed
32-
@exit /B1
1+
cd"%WORK_DIR%"
2+
3+
@ifNOT EXIST"%SOURCE_DIR%\%APACHE_BIN%"goto file_not_found_bin
4+
5+
7z.exe x"%SOURCE_DIR%\%PCRE%"
6+
setPCRE_DIR=%PCRE:~0,-4%
7+
8+
move"%PCRE_DIR%""pcre"
9+
10+
cd"pcre"
11+
CMAKE -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True
12+
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
13+
NMAKE
14+
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
15+
cd"%WORK%"
16+
17+
copy /y"%WORK_DIR%\pcre\pcre.dll""%OUTPUT_DIR%"
18+
copy /y"%WORK_DIR%\pcre\pcre.pdb""%OUTPUT_DIR%"
19+
copy /y"%WORK_DIR%\pcre\pcre.lib""%OUTPUT_DIR%"
20+
echo"a"
21+
@exit /B0
22+
23+
:file_not_found_bin
24+
@echo File not found:"%SOURCE_DIR%\%PCRE%"
25+
@goto failed
26+
27+
:build_failed
28+
@echo Problems during the building phase
29+
@goto failed
30+
31+
:failed
32+
@exit /B1

‎iis/dependencies/build_zlib.bat‎

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
cd"%WORK_DIR%"
2-
3-
@ifNOT EXIST"%SOURCE_DIR%\%ZLIB%"goto file_not_found_bin
4-
5-
6-
@7z.exe x"%SOURCE_DIR%\%ZLIB%" -so| 7z.exe x -aoa -si -ttar
7-
8-
setZLIB_DIR=%ZLIB:~0,-7%
9-
10-
mklink /D"zlib""%ZLIB_DIR%"
11-
12-
cd"%ZLIB_DIR%"
13-
nmake -f win32\Makefile.msc
14-
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
15-
SETINCLUDE=%INCLUDE%;%WORK_DIR%\%ZLIB_DIR%
16-
SETLIB=%LIB%;%WORK_DIR%\%ZLIB_DIR%
17-
cd"%WORK_DIR%"
18-
19-
copy /y"%WORK_DIR%\%ZLIB_DIR%\zlib1.dll""%OUTPUT_DIR%"
20-
copy /y"%WORK_DIR%\%ZLIB_DIR%\zlib1.pdb""%OUTPUT_DIR%"
21-
copy /y"%WORK_DIR%\%ZLIB_DIR%\zdll.lib""%OUTPUT_DIR%"
22-
23-
@exit /B0
24-
25-
:file_not_found_bin
26-
@echo File not found:"%SOURCE_DIR%\%ZLIB%"
27-
@goto failed
28-
29-
:build_failed
30-
@echo Problems during the building phase
31-
@goto failed
32-
33-
:failed
34-
@exit /B1
1+
cd"%WORK_DIR%"
2+
3+
@ifNOT EXIST"%SOURCE_DIR%\%ZLIB%"goto file_not_found_bin
4+
5+
6+
@7z.exe x"%SOURCE_DIR%\%ZLIB%" -so| 7z.exe x -aoa -si -ttar
7+
8+
setZLIB_DIR=%ZLIB:~0,-7%
9+
10+
move"%ZLIB_DIR%""zlib"
11+
12+
cd"zlib"
13+
nmake -f win32\Makefile.msc
14+
@ifNOT (%ERRORLEVEL%)== (0)goto build_failed
15+
SETINCLUDE=%INCLUDE%;%WORK_DIR%\zlib
16+
SETLIB=%LIB%;%WORK_DIR%\zlib
17+
cd"%WORK_DIR%"
18+
19+
copy /y"%WORK_DIR%\zlib\zlib1.dll""%OUTPUT_DIR%"
20+
copy /y"%WORK_DIR%\zlib\zlib1.pdb""%OUTPUT_DIR%"
21+
copy /y"%WORK_DIR%\zlib\zdll.lib""%OUTPUT_DIR%"
22+
23+
@exit /B0
24+
25+
:file_not_found_bin
26+
@echo File not found:"%SOURCE_DIR%\%ZLIB%"
27+
@goto failed
28+
29+
:build_failed
30+
@echo Problems during the building phase
31+
@goto failed
32+
33+
:failed
34+
@exit /B1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp