aboutsummaryrefslogtreecommitdiff
path: root/meson.build
blob: 512acaa0bcbb67ee65bcac324345aaf9aa33a020 (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
project('sylpheed', 'c',
        version : '3.7.0',
	license : ['GPL2+', 'LGPL2+'],
        default_options : ['buildtype=debugoptimized'])

compiler = meson.get_compiler('c')

glib = dependency('glib-2.0')
gobject = dependency('gobject-2.0')
openssl = dependency('openssl', required : false)

add_project_arguments('-Wno-deprecated-declarations', language : 'c')
add_project_arguments('-Wno-unused-but-set-variable', language : 'c')
add_project_arguments('-Wno-format', language : 'c')

conf_data = configuration_data()

add_project_arguments('-DHAVE_CONFIG_H', language : 'c')

add_project_arguments('-DUSE_THREADS', language : 'c')

if openssl.found()
  add_project_arguments('-DUSE_SSL', language : 'c')
endif


conf_data.set('ICONV_CONST', '')

add_project_arguments('-DSYSCONFDIR="'+get_option('sysconfdir')+'"',
                      language : 'c')

if compiler.has_header('sys/wait.h')
  conf_data.set('HAVE_SYS_WAIT_H', 1)
endif

if compiler.has_header('sys/select.h')
  conf_data.set('HAVE_SYS_SELECT_H', 1)
endif

if compiler.has_header('netdb.h')
  conf_data.set('HAVE_NETDB_H', 1)
endif

configure_file(output : 'config.h',
               configuration : conf_data)

library('sylph',
        ['libsylph/account.c',
         'libsylph/base64.c',
         'libsylph/codeconv.c',
         'libsylph/customheader.c',
         'libsylph/displayheader.c',
         'libsylph/filter.c',
         'libsylph/folder.c',
         'libsylph/html.c',
         'libsylph/imap.c',
         'libsylph/mbox.c',
         'libsylph/md5.c',
         'libsylph/md5_hmac.c',
         'libsylph/mh.c',
         'libsylph/news.c',
         'libsylph/nntp.c',
         'libsylph/pop.c',
         'libsylph/prefs_account.c',
         'libsylph/prefs.c',
         'libsylph/prefs_common.c',
         'libsylph/procheader.c',
         'libsylph/procmime.c',
         'libsylph/procmsg.c',
         'libsylph/quoted-printable.c',
         'libsylph/recv.c',
         'libsylph/session.c',
         'libsylph/smtp.c',
         'libsylph/socket.c',
         'libsylph/socks.c',
         'libsylph/ssl.c',
         'libsylph/ssl_hostname_validation.c',
         'libsylph/stringtable.c',
         'libsylph/sylmain.c',
         'libsylph/syl-marshal.c',
         'libsylph/unmime.c',
         'libsylph/utils.c',
         'libsylph/uuencode.c',
         'libsylph/virtual.c',
         'libsylph/xml.c'],
	 dependencies : [glib, gobject, openssl],
	 install : true)

executable('sylpheed',
           ['src/about.c',
            'src/account_dialog.c',
            'src/action.c',
            'src/addrbook.c',
            'src/addrcache.c',
            'src/addr_compl.c',
            'src/addressadd.c',
            'src/addressbook.c',
            'src/addrindex.c',
            'src/addritem.c',
            'src/alertpanel.c',
            'src/colorlabel.c',
            'src/compose.c',
            'src/editaddress.c',
            'src/editbook.c',
            'src/editgroup.c',
            'src/editjpilot.c',
            'src/editldap_basedn.c',
            'src/editldap.c',
            'src/editvcard.c',
            'src/eggtrayicon.c',
            'src/export.c',
            'src/exportcsv.c',
            'src/filesel.c',
            'src/foldersel.c',
            'src/folderview.c',
            'src/gtkshruler.c',
            'src/gtkutils.c',
            'src/headerview.c',
            'src/imageview.c',
            'src/import.c',
            'src/importcsv.c',
            'src/importldif.c',
            'src/inc.c',
            'src/inputdialog.c',
            'src/jpilot.c',
            'src/ldif.c',
            'src/logwindow.c',
            'src/main.c',
            'src/mainwindow.c',
            'src/manage_window.c',
            'src/manual.c',
            'src/menu.c',
            'src/message_search.c',
            'src/messageview.c',
            'src/mgutils.c',
            'src/mimeview.c',
            'src/notificationwindow.c',
            'src/passphrase.c',
            'src/plugin.c',
            'src/plugin_manager.c',
            'src/prefs_account_dialog.c',
            'src/prefs_actions.c',
            'src/prefs_common_dialog.c',
            'src/prefs_customheader.c',
            'src/prefs_display_header.c',
            'src/prefs_display_items.c',
            'src/prefs_filter.c',
            'src/prefs_filter_edit.c',
            'src/prefs_folder_item.c',
            'src/prefs_search_folder.c',
            'src/prefs_summary_column.c',
            'src/prefs_template.c',
            'src/prefs_toolbar.c',
            'src/prefs_ui.c',
            'src/printing.c',
            'src/progressdialog.c',
            'src/query_search.c',
            'src/quick_search.c',
            'src/rfc2015.c',
            'src/rpop3.c',
            'src/select-keys.c',
            'src/send_message.c',
            'src/setup.c',
            'src/sigstatus.c',
            'src/simple-gettext.c',
            'src/sourcewindow.c',
            'src/sslmanager.c',
            'src/statusbar.c',
            'src/stock_pixmap.c',
            'src/subscribedialog.c',
            'src/summaryview.c',
            'src/syldap.c',
            'src/template.c',
            'src/textview.c',
            'src/trayicon.c',
            'src/undo.c',
            'src/update_check.c',
            'src/vcard.c'],
	 dependencies : [glib, gobject],
	 install : true)