1project('libgd', 'c',
2  meson_version: '>= 0.38.0',
3  default_options: ['static=true'],
4)
5
6if not meson.is_subproject()
7  message('WARNING: This project is only intended to be used as a subproject!')
8endif
9
10pkglibdir = get_option('pkglibdir')
11pkgdatadir = get_option('pkgdatadir')
12
13libgtk = dependency('gtk+-3.0', version: '>= 3.7.10')
14cc = meson.get_compiler('c')
15libm = cc.find_library('m', required: false)
16libgd_include = include_directories('.')
17
18subdir('libgd')
19
20if get_option('with-tagged-entry')
21  foreach t : ['test-tagged-entry', 'test-tagged-entry-2']
22    executable(t, t + '.c', dependencies : libgd_dep)
23  endforeach
24endif
25