############################################################################
# CMakeLists.txt
# Copyright (C) 2010-2026 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
############################################################################

target_sources(flexisip PRIVATE
	cast-to-const.hh
	constant-rate-task-queue.hh
	digest.cc digest.hh
	flow.cc flow.hh
	flow-data.cc flow-data.hh
	flow-factory.cc flow-factory.hh
	http-url.cc
	limited-unordered-map.hh
	load-file.hh
	observable.hh
	pipe.cc pipe.hh
	posix-process.cc posix-process.hh
	rand.cc rand.hh
	sip-uri.cc
	socket-address.cc socket-address.hh
	string-formatter.cc string-formatter.hh
	string-interpolation/template-string.cc string-interpolation/template-string.hh
	string-utils.cc string-utils.hh
	sys-err.cc sys-err.hh
	thread/auto-thread-pool.cc thread/auto-thread-pool.hh
	thread/basic-thread-pool.cc thread/basic-thread-pool.hh
	thread/base-thread-pool.cc thread/base-thread-pool.hh
	thread/thread-pool.hh
	transport/http/authentication-manager.hh
	transport/http/form-data.cc transport/http/form-data.hh
	transport/http/http1-client.cc transport/http/http1-client.hh
	transport/http/http2client.cc transport/http/http2client.hh
	transport/http/http-headers.cc transport/http/http-headers.hh
	transport/http/http-message.cc transport/http/http-message.hh
	transport/http/http-response.cc transport/http/http-response.hh
	transport/http/ng-data-provider.cc transport/http/ng-data-provider.hh
	transport/http/rest-client.cc transport/http/rest-client.hh
	transport/tls/tls-connection.cc transport/tls/tls-connection.hh
	transport/tls/tls-connection-establishment-strategy.hh
	transport/tls/tls-connection-utils.cc transport/tls/tls-connection-utils.hh
	transport/tls/tls-direct-connection-establishment-strategy.cc transport/tls/tls-direct-connection-establishment-strategy.hh
	transport/tls/tls-proxy-connection-establishment-strategy.cc transport/tls/tls-proxy-connection-establishment-strategy.hh
	uri-utils.cc uri-utils.hh
	utf8-string.cc utf8-string.hh
	variant-utils.hh
	xsd-utils.hh
)

if(ENABLE_REGEVENT OR ENABLE_B2BUA OR ENABLE_VOICEMAIL)
	target_sources(flexisip PRIVATE
		configuration/media.cc configuration/media.hh
		configuration/transport.cc configuration/transport.hh
	)
endif()

if(ENABLE_SOCI)
	target_sources(flexisip PRIVATE
		soci-helper.cc soci-helper.hh
		soci-type-conversion-utils.hh
	)
endif()