# librist. Copyright (c) 2020 SipRadius LLC. All right reserved. # Author: Sergio Ammirata, Ph.D. # SPDX-License-Identifier: BSD-2-Clause tools_dependencies = [] tools_deps = [] if host_machine.system() == 'windows' tools_deps += ['../contrib/getopt-shim.c'] tools_dependencies += [ cc.find_library('ws2_32') ] endif tools_deps += [ '../contrib/time-shim.c'] tools_deps += [ '../contrib/pthread-shim.c'] if filter_obj tools_deps += [objcopy_fake_file ] endif srp_shared = [] if use_mbedtls srp_shared += 'srp_shared.c' tools_dependencies += mbedcrypto_lib endif executable('ristsender', ['ristsender.c', 'oob_shared.c', srp_shared, tools_deps, rev_target], dependencies: [ librist_dep, threads, stdatomic_dependency, tools_dependencies ], include_directories: inc, install: should_install) executable('ristreceiver', ['ristreceiver.c', 'oob_shared.c', srp_shared, tools_deps, rev_target], dependencies: [ librist_dep, tools_dependencies, threads, ], include_directories: inc, install: should_install) executable('rist2rist', ['rist2rist.c', 'oob_shared.c', srp_shared, tools_deps, rev_target], dependencies: [ tools_dependencies, threads, librist_dep, ], include_directories: inc, install: should_install) if use_mbedtls executable('ristsrppasswd', ['ristsrppasswd.c', '../contrib/srp.c', tools_deps], dependencies: [ mbedcrypto_lib, librist_dep, ], include_directories: inc, install: should_install) endif