Re: [Cppcms-users] Need help building cppcms on win xp
Brought to you by:
artyom-beilis
|
From: Szilágyi Z. <zol...@ya...> - 2013-06-29 16:35:24
|
installPrefix = "D:\\cppcms\\cppcms-1.0.4"
dependencyPath = "D:\\cppcms\\dependency"
dependencyPathInc = dependencyPath +"\\include"
dependencyPathLib = dependencyPath +"\\lib"
includePath0 = dependencyPathInc+"\\openssl;"+dependencyPathInc+"\\pcre;"+dependencyPathInc+"\\zlib"
libraryPath0 = dependencyPathLib+"\\openssl;"+dependencyPathLib+"\\pcre;"+dependencyPathLib+"\\zlib"
opensslIncludeDir = dependencyPathInc+"\\openssl"
opensslLibDir= dependencyPathLib+"\\openssl\\VC"
#include path and library with { ... }
includePath1 ='{'+dependencyPathInc+"\\openssl;"+dependencyPathInc+"\\pcre;"+dependencyPathInc+"\\zlib}"
libraryPath1 = '{'+dependencyPathLib+"\\openssl;"+dependencyPathLib+"\\pcre;"+dependencyPathLib+"\\zlib}"
command0 ='cmake -G \"NMake Makefiles\" ^\n\
-DCMAKE_BUILD_TYPE=Release ^\n\
-DCMAKE_INSTALL_PREFIX=\"{0}\" ^\n\
-DCMAKE_INCLUDE_PATH=\"{1}\" ^\n\
-DCMAKE_LIBRARY_PATH=\"{2}\" ^\n\
-DOPENSSL_INCLUDE_DIR=\"{3}\" ^\n\
-DLIB_OPENSSL=\"{4}\" ^\n\
..\n'.format(installPrefix, includePath0,libraryPath0,opensslIncludeDir,opensslLibDir)
command1 ='cmake -G \"NMake Makefiles\" ^\n\
-DCMAKE_BUILD_TYPE=Release ^\n\
-DCMAKE_INSTALL_PREFIX=\"{0}\" ^\n\
-DCMAKE_INCLUDE_PATH=\"{1}\" ^\n\
-DCMAKE_LIBRARY_PATH=\"{2}\" ^\n\
-DOPENSSL_INCLUDE_DIR=\"{3}\" ^\n\
-DLIB_OPENSSL=\"{4}\" ^\n\
..\n'.format(installPrefix, includePath1,libraryPath1,opensslIncludeDir,opensslLibDir)
command2 ='cmake -G \"NMake Makefiles\" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=\"{0}\" \
-DCMAKE_INCLUDE_PATH=\"{1}\" \
-DCMAKE_LIBRARY_PATH=\"{2}\" \
-DOPENSSL_INCLUDE_DIR=\"{3}\" \
-DLIB_OPENSSL=\"{4}\" \
..'.format(installPrefix, includePath0,libraryPath0,opensslIncludeDir,opensslLibDir)
command3 ='cmake -G \"NMake Makefiles\" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=\"{0}\" \
-DCMAKE_INCLUDE_PATH=\"{1}\" \
-DCMAKE_LIBRARY_PATH=\"{2}\" \
-DOPENSSL_INCLUDE_DIR=\"{3}\" \
-DLIB_OPENSSL=\"{4}\" \
..'.format(installPrefix, includePath1,libraryPath1,opensslIncludeDir,opensslLibDir)
f = open('c_0.bat','w');
f.write(command0);
f.close();
f = open('c_1.bat','w');
f.write(command1);
f.close();
f = open('c_2.bat','w');
f.write(command2);
f.close();
f = open('c_3.bat','w');
f.write(command3);
f.close(); |