meson.build 2.01 KB
Newer Older
Petr Štětka's avatar
Petr Štětka committed
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 57 58 59 60 61 62 63 64 65 66 67 68 69
vala_sources = [
    'application.vala',
    'color-rectangle.vala',
    'cpu-graph-table.vala',
    'cpu-graph.vala',
    'cpu-monitor.vala',
    'cpu-sub-view.vala',
    'data-view.vala',
    'disk-graph.vala',
    'disk-sub-view.vala',
    'gnome-usage.vala',
    'graph-block-row.vala',
    'graph-block.vala',
    'graph-box.vala',
    'graph-stack-switcher.vala',
    'graph-switcher-button.vala',
    'header-bar.vala',
    'memory-graph-table.vala',
    'memory-graph.vala',
    'memory-monitor.vala',
    'memory-sub-view.vala',
    'network-graph-table.vala',
    'network-graph.vala',
    'network-monitor.vala',
    'network-sub-view.vala',
    'performance-view.vala',
    'pie-chart.vala',
    'power-view.vala',
    'process-dialog.vala',
    'process-list-box.vala',
    'process-row.vala',
    'process.vala',
    'settings.vala',
    'storage-analyzer.vala',
    'storage-graph.vala',
    'storage-item.vala',
    'storage-list-box.vala',
    'storage-row.vala',
    'storage-view.vala',
    'storage-worker.vala',
    'sub-process-list-box.vala',
    'sub-process-sub-row.vala',
    'system-monitor.vala',
    'utils.vala',
    'view.vala',
    'window.vala',
    'better-box.c']

vala_args = [
    '--target-glib=2.38',
    '--gresources=../data/org.gnome.Usage.gresource.xml',
    '--pkg=rg',
    '--pkg=egg',
    '--pkg=better',
    '--pkg=netinfo',
    '--pkg=libgtop-2.0',
    '--pkg=config',
    '--pkg=posix',
    '--vapidir=' + meson.current_source_dir() + '/vapis']

usage = executable('gnome-usage',
                     vala_sources,
                     resources,
                     c_args : [ '-DVERSION="' + meson.project_version() + '"', '-DGETTEXT_PACKAGE="gnome-usage"', '-DGNOMELOCALEDIR="' + get_option('prefix') + '/' + get_option('localedir') + '"' ],
                     include_directories : include_directories('/usr/include/libgtop-2.0'),
                     vala_args: vala_args,
                     install: true,
                     dependencies : [glib, gobject, gio, gtk, rg, egg, math, gtop, netinfo])