@@ -27,9 +27,15 @@ $openssl_include_folder = $openssl_base_folder + "\include"
27
27
$openssl_libs_folder = $openssl_base_folder + " \lib"
28
28
$openssl_bin_folder = $openssl_base_folder + " \bin"
29
29
30
- # MySQL
31
- $mysql_include_folder = " c:\Programy\MySQL\include"
32
- $mysql_lib_folder = " c:\Programy\MySQL\lib"
30
+ # SQL.
31
+ $mysql_include_folder = " c:\Programy\MariaDB\include"
32
+ $mysql_lib_folder = " c:\Programy\MariaDB\lib"
33
+ $mysql_lib = " $mysql_lib_folder \libmariadb.lib"
34
+
35
+ $postgre_include_folder = " c:\Programy\PostgreSQL\include"
36
+ $postgre_lib_folder = " c:\Programy\PostgreSQL\lib"
37
+ $postgre_bin_folder = " c:\Programy\PostgreSQL\bin"
38
+ $postgre_lib = " $postgre_lib_folder \libpq.lib"
33
39
34
40
# Download Qt sources, unpack.
35
41
$AllProtocols = [System.Net.SecurityProtocolType ]' Ssl3,Tls,Tls11,Tls12'
@@ -44,14 +50,16 @@ cd $build_folder
44
50
45
51
$env: OPENSSL_LIBS = " -lUser32 -lAdvapi32 -lGdi32 -llibcrypto -llibssl"
46
52
47
- & " $qt_src_base_folder \configure.bat" - cmake - debug-and - release - opensource - confirm-license - opengl desktop - no- dbus - no- icu - no- fontconfig - nomake examples - nomake tests - skip qt3d - skip qtactiveqt - skip qtcanvas3d - skip qtconnectivity - skip qtdatavis3d - skip qtdoc - skip qtgamepad - skip qtgraphicaleffects - skip qtlocation - skip qtnetworkauth - skip qtpurchasing - skip qtquickcontrols - skip qtquickcontrols2 - skip qtremoteobjects - skip qtscxml - skip qtsensors - skip qtserialbus - skip qtserialport - skip qtspeech - skip qtvirtualkeyboard - skip qtwebview - skip qtscript - mp - optimize-size - shared - prefix $prefix_folder - openssl- linked - DOPENSSL_ROOT_DIR= " $openssl_base_folder " -- - DCMAKE_INCLUDE_PATH= " $mysql_include_folder " - DCMAKE_LIBRARY_PATH= " $mysql_lib_folder "
53
+ # -DCMAKE_INCLUDE_PATH="$mysql_include_folder" -DCMAKE_LIBRARY_PATH="$mysql_lib_folder"
54
+
55
+ & " $qt_src_base_folder \configure.bat" - cmake - debug-and - release - opensource - confirm-license - opengl desktop - no- dbus - no- icu - no- fontconfig - nomake examples - nomake tests - skip qt3d - skip qtactiveqt - skip qtcanvas3d - skip qtconnectivity - skip qtdatavis3d - skip qtdoc - skip qtgamepad - skip qtgraphicaleffects - skip qtlocation - skip qtnetworkauth - skip qtpurchasing - skip qtquickcontrols - skip qtquickcontrols2 - skip qtremoteobjects - skip qtscxml - skip qtsensors - skip qtserialbus - skip qtserialport - skip qtspeech - skip qtvirtualkeyboard - skip qtwebview - skip qtscript - mp - optimize-size - shared - prefix $prefix_folder - openssl- linked - DOPENSSL_ROOT_DIR= " $openssl_base_folder " -- - DMySQL_INCLUDE_DIRS= " $mysql_include_folder " - DMySQL_LIBRARIES= " $mysql_lib " - DPostgreSQL_INCLUDE_DIRS= " $postgre_include_folder " - DPostgreSQL_LIBRARY= " $postgre_lib "
48
56
49
57
# Compile.
50
58
cmake -- build .
51
59
cmake -- install . -- config Release
52
60
cmake -- install . -- config Debug
53
61
54
- # Copy OpenSSL, MySQL .
62
+ # Copy libs .
55
63
cp " $openssl_bin_folder \*.dll" " $prefix_folder \bin\"
56
64
cp " $openssl_bin_folder \*.exe" " $prefix_folder \bin\"
57
65
cp " $openssl_bin_folder \*.pdb" " $prefix_folder \bin\"
@@ -61,5 +69,10 @@ cp "$openssl_include_folder\openssl" "$prefix_folder\include\" -Recurse
61
69
cp " $mysql_lib_folder \lib*.dll" " $prefix_folder \bin\"
62
70
cp " $mysql_lib_folder \lib*.lib" " $prefix_folder \lib\"
63
71
72
+ cp " $postgre_bin_folder \libpq.dll" " $prefix_folder \bin\"
73
+ cp " $postgre_bin_folder \libintl-8.dll" " $prefix_folder \bin\"
74
+ cp " $postgre_bin_folder \libiconv-2.dll" " $prefix_folder \bin\"
75
+ cp " $postgre_lib_folder \libpq.lib" " $prefix_folder \lib\"
76
+
64
77
# Create final archive.
65
78
& " $tools_folder \7za.exe" a - t7z " ${prefix_base_folder} .7z" " $prefix_folder " - mmt - mx9
0 commit comments