mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 17:25:31 +02:00
use our libmysql.dll with HeidiSQL, if we compile 32 bit
This commit is contained in:
parent
58c6165e28
commit
37f464f3a2
2 changed files with 13 additions and 3 deletions
|
|
@ -11,10 +11,12 @@ IF(NOT EXISTS ${HEIDISQL_DOWNLOAD_DIR}/${HEIDISQL_ZIP})
|
|||
${CMAKE_COMMAND} -E tar xfz ${HEIDISQL_DOWNLOAD_DIR}/${HEIDISQL_ZIP}
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
SET(LIBMYSQLDLL_SOURCE ${HEIDISQL_DOWNLOAD_DIR}/libmysql.dll)
|
||||
IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
# Use our libmysql if it is 32 bit.
|
||||
IF(LIBMYSQL_LOCATION)
|
||||
CONFIGURE_FILE(${LIBMYSQL_LOCATION} ${HEIDISQL_DOWNLOAD_DIR}/libmysql.dll COPYONLY)
|
||||
SET(LIBMYSQLDLL_SOURCE "${LIBMYSQL_LOCATION}")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/heidisql.wxi.in ${CMAKE_CURRENT_BINARY_DIR}/heidisql.wxi)
|
||||
|
|
|
|||
|
|
@ -11,11 +11,19 @@
|
|||
<DirectoryRef Id="MariaDBShared">
|
||||
<Directory Id="D.HeidiSQL" Name="HeidiSQL">
|
||||
<Component Id="component.HeidiSQL" Guid="96ea3879-5320-4098-8f26-2f655d2f716c" Win64="no">
|
||||
<RemoveFile Id="PurgeAppFolder" Name="*.*" On="uninstall" />
|
||||
|
||||
<File Id="heidisql.gpl.txt" Name="gpl.txt" Source="${HEIDISQL_DOWNLOAD_DIR}\gpl.txt" />
|
||||
<File Id="heidisql.heidisql.exe" Name="heidisql.exe" Source="${HEIDISQL_DOWNLOAD_DIR}\heidisql.exe" KeyPath="yes">
|
||||
<Shortcut Id="desktopHeidiSQL" Directory="DesktopFolder" Name="HeidiSQL" Advertise="yes"/>
|
||||
</File>
|
||||
<!--
|
||||
Forced file removal for heidisql.exe might be required.
|
||||
HeidiSQL is self-updating, thus the version that was installed by MSI not necessarily matches
|
||||
the version of the file on uninstall. MSI would not touch such file by default and leave it after
|
||||
uninstallation. We use RemoveFile to force delete in any case.
|
||||
-->
|
||||
<RemoveFile Id="Remove_HeidiSQL_exe" Name="heidisql.exe" On="uninstall" />
|
||||
|
||||
<File Id="heidisql.license.txt" Name="license.txt" Source="${HEIDISQL_DOWNLOAD_DIR}\license.txt" />
|
||||
<File Id="heidisql.readme.txt" Name="readme.txt" Source="${HEIDISQL_DOWNLOAD_DIR}\readme.txt" />
|
||||
</Component>
|
||||
|
|
@ -25,7 +33,7 @@
|
|||
<RemoveRegistryKey Id="HeidiSQL_RegistryCleanup" Root="HKCU" Key="SOFTWARE\HeidiSQL" Action="removeOnUninstall" />
|
||||
</Component>
|
||||
<Component Id="component.HeidiSQL_libmysql.dll" Guid="*" Win64="no">
|
||||
<File Id="heidisql.libmysql.dll" Name="libmysql.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libmysql.dll" />
|
||||
<File Id="heidisql.libmysql.dll" Name="libmysql.dll" Source="${LIBMYSQLDLL_SOURCE}" />
|
||||
</Component>
|
||||
</Directory>
|
||||
</DirectoryRef>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue