Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
3 changes: 3 additions & 0 deletions cmake-modules/FolderList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ macro(GetFolderList project)
elseif(${project} STREQUAL STORAGE_QUEUES)
DownloadDepVersion(sdk/core azure-core 1.5.0)
DownloadDepVersion(sdk/storage/azure-storage-common azure-storage-common 12.2.3)
elseif(${project} STREQUAL STORAGE_DATAMOVEMENT)
DownloadDepVersion(sdk/core azure-core 1.5.0)
DownloadDepVersion(sdk/storage/azure-storage-blobs azure-storage-blobs 12.4.0)
endif()
list(REMOVE_DUPLICATES BUILD_FOLDERS)
endmacro()
Expand Down
1 change: 1 addition & 0 deletions sdk/storage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ add_subdirectory(azure-storage-blobs)
add_subdirectory(azure-storage-files-datalake)
add_subdirectory(azure-storage-files-shares)
add_subdirectory(azure-storage-queues)
add_subdirectory(azure-storage-datamovement)
11 changes: 11 additions & 0 deletions sdk/storage/azure-storage-datamovement/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Release History

## 12.0.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
96 changes: 96 additions & 0 deletions sdk/storage/azure-storage-datamovement/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake-modules")
include(AzureVcpkg)
az_vcpkg_integrate()

cmake_minimum_required (VERSION 3.13)
project(azure-storage-datamovement LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

option(FETCH_SOURCE_DEPS "build source dependencies" OFF)

include(AzureVersion)
include(AzureCodeCoverage)
include(AzureTransportAdapters)
include(AzureDoxygen)
include(AzureGlobalCompileOptions)
include(AzureConfigRTTI)
include(AzureBuildTargetForCI)

if(FETCH_SOURCE_DEPS)
set(AZ_ALL_LIBRARIES ON)
include(FolderList)
SetCompileOptions(STORAGE_DATAMOVEMENT)
GetFolderList(STORAGE_DATAMOVEMENT)
foreach(oneFolder IN LISTS BUILD_FOLDERS)
message("add folder ${oneFolder}")
add_subdirectory(${oneFolder} EXCLUDE_FROM_ALL)
endforeach()
elseif(NOT AZ_ALL_LIBRARIES)
find_package(azure-storage-blobs-cpp "12.4.0" CONFIG QUIET)
if(NOT azure-storage-blobs-cpp_FOUND)
find_package(azure-storage-blobs-cpp "12.4.0" REQUIRED)
endif()
endif()

set(
AZURE_STORAGE_DATAMOVEMENT_HEADER
inc/azure/storage/datamovement/blob_folder.hpp
inc/azure/storage/datamovement/datamovement_options.hpp
inc/azure/storage/datamovement/dll_import_export.hpp
inc/azure/storage/datamovement/job_properties.hpp
inc/azure/storage/datamovement/rtti.hpp
inc/azure/storage/datamovement/storage_transfer_manager.hpp
src/private/package_version.hpp
)

set(
AZURE_STORAGE_DATAMOVEMENT_SOURCE
src/storage_transfer_manager.cpp
)

add_library(azure-storage-datamovement ${AZURE_STORAGE_DATAMOVEMENT_HEADER} ${AZURE_STORAGE_DATAMOVEMENT_SOURCE})
create_per_service_target_build(storage azure-storage-datamovement)

# make sure that users can consume the project as a library.
add_library(Azure::azure-storage-datamovement ALIAS azure-storage-datamovement)

target_include_directories(
azure-storage-datamovement
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
$<INSTALL_INTERFACE:include>
)

target_link_libraries(azure-storage-datamovement PUBLIC Azure::azure-storage-blobs)
Comment thread
vhvb1989 marked this conversation as resolved.

get_az_version("${CMAKE_CURRENT_SOURCE_DIR}/src/private/package_version.hpp")
generate_documentation(azure-storage-datamovement ${AZ_LIBRARY_VERSION})

az_vcpkg_export(
azure-storage-datamovement
STORAGE_DATAMOVEMENT
"azure/storage/datamovement/dll_import_export.hpp"
)

az_rtti_setup(
azure-storage-datamovement
STORAGE_DATAMOVEMENT
"azure/storage/datamovement/rtti.hpp"
)

# coverage. Has no effect if BUILD_CODE_COVERAGE is OFF
create_code_coverage(storage azure-storage-datamovement azure-storage-test "tests?/*;samples?/*")

if(BUILD_TESTING)
# add_subdirectory(test/ut)
endif()

if(BUILD_SAMPLES)
# add_subdirectory(samples)
endif()
Loading