Rage video and audio player
https://www.enlightenment.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.3 KiB
65 lines
2.3 KiB
6 years ago
|
##### project
|
||
|
project('rage', 'c',
|
||
|
version : '0.2.1',
|
||
|
license : 'BSD 2 clause',
|
||
|
default_options: [ 'c_std=gnu99' ],
|
||
|
meson_version : '>= 0.40.0')
|
||
|
base_url = 'https://www.enlightenment.org/about-'
|
||
|
|
||
|
##### convenience variables for later
|
||
|
proj = meson.project_name()
|
||
|
ver = meson.project_version()
|
||
|
|
||
|
##### dependencies
|
||
|
efl_version = '>= 1.19.0'
|
||
|
deps = dependency('elementary', version: efl_version)
|
||
|
edje = dependency('edje', version: efl_version)
|
||
|
|
||
|
##### edje_cc binary compiler tool
|
||
|
edje_cmd = get_option('edje-cc')
|
||
|
if edje_cmd == ''
|
||
|
edje_cmd = join_paths(edje.get_pkgconfig_variable('prefix'),
|
||
|
'bin', 'edje_cc')
|
||
|
endif
|
||
|
|
||
|
##### dir locations
|
||
|
dir_prefix = get_option('prefix')
|
||
|
dir_bin = join_paths(dir_prefix, get_option('bindir'))
|
||
|
dir_lib = join_paths(dir_prefix, get_option('libdir'))
|
||
|
dir_data = join_paths(dir_prefix, get_option('datadir'))
|
||
|
dir_locale = join_paths(dir_prefix, get_option('localedir'))
|
||
|
|
||
|
##### config.h
|
||
|
cfg = configuration_data()
|
||
|
cfg.set_quoted('PACKAGE' , proj)
|
||
|
cfg.set_quoted('PACKAGE_NAME' , proj)
|
||
|
cfg.set_quoted('PACKAGE_VERSION' , ver)
|
||
|
cfg.set_quoted('PACKAGE_STRING' , proj + ' ' + ver)
|
||
|
cfg.set_quoted('PACKAGE_URL' , base_url + proj)
|
||
|
cfg.set_quoted('PACKAGE_BIN_DIR' , dir_bin)
|
||
|
cfg.set_quoted('PACKAGE_LIB_DIR' , dir_lib)
|
||
|
cfg.set_quoted('PACKAGE_DATA_DIR' , join_paths(dir_data, proj))
|
||
|
cfg.set_quoted('LOCALEDIR' , dir_locale)
|
||
|
cfg.set ('_GNU_SOURCE' , 1)
|
||
|
cfg.set ('__EXTENSIONS__' , 1)
|
||
|
cfg.set ('_POSIX_PTHREAD_SEMANTICS', 1)
|
||
|
cfg.set ('_ALL_SOURCE' , 1)
|
||
|
cfg.set ('_POSIX_SOURCE' , 1)
|
||
|
cfg.set ('_POSIX_1_SOURCE' , 1)
|
||
|
configure_file(output: 'rage_config.h', configuration: cfg)
|
||
|
|
||
|
##### packaging files for distro packages
|
||
|
pkg = configuration_data()
|
||
|
pkg.set('PACKAGE', proj)
|
||
|
pkg.set('VERSION', ver)
|
||
|
configure_file(input : proj + '.spec.in',
|
||
|
output : proj + '.spec',
|
||
|
configuration: pkg)
|
||
|
configure_file(input : join_paths('pkgbuild', 'PKGBUILD.in'),
|
||
|
output : 'PKGBUILD',
|
||
|
configuration: pkg)
|
||
|
|
||
|
##### subdirs
|
||
|
subdir('src')
|
||
|
subdir('data')
|