2020-05-25 16:15:22 +00:00
|
|
|
# Copyright (C) 2019,2020 by Sukchan Lee <acetcom@gmail.com>
|
2019-04-27 14:54:30 +00:00
|
|
|
|
|
|
|
# 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/>.
|
2020-05-25 16:15:22 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
libtestapp_inc = include_directories('.')
|
2017-08-05 05:23:37 +00:00
|
|
|
|
2022-11-21 13:06:29 +00:00
|
|
|
libtestepc_cc_args = '-DDEFAULT_CONFIG_FILENAME="@0@/configs/sample.yaml"'.format(open5gs_build_dir)
|
2019-10-27 08:41:14 +00:00
|
|
|
|
2020-05-25 16:15:22 +00:00
|
|
|
libtestepc_sources = files('''
|
|
|
|
epc-init.c
|
2019-10-27 08:41:14 +00:00
|
|
|
'''.split())
|
|
|
|
|
2020-05-25 16:15:22 +00:00
|
|
|
libtestepc = static_library('testepc',
|
|
|
|
sources : [libtestepc_sources],
|
|
|
|
c_args : libtestepc_cc_args,
|
|
|
|
include_directories : [libtestapp_inc, srcinc],
|
2020-08-22 17:21:37 +00:00
|
|
|
dependencies : libtestcommon_dep,
|
2020-05-25 16:15:22 +00:00
|
|
|
install : false)
|
|
|
|
|
|
|
|
libtestepc_dep = declare_dependency(
|
|
|
|
link_with : libtestepc,
|
|
|
|
include_directories : [libtestapp_inc, srcinc],
|
2020-08-22 17:21:37 +00:00
|
|
|
dependencies : libtestcommon_dep)
|
2020-05-25 16:15:22 +00:00
|
|
|
|
|
|
|
testepc_sources = files('''
|
|
|
|
../../src/main.c
|
|
|
|
'''.split())
|
2019-10-27 08:41:14 +00:00
|
|
|
|
2020-05-25 16:15:22 +00:00
|
|
|
executable('epc',
|
|
|
|
sources : [testepc_sources],
|
|
|
|
c_args : libtestepc_cc_args,
|
|
|
|
include_directories : srcinc,
|
2020-07-14 01:53:41 +00:00
|
|
|
dependencies : libtestepc_dep)
|
2020-05-25 16:15:22 +00:00
|
|
|
|
2022-11-21 13:06:29 +00:00
|
|
|
libtest5gc_cc_args = '-DDEFAULT_CONFIG_FILENAME="@0@/configs/sample.yaml"'.format(open5gs_build_dir)
|
2020-05-25 16:15:22 +00:00
|
|
|
|
|
|
|
libtest5gc_sources = files('''
|
|
|
|
5gc-init.c
|
|
|
|
'''.split())
|
|
|
|
|
|
|
|
libtest5gc = static_library('test5gc',
|
|
|
|
sources : [libtest5gc_sources],
|
|
|
|
c_args : libtest5gc_cc_args,
|
|
|
|
include_directories : [libtestapp_inc, srcinc],
|
2020-06-04 18:12:05 +00:00
|
|
|
dependencies : libtestcommon_dep,
|
2019-10-27 08:41:14 +00:00
|
|
|
install : false)
|
|
|
|
|
2020-05-25 16:15:22 +00:00
|
|
|
libtest5gc_dep = declare_dependency(
|
|
|
|
link_with : libtest5gc,
|
|
|
|
include_directories : [libtestapp_inc, srcinc],
|
2020-06-04 18:12:05 +00:00
|
|
|
dependencies : libtestcommon_dep)
|
2020-05-25 16:15:22 +00:00
|
|
|
|
|
|
|
test5gc_sources = files('''
|
|
|
|
../../src/main.c
|
|
|
|
'''.split())
|
|
|
|
|
|
|
|
executable('5gc',
|
|
|
|
sources : [test5gc_sources],
|
|
|
|
c_args : libtest5gc_cc_args,
|
|
|
|
include_directories : srcinc,
|
2020-07-14 01:53:41 +00:00
|
|
|
dependencies : libtest5gc_dep)
|
2020-08-13 00:31:22 +00:00
|
|
|
|
2022-11-21 13:06:29 +00:00
|
|
|
libtestapp_cc_args = '-DDEFAULT_CONFIG_FILENAME="@0@/configs/sample.yaml"'.format(open5gs_build_dir)
|
2020-08-13 00:31:22 +00:00
|
|
|
|
|
|
|
libtestapp_sources = files('''
|
|
|
|
app-init.c
|
|
|
|
'''.split())
|
|
|
|
|
|
|
|
libtestapp = static_library('testapp',
|
|
|
|
sources : [libtestapp_sources],
|
|
|
|
c_args : libtestapp_cc_args,
|
|
|
|
include_directories : [libtestapp_inc, srcinc],
|
2020-08-22 17:21:37 +00:00
|
|
|
dependencies : libtestcommon_dep,
|
2020-08-13 00:31:22 +00:00
|
|
|
install : false)
|
|
|
|
|
|
|
|
libtestapp_dep = declare_dependency(
|
|
|
|
link_with : libtestapp,
|
|
|
|
include_directories : [libtestapp_inc, srcinc],
|
2020-08-22 17:21:37 +00:00
|
|
|
dependencies : libtestcommon_dep)
|
2020-08-13 00:31:22 +00:00
|
|
|
|
|
|
|
testapp_sources = files('''
|
|
|
|
../../src/main.c
|
|
|
|
'''.split())
|
|
|
|
|
|
|
|
executable('app',
|
|
|
|
sources : [testapp_sources],
|
|
|
|
c_args : libtestapp_cc_args,
|
|
|
|
include_directories : srcinc,
|
|
|
|
dependencies : libtestapp_dep)
|