Skip to content

Commit

Permalink
Add compile time configuration options to fizz-config.h
Browse files Browse the repository at this point in the history
Summary:
Add a header to include compile time configuration options that the rest of
Fizz can reference.

Differential Revision: D44986629

fbshipit-source-id: 98bf0bf7c64aa86a34bb10739daba9abbaef3d7b
  • Loading branch information
Mingtao Yang authored and facebook-github-bot committed Apr 25, 2023
1 parent 92d65ad commit 4986768
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fizz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ else()
list(APPEND FIZZ_INCLUDE_DIRECTORIES ${LIBEVENT_INCLUDE_DIR})
endif()

configure_file(fizz-config.h.in ${CMAKE_CURRENT_BINARY_DIR}/generated/fizz/fizz-config.h)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/generated/fizz/fizz-config.h DESTINATION ${INCLUDE_INSTALL_DIR}/fizz/)

set(FIZZ_HEADER_DIRS
client
crypto
Expand Down Expand Up @@ -238,6 +241,7 @@ target_include_directories(
fizz
PUBLIC
$<BUILD_INTERFACE:${FIZZ_BASE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/generated>
$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>
${FOLLY_INCLUDE_DIR}
${OPENSSL_INCLUDE_DIR}
Expand Down
6 changes: 6 additions & 0 deletions fizz/fizz-config.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* <fizz/fizz-config.h> holds compile time configuration options for Fizz.
*/
#pragma once

#define FIZZ_HAS_AEGIS 0

0 comments on commit 4986768

Please sign in to comment.