File tree Expand file tree Collapse file tree 5 files changed +66
-0
lines changed
Expand file tree Collapse file tree 5 files changed +66
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ hunter_default_version(astc-encoder VERSION 3.0-7257cbd-p0)
199199hunter_default_version(autobahn-cpp VERSION 0.2.0)
200200hunter_default_version(autoutils VERSION 0.3.0)
201201hunter_default_version(aws-c-common VERSION 0.5.6)
202+ hunter_default_version(aws_lambda_cpp VERSION v0.2.7-p0)
202203hunter_default_version(basis_universal VERSION 1.15-c4c0db7-p0)
203204hunter_default_version(benchmark VERSION 1.5.0)
204205hunter_default_version(bento4 VERSION 1.6.0-638-p0)
Original file line number Diff line number Diff line change 1+ # !!! DO NOT PLACE HEADER GUARDS HERE !!!
2+
3+ include (hunter_add_version)
4+ include (hunter_cacheable)
5+ include (hunter_download)
6+ include (hunter_pick_scheme)
7+
8+ hunter_add_version(
9+ PACKAGE_NAME aws_lambda_cpp
10+ VERSION "v0.2.7-p0"
11+ URL "https://github.com/cpp-pm/aws-lambda-cpp/archive/refs/heads/hunter-v0.2.7.tar.gz"
12+ SHA1 8e84d81b3cd29acf5f618c942e7dc4ffc9ea325b
13+ )
14+
15+ hunter_pick_scheme(DEFAULT url_sha1_cmake)
16+ hunter_cacheable(aws_lambda_cpp)
17+ hunter_download(PACKAGE_NAME aws_lambda_cpp)
Original file line number Diff line number Diff line change 1+ .. spelling ::
2+
3+ aws_lambda_cpp
4+
5+ .. index :: frameworks ; aws_lambda_cpp
6+
7+ .. _pkg.aws_lambda_cpp :
8+
9+ aws_lambda_cpp
10+ ==============
11+
12+ - `Official <https://github.com/awslabs/aws-lambda-cpp >`__
13+ - `Hunterized <https://github.com/cpp-pm/aws-lambda-cpp >`__
14+ - `Example <https://github.com/cpp-pm/hunter/blob/master/examples/aws_lambda_cpp/CMakeLists.txt >`__
15+ - Added by `<https://github.com/kevinkjt2000 >`__ (`pr-429 <https://github.com/ruslo/hunter/pull/429 >`__)
16+
17+ .. literalinclude :: /../examples/aws_lambda_cpp/CMakeLists.txt
18+ :language: cmake
19+ :start-after: # DOCUMENTATION_START {
20+ :end-before: # DOCUMENTATION_END }
Original file line number Diff line number Diff line change 1+ include ("../common.cmake" )
2+ cmake_minimum_required (VERSION 3.19)
3+
4+ set (PROJECT_NAME example_aws_lambda_cpp)
5+ project (${PROJECT_NAME} )
6+
7+ # DOCUMENTATION_START {
8+ hunter_add_package(aws_lambda_cpp)
9+ find_package (aws-lambda-runtime CONFIG REQUIRED)
10+ add_executable (${PROJECT_NAME} ./handler.cpp)
11+ target_link_libraries (${PROJECT_NAME} PRIVATE AWS::aws-lambda-runtime)
12+ aws_lambda_package_target(${PROJECT_NAME} )
13+ # DOCUMENTATION_END }
14+
Original file line number Diff line number Diff line change 1+ #include < aws/lambda-runtime/runtime.h>
2+
3+ using namespace aws ::lambda_runtime;
4+
5+ invocation_response handler (invocation_request const & req)
6+ {
7+ return invocation_response::success (" {\" stuff\" : 42}" , " application/json" );
8+ }
9+
10+ int main ()
11+ {
12+ run_handler (handler);
13+ return 0 ;
14+ }
You can’t perform that action at this time.
0 commit comments