2014-09-02 36 views
0

我想創建一個自動化的方式來建立在Windows與微軟C++ mpir。一個必需的步驟似乎是安裝vsyasm,所以我目前的小型項目是創建一個自動化的方法來做到這一點,即可以通過批處理文件或程序完成,無需人工干預。自動化的方式來安裝vsyasm

的vsyasm自述提出了三種方法:

a. put these files in the MSBUILD customisation directory, 
which is typically at: 

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations 

or: 

    C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations 

b. put them in a convenient location and set this path in the 
    'Build Customisations Search Path' in the Visual Studio 
'Projects and Solutions|VC++ Project Settings' item in 
the 'Tools|Options' menu; 

c. put them in a convenient location and set this path in the 
    'Build Customisation dialogue (discussed later). 

首先是通過Windows安全封鎖。有沒有什麼辦法可以解決這個問題,不需要人工干預?

第二個和第三個直接需要人工干預。是否有任何自動化的等價物,特別是如果你想最終從命令行而不是IDE內建立項目?

有沒有其他的選擇我錯過了?

回答

1

據我所知,根本沒有可重複的方法來安裝vsyasm。然而,使用命令行編譯器構建mpir是一種可重複的方法,這是我建議的做法:忘記Visual Studio集成,下載普通的舊的yasm,將其重命名爲yasm.exe,將它放在路徑中的某處,運行vcvarsx86_amd64.bat和:

cd \mpir-2.6.0\win 
configure.bat 
make.bat