summaryrefslogtreecommitdiffstats
path: root/subprojects/libgd/meson.build
blob: 6d1242c0c7c1e0d3533f7c0cb0d5b53be484996f (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
project('libgd', 'c',
  meson_version: '>= 0.38.0',
  default_options: ['static=true'],
)

if not meson.is_subproject()
  message('WARNING: This project is only intended to be used as a subproject!')
endif

pkglibdir = get_option('pkglibdir')
pkgdatadir = get_option('pkgdatadir')

libgtk = dependency('gtk+-3.0', version: '>= 3.7.10')
cc = meson.get_compiler('c')
libm = cc.find_library('m', required: false)
libgd_include = include_directories('.')

subdir('libgd')

if get_option('with-tagged-entry')
  foreach t : ['test-tagged-entry', 'test-tagged-entry-2']
    executable(t, t + '.c', dependencies : libgd_dep)
  endforeach
endif