aboutsummaryrefslogtreecommitdiff
path: root/lib/meson-projects/meson.build
blob: 0434dfb02b188e5df51f412b74946a31900ef4d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
project('cru-deps', 'c', 'cpp')

hello_word_test = '''
#include <stdio.h>

int main() {
  printf("Hello world!");
  return 0;
}
'''

cc = meson.get_compiler('c')
hello_world_result = cc.run(hello_word_test, name: 'hello world')

if hello_world_result.returncode() != 0
  error('Failed to hello world!')
endif

if get_option('cairo').enabled()
  subproject('glib')
  subproject('cairo')
endif

if get_option('pango').enabled()
  subproject('glib')
  subproject('pango')
endif