berel/meson.build

62 lines
2.1 KiB
Meson
Raw Permalink Normal View History

2018-08-28 13:05:45 +00:00
#^# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
2018-08-28 13:05:45 +00:00
# @software : berel <https://git.pluie.org/pluie/berel>
# @version : 0.25
# @type : program
# @date : 2018
2018-08-28 13:05:45 +00:00
# @license : GPLv3.0 <http://www.gnu.org/licenses/>
# @author : a-Sansara <[dev]at[pluie]dot[org]>
# @copyright : pluie.org <http://www.pluie.org>
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
2018-08-28 13:05:45 +00:00
# This file is part of berel.
#
2018-08-28 13:05:45 +00:00
# berel is free software (free as in speech) : 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 of the License,
# or (at your option) any later version.
#
2018-08-28 13:05:45 +00:00
# berel 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.
#
2018-08-28 13:05:45 +00:00
# You should have received a copy of the GNU General Public License
# along with berel. If not, see <http://www.gnu.org/licenses/>.
#
2018-08-28 13:05:45 +00:00
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #^#
project('berel', ['vala', 'c'], version:'0.22')
2018-08-28 13:05:45 +00:00
2018-08-28 21:59:35 +00:00
conf = configuration_data()
conf.set('VERSION' , meson.project_version())
conf.set('INSTALL_PATH', join_paths(get_option('prefix'), get_option('bindir')))
conf.set('DATA_PATH' , join_paths(get_option('prefix'), get_option('datadir'), 'pluie/berel'))
2018-08-28 13:05:45 +00:00
configure_file(
2018-08-28 21:59:35 +00:00
input : 'src/install.vala',
2018-08-28 13:05:45 +00:00
output: 'install.vala',
configuration: conf
)
2018-08-28 21:59:35 +00:00
subdir('src')
executable(
meson.project_name(),
src_files + [ 'build/install.vala' ],
install : true,
dependencies : [
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('gmodule-2.0'),
dependency('gio-2.0'),
dependency('gee-0.8'),
dependency('pluie-echo-0.2'),
dependency('pluie-yaml-0.5'),
meson.get_compiler('c').find_library('m', required : false)
]
)
2018-08-28 13:05:45 +00:00