-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For long-term maintainability and security. Also removing non-liquid and non-TMC build options (not tested or maintained). Still to do: ensure it builds on Windows (cygwin/mingw/msys2?) and add Windows builds in CI (github workflow)
- Loading branch information
Showing
23 changed files
with
143 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
project('redsea', 'cpp', default_options : ['cpp_std=c++14', 'warning_level=3', 'buildtype=release'], | ||
version: '0.22-SNAPSHOT') | ||
|
||
# Store version number to be compiled in | ||
conf = configuration_data() | ||
conf.set_quoted('VERSION', meson.project_version()) | ||
configure_file(output : 'config.h', | ||
configuration : conf) | ||
|
||
### Compiler options ### | ||
|
||
cc = meson.get_compiler('cpp') | ||
add_project_arguments(cc.get_supported_arguments([ | ||
'-Wno-unknown-pragmas']), language: 'cpp') | ||
|
||
if get_option('buildtype') == 'release' | ||
add_project_arguments('-O3', language : 'cpp') | ||
endif | ||
|
||
### Dependencies ### | ||
|
||
iconv = dependency('iconv') | ||
sndfile = dependency('sndfile') | ||
|
||
# Detecting liquid-dsp in a portable fashion | ||
if build_machine.system() == 'darwin' | ||
fs = import('fs') | ||
# Homebrew system | ||
if fs.is_dir('/opt/homebrew/lib') | ||
liquid_lib = cc.find_library('liquid', | ||
dirs : ['/opt/homebrew/lib']) | ||
liquid_inc = include_directories('/opt/homebrew/include') | ||
# MacPorts system | ||
else | ||
liquid_lib = cc.find_library('liquid', | ||
dirs : ['/opt/local/lib']) | ||
liquid_inc = include_directories('/opt/local/include') | ||
endif | ||
liquid = declare_dependency(dependencies : liquid_lib, | ||
include_directories : liquid_inc) | ||
else | ||
liquid = cc.find_library('liquid') | ||
endif | ||
|
||
# M_PI | ||
if build_machine.system() == 'windows' | ||
add_project_arguments('-D_USE_MATH_DEFINES=1', language : 'cpp') | ||
endif | ||
|
||
sources = [ | ||
'ext/json/jsoncpp.cpp', | ||
'src/block_sync.cc', | ||
'src/channel.cc', | ||
'src/common.cc', | ||
'src/groups.cc', | ||
'src/input.cc', | ||
'src/liquid_wrappers.cc', | ||
'src/options.cc', | ||
'src/rdsstring.cc', | ||
'src/redsea.cc', | ||
'src/subcarrier.cc', | ||
'src/tables.cc', | ||
'src/tmc/tmc.cc', | ||
'src/tmc/locationdb.cc', | ||
'src/util.cc' | ||
] | ||
|
||
executable('redsea', sources, dependencies: [iconv, sndfile, liquid]) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.