Skip to content

Commit

Permalink
Vcpkg-related fixes for checkpointstore-blob (#4998)
Browse files Browse the repository at this point in the history
* checkpointstore-blob vcpkg dependency fix

* Update CMakeLists.txt

* Update CMakeLists.txt

* Update FolderList.cmake
  • Loading branch information
antkmsft authored Oct 3, 2023
1 parent 35e42b9 commit be47854
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cmake-modules/FolderList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ macro(GetFolderList project)
elseif(${project} STREQUAL EVENTHUBS)
DownloadDepVersion(sdk/core azure-core 1.10.1)
DownloadDepVersion(sdk/core azure-core-amqp 1.0.0-beta.1)
elseif(${project} STREQUAL EVENTHUBS_CHECKPOINT_BLOB)
elseif(${project} STREQUAL EVENTHUBS_CHECKPOINTSTORE_BLOB)
DownloadDepVersion(sdk/core azure-core 1.10.1)
DownloadDepVersion(sdk/core azure-core-amqp 1.0.0-beta.1)
DownloadDepVersion(sdk/eventhubs azure-messaging-eventhubs 1.0.0-beta.3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include(AzureVcpkg)
az_vcpkg_integrate()

cmake_minimum_required (VERSION 3.13)
project(azure-messaging-eventhubs-checkpoint-blob LANGUAGES CXX)
project(azure-messaging-eventhubs-checkpointstore-blob LANGUAGES CXX)

# Compile Options
option(FETCH_SOURCE_DEPS "build source dependencies" OFF)
Expand All @@ -19,7 +19,7 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
if(FETCH_SOURCE_DEPS)
set(AZ_ALL_LIBRARIES ON)
include(FolderList)
SetCompileOptions(EVENTHUBS_CHECKPOINT_BLOB)
SetCompileOptions(EVENTHUBS_CHECKPOINTSTORE_BLOB)
endif()

include(AzureVersion)
Expand Down Expand Up @@ -66,42 +66,42 @@ set(
)

add_library(
azure-messaging-eventhubs-checkpoint-blob
azure-messaging-eventhubs-checkpointstore-blob
${AZURE_MESSAGING_EVENTHUBS_BLOB_CHECKPOINT_HEADER} ${AZURE_MESSAGING_EVENTHUBS_BLOB_CHECKPOINT_SOURCE}
)
create_per_service_target_build(eventhubs azure-messaging-eventhubs-checkpoint-blob)
add_library(Azure::azure-messaging-eventhubs-checkpoint-blob ALIAS azure-messaging-eventhubs-checkpoint-blob)
create_per_service_target_build(eventhubs azure-messaging-eventhubs-checkpointstore-blob)
add_library(Azure::azure-messaging-eventhubs-checkpointstore-blob ALIAS azure-messaging-eventhubs-checkpointstore-blob)

target_include_directories(
azure-messaging-eventhubs-checkpoint-blob
azure-messaging-eventhubs-checkpointstore-blob
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
$<INSTALL_INTERFACE:include>
)

target_link_libraries(azure-messaging-eventhubs-checkpoint-blob
target_link_libraries(azure-messaging-eventhubs-checkpointstore-blob
PUBLIC Azure::azure-core Azure::azure-messaging-eventhubs Azure::azure-storage-blobs
)

# coverage. Has no effect if BUILD_CODE_COVERAGE is OFF
create_code_coverage(eventhubs azure-messaging-eventhubs-checkpoint-blob azure-messaging-eventhubs-blobcheckpointstore-test "tests?/*;samples?/*")
create_code_coverage(eventhubs azure-messaging-eventhubs-checkpointstore-blob azure-messaging-eventhubs-blobcheckpointstore-test "tests?/*;samples?/*")

get_az_version("${CMAKE_CURRENT_SOURCE_DIR}/src/private/package_version.hpp")
#generate_documentation(azure-messaging-eventhubs-checkpoint-blob ${AZ_LIBRARY_VERSION})
#generate_documentation(azure-messaging-eventhubs-checkpointstore-blob ${AZ_LIBRARY_VERSION})
generate_documentation(azure-messaging-eventhubs-checkpointstore-blob ${AZ_LIBRARY_VERSION})

if(BUILD_TESTING)
add_subdirectory(test)
endif()

az_vcpkg_export(
azure-messaging-eventhubs-checkpoint-blob
azure-messaging-eventhubs-checkpointstore-blob
MESSAGING_EVENTHUBS_CHECKPOINTSTORE_BLOB
azure/messaging/eventhubs/checkpointstore_blob/dll_import_export.hpp
)

az_rtti_setup(
azure-messaging-eventhubs-checkpoint-blob
azure-messaging-eventhubs-checkpointstore-blob
MESSAGING_EVENTHUBS_CHECKPOINTSTORE_BLOB
azure/messaging/eventhubs/checkpointstore_blob/rtti.hpp
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ endif()
target_link_libraries(
azure-messaging-eventhubs-blobstore-test
PRIVATE
azure-messaging-eventhubs-checkpoint-blob
azure-messaging-eventhubs-checkpointstore-blob
azure-messaging-eventhubs
azure-core-test-fw
azure-identity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version>=": "1.0.0-beta.2"
},
{
"name": "azure-messaging-eventhubs",
"name": "azure-messaging-eventhubs-cpp",
"default-features": false,
"version>=": "1.0.0-beta.2"
},
Expand Down

0 comments on commit be47854

Please sign in to comment.