-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
194 lines (165 loc) · 5.68 KB
/
Makefile.am
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
bin_PROGRAMS =
CLEANFILES =
EXTRA_DIST = iniparser/LICENSE \
COPYING \
README \
debian \
gentoo \
windows \
apple \
pica-client/icons
#####################################
if PICA_NODE
bin_PROGRAMS += pica-node
pica_node_SOURCES = PICA_node.c PICA_msgproc.c PICA_nodeaddrlist.c \
PICA_nodewait.c PICA_nodeconfig.c PICA_log.c \
iniparser/src/dictionary.c iniparser/src/iniparser.c \
PICA_node.h PICA_msgproc.h PICA_nodeaddrlist.h \
PICA_nodewait.h PICA_nodeconfig.h PICA_log.h \
iniparser/src/dictionary.h iniparser/src/iniparser.h \
PICA_common.h PICA_proto.h PICA_id.h PICA_id.c \
PICA_netconf.c PICA_netconf.h PICA_security.h \
PICA_signverify.c PICA_signverify.h
dist_man_MANS = pica-node.8 pica-node.conf.5
pica_node_CPPFLAGS = -DPICA_INSTALLPREFIX=\"$(prefix)\" -DPICA_SYSCONFDIR=\"$(sysconfdir)\" -DPICA_LOCALSTATEDIR=\"$(localstatedir)\"
pica_node_LDADD = $(PICA_NODE_LIBS)
pkglocalstatedir = $(localstatedir)/pica-node
dist_pkglocalstate_DATA = nodelist.db
dist_sysconf_DATA = pica-node.conf
nodelist.db: nodelist_db_create.sql
echo "Creating and initializing nodelist database..."
sqlite3 $@ "`cat $<`"
CLEANFILES += nodelist.db
EXTRA_DIST += nodelist_db_create.sql
pkgpicanodedir = ${datarootdir}/pica-node
dist_pkgpicanode_DATA = dhparam4096.pem README nodelist_db_create.sql
endif
#####################################
if PICA_CLIENT
bin_PROGRAMS += pica-client/pica-client
pica_client_pica_client_SOURCES = \
pica-client/accounts.cpp \
pica-client/accounts.h \
pica-client/accountswindow.cpp \
pica-client/accountswindow.h \
pica-client/askpassword.cpp \
pica-client/askpassword.h \
pica-client/chatwindow.cpp \
pica-client/chatwindow.h \
pica-client/contactlistwidget.cpp \
pica-client/contactlistwidget.h \
pica-client/contacts.cpp \
pica-client/contacts.h \
pica-client/globals.h \
pica-client/main.cpp \
pica-client/mainwindow.cpp \
pica-client/mainwindow.h \
pica-client/mainwindow.ui \
pica-client/msguirouter.cpp \
pica-client/msguirouter.h \
pica-client/nodes.cpp \
pica-client/nodes.h \
pica-client/openssltool.cpp \
pica-client/openssltool.h \
pica-client/picaactioncenter.cpp \
pica-client/picaactioncenter.h \
pica-client/pica-client.pro \
pica-client/picasystray.cpp \
pica-client/picasystray.h \
pica-client/skynet.cpp \
pica-client/skynet.h \
pica-client/history.h \
pica-client/history.cpp \
pica-client/dhparam.h \
pica-client/dhparam.cpp \
pica-client/filetransfercontroller.cpp \
pica-client/filetransfercontroller.h \
pica-client/sound.cpp \
pica-client/sound.h \
pica-client/settings.cpp \
pica-client/settings.h \
\
pica-client/dialogs/addaccountdialog.cpp \
pica-client/dialogs/addaccountdialog.h \
pica-client/dialogs/forgedcertdialog.cpp \
pica-client/dialogs/forgedcertdialog.h \
pica-client/dialogs/registeraccountdialog.cpp \
pica-client/dialogs/registeraccountdialog.h \
pica-client/dialogs/viewcertdialog.cpp \
pica-client/dialogs/viewcertdialog.h \
pica-client/dialogs/showpicaiddialog.cpp \
pica-client/dialogs/showpicaiddialog.h \
pica-client/dialogs/filetransferdialog.cpp \
pica-client/dialogs/filetransferdialog.h \
pica-client/dialogs/settingsdialog.cpp \
pica-client/dialogs/settingsdialog.h \
pica-client/dialogs/nodesdialog.cpp \
pica-client/dialogs/nodesdialog.h \
PICA_client.c \
PICA_client.h \
PICA_msgproc.c \
PICA_msgproc.h \
PICA_common.h PICA_proto.h \
PICA_id.c PICA_id.h \
PICA_netconf.c PICA_netconf.h \
PICA_signverify.c PICA_signverify.h \
PICA_security.h
nodist_pica_client_pica_client_SOURCES = \
moc_accountswindow.cpp \
moc_addaccountdialog.cpp \
moc_askpassword.cpp \
moc_chatwindow.cpp \
moc_contactlistwidget.cpp \
moc_forgedcertdialog.cpp \
moc_mainwindow.cpp \
moc_msguirouter.cpp \
moc_picaactioncenter.cpp \
moc_picasystray.cpp \
moc_registeraccountdialog.cpp \
moc_filetransferdialog.cpp \
moc_skynet.cpp \
moc_settingsdialog.cpp \
moc_viewcertdialog.cpp \
moc_showpicaiddialog.cpp \
moc_dhparam.cpp \
moc_filetransfercontroller.cpp \
moc_nodesdialog.cpp \
ui_mainwindow.h
moc_%.cpp: pica-client/%.h
$(MOC) $< -o $@
moc_%.cpp: pica-client/dialogs/%.h
$(MOC) $< -o $@
pica-client/mainwindow.cpp: ui_mainwindow.h
#ui_mainwindow.h: pica-client/mainwindow.ui
# uic $(CPPFLAGS) $< -o $@
ui_%.h: pica-client/%.ui
$(UIC) $< -o $@
pica_client_pica_client_CPPFLAGS = -DPICA_INSTALLPREFIX=\"$(prefix)\" $(QT_DEPENDENCIES_CFLAGS)
pica_client_pica_client_LDADD = $(QT_DEPENDENCIES_LIBS)
pkgpicaclientdir = ${datarootdir}/pica-client
dist_pkgpicaclient_DATA = \
dhparam4096.pem \
pica-client/picapica-icon-fly.png \
pica-client/picapica-icon-sit.png \
pica-client/picapica-snd-newmessage.wav
#$(filter moc_%.cpp,$(pica_client_SOURCES))
CLEANFILES += moc_*.cpp ui_*.h
EXTRA_DIST += pica-client/pica-client.desktop
deploy: pica-client/pica-client
mkdir -p PicaPicaMessenger.app/Contents/Resources
mkdir -p PicaPicaMessenger.app/Contents/MacOS
mkdir -p PicaPicaMessenger.app/Contents/PlugIns/sqldrivers
cp apple/Info.plist PicaPicaMessenger.app/Contents/
cp apple/picapica.icns PicaPicaMessenger.app/Contents/Resources
cp pica-client/pica-client PicaPicaMessenger.app/Contents/MacOS/PicaPicaMessenger
cp pica-client/picapica-icon-fly.png PicaPicaMessenger.app/Contents/Resources
cp pica-client/picapica-icon-sit.png PicaPicaMessenger.app/Contents/Resources
cp pica-client/picapica-snd-newmessage.wav PicaPicaMessenger.app/Contents/Resources
cp dhparam4096.pem PicaPicaMessenger.app/Contents/Resources
cp ${QTDIR}/plugins/sqldrivers/libqsqlite.dylib PicaPicaMessenger.app/Contents/PlugIns/sqldrivers
macdeployqt PicaPicaMessenger.app -verbose=3
macdeployqt PicaPicaMessenger.app -verbose=3
hdiutil create -srcfolder PicaPicaMessenger.app PicaPicaMessenger.dmg
hdiutil internet-enable -yes PicaPicaMessenger.dmg
endif
#####################################