File: meson.build

package info (click to toggle)
sequeler 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,576 kB
  • sloc: xml: 6; makefile: 5
file content (56 lines) | stat: -rw-r--r-- 1,371 bytes parent folder | download
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
46
47
48
49
50
51
52
53
54
55
56
# project name and programming language
project('io.github.ellie_commons.sequeler', 'vala', 'c',
    version: '0.9.0',
    meson_version: '>= 0.59.0')

cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required: true)

vala_args = ['--pkg', 'posix']

add_project_arguments(
    ['--vapidir', join_paths(meson.current_source_dir(), 'vapi')],
    language: 'vala'
)

if get_option('profile') == 'development'
	application_id = '@0@.Devel'.format(meson.project_name())
	vala_args += ['-D', 'IS_DEVEL']
else
	application_id = meson.project_name()
endif

linux_dep = meson.get_compiler('vala').find_library('linux')

# Include the translations module
i18n = import('i18n')

# Include the gnome module
gnome = import('gnome')
asresources = gnome.compile_resources(
    'as-resources', 'data/assets.gresource.xml',
    source_dir: 'data',
    c_name: 'as'
)

# Set our translation domain
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language: 'c')

vala_lint = find_program('io.elementary.vala-lint', required : false)
if vala_lint.found()
    test (
        'Vala lint',
        vala_lint,
        args: ['-d', join_paths(meson.project_source_root(), 'src')]
    )
endif

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

gnome.post_install(
    glib_compile_schemas: true,
    gtk_update_icon_cache: true,
    update_desktop_database: true
)