• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision8935 (tree)
Time2020-09-09 00:14:22
Authorzmatsuo

Log Message

cmake,perl を buildtools/ に移動

- svn, git を使用していないとき、エラーメッセージを表示しないよう修正
- ci_scripts/appveyor.yml

- buildtools をキャッシュ対象に追加

- ci_scripts/build_appveyor.bat

- キャッシュサイズを小さくするため不要、未使用ファイルを削除
- buildtools\download
- buildtools\perl\c

Change Summary

Incremental Difference

--- trunk/CMakeLists.txt (revision 8934)
+++ trunk/CMakeLists.txt (revision 8935)
@@ -73,7 +73,7 @@
7373 if (MSVC OR (MINGW AND (EXISTS "c:/windows")))
7474 find_program(
7575 PERL perl.exe
76- HINTS ${CMAKE_CURRENT_SOURCE_DIR}/libs/perl/perl/bin
76+ HINTS ${CMAKE_SOURCE_DIR}/buildtools/perl/perl/bin
7777 HINTS c:/Strawberry/perl/bin
7878 HINTS c:/Perl64/bin
7979 HINTS c:/Perl/bin
@@ -87,8 +87,8 @@
8787 endif()
8888 message("perl=${PERL}")
8989 # 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)
9292 find_package(Git)
9393 message("git=${GIT_EXECUTABLE}")
9494 elseif(EXISTS "${CMAKE_SOURCE_DIR}/.svn")
@@ -145,12 +145,6 @@
145145 endif()
146146 endif()
147147
148-### create buildinfo.txt
149-configure_file(
150- buildinfo.txt.in
151- buildinfo.txt
152- @ONLY)
153-
154148 ### subdirectories
155149 add_subdirectory(teraterm)
156150 add_subdirectory(ttpmenu)
@@ -165,3 +159,8 @@
165159 add_subdirectory(doc_internal)
166160 add_subdirectory(tools)
167161
162+### create buildinfo.txt
163+configure_file(
164+ buildinfo.txt.in
165+ buildinfo.txt
166+ @ONLY)
--- trunk/buildinfo.txt.in (revision 8934)
+++ trunk/buildinfo.txt.in (revision 8935)
@@ -56,5 +56,7 @@
5656 @GIT_EXECUTABLE@
5757 ISCC(inno setup)
5858 @ISCC@
59+HHC(help compiler)
60+ @HHC@
5961
6062 see CMakeCache.txt for more details
--- trunk/buildtools/getcmake.bat (nonexistent)
+++ trunk/buildtools/getcmake.bat (revision 8935)
@@ -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
--- trunk/buildtools/getperl.bat (nonexistent)
+++ trunk/buildtools/getperl.bat (revision 8935)
@@ -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
--- trunk/ci_scripts/appveyor.yml (revision 8934)
+++ trunk/ci_scripts/appveyor.yml (revision 8935)
@@ -95,6 +95,7 @@
9595
9696 cache:
9797 - libs
98+ - buildtools
9899
99100 artifacts:
100101 - path: build\%ZIP_FILE%
--- trunk/ci_scripts/build_appveyor.bat (revision 8934)
+++ trunk/ci_scripts/build_appveyor.bat (revision 8935)
@@ -1,7 +1,7 @@
11 call svnrev_perl\svnrev.bat
22 call svnrev_perl\sourcetree_info.bat
33 if "%GENERATOR%" == "Visual Studio 8 2005" (
4- cd libs
4+ cd buildtools
55 call getcmake.bat nopause
66 cd ..
77 )
@@ -32,9 +32,10 @@
3232 "%CMAKE_COMMAND%" -DCMAKE_GENERATOR="%GENERATOR%" %CMAKE_OPTION_LIBS% -P buildall.cmake
3333 if exist build rmdir /s /q build
3434 if exist download rmdir /s /q download
35- if exist perl\c rmdir /s /q perl\c
3635 if exist openssl_%COMPILER%\html rmdir /s /q openssl_%COMPILER%\html
3736 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
3839 )
3940 cd ..
4041 if not exist %BUILD_DIR% mkdir %BUILD_DIR%
--- trunk/doc/en/html/reference/build_with_cmake.md (revision 8934)
+++ trunk/doc/en/html/reference/build_with_cmake.md (revision 8935)
@@ -27,8 +27,8 @@
2727
2828 mkdir build_vs2005
2929 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
3232
3333 - Change a string after `-G` option according to Visual Studio version.
3434 - The sln file is created, so the file can be opened with Visual Studio.
--- trunk/doc/ja/html/reference/build_with_cmake.md (revision 8934)
+++ trunk/doc/ja/html/reference/build_with_cmake.md (revision 8935)
@@ -27,8 +27,8 @@
2727
2828 mkdir build_vs2005
2929 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
3232
3333 - `-G` オプションの後ろは使用する Visual Studio のバージョンに合わせて調整します
3434 - sln ファイルが生成されるので Visual Studio で開くことができます
--- trunk/libs/getperl.bat (revision 8934)
+++ trunk/libs/getperl.bat (nonexistent)
@@ -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
--- trunk/libs/getcmake.bat (revision 8934)
+++ trunk/libs/getcmake.bat (nonexistent)
@@ -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
--- trunk/libs/buildall_cmake.bat (revision 8934)
+++ trunk/libs/buildall_cmake.bat (revision 8935)
@@ -55,10 +55,10 @@
5555 exit
5656
5757 :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を使用する
6060 echo 2. VS2005でも使用できるcmake使用する
61-echo (必要なら自動でダウンロードして、このフォルダにインストールする)
61+echo (必要なら自動でダウンロードして、このbuildtools/にインストールする)
6262 if exist %CMAKE% echo インストール済み(%CMAKE%)
6363
6464 set /p no="select no "
@@ -71,7 +71,7 @@
7171
7272 :download
7373 if exist %CMAKE% goto finish_cmake
74-call getcmake.bat
74+call ..\buildtools\getcmake.bat
7575
7676 :finish_cmake
7777 exit /b
--- trunk/svnrev_perl/readme.md (revision 8934)
+++ trunk/svnrev_perl/readme.md (revision 8935)
@@ -10,7 +10,7 @@
1010 - 実行できない場合もヘッダファイルは作成されます
1111 - perlを実行できるようパスを設定する
1212 - libs/perl があれば利用します
13- - libs/getperl.bat をダブルクリックすると
13+ - buildtools/getperl.bat をダブルクリックすると
1414 strawberry perl を libs/perl に展開します
1515
1616 # ヘッダの作成方法
--- trunk/svnrev_perl/svnrev.pl (revision 8934)
+++ trunk/svnrev_perl/svnrev.pl (revision 8935)
@@ -12,6 +12,7 @@
1212 $date = strftime "%Y%m%d", localtime;
1313 $time = strftime "%H%M%S", localtime;
1414 $verbose = 0;
15+$script_name = $0;
1516
1617 GetOptions(
1718 'root=s' => \$source_root,
@@ -36,11 +37,11 @@
3637
3738 $header = "This file was generated by svnrev_perl/svnrev.pl";
3839
39-if (-d "$source_root/.svn") {
40+if (-d "$source_root/.svn" && $svn ne "") {
4041 # svn infoを実行、出力をすべて取り込む
4142 if (!open(my $FD, "-|", "\"$svn\" info $source_root 2>&1")) {
4243 # svn が実行できない
43- print "'$svn' can not execute\n";
44+ print "$script_name: '$svn' can not execute\n";
4445 }
4546 else {
4647 # 出力をすべて取り込む
@@ -69,11 +70,11 @@
6970 }
7071 }
7172 }
72-elsif(-d "$source_root/.git") {
73+elsif(-d "$source_root/.git" && $git ne "") {
7374 my $branch = `\"$git\" rev-parse --abbrev-ref HEAD`;
7475 if ($branch eq '') {
7576 # git が実行できない
76- print "\"$git\" can not execute\n";
77+ print "$script_name: \"$git\" can not execute\n";
7778 }
7879 else {
7980 $branch =~ s/[\r\n]$//g;
Show on old repository browser