summaryrefslogtreecommitdiff
path: root/tp-account-widgets/meson.build
blob: 602184c33d5b8dd707805c8d004ea4c94c6cf2c0 (plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
install_data(
  'irc-networks.xml',
  install_dir: tpaw_pkgdatadir
)

headers = files(
  'tpaw-account-settings.h',
  'tpaw-account-widget.h',
  'tpaw-account-widget-irc.h',
  'tpaw-account-widget-sip.h',
  'tpaw-avatar-chooser.h',
  'tpaw-builder.h',
  'tpaw-calendar-button.h',
  'tpaw-camera-monitor.h',
  'tpaw-connection-managers.h',
  'tpaw-contactinfo-utils.h',
  'tpaw-debug.h',
  'tpaw-gsettings.h',
  'tpaw-images.h',
  'tpaw-keyring.h',
  'tpaw-irc-network-chooser-dialog.h',
  'tpaw-irc-network-chooser.h',
  'tpaw-irc-network-dialog.h',
  'tpaw-irc-network-manager.h',
  'tpaw-irc-network.h',
  'tpaw-irc-server.h',
  'tpaw-live-search.h',
  'tpaw-pixbuf-utils.h',
  'tpaw-protocol.h',
  'tpaw-string-parser.h',
  'tpaw-time.h',
  'tpaw-user-info.h',
  'tpaw-utils.h'
)

sources = files(
  'tpaw-account-settings.c',
  'tpaw-account-widget.c',
  'tpaw-account-widget-irc.c',
  'tpaw-account-widget-private.h',
  'tpaw-account-widget-sip.c',
  'tpaw-avatar-chooser.c',
  'tpaw-builder.c',
  'tpaw-calendar-button.c',
  'tpaw-camera-monitor.c',
  'tpaw-connection-managers.c',
  'tpaw-contactinfo-utils.c',
  'tpaw-debug.c',
  'tpaw-keyring.c',
  'tpaw-irc-network-chooser.c',
  'tpaw-irc-network-chooser-dialog.c',
  'tpaw-irc-network-dialog.c',
  'tpaw-irc-network-manager.c',
  'tpaw-irc-network.c',
  'tpaw-irc-server.c',
  'tpaw-live-search.c',
  'tpaw-pixbuf-utils.c',
  'tpaw-protocol.c',
  'tpaw-string-parser.c',
  'tpaw-time.c',
  'tpaw-user-info.c',
  'tpaw-utils.c'
)

# nocheck sources
sources += files(
  'cheese-camera-device-monitor.c',
  'totem-subtitle-encoding.c'
)

# these are sources that depend on Ubuntu Online Accounts
if have_uoa
  sources = files('tpaw-uoa-utils.c')
endif

resource_data = files(
  'tpaw-account-widget-aim.ui',
  'tpaw-account-widget-generic.ui',
  'tpaw-account-widget-groupwise.ui',
  'tpaw-account-widget-icq.ui',
  'tpaw-account-widget-irc.ui',
  'tpaw-account-widget-jabber.ui',
  'tpaw-account-widget-local-xmpp.ui',
  'tpaw-account-widget-msn.ui',
  'tpaw-account-widget-sip.ui',
  'tpaw-account-widget-yahoo.ui',
  'tpaw-irc-networks.dtd'
)

built_sources = gnome.compile_resources(
  'tpaw-account-widgets-resources',
  'tpaw-account-widgets.gresource.xml',
  source_dir: '.',
  dependencies: resource_data
)

libtp_account_widgets = static_library(
  'tp-account-widgets',
  sources: sources + built_sources,
  include_directories: top_inc,
  dependencies: tpaw_deps
)

libtp_account_widgets_dep = declare_dependency(
  link_with: libtp_account_widgets,
  include_directories: include_directories('.')
)

pkg.generate(
  libraries: libtp_account_widgets,
  version: tpaw_version,
  name: 'telepathy-account-widgets (uninstalled copy)',
  description: 'Widgets and utility functions for configuring Telepathy accounts',
  filebase: 'telepathy-account-widgets-uninstalled',
  requires: ', '.join(required),
  variables: [
    'abs_top_srcdir=' + meson.source_root(),
    'abs_top_builddir=' + meson.build_root(),
    'uoa_provider=' + uoa_provider
  ],
  install_dir: meson.build_root()
)