mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00:00
871c3e3281
* wintun vpn platform for windows * bundle config snippets into nsis installer for exit node, keyfile persisting, reduced hops mode. * use wintun for vpn platform * isolate all windows platform specific code into their own compilation units and libraries * split up internal libraries into more specific components * rename liblokinet.a target to liblokinet-amalgum.a to elimiate ambiguity with liblokinet.so * DNS platform for win32 * rename llarp/ev/ev_libuv.{c,h}pp to llarp/ev/libuv.{c,h}pp as the old name was idiotic * split up net platform into win32 and posix specific compilation units * rename lokinet_init.c to easter_eggs.cpp as that is what they are for and it does not need to be a c compilation target * add cmake option STRIP_SYMBOLS for seperating out debug symbols for windows builds * intercept dns traffic on all interfaces on windows using windivert and feed it into lokinet
47 lines
1.8 KiB
CMake
47 lines
1.8 KiB
CMake
set(CPACK_PACKAGE_VENDOR "lokinet.org")
|
|
set(CPACK_PACKAGE_HOMEPAGE_URL "https://lokinet.org/")
|
|
set(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/contrib/readme-installer.txt")
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
|
|
|
|
if(WIN32)
|
|
include(cmake/win32_installer_deps.cmake)
|
|
install(FILES ${CMAKE_SOURCE_DIR}/contrib/configs/00-exit.ini DESTINATION share/conf.d COMPONENT exit_configs)
|
|
install(FILES ${CMAKE_SOURCE_DIR}/contrib/configs/00-keyfile.ini DESTINATION share/conf.d COMPONENT keyfile_configs)
|
|
install(FILES ${CMAKE_SOURCE_DIR}/contrib/configs/00-debug-log.ini DESTINATION share/conf.d COMPONENT debug_configs)
|
|
get_cmake_property(CPACK_COMPONENTS_ALL COMPONENTS)
|
|
list(REMOVE_ITEM CPACK_COMPONENTS_ALL "Unspecified" "lokinet" "gui" "exit_configs" "keyfile_configs" "debug_configs")
|
|
list(APPEND CPACK_COMPONENTS_ALL "lokinet" "gui" "exit_configs" "keyfile_configs" "debug_configs")
|
|
elseif(APPLE)
|
|
set(CPACK_GENERATOR DragNDrop;ZIP)
|
|
get_cmake_property(CPACK_COMPONENTS_ALL COMPONENTS)
|
|
list(REMOVE_ITEM CPACK_COMPONENTS_ALL "Unspecified")
|
|
endif()
|
|
|
|
include(CPack)
|
|
|
|
if(WIN32)
|
|
cpack_add_component(lokinet
|
|
DISPLAY_NAME "lokinet"
|
|
DESCRIPTION "core required lokinet files"
|
|
REQUIRED)
|
|
|
|
cpack_add_component(gui
|
|
DISPLAY_NAME "lokinet gui"
|
|
DESCRIPTION "electron based control panel for lokinet")
|
|
|
|
cpack_add_component(exit_configs
|
|
DISPLAY_NAME "auto-enable exit"
|
|
DESCRIPTION "automatically enable usage of exit.loki as an exit node\n"
|
|
DISABLED)
|
|
|
|
cpack_add_component(keyfile_configs
|
|
DISPLAY_NAME "persist address"
|
|
DESCRIPTION "persist .loki address across restarts of lokinet\nnot recommended when enabling exit nodes"
|
|
DISABLED)
|
|
|
|
cpack_add_component(debug_configs
|
|
DISPLAY_NAME "debug logging"
|
|
DESCRIPTION "enable debug spew log level by default"
|
|
DISABLED)
|
|
endif()
|