Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
58c6165e
Commit
58c6165e
authored
Jun 01, 2011
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use our libmysql.dll with Heidi, if we compile 32 bit
parent
02dabe35
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
22 deletions
+40
-22
win/packaging/CMakeLists.txt
win/packaging/CMakeLists.txt
+1
-0
win/packaging/create_msi.cmake.in
win/packaging/create_msi.cmake.in
+6
-0
win/packaging/heidisql.cmake
win/packaging/heidisql.cmake
+14
-6
win/packaging/heidisql.wxi.in
win/packaging/heidisql.wxi.in
+19
-16
No files found.
win/packaging/CMakeLists.txt
View file @
58c6165e
...
...
@@ -114,6 +114,7 @@ IF(WITH_THIRD_PARTY)
ENDIF
()
ENDIF
()
GET_TARGET_PROPERTY
(
LIBMYSQL_LOCATION libmysql LOCATION
)
FOREACH
(
third_party
${
WITH_THIRD_PARTY
}
)
SET
(
third_party_install_plugin
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
third_party
}
.cmake
)
IF
(
NOT EXISTS
${
third_party_install_plugin
}
)
...
...
win/packaging/create_msi.cmake.in
View file @
58c6165e
...
...
@@ -26,8 +26,14 @@ SET(EXTRA_WIX_PREPROCESSOR_FLAGS "@EXTRA_WIX_PREPROCESSOR_FLAGS@")
SET(WITH_THIRD_PARTY "@WITH_THIRD_PARTY@")
SET(THIRD_PARTY_DOWNLOAD_LOCATION "@THIRD_PARTY_DOWNLOAD_LOCATION@")
SET(THIRD_PARTY_FEATURE_CONDITION "@THIRD_PARTY_FEATURE_CONDITION@")
SET(LIBMYSQL_LOCATION "@LIBMYSQL_LOCATION@")
IF(LIBMYSQL_LOCATION AND CMAKE_CFG_INTDIR)
# resolve libmysql full path
STRING(REPLACE "${CMAKE_CFG_INTDIR}" "${CMAKE_INSTALL_CONFIG_NAME}" LIBMYSQL_LOCATION "${LIBMYSQL_LOCATION}")
ENDIF()
FOREACH(third_party ${WITH_THIRD_PARTY})
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/${third_party}.cmake)
...
...
win/packaging/heidisql.cmake
View file @
58c6165e
SET
(
HEIDISQL_BASE_NAME
"HeidiSQL_6.0_Portable"
)
SET
(
HEIDISQL_ZIP
"
${
HEIDISQL_BASE_NAME
}
.zip"
)
SET
(
HEIDISQL_URL
"http://heidisql.googlecode.com/files/
${
HEIDISQL_ZIP
}
"
)
IF
(
NOT EXISTS
${
THIRD_PARTY_DOWNLOAD_LOCATION
}
/HeidiSQL/
${
HEIDISQL_ZIP
}
)
MAKE_DIRECTORY
(
${
THIRD_PARTY_DOWNLOAD_LOCATION
}
/HeidiSQL
)
MESSAGE
(
STATUS
"Downloading
${
HEIDISQL_URL
}
to
${
THIRD_PARTY_DOWNLOAD_LOCATION
}
/HeidiSQL/
${
HEIDISQL_ZIP
}
"
)
FILE
(
DOWNLOAD
${
HEIDISQL_URL
}
${
THIRD_PARTY_DOWNLOAD_LOCATION
}
/HeidiSQL/
${
HEIDISQL_ZIP
}
TIMEOUT 60
)
EXECUTE_PROCESS
(
COMMAND
${
CMAKE_COMMAND
}
-E chdir
${
THIRD_PARTY_DOWNLOAD_LOCATION
}
/HeidiSQL
${
CMAKE_COMMAND
}
-E tar xfz
${
THIRD_PARTY_DOWNLOAD_LOCATION
}
/HeidiSQL/
${
HEIDISQL_ZIP
}
SET
(
HEIDISQL_DOWNLOAD_DIR
${
THIRD_PARTY_DOWNLOAD_LOCATION
}
/
${
HEIDISQL_BASE_NAME
}
)
IF
(
NOT EXISTS
${
HEIDISQL_DOWNLOAD_DIR
}
/
${
HEIDISQL_ZIP
}
)
MAKE_DIRECTORY
(
${
HEIDISQL_DOWNLOAD_DIR
}
)
MESSAGE
(
STATUS
"Downloading
${
HEIDISQL_URL
}
to
${
HEIDISQL_DOWNLOAD_DIR
}
/
${
HEIDISQL_ZIP
}
"
)
FILE
(
DOWNLOAD
${
HEIDISQL_URL
}
${
HEIDISQL_DOWNLOAD_DIR
}
/
${
HEIDISQL_ZIP
}
TIMEOUT 60
)
EXECUTE_PROCESS
(
COMMAND
${
CMAKE_COMMAND
}
-E chdir
${
HEIDISQL_DOWNLOAD_DIR
}
${
CMAKE_COMMAND
}
-E tar xfz
${
HEIDISQL_DOWNLOAD_DIR
}
/
${
HEIDISQL_ZIP
}
)
ENDIF
()
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
)
ENDIF
()
ENDIF
()
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/heidisql.wxi.in
${
CMAKE_CURRENT_BINARY_DIR
}
/heidisql.wxi
)
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/heidisql_feature.wxi.in
${
CMAKE_CURRENT_BINARY_DIR
}
/heidisql_feature.wxi
)
win/packaging/heidisql.wxi.in
View file @
58c6165e
...
...
@@ -8,28 +8,31 @@
Win64="no"
/>
</Property>
<
Icon Id='heidisql.exe' SourceFile='${THIRD_PARTY_DOWNLOAD_LOCATION}\HeidiSQL\heidisql.exe' /
>
<DirectoryRef Id='MariaDBShared'
>
<Directory Id='D.HeidiSQL' Name='HeidiSQL'>
<Component Id='component.HeidiSQL' Guid='96ea3879-5320-4098-8f26-2f655d2f716c' Win64='no'
>
<File Id=
'heidisql.gpl.txt' Name='gpl.txt' Source='${THIRD_PARTY_DOWNLOAD_LOCATION}\HeidiSQL\gpl.txt'
/>
<File Id=
'heidisql.heidisql.exe' Name='heidisql.exe' Source='${THIRD_PARTY_DOWNLOAD_LOCATION}\HeidiSQL\heidisql.exe' KeyPath='yes'
>
<Shortcut Id="desktopHeidiSQL" Directory="DesktopFolder" Name="HeidiSQL"
Icon='heidisql.exe' Advertise='yes'
/>
<
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>
<File Id='heidisql.libmysql.dll' Name='libmysql.dll' Source='${THIRD_PARTY_DOWNLOAD_LOCATION}\HeidiSQL\libmysql.dll' />
<File Id='heidisql.license.txt' Name='license.txt' Source='${THIRD_PARTY_DOWNLOAD_LOCATION}\HeidiSQL\license.txt' />
<File Id='heidisql.portable_settings.txt' Name='portable_settings.txt' Source='${THIRD_PARTY_DOWNLOAD_LOCATION}\HeidiSQL\portable_settings.txt' />
<File Id='heidisql.readme.txt' Name='readme.txt' Source='${THIRD_PARTY_DOWNLOAD_LOCATION}\HeidiSQL\readme.txt' />
<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>
<Component Id=
'component.HeidiSQL_MenuShortcut' Guid='*' Win64='no'
>
<Component Id=
"component.HeidiSQL_MenuShortcut" Guid="*" Win64="no"
>
<RegistryValue Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall" Name="shortcuts.heidisql" Value="1" Type="string" KeyPath="yes" />
<Shortcut Id="startmenuHeidiSQL" Directory="ShortcutFolder" Name="HeidiSQL" Target='[D.HeidiSQL]\heidisql.exe'/>
<Shortcut Id="startmenuHeidiSQL" Directory="ShortcutFolder" Name="HeidiSQL" Target="[D.HeidiSQL]\heidisql.exe"/>
<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" />
</Component>
</Directory>
</DirectoryRef>
<ComponentGroup Id='HeidiSQL'>
<ComponentRef Id='component.HeidiSQL'/>
<ComponentRef Id='component.HeidiSQL_MenuShortcut'/>
<ComponentGroup Id="HeidiSQL">
<ComponentRef Id="component.HeidiSQL"/>
<ComponentRef Id="component.HeidiSQL_MenuShortcut"/>
<ComponentRef Id="component.HeidiSQL_libmysql.dll"/>
</ComponentGroup>
</Include>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment