Skip to content

Commit ed5460d

Browse files
committed
Generated cpp 2019-09-16 for alikafka.
1 parent 89f63cd commit ed5460d

File tree

25 files changed

+9306
-0
lines changed

25 files changed

+9306
-0
lines changed

alikafka-20190916/.gitignore

Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
cmake-build-debug/
2+
runtime/
3+
4+
# Google Test-generated files
5+
DartConfiguration.tcl
6+
*.pc
7+
8+
# Created by https://www.gitignore.io/api/osx,c++,vim,linux,emacs,windows,sublimetext,visualstudiocode,cmake
9+
10+
### C++ ###
11+
# Prerequisites
12+
*.d
13+
14+
# Compiled Object files
15+
*.slo
16+
*.lo
17+
*.o
18+
*.obj
19+
20+
# Precompiled Headers
21+
*.gch
22+
*.pch
23+
24+
# Compiled Dynamic libraries
25+
*.so
26+
*.dylib
27+
*.dll
28+
29+
# Fortran module files
30+
*.mod
31+
*.smod
32+
33+
# Compiled Static libraries
34+
*.lai
35+
*.la
36+
*.a
37+
*.lib
38+
39+
# Executables
40+
*.exe
41+
*.out
42+
*.app
43+
44+
### CMake ###
45+
CMakeCache.txt
46+
CMakeFiles
47+
CMakeScripts
48+
Testing
49+
Makefile
50+
cmake_install.cmake
51+
install_manifest.txt
52+
compile_commands.json
53+
CTestTestfile.cmake
54+
build/
55+
cmake_build/
56+
57+
### Emacs ###
58+
# -*- mode: gitignore; -*-
59+
*~
60+
\#*\#
61+
/.emacs.desktop
62+
/.emacs.desktop.lock
63+
*.elc
64+
auto-save-list
65+
tramp
66+
.\#*
67+
68+
# Org-mode
69+
.org-id-locations
70+
*_archive
71+
72+
# flymake-mode
73+
*_flymake.*
74+
75+
# eshell files
76+
/eshell/history
77+
/eshell/lastdir
78+
79+
# elpa packages
80+
/elpa/
81+
82+
# reftex files
83+
*.rel
84+
85+
# AUCTeX auto folder
86+
/auto/
87+
88+
# cask packages
89+
.cask/
90+
dist/
91+
92+
# Flycheck
93+
flycheck_*.el
94+
95+
# server auth directory
96+
/server/
97+
98+
# projectiles files
99+
.projectile
100+
projectile-bookmarks.eld
101+
102+
# directory configuration
103+
.dir-locals.el
104+
105+
# saveplace
106+
places
107+
108+
# url cache
109+
url/cache/
110+
111+
# cedet
112+
ede-projects.el
113+
114+
# smex
115+
smex-items
116+
117+
# company-statistics
118+
company-statistics-cache.el
119+
120+
# anaconda-mode
121+
anaconda-mode/
122+
123+
### Linux ###
124+
125+
# temporary files which can be created if a process still has a handle open of a deleted file
126+
.fuse_hidden*
127+
128+
# KDE directory preferences
129+
.directory
130+
131+
# Linux trash folder which might appear on any partition or disk
132+
.Trash-*
133+
134+
# .nfs files are created when an open file is removed but is still being accessed
135+
.nfs*
136+
137+
### OSX ###
138+
*.DS_Store
139+
.AppleDouble
140+
.LSOverride
141+
142+
# Icon must end with two \r
143+
Icon
144+
145+
# Thumbnails
146+
._*
147+
148+
# Files that might appear in the root of a volume
149+
.DocumentRevisions-V100
150+
.fseventsd
151+
.Spotlight-V100
152+
.TemporaryItems
153+
.Trashes
154+
.VolumeIcon.icns
155+
.com.apple.timemachine.donotpresent
156+
157+
# Directories potentially created on remote AFP share
158+
.AppleDB
159+
.AppleDesktop
160+
Network Trash Folder
161+
Temporary Items
162+
.apdisk
163+
164+
### SublimeText ###
165+
# cache files for sublime text
166+
*.tmlanguage.cache
167+
*.tmPreferences.cache
168+
*.stTheme.cache
169+
170+
# workspace files are user-specific
171+
*.sublime-workspace
172+
173+
# project files should be checked into the repository, unless a significant
174+
# proportion of contributors will probably not be using SublimeText
175+
# *.sublime-project
176+
177+
# sftp configuration file
178+
sftp-config.json
179+
180+
# Package control specific files
181+
Package Control.last-run
182+
Package Control.ca-list
183+
Package Control.ca-bundle
184+
Package Control.system-ca-bundle
185+
Package Control.cache/
186+
Package Control.ca-certs/
187+
Package Control.merged-ca-bundle
188+
Package Control.user-ca-bundle
189+
oscrypto-ca-bundle.crt
190+
bh_unicode_properties.cache
191+
192+
# Sublime-github package stores a github token in this file
193+
# https://packagecontrol.io/packages/sublime-github
194+
GitHub.sublime-settings
195+
196+
### Vim ###
197+
# swap
198+
.sw[a-p]
199+
.*.sw[a-p]
200+
# session
201+
Session.vim
202+
# temporary
203+
.netrwhist
204+
# auto-generated tag files
205+
tags
206+
207+
### VisualStudioCode ###
208+
.vscode/
209+
# !.vscode/settings.json
210+
# !.vscode/tasks.json
211+
# !.vscode/launch.json
212+
# !.vscode/extensions.json
213+
.history
214+
215+
### IDEA ###
216+
.idea/
217+
218+
### Windows ###
219+
# Windows thumbnail cache files
220+
Thumbs.db
221+
ehthumbs.db
222+
ehthumbs_vista.db
223+
224+
# Folder config file
225+
Desktop.ini
226+
227+
# Recycle Bin used on file shares
228+
$RECYCLE.BIN/
229+
230+
# Windows Installer files
231+
*.cab
232+
*.msi
233+
*.msm
234+
*.msp
235+
236+
# Windows shortcuts
237+
*.lnk
238+
239+
240+
# End of https://www.gitignore.io/api/osx,c++,vim,linux,emacs,windows,sublimetext,visualstudiocode,cmake

