2014-02-04 16:57:25 +00:00
|
|
|
# Copyright 2011,2012 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# This file is part of GNU Radio
|
|
|
|
#
|
|
|
|
# GNU Radio 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 3, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# GNU Radio 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 GNU Radio; see the file COPYING. If not, write to
|
|
|
|
# the Free Software Foundation, Inc., 51 Franklin Street,
|
|
|
|
# Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Setup library
|
|
|
|
########################################################################
|
|
|
|
include(GrPlatform) #define LIB_SUFFIX
|
|
|
|
|
2014-12-15 08:09:18 +00:00
|
|
|
include_directories(${Boost_INCLUDE_DIR} receiver)
|
2014-02-04 16:57:25 +00:00
|
|
|
link_directories(${Boost_LIBRARY_DIRS})
|
2015-05-08 06:59:17 +00:00
|
|
|
list(APPEND grgsm_sources
|
2014-07-08 14:47:53 +00:00
|
|
|
receiver/receiver_impl.cc
|
2015-06-07 14:42:37 +00:00
|
|
|
receiver/receiver_config.cc
|
|
|
|
receiver/viterbi_detector.cc
|
2017-01-03 07:01:23 +00:00
|
|
|
decoding/sch.c
|
2015-04-04 10:28:20 +00:00
|
|
|
receiver/clock_offset_control_impl.cc
|
2015-06-10 08:23:30 +00:00
|
|
|
receiver/cx_channel_hopper_impl.cc
|
2014-11-19 10:32:05 +00:00
|
|
|
demapping/universal_ctrl_chans_demapper_impl.cc
|
2015-04-14 13:44:40 +00:00
|
|
|
demapping/tch_f_chans_demapper_impl.cc
|
2014-07-20 21:48:32 +00:00
|
|
|
decoding/control_channels_decoder_impl.cc
|
2015-05-20 10:49:46 +00:00
|
|
|
decoding/tch_f_decoder_impl.cc
|
2017-08-23 13:59:28 +00:00
|
|
|
decoding/openbts/AmrCoder.cpp
|
|
|
|
decoding/openbts/BitVector.cpp
|
|
|
|
decoding/openbts/GSM610Tables.cpp
|
|
|
|
decoding/openbts/GSM660Tables.cpp
|
|
|
|
decoding/openbts/GSM503Tables.cpp
|
|
|
|
decoding/openbts/ViterbiR204.cpp
|
2017-01-03 07:01:23 +00:00
|
|
|
decoding/osmocom/coding/gsm0503_conv.c
|
|
|
|
decoding/osmocom/coding/gsm0503_coding.c
|
|
|
|
decoding/osmocom/coding/gsm0503_interleaving.c
|
|
|
|
decoding/osmocom/coding/gsm0503_mapping.c
|
|
|
|
decoding/osmocom/coding/gsm0503_parity.c
|
|
|
|
decoding/osmocom/coding/gsm0503_tables.c
|
2015-08-03 21:20:20 +00:00
|
|
|
flow_control/burst_timeslot_splitter_impl.cc
|
2015-08-05 10:30:29 +00:00
|
|
|
flow_control/burst_sdcch_subslot_splitter_impl.cc
|
2015-08-06 09:54:22 +00:00
|
|
|
flow_control/burst_timeslot_filter_impl.cc
|
2015-08-06 15:30:04 +00:00
|
|
|
flow_control/burst_sdcch_subslot_filter_impl.cc
|
2015-08-04 09:16:04 +00:00
|
|
|
flow_control/burst_fnr_filter_impl.cc
|
2015-08-04 10:26:54 +00:00
|
|
|
flow_control/dummy_burst_filter_impl.cc
|
2016-08-30 19:31:24 +00:00
|
|
|
flow_control/uplink_downlink_splitter_impl.cc
|
2017-01-11 11:50:38 +00:00
|
|
|
misc_utils/collect_system_info_impl.cc
|
2014-08-06 12:10:56 +00:00
|
|
|
misc_utils/controlled_rotator_cc_impl.cc
|
2016-07-15 11:12:46 +00:00
|
|
|
misc_utils/controlled_fractional_resampler_cc_impl.cc
|
|
|
|
misc_utils/msg_to_tag_impl.cc
|
2014-08-06 12:10:56 +00:00
|
|
|
misc_utils/message_printer_impl.cc
|
2015-01-15 10:47:38 +00:00
|
|
|
misc_utils/tmsi_dumper_impl.cc
|
2015-08-03 08:58:57 +00:00
|
|
|
misc_utils/burst_file_sink_impl.cc
|
|
|
|
misc_utils/burst_file_source_impl.cc
|
2015-08-03 14:17:46 +00:00
|
|
|
misc_utils/message_file_sink_impl.cc
|
2016-07-15 11:12:46 +00:00
|
|
|
misc_utils/message_file_source_impl.cc
|
|
|
|
misc_utils/bursts_printer_impl.cc
|
|
|
|
misc_utils/extract_system_info_impl.cc
|
|
|
|
misc_utils/extract_immediate_assignment_impl.cc
|
2016-12-04 15:19:40 +00:00
|
|
|
misc_utils/extract_cmc_impl.cc
|
2015-08-03 09:16:10 +00:00
|
|
|
qa_utils/burst_sink_impl.cc
|
|
|
|
qa_utils/burst_source_impl.cc
|
2015-08-03 08:08:18 +00:00
|
|
|
qa_utils/message_source_impl.cc
|
|
|
|
qa_utils/message_sink_impl.cc
|
|
|
|
decryption/decryption_impl.cc
|
|
|
|
)
|
2014-02-04 16:57:25 +00:00
|
|
|
|
|
|
|
|
2016-02-19 14:22:51 +00:00
|
|
|
add_library(grgsm SHARED ${grgsm_sources})
|
2017-01-03 07:01:23 +00:00
|
|
|
target_link_libraries(grgsm ${Boost_LIBRARIES} ${GNURADIO_ALL_LIBRARIES} ${VOLK_LIBRARIES} ${LIBOSMOCODEC_LIBRARIES} ${LIBOSMOCORE_LIBRARIES}
|
|
|
|
# ${LIBOSMOCODING_LIBRARIES}
|
2014-12-05 17:25:58 +00:00
|
|
|
# libraries required by plotting.h - have troubles to be installed by pybombs
|
|
|
|
# boost_iostreams
|
|
|
|
# boost_system
|
|
|
|
# boost_filesystem
|
2014-04-17 08:56:08 +00:00
|
|
|
)
|
2016-02-19 18:33:17 +00:00
|
|
|
set_target_properties(grgsm PROPERTIES DEFINE_SYMBOL "grgsm_EXPORTS")
|
2014-02-04 16:57:25 +00:00
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Install built library files
|
|
|
|
########################################################################
|
2016-02-19 14:22:51 +00:00
|
|
|
install(TARGETS grgsm
|
2014-02-04 16:57:25 +00:00
|
|
|
LIBRARY DESTINATION lib${LIB_SUFFIX} # .so/.dylib file
|
|
|
|
ARCHIVE DESTINATION lib${LIB_SUFFIX} # .lib file
|
|
|
|
RUNTIME DESTINATION bin # .dll file
|
|
|
|
)
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Build and register unit test
|
|
|
|
########################################################################
|
2014-07-08 14:47:53 +00:00
|
|
|
#include(GrTest)
|
2014-02-04 16:57:25 +00:00
|
|
|
|
2014-07-08 14:47:53 +00:00
|
|
|
#include_directories(${CPPUNIT_INCLUDE_DIRS})
|
2014-02-04 16:57:25 +00:00
|
|
|
|
2015-05-08 06:59:17 +00:00
|
|
|
#list(APPEND test_grgsm_sources
|
2014-07-08 14:47:53 +00:00
|
|
|
# ${CMAKE_CURRENT_SOURCE_DIR}/test_gsm.cc
|
|
|
|
# ${CMAKE_CURRENT_SOURCE_DIR}/qa_gsm.cc
|
|
|
|
# ${CMAKE_CURRENT_SOURCE_DIR}/qa_receiver.cc
|
|
|
|
#)
|
2014-02-04 16:57:25 +00:00
|
|
|
|
2015-05-08 06:59:17 +00:00
|
|
|
#add_executable(test-gsm ${test_grgsm_sources})
|
2014-02-04 16:57:25 +00:00
|
|
|
|
2014-07-08 14:47:53 +00:00
|
|
|
#target_link_libraries(
|
|
|
|
# test-gsm
|
|
|
|
# ${GNURADIO_RUNTIME_LIBRARIES}
|
|
|
|
# ${Boost_LIBRARIES}
|
|
|
|
# ${CPPUNIT_LIBRARIES}
|
2016-02-19 14:22:51 +00:00
|
|
|
# grgsm
|
2014-07-08 14:47:53 +00:00
|
|
|
#)
|
2014-02-04 16:57:25 +00:00
|
|
|
|
2014-07-08 14:47:53 +00:00
|
|
|
#GR_ADD_TEST(test_gsm test-gsm)
|