-
Notifications
You must be signed in to change notification settings - Fork 150
Create Storage DataMovement directory #3594
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
24f625c
storage data movement lib
Jinming-Hu 66a57fe
clang-format
Jinming-Hu c3a551f
f
Jinming-Hu 04d6b9a
task and scheduler
Jinming-Hu 3fd6e78
file_io read
Jinming-Hu f89cdbc
single upload task
Jinming-Hu 93176e8
1
Jinming-Hu ab4dc4f
sample
Jinming-Hu 8bf9ac8
fix bug: scheduler is not woken up
Jinming-Hu c526ad5
change parameter default values
Jinming-Hu c06e1a4
use two threads for disk IO
Jinming-Hu bbe6f22
fix build warnings
Jinming-Hu 5677152
fix warnings
Jinming-Hu 6374b5b
impl GetFullPath
Jinming-Hu 9ddad2e
fix typo
Jinming-Hu 3750a1d
fix warning on x86
Jinming-Hu 77fc449
fix warning
Jinming-Hu 195ede9
fix warning
Jinming-Hu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| # 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/scheduler.hpp | ||
| inc/azure/storage/datamovement/storage_transfer_manager.hpp | ||
| inc/azure/storage/datamovement/task.hpp | ||
| inc/azure/storage/datamovement/tasks/upload_blob_from_file_task.hpp | ||
| src/private/package_version.hpp | ||
| ) | ||
|
|
||
| set( | ||
| AZURE_STORAGE_DATAMOVEMENT_SOURCE | ||
| src/scheduler.cpp | ||
| src/storage_transfer_manager.cpp | ||
| src/tasks/upload_blob_from_file_task.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) | ||
|
|
||
| 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() | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.