summaryrefslogtreecommitdiff
path: root/x11-plugins/wmmaiload/files/meson.build
blob: 5791ebb405db7f2a3a5d3a2597956ed0abef65d1 (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
project('wmmaiload', 'c', version: '2.3.0')

add_project_arguments(
    '-DHAVE_THREADS',
    '-DHAVE_IMAP',
    '-DHAVE_MAILDIR',
    '-DHAVE_MBOX',
    '-DHAVE_MH',
    '-DHAVE_POP3',
    '-DHAVE_SSL',
    '-DHAVE_SELECT',
    '-DHAVE_STRING_H',
    '-DHAVE_STRINGS_H',
    '-DHAVE_UNISTD_H',
    language: 'c',
)

# Originally, this was generated and regenerated
# by a set of shell functions embedded into makefile
# replacing with sane defaults

add_project_arguments(
    '-DVERSION="2.3.0"',
    '-DAUTHORS="Thomas Nemeth"',
    '-DOSTYPE="linux"',
    '-DBUILD=""',
    language: 'c',
)

threads_dep = dependency('threads')
ssl = dependency('openssl')
xext = dependency('xext')
xpm = dependency('xpm')
gtk = dependency('gtk+-2.0')
x11 = dependency('X11')

wmmaiload_sources = [
    'wmmaiload/checkthread.c',
    'wmmaiload/dockapp.c',
    'wmmaiload/imapclient.c',
    'wmmaiload/main.c',
    'wmmaiload/options.c',
    'wmmaiload/pop3client.c',
    'wmmaiload/ssl.c',
]

wmmaiload_include = include_directories('wmmaiload')

wmmaiload = executable(
    'wmmaiload',
    wmmaiload_sources,
    include_directories: wmmaiload_include,
    dependencies: [threads_dep, ssl, xext, xpm],
    install: true,
    c_args: ['-DPACKAGE="WMMaiLoad"', '-DPROGRAM="wmmaiload"'],
)

wmmail_conf_sources = [
    'wmmaiload-config/actions.c',
    'wmmaiload-config/dialogs.c',
    'wmmaiload-config/main.c',
    'wmmaiload-config/mainwindow.c',
    'wmmaiload-config/popedit.c',
    'wmmaiload-config/tools.c',
]

wmmail_conf_include = include_directories('wmmaiload-config')

wmmail_conf = executable(
    'wmmaiload-config',
    wmmail_conf_sources,
    dependencies: [gtk, x11],
    include_directories: wmmail_conf_include,
    c_args: ['-DPACKAGE="WMMaiLoad-Config"', '-DPROGRAM="wmmaiload-config"'],
    install: true,
)