cmake,perl を buildtools/ に移動
- svn, git を使用していないとき、エラーメッセージを表示しないよう修正
- ci_scripts/appveyor.yml
- ci_scripts/build_appveyor.bat
@@ -73,7 +73,7 @@ | ||
73 | 73 | if (MSVC OR (MINGW AND (EXISTS "c:/windows"))) |
74 | 74 | find_program( |
75 | 75 | PERL perl.exe |
76 | - HINTS ${CMAKE_CURRENT_SOURCE_DIR}/libs/perl/perl/bin | |
76 | + HINTS ${CMAKE_SOURCE_DIR}/buildtools/perl/perl/bin | |
77 | 77 | HINTS c:/Strawberry/perl/bin |
78 | 78 | HINTS c:/Perl64/bin |
79 | 79 | HINTS c:/Perl/bin |
@@ -87,8 +87,8 @@ | ||
87 | 87 | endif() |
88 | 88 | message("perl=${PERL}") |
89 | 89 | # svn / git-svn |
90 | -if(EXISTS "${CMAKE_SOURCE_DIR}/.git/svn") | |
91 | - # git-svn | |
90 | +if(EXISTS "${CMAKE_SOURCE_DIR}/.git") | |
91 | + # git (git-svn) | |
92 | 92 | find_package(Git) |
93 | 93 | message("git=${GIT_EXECUTABLE}") |
94 | 94 | elseif(EXISTS "${CMAKE_SOURCE_DIR}/.svn") |
@@ -145,12 +145,6 @@ | ||
145 | 145 | endif() |
146 | 146 | endif() |
147 | 147 | |
148 | -### create buildinfo.txt | |
149 | -configure_file( | |
150 | - buildinfo.txt.in | |
151 | - buildinfo.txt | |
152 | - @ONLY) | |
153 | - | |
154 | 148 | ### subdirectories |
155 | 149 | add_subdirectory(teraterm) |
156 | 150 | add_subdirectory(ttpmenu) |
@@ -165,3 +159,8 @@ | ||
165 | 159 | add_subdirectory(doc_internal) |
166 | 160 | add_subdirectory(tools) |
167 | 161 | |
162 | +### create buildinfo.txt | |
163 | +configure_file( | |
164 | + buildinfo.txt.in | |
165 | + buildinfo.txt | |
166 | + @ONLY) |
@@ -56,5 +56,7 @@ | ||
56 | 56 | @GIT_EXECUTABLE@ |
57 | 57 | ISCC(inno setup) |
58 | 58 | @ISCC@ |
59 | +HHC(help compiler) | |
60 | + @HHC@ | |
59 | 61 | |
60 | 62 | see CMakeCache.txt for more details |
@@ -0,0 +1,10 @@ | ||
1 | +@echo off | |
2 | +setlocal | |
3 | +cd /d %~dp0 | |
4 | +IF NOT EXIST cmake-3.11.4-win32-x86 ( | |
5 | + echo cmakeをダウンロードしてlib/cmakeに展開します | |
6 | + IF NOT "%1" == "nopause" pause | |
7 | + powershell -NoProfile -ExecutionPolicy Unrestricted .\getcmake.ps1 | |
8 | +) | |
9 | +endlocal | |
10 | +IF NOT "%1" == "nopause" pause |
@@ -0,0 +1,8 @@ | ||
1 | +@echo off | |
2 | +setlocal | |
3 | +cd /d %~dp0 | |
4 | +echo perlをダウンロードしてlib/perlに展開します | |
5 | +pause | |
6 | +powershell -NoProfile -ExecutionPolicy Unrestricted .\getperl.ps1 | |
7 | +endlocal | |
8 | +pause |
@@ -95,6 +95,7 @@ | ||
95 | 95 | |
96 | 96 | cache: |
97 | 97 | - libs |
98 | + - buildtools | |
98 | 99 | |
99 | 100 | artifacts: |
100 | 101 | - path: build\%ZIP_FILE% |
@@ -1,7 +1,7 @@ | ||
1 | 1 | call svnrev_perl\svnrev.bat |
2 | 2 | call svnrev_perl\sourcetree_info.bat |
3 | 3 | if "%GENERATOR%" == "Visual Studio 8 2005" ( |
4 | - cd libs | |
4 | + cd buildtools | |
5 | 5 | call getcmake.bat nopause |
6 | 6 | cd .. |
7 | 7 | ) |
@@ -32,9 +32,10 @@ | ||
32 | 32 | "%CMAKE_COMMAND%" -DCMAKE_GENERATOR="%GENERATOR%" %CMAKE_OPTION_LIBS% -P buildall.cmake |
33 | 33 | if exist build rmdir /s /q build |
34 | 34 | if exist download rmdir /s /q download |
35 | - if exist perl\c rmdir /s /q perl\c | |
36 | 35 | if exist openssl_%COMPILER%\html rmdir /s /q openssl_%COMPILER%\html |
37 | 36 | if exist openssl_%COMPILER%_debug\html rmdir /s /q openssl_%COMPILER%_debug\html |
37 | + if exist ..\buildtools\perl\c rmdir /s /q ..\buildtools\perl\c | |
38 | + if exist ..\buildtools\download rmdir /s /q ..\buildtools\download | |
38 | 39 | ) |
39 | 40 | cd .. |
40 | 41 | if not exist %BUILD_DIR% mkdir %BUILD_DIR% |
@@ -27,8 +27,8 @@ | ||
27 | 27 | |
28 | 28 | mkdir build_vs2005 |
29 | 29 | cd build_vs2005 |
30 | - ..\libs\cmake-3.11.4-win32-x86\bin\cmake.exe .. -G "Visual Studio 8 2005" | |
31 | - ..\libs\cmake-3.11.4-win32-x86\bin\cmake.exe --build . --config release | |
30 | + ..\buildtools\cmake-3.11.4-win32-x86\bin\cmake.exe .. -G "Visual Studio 8 2005" | |
31 | + ..\buildtools\cmake-3.11.4-win32-x86\bin\cmake.exe --build . --config release | |
32 | 32 | |
33 | 33 | - Change a string after `-G` option according to Visual Studio version. |
34 | 34 | - The sln file is created, so the file can be opened with Visual Studio. |
@@ -27,8 +27,8 @@ | ||
27 | 27 | |
28 | 28 | mkdir build_vs2005 |
29 | 29 | cd build_vs2005 |
30 | - ..\libs\cmake-3.11.4-win32-x86\bin\cmake.exe .. -G "Visual Studio 8 2005" | |
31 | - ..\libs\cmake-3.11.4-win32-x86\bin\cmake.exe --build . --config release | |
30 | + ..\buildtools\cmake-3.11.4-win32-x86\bin\cmake.exe .. -G "Visual Studio 8 2005" | |
31 | + ..\buildtools\cmake-3.11.4-win32-x86\bin\cmake.exe --build . --config release | |
32 | 32 | |
33 | 33 | - `-G` オプションの後ろは使用する Visual Studio のバージョンに合わせて調整します |
34 | 34 | - sln ファイルが生成されるので Visual Studio で開くことができます |
@@ -1,8 +0,0 @@ | ||
1 | -@echo off | |
2 | -setlocal | |
3 | -cd /d %~dp0 | |
4 | -echo perlをダウンロードしてlib/perlに展開します | |
5 | -pause | |
6 | -powershell -NoProfile -ExecutionPolicy Unrestricted .\getperl.ps1 | |
7 | -endlocal | |
8 | -pause |
@@ -1,10 +0,0 @@ | ||
1 | -@echo off | |
2 | -setlocal | |
3 | -cd /d %~dp0 | |
4 | -IF NOT EXIST cmake-3.11.4-win32-x86 ( | |
5 | - echo cmakeをダウンロードしてlib/cmakeに展開します | |
6 | - IF NOT "%1" == "nopause" pause | |
7 | - powershell -NoProfile -ExecutionPolicy Unrestricted .\getcmake.ps1 | |
8 | -) | |
9 | -endlocal | |
10 | -IF NOT "%1" == "nopause" pause |
@@ -55,10 +55,10 @@ | ||
55 | 55 | exit |
56 | 56 | |
57 | 57 | :cmake_3_11_4 |
58 | -set CMAKE=%~dp0cmake-3.11.4-win32-x86\bin\cmake.exe | |
59 | -echo 1. 自分のcmake.exeを使用する(PATHを通してある) | |
58 | +set CMAKE=%~dp0..\buildtools\cmake-3.11.4-win32-x86\bin\cmake.exe | |
59 | +echo 1. PATH上のcmake.exeを使用する | |
60 | 60 | echo 2. VS2005でも使用できるcmake使用する |
61 | -echo (必要なら自動でダウンロードして、このフォルダにインストールする) | |
61 | +echo (必要なら自動でダウンロードして、このbuildtools/にインストールする) | |
62 | 62 | if exist %CMAKE% echo インストール済み(%CMAKE%) |
63 | 63 | |
64 | 64 | set /p no="select no " |
@@ -71,7 +71,7 @@ | ||
71 | 71 | |
72 | 72 | :download |
73 | 73 | if exist %CMAKE% goto finish_cmake |
74 | -call getcmake.bat | |
74 | +call ..\buildtools\getcmake.bat | |
75 | 75 | |
76 | 76 | :finish_cmake |
77 | 77 | exit /b |
@@ -10,7 +10,7 @@ | ||
10 | 10 | - 実行できない場合もヘッダファイルは作成されます |
11 | 11 | - perlを実行できるようパスを設定する |
12 | 12 | - libs/perl があれば利用します |
13 | - - libs/getperl.bat をダブルクリックすると | |
13 | + - buildtools/getperl.bat をダブルクリックすると | |
14 | 14 | strawberry perl を libs/perl に展開します |
15 | 15 | |
16 | 16 | # ヘッダの作成方法 |
@@ -12,6 +12,7 @@ | ||
12 | 12 | $date = strftime "%Y%m%d", localtime; |
13 | 13 | $time = strftime "%H%M%S", localtime; |
14 | 14 | $verbose = 0; |
15 | +$script_name = $0; | |
15 | 16 | |
16 | 17 | GetOptions( |
17 | 18 | 'root=s' => \$source_root, |
@@ -36,11 +37,11 @@ | ||
36 | 37 | |
37 | 38 | $header = "This file was generated by svnrev_perl/svnrev.pl"; |
38 | 39 | |
39 | -if (-d "$source_root/.svn") { | |
40 | +if (-d "$source_root/.svn" && $svn ne "") { | |
40 | 41 | # svn infoを実行、出力をすべて取り込む |
41 | 42 | if (!open(my $FD, "-|", "\"$svn\" info $source_root 2>&1")) { |
42 | 43 | # svn が実行できない |
43 | - print "'$svn' can not execute\n"; | |
44 | + print "$script_name: '$svn' can not execute\n"; | |
44 | 45 | } |
45 | 46 | else { |
46 | 47 | # 出力をすべて取り込む |
@@ -69,11 +70,11 @@ | ||
69 | 70 | } |
70 | 71 | } |
71 | 72 | } |
72 | -elsif(-d "$source_root/.git") { | |
73 | +elsif(-d "$source_root/.git" && $git ne "") { | |
73 | 74 | my $branch = `\"$git\" rev-parse --abbrev-ref HEAD`; |
74 | 75 | if ($branch eq '') { |
75 | 76 | # git が実行できない |
76 | - print "\"$git\" can not execute\n"; | |
77 | + print "$script_name: \"$git\" can not execute\n"; | |
77 | 78 | } |
78 | 79 | else { |
79 | 80 | $branch =~ s/[\r\n]$//g; |