Bordeaux is a voice application server for modern IP telephony networks using modern C++ practices along with advances originally made in GNU Bayonne.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

52 lines
2.3 KiB

# Configure paths
# Copyright (C) 2020-2021 David Sugar <tychosoft@gmail.com>.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
set(SERVER_ID "bordeaux")
if(SYSTEMD_FOUND)
set(CMAKE_INSTALL_FULL_LOCALSTATEDIR "/var")
set(CMAKE_INSTALL_FULL_SYSCONFDIR "/etc")
else()
set(SERVER_CONTROL_IPC "/var/run/${SERVER_ID}.ipc")
endif()
if(CMAKE_BUILD_TYPE MATCHES "Debug")
set(SERVER_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/test")
set(SERVER_CONTROL_IPC "${CMAKE_CURRENT_SOURCE_DIR}/control.ipc")
set(SERVER_CONFIG_FILE "${CMAKE_CURRENT_SOURCE_DIR}/test/${SERVER_ID}.conf")
set(BORDEAUX_SCRIPTS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/test")
set(BORDEAUX_MODULES_PATH "${CMAKE_CURRENT_SOURCE_DIR}/test")
set(BORDEAUX_DRIVERS_PATH "${CMAKE_CURRENT_BINARY_DIR}/drivers")
set(BORDEAUX_LIBEXEC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/test")
set(BORDEAUX_DEFAULT_DRIVER "test")
else()
if(NOT DEFINED SERVER_PREFIX_PATH)
set(SERVER_PREFIX_PATH "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/${SERVER_ID}")
endif()
if(NOT DEFINED SERVER_CONFIG_FILE)
set(SERVER_CONFIG_FILE "${CMAKE_INSTALL_FULL_SYSCONFDIR}/${SERVER_ID}.conf")
endif()
if(NOT DEFINED SERVER_CONTROL_IPC)
set(SERVER_CONTROL_IPC "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/run/${SERVER_ID}/control")
endif()
if(NOT DEFINED BORDEAUX_SCRIPTS_PATH)
set(BORDEAUX_SCRIPTS_PATH "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/${SERVER_ID}/scripts")
endif()
if(NOT DEFINED BORDEAUX_MODULES_PATH)
set(BORDEAUX_MODULES_PATH "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/${SERVER_ID}/modules")
endif()
if(NOT DEFINED BORDEAUX_DRIVERS_PATH)
set(BORDEAUX_DRIVERS_PATH "${CMAKE_INSTALL_FULL_LIBDIR}/${SERVER_ID}")
endif()
if(NOT DEINED BORDEAUX_LIBEXEC_PATH)
set(BORDEAUX_LIBEXEC_PATH "${CMAKE_INSTALL_FULL_LIBEXECDIR}/${SERVER_ID}")
endif()
set(BORDEAUX_DEFAULT_DRIVER "generic")
endif()