Debian Codegraph @

examples/book/buildapp/step1/meson.build

raw
1 project('gtkmm exampleapp', 'c', 'cpp',
2 version: '0.0.0',
3 default_options: [
4 'cpp_std=c++17'
5 ]
6 )
7
8 gtkmm_dep = dependency('gtkmm-4.0')
9
10 program_name = 'exampleapp'
11
12 cpp_sources = [
13 'main.cc',
14 'exampleappwindow.cc',
15 'exampleapplication.cc',
16 ]
17
18 executable(program_name,
19 cpp_sources,
20 dependencies: gtkmm_dep,
21 win_subsystem: 'windows',
22 )
23
24 python3 = import('python').find_installation()
25 install_cmd = meson.current_source_dir() / 'install-cmd.py'
26
27 conf_data = configuration_data()
28 conf_data.set('bindir', meson.current_build_dir())
29 desktop_file = configure_file(
30 input: 'exampleapp.desktop.in',
31 output: '@BASENAME@',
32 configuration: conf_data,
33 )
34
35 run_target('install-desktop-file',
36 command: [
37 python3, install_cmd, 'desktop',
38 program_name,
39 desktop_file,
40 meson.current_source_dir() / 'exampleapp.png',
41 ]
42 )