File: meson.build

package info (click to toggle)
ncmpc 0.33-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,976 kB
  • sloc: cpp: 10,895; python: 133; makefile: 39; ruby: 28; sh: 11
file content (19 lines) | stat: -rw-r--r-- 628 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
splitted_version = meson.project_version().split('.')

wconf = configuration_data()
wconf.set('VERSION_MAJOR', splitted_version[0])
wconf.set('VERSION_MINOR', splitted_version[1])
if splitted_version.length() >= 3
  wconf.set('VERSION_REVISION', splitted_version[2])
else
  wconf.set('VERSION_REVISION', '0')
endif
if splitted_version.length() >= 4
  wconf.set('VERSION_EXTRA', splitted_version[3])
else
  wconf.set('VERSION_EXTRA', '0')
endif
configure_file(input: 'ncmpc_win32_rc.rc.in', output: 'ncmpc_win32_rc.rc', configuration: wconf)

windows = import('windows')
sources += windows.compile_resources('ncmpc_win32_rc.rc')