Skip to content

Commit

Permalink
chore: Only install tox_private.h on request.
Browse files Browse the repository at this point in the history
Unfortunately, events and dispatch are already installed in .18, so we
can't stop, but for .19, let's not add this private header if there's
the possibility of moving it to a different location
(TokTok#2599). Installing it makes it
a chore for package maintainers (debian, pkgsrc).
  • Loading branch information
iphydf committed Feb 18, 2024
1 parent 9a8dfa0 commit 27626a9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ if(MIN_LOGGER_LEVEL)
endif()
endif()

option(EXPERIMENTAL_API "Install experimental header file with unstable API" OFF)

option(USE_IPV6 "Use IPv6 in tests" ON)
if(NOT USE_IPV6)
add_definitions(-DUSE_IPV6=0)
Expand Down Expand Up @@ -359,8 +361,11 @@ set(toxcore_PKGCONFIG_REQUIRES ${toxcore_PKGCONFIG_REQUIRES} libsodium)
set(toxcore_API_HEADERS
${toxcore_SOURCE_DIR}/toxcore/tox.h^tox
${toxcore_SOURCE_DIR}/toxcore/tox_events.h^tox
${toxcore_SOURCE_DIR}/toxcore/tox_dispatch.h^tox
${toxcore_SOURCE_DIR}/toxcore/tox_private.h^tox)
${toxcore_SOURCE_DIR}/toxcore/tox_dispatch.h^tox)
if(EXPERIMENTAL_API)
set(toxcore_API_HEADERS ${toxcore_API_HEADERS}
${toxcore_SOURCE_DIR}/toxcore/tox_private.h^tox)
endif()

################################################################################
#
Expand Down

0 comments on commit 27626a9

Please sign in to comment.