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 3fe8ee2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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
3 changes: 1 addition & 2 deletions toxcore/Makefile.inc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
lib_LTLIBRARIES += libtoxcore.la

libtoxcore_la_include_HEADERS = \
../toxcore/tox.h \
../toxcore/tox_private.h
../toxcore/tox.h

libtoxcore_la_includedir = $(includedir)/tox

Expand Down

0 comments on commit 3fe8ee2

Please sign in to comment.