File: meson.build

package info (click to toggle)
grimripper 3.0.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,312 kB
  • sloc: ansic: 7,483; xml: 81; sh: 42; makefile: 7
file content (45 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
project('GrimRipper',
  'c',
  version: '3.0.2',
  default_options: [
    'c_std=gnu11',
    'warning_level=3',
  ],
  meson_version: '>=0.49.0',
)

i18n = import('i18n')
config = configuration_data()

###############################################################################
# Dependencies

gtk3    = dependency('gtk+-3.0',    version: '>=3.11.0')
libcddb = dependency('libcddb',     version: '>=0.9.5')

gettext_package = meson.project_name()

datadir_abs = get_option('prefix') / get_option('datadir')
config.set_quoted('PACKAGE',            meson.project_name())
config.set_quoted('PACKAGE_DATA_DIR',   datadir_abs)
config.set_quoted('PACKAGE_LOCALE_DIR', datadir_abs / 'locale')

add_project_arguments(
  '-DHAVE_CONFIG_H',
  '-DENABLE_NLS',
  language: 'c'
)

# Port to gtk3
add_project_arguments(
  '-Wno-deprecated-declarations',
  '-Wno-overlength-strings',
  '-DGDK_DISABLE_DEPRECATED',
  '-DGTK_DISABLE_DEPRECATED',
  '-DGLIB_DISABLE_DEPRECATED',
  language: 'c',
)

subdir('data')
subdir('src')
subdir('po')