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

Recover windows installer cmake file. #44

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

Yury-Fridlyand
Copy link
Collaborator

Description

Partially revert changes from #27.
New installer content:
image
Tested on Windows 32/64 bit and Mac.

Issues Resolved

Fixes #43

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
set(AWS_SDK_BIN_DIR "${PROJECT_ROOT}/src/vcpkg_installed/x${BITNESS}-windows/bin")
install(DIRECTORY ${AWS_SDK_BIN_DIR} DESTINATION . COMPONENT "Driver" FILES_MATCHING PATTERN "*.dll")

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this input parameter by the user? Should we check case-insensitive?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe. I just recovered deleted piece of file. The only thing I added is FILES_MATCHING PATTERN "*.dll" to exclude big pdb files (debug symbols).


if(CMAKE_BUILD_TYPE STREQUAL "Debug")
# We actually never build the installer for Debug
install(FILES "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug/libcurl-d.dll" DESTINATION bin COMPONENT "Driver")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be easier to read if you just include CMAKE_BUILD_TYPE as part of the string, like:

install(FILES "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/" CMAKE_BUILD_TYPE "/libcurl-d.dll" DESTINATION bin COMPONENT "Driver")

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

File name of libcurl changes between release and debug

@Yury-Fridlyand Yury-Fridlyand merged commit 3e5972c into opensearch-project:main Jun 14, 2023
@Yury-Fridlyand Yury-Fridlyand deleted the fix-installer branch June 14, 2023 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Windows installer is missing files.
5 participants