summaryrefslogtreecommitdiff
path: root/install.js
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-12-23 07:38:22 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-12-23 07:38:22 +0000
commite802b6dfe8ef0105389b69e17e7faa2e4c92d756 (patch)
tree7556cf902a0f943cb4bbc3b47b89fb13797ad4e1 /install.js
parent40ec6f0854c2210e670199f701636d9d78ffa6c0 (diff)
Some more Windows fixes, both in CMake and in the code itself. (I don't like the const casting for the latter, but it's only until we get rid of use of strchr)
Added CPack setup to automate generation of source package for *nix and NSIS installer for Windows. Some other minor CMake fixes. Converted docs/README and docs/WIN32.txt from Unix linefeeds to DOS linefeeds so they show up right in Notepad under Windows. Added small fix for Visual Studio 2008, CMake doesn't detect the Express version correctly and it must be explicitly defined. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1861 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'install.js')
-rw-r--r--install.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/install.js b/install.js
index 7b112edd5..26cc0023c 100644
--- a/install.js
+++ b/install.js
@@ -99,6 +99,26 @@ var installerQuestions = [
else return '-DCMAKE_BUILD_TYPE:STRING=RELEASE';
}
},
+ {
+ 'question' : [
+ 'Are you using Visual Studio 2008? If you are, you need to answer yes',
+ 'to this question, otherwise CMake will not function properly.'
+ ],
+ 'short' : 'Using Visual Studio 2008?',
+ 'options' : [
+ 'yes',
+ 'no'
+ ],
+ 'default_answer' : 'no',
+ 'store_answer' : function(answer) {
+ installerResponses['Visual Studio 2008'] = answer;
+ return true;
+ },
+ 'cmake_argument' : function() {
+ if (installerResponses['Visual Studio 2008'] == 'yes') return '-G"Visual Studio 9 2008"';
+ else return '';
+ }
+ },
];
var bannerReplacements = [
@@ -145,6 +165,10 @@ for (x in installerQuestions) {
installerResponses['Debug'] = 'msvc';
continue;
}
+ if (thisQuestion.short == 'Using Visual Studio 2008?' && installerResponses['Debug'] != 'msvc') {
+ installerResponses['Visual Studio 2008'] = 'no';
+ continue;
+ }
while (!validResponse) {
for (y in thisQuestion.question) {
var qLine = thisQuestion.question[y];