Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version and update vendor. #47

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Pre 3.16 versions of Windows set MD/MT incorrectly and cause linker 'warnings' which are actually serious issues
if(WIN32)
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.16)
else()
cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.13)
endif()

project(global_make_list)
Expand Down Expand Up @@ -62,9 +62,9 @@ set(LIBRARY_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../libraries)
set(INSTALL_SRC "${CMAKE_CURRENT_SOURCE_DIR}/installer")
set(DSN_INSTALLER_SRC "${CMAKE_CURRENT_SOURCE_DIR}/DSNInstaller")

# ODBC Driver version
set(DRIVER_PACKAGE_VERSION "1.4.0.0")
set(DRIVER_PACKAGE_VERSION_COMMA_SEPARATED "1,4,0,0")
# ODBC Driver version
set(DRIVER_PACKAGE_VERSION "1.5.0.0")
set(DRIVER_PACKAGE_VERSION_COMMA_SEPARATED "1,5,0,0")
add_compile_definitions( OPENSEARCH_ODBC_VERSION="${DRIVER_PACKAGE_VERSION}"
# Comma separated version is required for odbc administrator's driver file.
OPENSEARCH_ODBC_DRVFILE_VERSION=${DRIVER_PACKAGE_VERSION_COMMA_SEPARATED} )
Expand All @@ -79,7 +79,7 @@ if(WIN32)
set(RAPIDJSON_SRC ${LIBRARY_DIRECTORY}/rapidjson/include)
endif ()
# Without this symbols will be exporting to Unix but not Windows
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)

find_package(aws-cpp-sdk-core CONFIG REQUIRED)
if(APPLE)
Expand All @@ -89,41 +89,41 @@ endif()

# General compiler definitions
add_compile_definitions ( _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING
UNICODE_SUPPORT
DYNAMIC_LOAD
UNICODE_SUPPORT
DYNAMIC_LOAD
_MBCS
_CRT_SECURE_NO_DEPRECATE
_USRDLL
_CRT_SECURE_NO_DEPRECATE
_USRDLL
_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING
_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
# USE_SSL
# USE_SSL
)

# Platform specific compiler definitions
if (WIN32 AND BITNESS EQUAL 64)
# Windows specific
add_compile_definitions ( _WINDLL
_WIN64
add_compile_definitions ( _WINDLL
_WIN64
_WINDOWS
WIN_EXPORT
WIN_EXPORT
)
elseif (WIN32 AND BITNESS EQUAL 32)
# Windows specific
add_compile_definitions ( _WINDLL
_WIN32
add_compile_definitions ( _WINDLL
_WIN32
_WINDOWS
WIN_EXPORT
WIN_EXPORT
)
elseif(APPLE)
# macOS specific
add_compile_definitions ( WITH_IODBC
add_compile_definitions ( WITH_IODBC
SQLCOLATTRIBUTE_SQLLEN
)
# iODBC includes
include_directories(/usr/local/opt/libiodbc/include)
elseif(UNIX)
# Unix specific
add_compile_definitions ( WITH_UNIXODBC
add_compile_definitions ( WITH_UNIXODBC
SQLCOLATTRIBUTE_SQLLEN
)
endif()
Expand Down
10 changes: 5 additions & 5 deletions src/installer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set(CMAKE_INSTALL_PREFIX ${INSTALL_ROOT})
# General package info
set(CPACK_PACKAGE_NAME "OpenSearch SQL ODBC Driver ${BITNESS}-bit")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenSearch SQL ODBC Driver ${BITNESS}-bit")
set(CPACK_PACKAGE_VENDOR "Amazon")
set(CPACK_PACKAGE_VENDOR "OpenSearch Project")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME}")
set(CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}")
set(CPACK_PACKAGE_VERSION "${DRIVER_PACKAGE_VERSION}")
Expand All @@ -19,13 +19,13 @@ if(WIN32)
# This is a unique id for the installer - required for Windows
# Generated at https://www.guidgen.com/
set(CPACK_WIX_UPGRADE_GUID "2D325BD7-1176-40E8-8AB8-C52DD2F7B792")

# The Icon shown next to the program name in Add/Remove programs
set(CPACK_WIX_PRODUCT_ICON "${CMAKE_CURRENT_SOURCE_DIR}/icon.ico")

# The bitmap will appear at the top of all installer pages other than the welcome and completion dialogs
set(CPACK_WIX_UI_BANNER "${CMAKE_CURRENT_SOURCE_DIR}/banner.bmp")

# Background bitmap used on the welcome and completion dialogs
set(CPACK_WIX_UI_DIALOG "${CMAKE_CURRENT_SOURCE_DIR}/dialog.bmp")

Expand Down Expand Up @@ -67,7 +67,7 @@ cpack_add_component(Docs
cpack_add_component(Driver
DISPLAY_NAME "Driver"
DESCRIPTION "Library files for running the OpenSearch SQL ODBC Driver"
REQUIRED
REQUIRED
)
cpack_add_component(Resources
DISPLAY_NAME "Resources"
Expand Down
4 changes: 2 additions & 2 deletions src/installer/patch.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<CPackWiXPatch>
<CPackWiXFragment Id="CM_CP_Driver.bin.sqlodbc.dll">
<!-- Add driver entry in Software -->
<RegistryKey Root="HKLM" Key="SOFTWARE\Amazon\OpenSearch SQL ODBC Driver\Driver" >
<RegistryKey Root="HKLM" Key="SOFTWARE\OpenSearch Project\OpenSearch SQL ODBC Driver\Driver" >
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How will this affect upgrading from 1.3.0.0?

As I see it, if the user has custom values set up, say LogLevel or LogOutput, they will be lost.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, it is a very good point.
Unfortunately, current installer does not support upgrade, so user has to delete old version first (which cleans up registry entries) and install new. These settings are always lost, unless installer reworked.

<RegistryValue Type="string" Name="InstallPath" Value="[INSTALL_ROOT]" />
<RegistryValue Type="string" Name="LogLevel" Value="" />
<RegistryValue Type="string" Name="LogOutput" Value="" />
Expand Down Expand Up @@ -40,4 +40,4 @@
</RegistryKey>

</CPackWiXFragment>
</CPackWiXPatch>
</CPackWiXPatch>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this file end with a whitespace?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All files should end with a blank line