summaryrefslogtreecommitdiff
path: root/meson.build
blob: 5f87597f8c8e82076473a8943e0eaec748e7fec1 (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
project('cetris', 'c',
  version : '0.2',
  default_options : ['warning_level=2', 'c_std=c99'])

compiler = meson.get_compiler('c')

cetris_inc = include_directories('core/include')

if get_option('debug') == true 
  if host_machine.system() == 'windows'
    add_global_arguments('/DBUILD_TESTS', language : 'c') 
  else 
    add_global_arguments('-DBUILD_TESTS', language : 'c')
  endif
endif

subdir('core')

if get_option('curses-frontend') == true
  subdir('frontends/curses')
endif

if get_option('gl-frontend') == true
  subdir('frontends/gl')
endif