Skip to content

Commit

Permalink
Final request-response polish (#367)
Browse files Browse the repository at this point in the history
Co-authored-by: Bret Ambrose <[email protected]>
  • Loading branch information
bretambrose and Bret Ambrose authored Sep 12, 2024
1 parent 2eccff7 commit 770666f
Show file tree
Hide file tree
Showing 40 changed files with 17,049 additions and 1,108 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'main'

env:
BUILDER_VERSION: v0.9.62
BUILDER_VERSION: v0.9.64
BUILDER_SOURCE: releases
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
PACKAGE_NAME: aws-c-mqtt
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ file(GLOB AWS_MQTT_PRIV_EXPOSED_HEADERS
file(GLOB AWS_MQTT_SRC
"source/*.c"
"source/v5/*.c"
"source/request-response/*.c"
)

file(GLOB MQTT_HEADERS
Expand Down Expand Up @@ -121,6 +122,7 @@ if (BUILD_TESTING)
if (NOT CMAKE_CROSSCOMPILING )
add_subdirectory(bin/elastipubsub)
add_subdirectory(bin/elastipubsub5)
add_subdirectory(bin/elastishadow)
add_subdirectory(bin/mqtt5canary)
endif()
endif ()
29 changes: 29 additions & 0 deletions bin/elastishadow/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
project(elastishadow C)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/lib/cmake")

file(GLOB ELASTISHADOW_SRC
"*.c"
)

set(ELASTISHADOW_PROJECT_NAME elastishadow)
add_executable(${ELASTISHADOW_PROJECT_NAME} ${ELASTISHADOW_SRC})
aws_set_common_properties(${ELASTISHADOW_PROJECT_NAME})


target_include_directories(${ELASTISHADOW_PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)

target_link_libraries(${ELASTISHADOW_PROJECT_NAME} PRIVATE aws-c-mqtt)

if (BUILD_SHARED_LIBS AND NOT WIN32)
message(INFO " elastishadow will be built with shared libs, but you may need to set LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib to run the application")
endif()

install(TARGETS ${ELASTISHADOW_PROJECT_NAME}
EXPORT ${ELASTISHADOW_PROJECT_NAME}-targets
COMPONENT Runtime
RUNTIME
DESTINATION bin
COMPONENT Runtime)
Loading

0 comments on commit 770666f

Please sign in to comment.