This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/meson/meson.build
ldrumm 3bb11440b4
Add Meson build language support (#1823)
* Add a Meson language lexer

* update the mappings

* Add meson to the list of supported languages

* Add a meson.build example file
2021-06-20 11:32:36 +02:00

52 lines
965 B
Meson

project('pygments', 'c',
version : '0.1',
default_options : ['warning_level=3']
)
import('fs')
builder = build_machine
target = target_machine
host = host_machine
# This is a comment
cc = meson.get_compiler('c')
cc.compiles(
'''
/*This
''
is a multiline string
# with an embedded line that looks like a comment
and some other elements like
true false
0 1
project()
*/
#include <stdio.h>
int main(void) {
printf("hello\n");
}
'''
)
exe = executable('pygments', 'pygments.c', install : true)
dep = cc.find_library('foo', disabler: true)
foreach x : [42, 0x55000, 0o6, exe]
if not is_disabler(dep)
library('lib', 'lib.c', include_directories: [], dependencies: dep)
elif false
both_libraries('lib', 'lib2.c')
else
message('failed')
continue
endif
break
endforeach
test('basic', exe)
subdir('dir')
if not get_option('build-docs')
summary({'docs': [false, '(disabled by config)']}, section: 'Configuration')
subdir_done()
endif