alikafka-20190916/CMakeLists.txt

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
2+
cmake_minimum_required(VERSION 3.11 FATAL_ERROR)
3+
4+
project(alibabacloud_alikafka_20190916 VERSION "0.1.0")
5+
6+
# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< General set up >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #
7+
set(CMAKE_CXX_STANDARD 11)
8+
set(CMAKE_CXX_EXTENSIONS OFF)
9+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
10+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
11+
message("C++ compiler flags: ${CMAKE_CXX_FLAGS}")
12+
13+
if (CMAKE_CXX_COMPILER_LOADED)
14+
message(STATUS "The C++ compiler ID is: ${CMAKE_CXX_COMPILER_ID}")
15+
message(STATUS "The C++ compiler version is: ${CMAKE_CXX_COMPILER_VERSION}")
16+
endif ()
17+
18+
if (NOT CMAKE_BUILD_TYPE)
19+
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
20+
endif ()
21+
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
22+
23+
# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Target set up >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #
24+
add_library(${PROJECT_NAME} SHARED "")
25+
set(headers
26+
include/alibabacloud/alikafka_20190916.hpp)
27+
target_sources(${PROJECT_NAME}
28+
PRIVATE
29+
src/alikafka_20190916.cpp
30+
${headers})
31+
target_include_directories(${PROJECT_NAME}
32+
PRIVATE
33+
${CMAKE_CURRENT_SOURCE_DIR}/include)
34+
set_target_properties(${PROJECT_NAME}
35+
PROPERTIES
36+
POSITION_INDEPENDENT_CODE 1
37+
SOVERSION ${PROJECT_VERSION_MAJOR}
38+
OUTPUT_NAME "${PROJECT_NAME}"
39+
DEBUG_POSTFIX "_d"
40+
PUBLIC_HEADER "${headers}"
41+
MACOSX_RPATH ON
42+
WINDOWS_EXPORT_ALL_SYMBOLS ON)
43+
44+
# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< External set up >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #
45+
add_subdirectory(external)
46+
find_package(Boost REQUIRED COMPONENTS random system thread filesystem chrono atomic date_time regex)
47+
find_library(CPPREST_LIB cpprest)
48+
target_link_libraries(${PROJECT_NAME} PRIVATE crypto darabonba_util alibabacloud_open_api alibabacloud_endpoint_util alibabacloud_open_api_util alibabacloud_oss alibabacloud_rpc alibabacloud_open_platform_20191219 darabonba_file_form alibabacloud_ossutil alibabacloud_credential darabonba_xml alibabacloud_rpcutil darabonba_core ${Boost_LIBRARIES} ${CPPREST_LIB})
49+
50+
# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Install set up >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #
51+
message(STATUS "${PROJECT_NAME} : Project will be installed to ${CMAKE_INSTALL_PREFIX}")
52+
53+
include(GNUInstallDirs)
54+
55+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
56+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
57+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR})
58+
59+
set(INSTALL_LIBDIR ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Installation directory for libraries")
60+
set(INSTALL_BINDIR ${CMAKE_INSTALL_BINDIR} CACHE PATH "Installation directory for executables")
61+
set(INSTALL_INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR} CACHE PATH "Installation directory for header files")
62+
if(WIN32 AND NOT CYGWIN)
63+
set(DEF_INSTALL_CMAKEDIR CMake)
64+
else()
65+
set(DEF_INSTALL_CMAKEDIR share/cmake/${PROJECT_NAME})
66+
endif()
67+
set(INSTALL_CMAKEDIR ${DEF_INSTALL_CMAKEDIR} CACHE PATH "Installation directory for CMake files")
68+
69+
foreach(p LIB BIN INCLUDE CMAKE)
70+
file(TO_NATIVE_PATH ${CMAKE_INSTALL_PREFIX}/${INSTALL_${p}DIR} _path )
71+
message(STATUS "Installing ${p} components to ${_path}")
72+
unset(_path)
73+
endforeach()
74+
75+
# Prepare RPATH
76+
file(RELATIVE_PATH _rel ${CMAKE_INSTALL_PREFIX}/${INSTALL_BINDIR} ${CMAKE_INSTALL_PREFIX})
77+
if(APPLE)
78+
set(_rpath "@loader_path/${_rel}")
79+
else()
80+
set(_rpath "\$ORIGIN/${_rel}")
81+
endif()
82+
file(TO_NATIVE_PATH "${_rpath}/${INSTALL_LIBDIR}" install_RPATH)
83+
84+
set_target_properties(${PROJECT_NAME}
85+
PROPERTIES
86+
MACOSX_RPATH ON
87+
SKIP_BUILD_RPATH OFF
88+
BUILD_WITH_INSTALL_RPATH OFF
89+
INSTALL_RPATH "${install_RPATH}"
90+
INSTALL_RPATH_USE_LINK_PATH ON)
91+
92+
install(
93+
TARGETS
94+
${PROJECT_NAME}
95+
EXPORT
96+
alibabacloud_alikafka_20190916Targets
97+
ARCHIVE
98+
DESTINATION ${INSTALL_LIBDIR}
99+
COMPONENT lib
100+
RUNTIME
101+
DESTINATION ${INSTALL_BINDIR}
102+
COMPONENT bin
103+
LIBRARY
104+
DESTINATION ${INSTALL_LIBDIR}
105+
COMPONENT lib
106+
PUBLIC_HEADER
107+
DESTINATION ${INSTALL_INCLUDEDIR}/alibabacloud
108+
COMPONENT dev
109+
)
110+
111+
# Install cmake config
112+
install(
113+
EXPORT
114+
alibabacloud_alikafka_20190916Targets
115+
NAMESPACE
116+
"alibabacloud_alikafka_20190916::"
117+
DESTINATION
118+
${INSTALL_CMAKEDIR}
119+
COMPONENT
120+
dev
121+
)
122+
include(CMakePackageConfigHelpers)
123+
124+
write_basic_package_version_file(
125+
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
126+
VERSION ${PROJECT_VERSION}
127+
COMPATIBILITY SameMajorVersion
128+
)
129+
configure_package_config_file(
130+
${PROJECT_SOURCE_DIR}/cmake/${PROJECT_NAME}Config.cmake.in
131+
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
132+
INSTALL_DESTINATION ${INSTALL_CMAKEDIR}
133+
)
134+
install(
135+
FILES
136+
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
137+
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
138+
DESTINATION
139+
${INSTALL_CMAKEDIR}
140+
)

alikafka-20190916/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2021-03-22 Version: 1.0.0
2+
- Generated cpp 2019-09-16 for alikafka.
3+

0 commit comments

Comments
 (0)