2018-10-28 02:55:12 +02:00
|
|
|
project('libcubescript', ['cpp'],
|
|
|
|
version: '0.1.0',
|
2021-03-16 00:52:23 +01:00
|
|
|
default_options: ['buildtype=debugoptimized', 'cpp_std=c++2a'],
|
2021-03-16 00:56:19 +01:00
|
|
|
meson_version: '>=0.50'
|
2018-10-28 02:55:12 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
dir_prefix = get_option('prefix')
|
|
|
|
dir_include = join_paths(dir_prefix, get_option('includedir'))
|
|
|
|
dir_data = join_paths(dir_prefix, get_option('datadir'))
|
|
|
|
dir_lib = join_paths(dir_prefix, get_option('libdir'))
|
|
|
|
|
|
|
|
dir_package_include = join_paths(dir_include, 'cubescript')
|
|
|
|
|
|
|
|
libcubescript_includes = [include_directories('include')]
|
|
|
|
|
2021-03-16 00:52:23 +01:00
|
|
|
cxx = meson.get_compiler('cpp')
|
|
|
|
|
|
|
|
extra_cxxflags = []
|
|
|
|
|
|
|
|
if get_option('buildtype') != 'plain'
|
|
|
|
if cxx.has_argument('-Wshadow')
|
|
|
|
extra_cxxflags += '-Wshadow'
|
|
|
|
endif
|
|
|
|
if cxx.has_argument('-Wold-style-cast')
|
|
|
|
extra_cxxflags += '-Wold-style-cast'
|
|
|
|
endif
|
2018-10-28 02:55:12 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
subdir('src')
|
|
|
|
subdir('tools')
|
|
|
|
|
|
|
|
pkg = import('pkgconfig')
|
|
|
|
|
|
|
|
pkg.generate(
|
2021-03-23 02:48:14 +01:00
|
|
|
libraries: libcubescript_target,
|
2018-10-28 02:55:12 +02:00
|
|
|
version: meson.project_version(),
|
|
|
|
name: 'libcubescript',
|
|
|
|
filebase: 'libcubescript',
|
|
|
|
url: 'https://git.octaforge.org/octaforge/libcubescript',
|
2018-10-28 02:09:23 +01:00
|
|
|
description: 'An embeddable version of the CubeScript language'
|
2018-10-28 02:55:12 +02:00
|
|
|
)
|