Develop and Download Open Source Software

Browse Subversion Repository

Contents of /branches/4-stable/buildtools/getcmake.ps1

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9612 - (show annotations) (download)
Thu Dec 23 12:56:04 2021 UTC (2 years, 3 months ago) by zmatsuo
File size: 927 byte(s)
cmakeビルドでVisual Studio 2022 でビルドできるよう調整

- libs/getcmake.bat, ps1 を buildtools/ へ移動
- .gitignore追加

MFT r9419, r9508
1 $CMAKE_URL = "https://cmake.org/files/v3.11/cmake-3.11.4-win32-x86.zip"
2 $CMAKE_ZIP = ($CMAKE_URL -split "/")[-1]
3 $CMAKE_DIR = [System.IO.Path]::GetFileNameWithoutExtension($CMAKE_ZIP)
4
5 $CMAKE_ZIP = "download\cmake\" + $CMAKE_ZIP
6
7 echo $CMAKE_URL
8 echo $CMAKE_ZIP
9 echo $CMAKE_DIR
10
11 # TLS1.2 を有効にする (cmake.orgは TLS1.2)
12 # [Net.ServicePointManager]::SecurityProtocol
13 # を実行して "Ssl3, Tls" と出た場合、TLS1.2は無効となっている
14 [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
15
16 # 展開済みフォルダがある?
17 if((Test-Path $CMAKE_DIR) -eq $true) {
18 # 削除する
19 Remove-Item -Recurse -Force $CMAKE_DIR
20 # 終了する
21 #exit
22 }
23
24 # ダウンロードする
25 if((Test-Path $CMAKE_ZIP) -eq $false) {
26 if((Test-Path "download\cmake") -ne $true) {
27 mkdir "download\cmake"
28 }
29 wget $CMAKE_URL -Outfile $CMAKE_ZIP
30 }
31
32 # 展開する
33 Expand-Archive $CMAKE_ZIP -DestinationPath .

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26