open5gs/tests/common/meson.build

95 lines
2.7 KiB
Meson
Raw Normal View History

2020-05-25 16:15:22 +00:00
# Copyright (C) 2019,2020 by Sukchan Lee <acetcom@gmail.com>
# This file is part of Open5GS.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 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, see <https://www.gnu.org/licenses/>.
libtestcommon_conf = configuration_data()
2022-11-21 13:06:29 +00:00
libtestcommon_conf.set_quoted('MESON_BUILD_ROOT', open5gs_build_dir)
2020-05-25 16:15:22 +00:00
configure_file(output : 'test-config-private.h',
configuration : libtestcommon_conf)
libtestcommon_sources = files('''
sctp.c
gtpu.c
context.c
application.c
ngap-build.c
2020-06-04 18:12:05 +00:00
ngap-handler.c
ngap-path.c
gmm-build.c
gmm-handler.c
2020-06-17 05:22:28 +00:00
gsm-build.c
gsm-handler.c
2020-08-22 03:33:45 +00:00
s1ap-build.c
s1ap-handler.c
s1ap-path.c
emm-build.c
emm-handler.c
esm-build.c
esm-handler.c
2020-06-04 18:12:05 +00:00
nas-path.c
2020-06-22 03:07:14 +00:00
nas-encoder.c
2020-06-04 18:12:05 +00:00
nas-security.c
2020-08-22 03:33:45 +00:00
sgsap-build.c
2020-05-25 16:15:22 +00:00
'''.split())
libtestcommon_inc = include_directories('.')
libtestcommon = static_library('testcomon',
sources : libtestcommon_sources,
2020-07-09 05:38:09 +00:00
c_args : testunit_core_cc_flags,
2020-06-17 05:22:28 +00:00
include_directories : [libtestcommon_inc, testinc, srcinc],
2020-05-25 16:15:22 +00:00
dependencies : [libcore_dep,
2021-03-15 01:01:55 +00:00
libipfw_dep,
2020-05-25 16:15:22 +00:00
libapp_dep,
libdbi_dep,
libsctp_dep,
2020-06-17 05:22:28 +00:00
libgtp_dep,
2020-08-22 03:33:45 +00:00
libs1ap_dep,
2020-05-25 16:15:22 +00:00
libngap_dep,
libnas_eps_dep,
libnas_5gs_dep,
2021-04-05 08:09:39 +00:00
libdiameter_rx_dep,
libdiameter_cx_dep,
2021-06-21 13:36:38 +00:00
libdiameter_swx_dep,
libdiameter_s6b_dep,
libaf_dep],
2020-05-25 16:15:22 +00:00
install : false)
libtestcommon_dep = declare_dependency(
link_with : libtestcommon,
2020-06-17 05:22:28 +00:00
include_directories : [libtestcommon_inc, testinc, srcinc],
2020-05-25 16:15:22 +00:00
dependencies : [libcore_dep,
2021-03-15 01:01:55 +00:00
libipfw_dep,
2020-05-25 16:15:22 +00:00
libapp_dep,
libdbi_dep,
libsctp_dep,
2020-06-17 05:22:28 +00:00
libgtp_dep,
2020-08-22 03:33:45 +00:00
libs1ap_dep,
2020-05-25 16:15:22 +00:00
libngap_dep,
libnas_eps_dep,
libnas_5gs_dep,
2021-04-05 08:09:39 +00:00
libdiameter_rx_dep,
libdiameter_cx_dep,
2021-06-21 13:36:38 +00:00
libdiameter_swx_dep,
libdiameter_s6b_dep,
libaf_dep])