Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00df15d
commit 058b52b
Showing
27 changed files
with
17,383 additions
and
8,359 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,45 +1,45 @@ | ||
cmake_minimum_required(VERSION 3.0) | ||
project(PluginAWSS3) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
|
||
set(DOLPHIN_INCLUDE_DIR "../include" CACHE STRING "") | ||
set(DOLPHIN_LIBRARY_DIR "/usr/local/lib" CACHE STRING "") | ||
set(AWS_INCLUDE_DIR "/usr/local/include" CACHE STRING "") | ||
set(AWS_LIBRARY_DIR "/usr/local/lib" CACHE STRING "") | ||
set(ZLIB_INCLUDE_DIR "/usr/local/include" CACHE STRING "") | ||
set(ZLIB_LIBRARY_DIR "/usr/local/lib" CACHE STRING "") | ||
|
||
aux_source_directory(src PLUGINAWS_SRC) | ||
|
||
include_directories( | ||
src | ||
${AWS_INCLUDE_DIR} | ||
${ZLIB_INCLUDE_DIR} | ||
${DOLPHIN_INCLUDE_DIR}) | ||
|
||
if(WIN32) | ||
set(platform_macro "-DWINDOWS") | ||
elseif(UNIX) | ||
set(platform_macro "-DLINUX") | ||
endif() | ||
|
||
if(${CMAKE_BUILD_TYPE} MATCHES "Debug") | ||
add_compile_options(${platform_macro} -O0 -Wall -g -ggdb) | ||
message(STATUS "Build: Debug with -O0 -Wall -g -ggdb") | ||
else() | ||
set(CMAKE_BUILD_TYPE Release) | ||
add_compile_options(${platform_macro} -O3 -std=c++11) | ||
message(STATUS "Build: Release with -O3") | ||
endif() | ||
|
||
add_library( | ||
${PROJECT_NAME} SHARED | ||
${PLUGINAWS_SRC}) | ||
|
||
target_link_libraries( | ||
${PROJECT_NAME} | ||
${DOLPHIN_LIBRARY_DIR}/libDolphinDB.so | ||
${AWS_LIBRARY_DIR}/libaws-cpp-sdk-s3.so | ||
${AWS_LIBRARY_DIR}/libaws-cpp-sdk-core.so | ||
${ZLIB_LIBRARY_DIR}/libz.so) | ||
cmake_minimum_required(VERSION 3.0) | ||
project(PluginAWSS3) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
|
||
set(DOLPHIN_INCLUDE_DIR "../include" CACHE STRING "") | ||
set(DOLPHIN_LIBRARY_DIR "/usr/local/lib" CACHE STRING "") | ||
set(AWS_INCLUDE_DIR "/usr/local/include" CACHE STRING "") | ||
set(AWS_LIBRARY_DIR "/usr/local/lib" CACHE STRING "") | ||
set(ZLIB_INCLUDE_DIR "/usr/local/include" CACHE STRING "") | ||
set(ZLIB_LIBRARY_DIR "/usr/local/lib" CACHE STRING "") | ||
|
||
aux_source_directory(src PLUGINAWS_SRC) | ||
|
||
include_directories( | ||
src | ||
${AWS_INCLUDE_DIR} | ||
${ZLIB_INCLUDE_DIR} | ||
${DOLPHIN_INCLUDE_DIR}) | ||
|
||
if(WIN32) | ||
set(platform_macro "-DWINDOWS") | ||
elseif(UNIX) | ||
set(platform_macro "-DLINUX") | ||
endif() | ||
|
||
if(${CMAKE_BUILD_TYPE} MATCHES "Debug") | ||
add_compile_options(${platform_macro} -O0 -Wall -g -ggdb) | ||
message(STATUS "Build: Debug with -O0 -Wall -g -ggdb") | ||
else() | ||
set(CMAKE_BUILD_TYPE Release) | ||
add_compile_options(${platform_macro} -O3 -std=c++11) | ||
message(STATUS "Build: Release with -O3") | ||
endif() | ||
|
||
add_library( | ||
${PROJECT_NAME} SHARED | ||
${PLUGINAWS_SRC}) | ||
|
||
target_link_libraries( | ||
${PROJECT_NAME} | ||
${DOLPHIN_LIBRARY_DIR}/libDolphinDB.so | ||
${AWS_LIBRARY_DIR}/libaws-cpp-sdk-s3.so | ||
${AWS_LIBRARY_DIR}/libaws-cpp-sdk-core.so | ||
${ZLIB_LIBRARY_DIR}/libz.so) |
This file contains 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,9 @@ | ||
aws,libPluginAWSS3.so | ||
getS3Object,getS3Object,system,3,4,0 | ||
listS3Object,listS3Object,system,3,3,0 | ||
readS3Object,readS3Object,system,5,5,0 | ||
deleteS3Object,deleteS3Object,command,3,3,0 | ||
uploadS3Object,uploadS3Object,command,4,4,0 | ||
listS3Bucket,listS3Bucket,system,1,1,0 | ||
deleteS3Bucket,deleteS3Bucket,command,2,2,0 | ||
createS3Bucket,createS3Bucket,command,2,2,0 |
Oops, something went wrong.