Skip to content

Commit

Permalink
List all amalgamated headers manually (#871)
Browse files Browse the repository at this point in the history
* List and sort all amalgamated headers manually
  • Loading branch information
bgs99 authored Aug 19, 2024
1 parent 18cfb34 commit 3ec06b0
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,47 @@ if(CROW_ENABLE_SSL)
endif()

if(CROW_AMALGAMATE)
set(CROW_AMALGAMATED_HEADERS
include/crow.h
include/crow/app.h
include/crow/ci_map.h
include/crow/common.h
include/crow/compression.h
include/crow/http_connection.h
include/crow/http_parser_merged.h
include/crow/http_request.h
include/crow/http_response.h
include/crow/http_server.h
include/crow/json.h
include/crow/logging.h
include/crow/middleware.h
include/crow/middleware_context.h
include/crow/mime_types.h
include/crow/multipart.h
include/crow/multipart_view.h
include/crow/mustache.h
include/crow/parser.h
include/crow/query_string.h
include/crow/returnable.h
include/crow/routing.h
include/crow/settings.h
include/crow/socket_adaptors.h
include/crow/task_timer.h
include/crow/utility.h
include/crow/version.h
include/crow/websocket.h
include/crow/middlewares/cookie_parser.h
include/crow/middlewares/cors.h
include/crow/middlewares/session.h
include/crow/middlewares/utf-8.h
)

add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/crow_all.h
COMMAND python3 ${CMAKE_CURRENT_SOURCE_DIR}/scripts/merge_all.py
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_BINARY_DIR}/crow_all.h
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/include/*.h ${CMAKE_CURRENT_SOURCE_DIR}/include/crow/*.h ${CMAKE_CURRENT_SOURCE_DIR}/include/crow/middlewares/*.h
DEPENDS ${CROW_AMALGAMATED_HEADERS}
)

add_custom_target(crow_amalgamated ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/crow_all.h)
Expand Down

0 comments on commit 3ec06b0

Please sign in to comment.