7a9cbf2b9226ec1f783eea969495ccbdf6310887
[obnox/wireshark/wip.git] / epan / CMakeLists.txt
1 # CMakeLists.txt
2 #
3 # $Id$
4 #
5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@wireshark.org>
7 # Copyright 1998 Gerald Combs
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 #
23
24 if (HAVE_LIBLUA)
25         include( wslua/CMakeLists.txt )
26 endif()
27 if (HAVE_LIBPYTHON)
28         include( wspython/CMakeLists.txt )
29 endif()
30
31 add_subdirectory( dissectors/dcerpc )
32
33 include_directories(
34         ${CMAKE_CURRENT_BINARY_DIR}
35         ${CMAKE_CURRENT_SOURCE_DIR}/dfilter
36         ${CMAKE_CURRENT_SOURCE_DIR}/dissectors
37         ${CMAKE_CURRENT_SOURCE_DIR}/ftypes
38         ${CMAKE_CURRENT_SOURCE_DIR}/wslua
39         ${CMAKE_CURRENT_SOURCE_DIR}/wspython
40 )
41
42 set(CRC_FILES
43         crc/crc-16-plain.c
44 )
45
46 set(CRYPT_FILES
47         crypt/airpdcap.c
48         crypt/airpdcap_ccmp.c
49         crypt/airpdcap_debug.c
50         crypt/airpdcap_rijndael.c
51         crypt/airpdcap_tkip.c
52         crypt/airpdcap_wep.c
53         crypt/crypt-aes.c
54         crypt/crypt-des.c
55         crypt/crypt-md4.c
56         crypt/crypt-md5.c
57         crypt/crypt-rc4.c
58         crypt/crypt-sha1.c
59 )
60
61 set(DFILTER_FILES
62         dfilter/dfilter.c
63         dfilter/dfilter-macro.c
64         dfilter/dfunctions.c
65         dfilter/dfvm.c
66         dfilter/drange.c
67         dfilter/gencode.c
68         dfilter/semcheck.c
69         dfilter/sttype-function.c
70         dfilter/sttype-integer.c
71         dfilter/sttype-pointer.c
72         dfilter/sttype-range.c
73         dfilter/sttype-string.c
74         dfilter/sttype-test.c
75         dfilter/syntax-tree.c
76 )
77
78 set(DFILTER_CLEAN_FILES
79         ${DFILTER_FILES}
80 )
81
82 add_lex_files(DFILTER_FILES
83         dfilter/scanner.l
84 )
85
86 add_lemon_files(DFILTER_FILES
87         dfilter/grammar.lemon
88 )
89
90 if (AUTOGEN_pidl)
91     # TODO
92 endif()
93
94 if (AUTOGEN_dcerpc)
95   FOREACH(PROTOCOL_NAME ${PIDL_DISSECTOR_AUTOGEN_NAMES})
96     set(PIDL_DISSECTOR_AUTOGEN_SRC
97         ${PIDL_DISSECTOR_AUTOGEN_SRC}
98         dissectors/dcerpc/${PROTOCOL_NAME}/packet-dcerpc-${PROTOCOL_NAME}.c
99     )
100   ENDFOREACH()
101
102   FOREACH(PROTOCOL_NAME ${PIDL_DISSECTOR_AUTOGEN_NAMES})
103     SET(CUR_PROTO_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dissectors/dcerpc/${PROTOCOL_NAME})
104     SET(CUR_PROTO_C_FILE packet-dcerpc-${PROTOCOL_NAME}.c)
105     SET(CUR_PROTO_H_FILE packet-dcerpc-${PROTOCOL_NAME}.h)
106     ADD_CUSTOM_COMMAND(
107         OUTPUT
108           ${CUR_PROTO_DIR}/${CUR_PROTO_C_FILE}
109           ${CUR_PROTO_DIR}/${CUR_PROTO_H_FILE}
110         COMMAND
111           idl2wrs ${PROTOCOL_NAME}
112         COMMAND
113           ${CMAKE_COMMAND} -E copy_if_different ${CUR_PROTO_DIR}/${CUR_PROTO_C_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/dissectors/${CUR_PROTO_C_FILE}
114         COMMAND
115           ${CMAKE_COMMAND} -E copy_if_different ${CUR_PROTO_DIR}/${CUR_PROTO_H_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/dissectors/${CUR_PROTO_H_FILE}
116         WORKING_DIRECTORY
117           ${CUR_PROTO_DIR}
118         DEPENDS
119           ${CUR_PROTO_DIR}/${PROTOCOL_NAME}.idl
120           ${CUR_PROTO_DIR}/${PROTOCOL_NAME}.cnf
121           ${CUR_PROTO_DIR}/packet-dcerpc-${PROTOCOL_NAME}-template.c
122           ${CUR_PROTO_DIR}/packet-dcerpc-${PROTOCOL_NAME}-template.h
123     )
124   ENDFOREACH()
125 else()
126   FOREACH(PROTOCOL_NAME ${PIDL_DISSECTOR_AUTOGEN_NAMES})
127     set(PIDL_DISSECTOR_AUTOGEN_SRC
128         ${PIDL_DISSECTOR_AUTOGEN_SRC}
129         dissectors/packet-dcerpc-${PROTOCOL_NAME}.c
130     )
131   ENDFOREACH()
132 endif()
133
134 ADD_CUSTOM_COMMAND(
135     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/packet-ncp2222.c
136     COMMAND ${PYTHON_EXECUTABLE}
137       ${CMAKE_SOURCE_DIR}/tools/ncp2222.py
138       -o ${CMAKE_CURRENT_BINARY_DIR}/packet-ncp2222.c
139     DEPENDS
140       dissectors/packet-ncp2222.inc
141       ${CMAKE_SOURCE_DIR}/tools/ncp2222.py
142 )
143
144 ADD_CUSTOM_COMMAND(
145     OUTPUT
146        x11-dissector
147 #      x11-declarations.h
148 #      x11-enum.h
149 #      x11-extension-errors.h
150 #      x11-extension-implementation.h
151 #      x11-fields
152 #      x11-glx-render-enum.h
153 #      x11-register-info.h
154     COMMAND ${PERL_EXECUTABLE}
155       ${CMAKE_SOURCE_DIR}/tools/process-x11-fields.pl
156       <dissectors/x11-fields
157     COMMAND ${PERL_EXECUTABLE}
158       ${CMAKE_SOURCE_DIR}/tools/process-x11-xcb.pl
159     DEPENDS
160       dissectors/x11-fields
161       ${CMAKE_SOURCE_DIR}/tools/process-x11-fields.pl
162       ${CMAKE_SOURCE_DIR}/tools/process-x11-xcb.pl
163 )
164
165 # Note that some dissectors are added in dissectors/dcerpc/CMakeLists.txt
166 set(PIDL_DISSECTOR_SRC
167 #       dissectors/packet-dcerpc-budb.c
168 #       dissectors/packet-dcerpc-butc.c
169 #       dissectors/packet-dcerpc-drsuapi.c
170         dissectors/packet-dcerpc-atsvc.c
171         dissectors/packet-dcerpc-dfs.c
172         dissectors/packet-dcerpc-dssetup.c
173         dissectors/packet-dcerpc-efs.c
174         dissectors/packet-dcerpc-frstrans.c
175         dissectors/packet-dcerpc-initshutdown.c
176         dissectors/packet-dcerpc-nspi.c
177         dissectors/packet-dcerpc-rfr.c
178         dissectors/packet-dcerpc-srvsvc.c
179         dissectors/packet-dcerpc-wkssvc.c
180         dissectors/packet-dcerpc-wzcsvc.c
181 )
182 set(DIRTY_PIDL_DISSECTOR_SRC
183         dissectors/packet-dcerpc-dnsserver.c
184         dissectors/packet-dcerpc-eventlog.c
185         dissectors/packet-dcerpc-lsa.c
186         dissectors/packet-dcerpc-winreg.c
187 )
188 set(ASN1_DISSECTOR_SRC
189         dissectors/packet-acp133.c
190         dissectors/packet-acse.c
191         dissectors/packet-ansi_tcap.c
192         dissectors/packet-camel.c
193         dissectors/packet-cdt.c
194         dissectors/packet-charging_ase.c
195         dissectors/packet-cmip.c
196         dissectors/packet-cmp.c
197         dissectors/packet-cms.c
198         dissectors/packet-crmf.c
199         dissectors/packet-dap.c
200         dissectors/packet-disp.c
201         dissectors/packet-dop.c
202         dissectors/packet-dsp.c
203         dissectors/packet-ess.c
204         dissectors/packet-ftam.c
205         dissectors/packet-goose.c
206         dissectors/packet-h225.c
207         dissectors/packet-h235.c
208         dissectors/packet-h245.c
209         dissectors/packet-h248.c
210         dissectors/packet-h282.c
211         dissectors/packet-h283.c
212         dissectors/packet-h323.c
213         dissectors/packet-h450.c
214         dissectors/packet-h450-ros.c
215         dissectors/packet-h460.c
216         dissectors/packet-h501.c
217         dissectors/packet-idmp.c
218         dissectors/packet-logotypecertextn.c
219         dissectors/packet-mms.c
220         dissectors/packet-mpeg-audio.c
221         dissectors/packet-mpeg-pes.c
222         dissectors/packet-ns_cert_exts.c
223         dissectors/packet-ocsp.c
224         dissectors/packet-opsi.c
225         dissectors/packet-p7.c
226         dissectors/packet-p772.c
227         dissectors/packet-pkcs1.c
228         dissectors/packet-pkinit.c
229         dissectors/packet-pkix1explicit.c
230         dissectors/packet-pkix1implicit.c
231         dissectors/packet-pkixac.c
232         dissectors/packet-pkixproxy.c
233         dissectors/packet-pkixqualified.c
234         dissectors/packet-pkixtsp.c
235         dissectors/packet-q932.c
236         dissectors/packet-q932-ros.c
237         dissectors/packet-qsig.c
238         dissectors/packet-ranap.c
239         dissectors/packet-ros.c
240         dissectors/packet-rtse.c
241         dissectors/packet-rua.c
242         dissectors/packet-s1ap.c
243         dissectors/packet-sabp.c
244         dissectors/packet-smrse.c
245         dissectors/packet-spnego.c
246         dissectors/packet-sv.c
247         dissectors/packet-ulp.c
248         dissectors/packet-wlancertextn.c
249         dissectors/packet-x224.c
250         dissectors/packet-x2ap.c
251         dissectors/packet-x509af.c
252         dissectors/packet-x509ce.c
253         dissectors/packet-x509if.c
254         dissectors/packet-x509sat.c
255 )
256
257 set(DIRTY_ASN1_DISSECTOR_SRC
258         dissectors/packet-ansi_map.c
259         dissectors/packet-gnm.c
260         dissectors/packet-gsm_map.c
261         dissectors/packet-gprscdr.c
262         dissectors/packet-HI2Operations.c
263         dissectors/packet-hnbap.c
264         dissectors/packet-inap.c
265         dissectors/packet-ldap.c
266         dissectors/packet-lte-rrc.c
267         dissectors/packet-nbap.c
268         dissectors/packet-p1.c
269         dissectors/packet-p22.c
270         dissectors/packet-pcap.c
271         dissectors/packet-pkcs12.c
272         dissectors/packet-pres.c
273         dissectors/packet-rnsap.c
274         dissectors/packet-rrc.c
275         dissectors/packet-rrlp.c
276         dissectors/packet-snmp.c
277         dissectors/packet-t125.c
278         dissectors/packet-tcap.c
279         dissectors/packet-tetra.c
280 )
281
282 set(DISSECTOR_SRC
283         dissectors/packet-2dparityfec.c
284         dissectors/packet-3com-njack.c
285         dissectors/packet-3com-xns.c
286         dissectors/packet-3g-a11.c
287         dissectors/packet-6lowpan.c
288         dissectors/packet-9p.c
289         dissectors/packet-aarp.c
290         dissectors/packet-acap.c
291         dissectors/packet-acn.c
292         dissectors/packet-actrace.c
293         dissectors/packet-adwin.c
294         dissectors/packet-adwin-config.c
295         dissectors/packet-afp.c
296         dissectors/packet-afs.c
297         dissectors/packet-agentx.c
298         dissectors/packet-aim.c
299         dissectors/packet-aim-adverts.c
300         dissectors/packet-aim-admin.c
301         dissectors/packet-aim-bos.c
302         dissectors/packet-aim-buddylist.c
303         dissectors/packet-aim-chat.c
304         dissectors/packet-aim-chatnav.c
305         dissectors/packet-aim-directory.c
306         dissectors/packet-aim-email.c
307         dissectors/packet-aim-generic.c
308         dissectors/packet-aim-icq.c
309         dissectors/packet-aim-invitation.c
310         dissectors/packet-aim-location.c
311         dissectors/packet-aim-messaging.c
312         dissectors/packet-aim-oft.c
313         dissectors/packet-aim-popup.c
314         dissectors/packet-aim-signon.c
315         dissectors/packet-aim-ssi.c
316         dissectors/packet-aim-sst.c
317         dissectors/packet-aim-stats.c
318         dissectors/packet-aim-translate.c
319         dissectors/packet-aim-userlookup.c
320         dissectors/packet-airopeek.c
321         dissectors/packet-ajp13.c
322         dissectors/packet-alcap.c
323         dissectors/packet-amqp.c
324         dissectors/packet-amr.c
325         dissectors/packet-ancp.c
326         dissectors/packet-ans.c
327         dissectors/packet-ansi_637.c
328         dissectors/packet-ansi_683.c
329         dissectors/packet-ansi_801.c
330         dissectors/packet-ansi_a.c
331         dissectors/packet-aodv.c
332         dissectors/packet-aoe.c
333         dissectors/packet-ap1394.c
334         dissectors/packet-app-pkix-cert.c
335         dissectors/packet-applemidi.c
336         dissectors/packet-arcnet.c
337         dissectors/packet-armagetronad.c
338         dissectors/packet-arp.c
339         dissectors/packet-artnet.c
340         dissectors/packet-aruba-adp.c
341         dissectors/packet-aruba-erm.c
342         dissectors/packet-aruba-papi.c
343         dissectors/packet-asap.c
344         dissectors/packet-ascend.c
345         dissectors/packet-asf.c
346         dissectors/packet-assa_r3.c
347         dissectors/packet-atalk.c
348         dissectors/packet-atm.c
349         dissectors/packet-atmtcp.c
350         dissectors/packet-auto_rp.c
351         dissectors/packet-ax4000.c
352         dissectors/packet-ayiya.c
353         dissectors/packet-bacapp.c
354         dissectors/packet-bacnet.c
355         dissectors/packet-banana.c
356         dissectors/packet-bat.c
357         dissectors/packet-batadv.c
358         dissectors/packet-bctp.c
359         dissectors/packet-beep.c
360         dissectors/packet-ber.c
361         dissectors/packet-bfd.c
362         dissectors/packet-bgp.c
363         dissectors/packet-bittorrent.c
364         dissectors/packet-bjnp.c
365         dissectors/packet-bofl.c
366         dissectors/packet-bootp.c
367         dissectors/packet-bootparams.c
368         dissectors/packet-bpdu.c
369         dissectors/packet-brdwlk.c
370         dissectors/packet-bssap.c
371         dissectors/packet-bssgp.c
372         dissectors/packet-btamp.c
373         dissectors/packet-bthci_acl.c
374         dissectors/packet-bthci_cmd.c
375         dissectors/packet-bthci_evt.c
376         dissectors/packet-bthci_sco.c
377         dissectors/packet-btl2cap.c
378         dissectors/packet-btobex.c
379         dissectors/packet-btrfcomm.c
380         dissectors/packet-btsdp.c
381         dissectors/packet-bvlc.c
382         dissectors/packet-calcappprotocol.c
383         dissectors/packet-capwap.c
384         dissectors/packet-cast.c
385         dissectors/packet-catapult-dct2000.c
386         dissectors/packet-ccsds.c
387         dissectors/packet-cdp.c
388         dissectors/packet-cfm.c
389         dissectors/packet-cgmp.c
390         dissectors/packet-chdlc.c
391         dissectors/packet-cigi.c
392         dissectors/packet-cimd.c
393         dissectors/packet-cimetrics.c
394         dissectors/packet-cip.c
395         dissectors/packet-cisco-erspan.c
396         dissectors/packet-cisco-oui.c
397         dissectors/packet-cisco-sm.c
398         dissectors/packet-cisco-wids.c
399         dissectors/packet-classicstun.c
400         dissectors/packet-clearcase.c
401         dissectors/packet-clip.c
402         dissectors/packet-clnp.c
403         dissectors/packet-cmpp.c
404         dissectors/packet-coap.c
405         dissectors/packet-collectd.c
406         dissectors/packet-componentstatus.c
407         dissectors/packet-cops.c
408         dissectors/packet-cosine.c
409         dissectors/packet-cpfi.c
410         dissectors/packet-cpha.c
411         dissectors/packet-csm-encaps.c
412         dissectors/packet-ctdb.c
413         dissectors/packet-cups.c
414         dissectors/packet-daap.c
415         dissectors/packet-data.c
416         dissectors/packet-daytime.c
417         dissectors/packet-db-lsp.c
418         dissectors/packet-dcc.c
419         dissectors/packet-dccp.c
420         dissectors/packet-dcerpc-bossvr.c
421         dissectors/packet-dcerpc-browser.c
422         dissectors/packet-dcerpc-cds_clerkserver.c
423         dissectors/packet-dcerpc-cds_solicit.c
424         dissectors/packet-dcerpc-conv.c
425         dissectors/packet-dcerpc-cprpc_server.c
426         dissectors/packet-dcerpc-dce122.c
427         dissectors/packet-dcerpc-dtsprovider.c
428         dissectors/packet-dcerpc-dtsstime_req.c
429         dissectors/packet-dcerpc-epm.c
430         dissectors/packet-dcerpc-fileexp.c
431         dissectors/packet-dcerpc-fldb.c
432         dissectors/packet-dcerpc-frsapi.c
433         dissectors/packet-dcerpc-frsrpc.c
434         dissectors/packet-dcerpc-ftserver.c
435         dissectors/packet-dcerpc-icl_rpc.c
436         dissectors/packet-dcerpc-krb5rpc.c
437         dissectors/packet-dcerpc-llb.c
438         dissectors/packet-dcerpc-mapi.c
439         dissectors/packet-dcerpc-messenger.c
440         dissectors/packet-dcerpc-mgmt.c
441         dissectors/packet-dcerpc-ndr.c
442         dissectors/packet-dcerpc-netlogon.c
443         dissectors/packet-dcerpc-pnp.c
444         dissectors/packet-dcerpc-rdaclif.c
445         dissectors/packet-dcerpc-rep_proc.c
446         dissectors/packet-dcerpc-roverride.c
447         dissectors/packet-dcerpc-rpriv.c
448         dissectors/packet-dcerpc-rras.c
449         dissectors/packet-dcerpc-rs_acct.c
450         dissectors/packet-dcerpc-rs_attr.c
451         dissectors/packet-dcerpc-rs_attr_schema.c
452         dissectors/packet-dcerpc-rs_bind.c
453         dissectors/packet-dcerpc-rs_misc.c
454         dissectors/packet-dcerpc-rs_pgo.c
455         dissectors/packet-dcerpc-rs_plcy.c
456         dissectors/packet-dcerpc-rs_prop_acct.c
457         dissectors/packet-dcerpc-rs_prop_acl.c
458         dissectors/packet-dcerpc-rs_prop_attr.c
459         dissectors/packet-dcerpc-rs_prop_pgo.c
460         dissectors/packet-dcerpc-rs_prop_plcy.c
461         dissectors/packet-dcerpc-rs_pwd_mgmt.c
462         dissectors/packet-dcerpc-rs_repadm.c
463         dissectors/packet-dcerpc-rs_replist.c
464         dissectors/packet-dcerpc-rs_repmgr.c
465         dissectors/packet-dcerpc-rs_unix.c
466         dissectors/packet-dcerpc-rsec_login.c
467         dissectors/packet-dcerpc-samr.c
468         dissectors/packet-dcerpc-secidmap.c
469         dissectors/packet-dcerpc-spoolss.c
470         dissectors/packet-dcerpc-svcctl.c
471         dissectors/packet-dcerpc-tapi.c
472         dissectors/packet-dcerpc-tkn4int.c
473         dissectors/packet-dcerpc-trksvr.c
474         dissectors/packet-dcerpc-ubikdisk.c
475         dissectors/packet-dcerpc-ubikvote.c
476         dissectors/packet-dcerpc-update.c
477         dissectors/packet-dcerpc.c
478         dissectors/packet-dcm.c
479         dissectors/packet-dcom.c
480         dissectors/packet-dcom-dispatch.c
481         dissectors/packet-dcom-oxid.c
482         dissectors/packet-dcom-remact.c
483         dissectors/packet-dcom-remunkn.c
484         dissectors/packet-dcom-sysact.c
485         dissectors/packet-dcp-etsi.c
486         dissectors/packet-ddtp.c
487         dissectors/packet-dec-bpdu.c
488         dissectors/packet-dec-dnart.c
489         dissectors/packet-dect.c
490         dissectors/packet-dhcp-failover.c
491         dissectors/packet-dhcpv6.c
492         dissectors/packet-diameter.c
493         dissectors/packet-diameter_3gpp.c
494         dissectors/packet-dis.c
495         dissectors/packet-dis-enums.c
496         dissectors/packet-dis-fields.c
497         dissectors/packet-dis-pdus.c
498         dissectors/packet-diffserv-mpls-common.c
499         dissectors/packet-distcc.c
500         dissectors/packet-dlm3.c
501         dissectors/packet-dlsw.c
502         dissectors/packet-dmp.c
503         dissectors/packet-dnp.c
504         dissectors/packet-dns.c
505         dissectors/packet-dplay.c
506         dissectors/packet-dpnss.c
507         dissectors/packet-dpnss-link.c
508         dissectors/packet-drda.c
509         dissectors/packet-dsi.c
510         dissectors/packet-dtls.c
511         dissectors/packet-dtn.c
512         dissectors/packet-dtp.c
513         dissectors/packet-dtpt.c
514         dissectors/packet-dua.c
515         dissectors/packet-dvbci.c
516         dissectors/packet-dvmrp.c
517         dissectors/packet-e100.c
518         dissectors/packet-e164.c
519         dissectors/packet-e212.c
520         dissectors/packet-eap.c
521         dissectors/packet-eapol.c
522         dissectors/packet-echo.c
523         dissectors/packet-edonkey.c
524         dissectors/packet-erldp.c
525         dissectors/packet-egd.c
526         dissectors/packet-ehs.c
527         dissectors/packet-eigrp.c
528         dissectors/packet-enc.c
529         dissectors/packet-enip.c
530         dissectors/packet-enrp.c
531         dissectors/packet-enttec.c
532         dissectors/packet-epl.c
533         dissectors/packet-epl_v1.c
534         dissectors/packet-epmd.c
535         dissectors/packet-erf.c
536         dissectors/packet-esio.c
537         dissectors/packet-esis.c
538         dissectors/packet-etch.c
539         dissectors/packet-eth.c
540         dissectors/packet-etherip.c
541         dissectors/packet-ethertype.c
542         dissectors/packet-evrc.c
543         dissectors/packet-exec.c
544         dissectors/packet-extreme.c
545         dissectors/packet-fc.c
546         dissectors/packet-fcct.c
547         dissectors/packet-fcdns.c
548         dissectors/packet-fcels.c
549         dissectors/packet-fcfcs.c
550         dissectors/packet-fcfzs.c
551         dissectors/packet-fcgi.c
552         dissectors/packet-fcip.c
553         dissectors/packet-fclctl.c
554         dissectors/packet-fcoe.c
555         dissectors/packet-fcoib.c
556         dissectors/packet-fcp.c
557         dissectors/packet-fcsb3.c
558         dissectors/packet-fcsp.c
559         dissectors/packet-fcswils.c
560         dissectors/packet-fddi.c
561         dissectors/packet-fefd.c
562         dissectors/packet-ff.c
563         dissectors/packet-fip.c
564         dissectors/packet-fix.c
565         dissectors/packet-flip.c
566         dissectors/packet-fmp.c
567         dissectors/packet-fmp_notify.c
568         dissectors/packet-force10-oui.c
569         dissectors/packet-fp_hint.c
570         dissectors/packet-fr.c
571         dissectors/packet-fractalgeneratorprotocol.c
572         dissectors/packet-frame.c
573         dissectors/packet-ftp.c
574         dissectors/packet-fw1.c
575         dissectors/packet-g723.c
576         dissectors/packet-gdsdb.c
577         dissectors/packet-gift.c
578         dissectors/packet-giop.c
579         dissectors/packet-git.c
580         dissectors/packet-glbp.c
581         dissectors/packet-gmhdr.c
582         dissectors/packet-gmrp.c
583         dissectors/packet-gnutella.c
584         dissectors/packet-gopher.c
585         dissectors/packet-gpef.c
586         dissectors/packet-gprs-llc.c
587         dissectors/packet-gre.c
588         dissectors/packet-gsm_a_bssmap.c
589         dissectors/packet-gsm_a_common.c
590         dissectors/packet-gsm_a_dtap.c
591         dissectors/packet-gsm_a_gm.c
592         dissectors/packet-gsm_a_rp.c
593         dissectors/packet-gsm_a_rr.c
594         dissectors/packet-gsm_ipa.c
595         dissectors/packet-gsm_bsslap.c
596         dissectors/packet-gsm_bssmap_le.c
597         dissectors/packet-gsm_sms.c
598         dissectors/packet-gsm_sms_ud.c
599         dissectors/packet-gsm_um.c
600         dissectors/packet-gsmtap.c
601         dissectors/packet-gssapi.c
602         dissectors/packet-gtp.c
603         dissectors/packet-gtpv2.c
604         dissectors/packet-gvcp.c
605         dissectors/packet-gvrp.c
606         dissectors/packet-h1.c
607         dissectors/packet-h221_nonstd.c
608         dissectors/packet-h223.c
609         dissectors/packet-h248_annex_c.c
610         dissectors/packet-h248_annex_e.c
611         dissectors/packet-h248_3gpp.c
612         dissectors/packet-h248_7.c
613         dissectors/packet-h248_10.c
614         dissectors/packet-h248_q1950.c
615         dissectors/packet-h261.c
616         dissectors/packet-h263.c
617         dissectors/packet-h263p.c
618         dissectors/packet-h264.c
619         dissectors/packet-hci_h1.c
620         dissectors/packet-hci_h4.c
621         dissectors/packet-hclnfsd.c
622         dissectors/packet-hilscher.c
623         dissectors/packet-hip.c
624         dissectors/packet-homeplug.c
625         dissectors/packet-hp-erm.c
626         dissectors/packet-hpext.c
627         dissectors/packet-hpsw.c
628         dissectors/packet-hpteam.c
629         dissectors/packet-hsrp.c
630         dissectors/packet-http.c
631         dissectors/packet-hyperscsi.c
632         dissectors/packet-i2c.c
633         dissectors/packet-iana-oui.c
634         dissectors/packet-iapp.c
635         dissectors/packet-iax2.c
636         dissectors/packet-infiniband_sdp.c
637         dissectors/packet-icap.c
638         dissectors/packet-icep.c
639         dissectors/packet-icmp.c
640         dissectors/packet-icmpv6.c
641         dissectors/packet-icp.c
642         dissectors/packet-icq.c
643         dissectors/packet-idp.c
644         dissectors/packet-iec104.c
645         dissectors/packet-ieee1722.c
646         dissectors/packet-ieee80211.c
647         dissectors/packet-ieee802154.c
648         dissectors/packet-ieee8021ah.c
649         dissectors/packet-ieee8023.c
650         dissectors/packet-ieee802a.c
651         dissectors/packet-ifcp.c
652         dissectors/packet-igap.c
653         dissectors/packet-igmp.c
654         dissectors/packet-igrp.c
655         dissectors/packet-image-gif.c
656         dissectors/packet-image-jfif.c
657         dissectors/packet-image-png.c
658         dissectors/packet-imap.c
659         dissectors/packet-imf.c
660         dissectors/packet-infiniband.c
661         dissectors/packet-ipars.c
662         dissectors/packet-ip.c
663         dissectors/packet-ipdc.c
664         dissectors/packet-ipfc.c
665         dissectors/packet-ipmi.c
666         dissectors/packet-ipmi-session.c
667         dissectors/packet-ipnet.c
668         dissectors/packet-ipp.c
669         dissectors/packet-ipsec.c
670         dissectors/packet-ipsec-tcp.c
671         dissectors/packet-ipsec-udp.c
672         dissectors/packet-ipsi-ctl.c
673         dissectors/packet-ipv6.c
674         dissectors/packet-ipvs-syncd.c
675         dissectors/packet-ipx.c
676         dissectors/packet-ipxwan.c
677         dissectors/packet-irc.c
678         dissectors/packet-isakmp.c
679         dissectors/packet-iscsi.c
680         dissectors/packet-isdn.c
681         dissectors/packet-isis-clv.c
682         dissectors/packet-isis-hello.c
683         dissectors/packet-isis-lsp.c
684         dissectors/packet-isis-snp.c
685         dissectors/packet-isis.c
686         dissectors/packet-isl.c
687         dissectors/packet-ismacryp.c
688         dissectors/packet-ismp.c
689         dissectors/packet-isns.c
690         dissectors/packet-isup.c
691         dissectors/packet-itdm.c
692         dissectors/packet-iua.c
693         dissectors/packet-iuup.c
694         dissectors/packet-iwarp-ddp-rdmap.c
695         dissectors/packet-iwarp-mpa.c
696         dissectors/packet-jabber.c
697         dissectors/packet-jmirror.c
698         dissectors/packet-jpeg.c
699         dissectors/packet-json.c
700         dissectors/packet-juniper.c
701         dissectors/packet-jxta.c
702         dissectors/packet-k12.c
703         dissectors/packet-kadm5.c
704         dissectors/packet-kdp.c
705         dissectors/packet-kerberos.c
706         dissectors/packet-kerberos4.c
707         dissectors/packet-klm.c
708         dissectors/packet-kingfisher.c
709         dissectors/packet-kink.c
710         dissectors/packet-kismet.c
711         dissectors/packet-kpasswd.c
712         dissectors/packet-l2tp.c
713         dissectors/packet-lanforge.c
714         dissectors/packet-lapb.c
715         dissectors/packet-lapbether.c
716         dissectors/packet-lapd.c
717         dissectors/packet-lapdm.c
718         dissectors/packet-laplink.c
719         dissectors/packet-l1-events.c
720         dissectors/packet-ldp.c
721         dissectors/packet-ldss.c
722         dissectors/packet-lge_monitor.c
723         dissectors/packet-linx.c
724         dissectors/packet-lisp-data.c
725         dissectors/packet-llc.c
726         dissectors/packet-lldp.c
727         dissectors/packet-llt.c
728         dissectors/packet-lmi.c
729         dissectors/packet-lmp.c
730         dissectors/packet-loop.c
731         dissectors/packet-lpd.c
732         dissectors/packet-lsc.c
733         dissectors/packet-ltp.c
734         dissectors/packet-lwapp.c
735         dissectors/packet-lwres.c
736         dissectors/packet-m2pa.c
737         dissectors/packet-m2tp.c
738         dissectors/packet-m2ua.c
739         dissectors/packet-m3ua.c
740         dissectors/packet-mac-lte.c
741         dissectors/packet-mactelnet.c
742         dissectors/packet-maccontrol.c
743         dissectors/packet-manolito.c
744         dissectors/packet-mbtcp.c
745         dissectors/packet-mdshdr.c
746         dissectors/packet-media.c
747         dissectors/packet-megaco.c
748         dissectors/packet-memcache.c
749         dissectors/packet-mesh.c
750         dissectors/packet-meta.c
751         dissectors/packet-mgcp.c
752         dissectors/packet-mikey.c
753         dissectors/packet-miop.c
754         dissectors/packet-mip.c
755         dissectors/packet-mip6.c
756         dissectors/packet-ms-mms.c
757         dissectors/packet-mmse.c
758         dissectors/packet-mndp.c
759         dissectors/packet-mongo.c
760         dissectors/packet-mount.c
761         dissectors/packet-mp2t.c
762         dissectors/packet-mp4ves.c
763         dissectors/packet-mpeg1.c
764         dissectors/packet-mpls.c
765         dissectors/packet-mpls-echo.c
766         dissectors/packet-mq.c
767         dissectors/packet-mq-pcf.c
768         dissectors/packet-mrdisc.c
769         dissectors/packet-mrp-msrp.c
770         dissectors/packet-msdp.c
771         dissectors/packet-msnlb.c
772         dissectors/packet-msn-messenger.c
773         dissectors/packet-msnip.c
774         dissectors/packet-msproxy.c
775         dissectors/packet-msrp.c
776         dissectors/packet-mstp.c
777         dissectors/packet-mtp2.c
778         dissectors/packet-mtp3.c
779         dissectors/packet-mtp3mg.c
780         dissectors/packet-multipart.c
781         dissectors/packet-mysql.c
782         dissectors/packet-nas_eps.c
783         dissectors/packet-nasdaq-itch.c
784         dissectors/packet-nat-pmp.c
785         dissectors/packet-nb_rtpmux.c
786         dissectors/packet-nbd.c
787         dissectors/packet-nbipx.c
788         dissectors/packet-nbns.c
789         dissectors/packet-ncp.c
790         packet-ncp2222.c
791         dissectors/packet-ncp-nmas.c
792         dissectors/packet-ncp-sss.c
793         dissectors/packet-ncs.c
794         dissectors/packet-ndmp.c
795         dissectors/packet-ndp.c
796         dissectors/packet-ndps.c
797         dissectors/packet-netbios.c
798         dissectors/packet-netdump.c
799         dissectors/packet-netflow.c
800         dissectors/packet-netmon-802_11.c
801         dissectors/packet-netperfmeter.c
802         dissectors/packet-netsync.c
803         dissectors/packet-nettl.c
804         dissectors/packet-newmail.c
805         dissectors/packet-nfs.c
806         dissectors/packet-nfsacl.c
807         dissectors/packet-nfsauth.c
808         dissectors/packet-nhrp.c
809         dissectors/packet-nisplus.c
810         dissectors/packet-nlm.c
811         dissectors/packet-nlsp.c
812         dissectors/packet-nntp.c
813         dissectors/packet-nstrace.c
814         dissectors/packet-nsip.c
815         dissectors/packet-nsrp.c
816         dissectors/packet-nt-oui.c
817         dissectors/packet-nt-tpcp.c
818         dissectors/packet-ntlmssp.c
819         dissectors/packet-ntp.c
820         dissectors/packet-null.c
821         dissectors/packet-nwmtp.c
822         dissectors/packet-oicq.c
823         dissectors/packet-olsr.c
824         dissectors/packet-omapi.c
825         dissectors/packet-omron-fins.c
826         dissectors/packet-osi-options.c
827         dissectors/packet-osi.c
828         dissectors/packet-ositp.c
829         dissectors/packet-ospf.c
830         dissectors/packet-p_mul.c
831         dissectors/packet-packetbb.c
832         dissectors/packet-packetlogger.c
833         dissectors/packet-pagp.c
834         dissectors/packet-paltalk.c
835         dissectors/packet-pana.c
836         dissectors/packet-pcep.c
837         dissectors/packet-pcli.c
838         dissectors/packet-pcnfsd.c
839         dissectors/packet-pdcp-lte.c
840         dissectors/packet-per.c
841         dissectors/packet-pflog.c
842         dissectors/packet-pgm.c
843         dissectors/packet-pgsql.c
844         dissectors/packet-pim.c
845         dissectors/packet-pingpongprotocol.c
846         dissectors/packet-pktgen.c
847         dissectors/packet-pktc.c
848         dissectors/packet-pnrp.c
849         dissectors/packet-pop.c
850         dissectors/packet-portmap.c
851         dissectors/packet-ppi.c
852         dissectors/packet-ppi-geolocation-common.c
853         dissectors/packet-ppi-geolocation-common.h
854         dissectors/packet-ppi-antenna.c
855         dissectors/packet-ppp.c
856         dissectors/packet-pppoe.c
857         dissectors/packet-pptp.c
858         dissectors/packet-prp.c
859         dissectors/packet-ptp.c
860         dissectors/packet-pvfs2.c
861         dissectors/packet-pw-common.c
862         dissectors/packet-pw-eth.c
863         dissectors/packet-pw-hdlc.c
864         dissectors/packet-pw-fr.c
865         dissectors/packet-pw-atm.c
866         dissectors/packet-pw-cesopsn.c
867         dissectors/packet-pw-satop.c
868         dissectors/packet-q2931.c
869         dissectors/packet-q708.c
870         dissectors/packet-q931.c
871         dissectors/packet-q933.c
872         dissectors/packet-qllc.c
873         dissectors/packet-quake.c
874         dissectors/packet-quake2.c
875         dissectors/packet-quake3.c
876         dissectors/packet-quakeworld.c
877         dissectors/packet-radius.c
878         dissectors/packet-radius_packetcable.c
879         dissectors/packet-radiotap.c
880         dissectors/packet-radiotap-iter.c
881         dissectors/packet-raw.c
882         dissectors/packet-rdm.c
883         dissectors/packet-rdt.c
884         dissectors/packet-redback.c
885         dissectors/packet-redbackli.c
886         dissectors/packet-reload.c
887         dissectors/packet-reload-framing.c
888         dissectors/packet-retix-bpdu.c
889         dissectors/packet-rfc2190.c
890         dissectors/packet-rgmp.c
891         dissectors/packet-rip.c
892         dissectors/packet-ripng.c
893         dissectors/packet-rlc.c
894         dissectors/packet-rlc-lte.c
895         dissectors/packet-rlm.c
896         dissectors/packet-rlogin.c
897         dissectors/packet-rmcp.c
898         dissectors/packet-rmi.c
899         dissectors/packet-rmp.c
900         dissectors/packet-rmt-alc.c
901         dissectors/packet-rmt-common.c
902         dissectors/packet-rmt-fec.c
903         dissectors/packet-rmt-lct.c
904         dissectors/packet-rmt-norm.c
905         dissectors/packet-roofnet.c
906         dissectors/packet-rpc.c
907         dissectors/packet-rpcap.c
908         dissectors/packet-rpl.c
909         dissectors/packet-rquota.c
910         dissectors/packet-rsh.c
911         dissectors/packet-rsip.c
912         dissectors/packet-rsl.c
913         dissectors/packet-rstat.c
914         dissectors/packet-rsvp.c
915         dissectors/packet-rsync.c
916         dissectors/packet-rtcp.c
917         dissectors/packet-rtmpt.c
918         dissectors/packet-rtnet.c
919         dissectors/packet-rtp-events.c
920         dissectors/packet-rtp.c
921         dissectors/packet-rtps.c
922         dissectors/packet-rtps2.c
923         dissectors/packet-rtsp.c
924         dissectors/packet-rudp.c
925         dissectors/packet-rwall.c
926         dissectors/packet-rx.c
927         dissectors/packet-s5066.c
928         dissectors/packet-sadmind.c
929         dissectors/packet-sametime.c
930         dissectors/packet-sap.c
931         dissectors/packet-sasp.c
932         dissectors/packet-sbus.c
933         dissectors/packet-sccp.c
934         dissectors/packet-sccpmg.c
935         dissectors/packet-scop.c
936         dissectors/packet-scsi.c
937         dissectors/packet-scsi-mmc.c
938         dissectors/packet-scsi-osd.c
939         dissectors/packet-scsi-sbc.c
940         dissectors/packet-scsi-smc.c
941         dissectors/packet-scsi-ssc.c
942         dissectors/packet-sctp.c
943         dissectors/packet-sdlc.c
944         dissectors/packet-sdp.c
945         dissectors/packet-sebek.c
946         dissectors/packet-ses.c
947         dissectors/packet-sflow.c
948         dissectors/packet-sgsap.c
949         dissectors/packet-simulcrypt.c
950         dissectors/packet-sip.c
951         dissectors/packet-sigcomp.c
952         dissectors/packet-sipfrag.c
953         dissectors/packet-sita.c
954         dissectors/packet-skinny.c
955         dissectors/packet-slimp3.c
956         dissectors/packet-sll.c
957         dissectors/packet-slowprotocols.c
958         dissectors/packet-slsk.c
959         dissectors/packet-smb-browse.c
960         dissectors/packet-smb-common.c
961         dissectors/packet-smb-logon.c
962         dissectors/packet-smb-mailslot.c
963         dissectors/packet-smb-pipe.c
964         dissectors/packet-smb-sidsnooping.c
965         dissectors/packet-smb.c
966         dissectors/packet-smb2.c
967         dissectors/packet-smpp.c
968         dissectors/packet-smtp.c
969         dissectors/packet-sna.c
970         dissectors/packet-snaeth.c
971         dissectors/packet-sndcp.c
972         dissectors/packet-sndcp-xid.c
973         dissectors/packet-socketcan.c
974         dissectors/packet-socks.c
975         dissectors/packet-nasdaq-soup.c
976         dissectors/packet-spp.c
977         dissectors/packet-spray.c
978         dissectors/packet-srp.c
979         dissectors/packet-sscf-nni.c
980         dissectors/packet-srvloc.c
981         dissectors/packet-sscop.c
982         dissectors/packet-scriptingservice.c
983         dissectors/packet-ssh.c
984         dissectors/packet-ssl.c
985         dissectors/packet-ssl-utils.c
986         dissectors/packet-starteam.c
987         dissectors/packet-stat-notify.c
988         dissectors/packet-stat.c
989         dissectors/packet-stun.c
990         dissectors/packet-sua.c
991         dissectors/packet-symantec.c
992         dissectors/packet-synergy.c
993         dissectors/packet-synphasor.c
994         dissectors/packet-syslog.c
995         dissectors/packet-t30.c
996         dissectors/packet-t38.c
997         dissectors/packet-tacacs.c
998         dissectors/packet-tali.c
999         dissectors/packet-tapa.c
1000         dissectors/packet-tcp.c
1001         dissectors/packet-tdmoe.c
1002         dissectors/packet-tds.c
1003         dissectors/packet-teamspeak2.c
1004         dissectors/packet-teimanagement.c
1005         dissectors/packet-teklink.c
1006         dissectors/packet-telnet.c
1007         dissectors/packet-teredo.c
1008         dissectors/packet-text-media.c
1009         dissectors/packet-telkonet.c
1010         dissectors/packet-tftp.c
1011         dissectors/packet-time.c
1012         dissectors/packet-tipc.c
1013         dissectors/packet-tivoconnect.c
1014         dissectors/packet-tnef.c
1015         dissectors/packet-tns.c
1016         dissectors/packet-tn3270.c
1017         dissectors/packet-tn5250.c
1018         dissectors/packet-tpkt.c
1019         dissectors/packet-tpncp.c
1020         dissectors/packet-tr.c
1021         dissectors/packet-trill.c
1022         dissectors/packet-trmac.c
1023         dissectors/packet-tsp.c
1024         dissectors/packet-tte.c
1025         dissectors/packet-tte-pcf.c
1026         dissectors/packet-turbocell.c
1027         dissectors/packet-turnchannel.c
1028         dissectors/packet-tuxedo.c
1029         dissectors/packet-tzsp.c
1030         dissectors/packet-ucp.c
1031         dissectors/packet-udld.c
1032         dissectors/packet-uma.c
1033         dissectors/packet-udp.c
1034         dissectors/packet-usb.c
1035         dissectors/packet-usb-masstorage.c
1036         dissectors/packet-usb-hid.c
1037         dissectors/packet-usb-hub.c
1038         dissectors/packet-umts_fp.c
1039         dissectors/packet-umts_mac.c
1040         dissectors/packet-user_encap.c
1041         dissectors/packet-uts.c
1042         dissectors/packet-v120.c
1043         dissectors/packet-v5ua.c
1044         dissectors/packet-v52.c
1045         dissectors/packet-vcdu.c
1046         dissectors/packet-vicp.c
1047         dissectors/packet-vines.c
1048         dissectors/packet-vj.c
1049         dissectors/packet-vmlab.c
1050         dissectors/packet-vnc.c
1051         dissectors/packet-vrrp.c
1052         dissectors/packet-vtp.c
1053         dissectors/packet-vxi11.c
1054         dissectors/packet-wai.c
1055         dissectors/packet-wap.c
1056         dissectors/packet-wassp.c
1057         dissectors/packet-wbxml.c
1058         dissectors/packet-wccp.c
1059         dissectors/packet-wcp.c
1060         dissectors/packet-wfleet-hdlc.c
1061         dissectors/packet-who.c
1062         dissectors/packet-wifi-p2p.c
1063         dissectors/packet-windows-common.c
1064         dissectors/packet-winsrepl.c
1065         dissectors/packet-wlccp.c
1066         dissectors/packet-wol.c
1067         dissectors/packet-wow.c
1068         dissectors/packet-wps.c
1069         dissectors/packet-wsmp.c
1070         dissectors/packet-wsp.c
1071         dissectors/packet-wtls.c
1072         dissectors/packet-wtp.c
1073         dissectors/packet-x11.c
1074         dissectors/packet-x25.c
1075         dissectors/packet-x29.c
1076         dissectors/packet-xcsl.c
1077         dissectors/packet-xdmcp.c
1078         dissectors/packet-xml.c
1079         dissectors/packet-xot.c
1080         dissectors/packet-xtp.c
1081         dissectors/packet-xyplex.c
1082         dissectors/packet-yhoo.c
1083         dissectors/packet-ymsg.c
1084         dissectors/packet-ypbind.c
1085         dissectors/packet-yppasswd.c
1086         dissectors/packet-ypserv.c
1087         dissectors/packet-ypxfr.c
1088         dissectors/packet-zbee-aps.c
1089         dissectors/packet-zbee-security.c
1090         dissectors/packet-zbee-nwk.c
1091         dissectors/packet-zbee-zcl.c
1092         dissectors/packet-zbee-zdp.c
1093         dissectors/packet-zbee-zdp-binding.c
1094         dissectors/packet-zbee-zdp-discovery.c
1095         dissectors/packet-zbee-zdp-management.c
1096         dissectors/packet-zebra.c
1097         dissectors/packet-zep.c
1098         dissectors/packet-ziop.c
1099         dissectors/packet-zrtp.c
1100 )
1101
1102 # IPMI sub-parsers for each network function code
1103 set(IPMI_SUBPARSERS
1104         dissectors/packet-ipmi-app.c
1105         dissectors/packet-ipmi-bridge.c
1106         dissectors/packet-ipmi-chassis.c
1107         dissectors/packet-ipmi-picmg.c
1108         dissectors/packet-ipmi-se.c
1109         dissectors/packet-ipmi-storage.c
1110         dissectors/packet-ipmi-transport.c
1111         dissectors/packet-ipmi-pps.c
1112         dissectors/packet-ipmi-update.c
1113 )
1114
1115 set(DISSECTOR_SUPPORT_SRC
1116         ${IPMI_SUBPARSERS}
1117         dissectors/packet-dcerpc-nt.c
1118         register.c
1119 )
1120
1121 set(LIBWIRESHARK_ASM_FILES
1122         asm_utils.c
1123 # todo
1124 #       !IFDEF NASM
1125 #       asm_utils_win32_x86.obj: asm_utils_win32_x86.asm
1126 #               $(NASM) -f $(WIRESHARK_TARGET_PLATFORM) -o $@ $?
1127 #       !ENDIF
1128 #       ...
1129 #       !IF defined(NASM) && "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
1130 #               asm_utils_win32_x86.obj
1131 #       !ELSE
1132 #               asm_utils.obj
1133 #       !ENDIF
1134 )
1135
1136 set(DISSECTOR_FILES
1137         ${DISSECTOR_SRC}
1138         ${PIDL_DISSECTOR_SRC}
1139         ${PIDL_DISSECTOR_AUTOGEN_SRC}
1140         ${DIRTY_PIDL_DISSECTOR_SRC}
1141         ${ASN1_DISSECTOR_SRC}
1142         ${DIRTY_ASN1_DISSECTOR_SRC}
1143 )
1144
1145 register_dissector_files(register.c
1146         dissectors
1147         ${DISSECTOR_FILES}
1148 )
1149
1150 set(FTYPE_FILES
1151         ftypes/ftypes.c
1152         ftypes/ftype-bytes.c
1153         ftypes/ftype-double.c
1154         ftypes/ftype-integer.c
1155         ftypes/ftype-ipv4.c
1156         ftypes/ftype-guid.c
1157         ftypes/ftype-none.c
1158         ftypes/ftype-pcre.c
1159         ftypes/ftype-string.c
1160         ftypes/ftype-time.c
1161         ftypes/ftype-tvbuff.c
1162 )
1163
1164 ADD_CUSTOM_COMMAND(
1165     OUTPUT
1166       sminmpec.c
1167     COMMAND ${PERL_EXECUTABLE}
1168       ${CMAKE_SOURCE_DIR}/tools/make-sminmpec.pl
1169       ${CMAKE_CURRENT_SOURCE_DIR}/enterprise-numbers
1170       sminmpec.c
1171     DEPENDS
1172       enterprise-numbers
1173       ${CMAKE_SOURCE_DIR}/tools/make-sminmpec.pl
1174 )
1175
1176 set(LIBWIRESHARK_FILES
1177         addr_and_mask.c
1178         addr_resolv.c
1179         address_to_str.c
1180         adler32.c
1181         afn.c
1182         asn1.c
1183         atalk-utils.c
1184         base64.c
1185         bitswap.c
1186         camel-persistentdata.c
1187         charsets.c
1188         circuit.c
1189         codecs.c
1190         column.c
1191         column-utils.c
1192         conversation.c
1193         crc10.c
1194         crc16.c
1195         crc32.c
1196         crc6.c
1197         crcdrm.c
1198         dissector_filters.c
1199         emem.c
1200         epan.c
1201         ex-opt.c
1202         except.c
1203         expert.c
1204         filesystem.c
1205         follow.c
1206         frame_data.c
1207         frequency-utils.c
1208         funnel.c
1209         gcp.c
1210         geoip_db.c
1211         golay.c
1212         guid-utils.c
1213         h225-persistentdata.c
1214         in_cksum.c
1215         ipproto.c
1216         ipv4.c
1217         next_tvb.c
1218         nstime.c
1219         oids.c
1220         osi-utils.c
1221         packet.c
1222         plugins.c
1223         prefs.c
1224         proto.c
1225         range.c
1226         reassemble.c
1227         reedsolomon.c
1228         report_err.c
1229         req_resp_hdrs.c
1230         sigcomp_state_hdlr.c
1231         sigcomp-udvm.c
1232         sminmpec.c
1233         sna-utils.c
1234         stat_cmd_args.c
1235         stats_tree.c
1236         strutil.c
1237         stream.c
1238         t35.c
1239         tap.c
1240         tcap-persistentdata.c
1241         timestamp.c
1242         tfs.c
1243         to_str.c
1244         tvbparse.c
1245         tvbuff.c
1246         uat.c
1247         value_string.c
1248         xdlc.c
1249 )
1250
1251 set(LIBWIRESHARK_CLEAN_FILES
1252         ${LIBWIRESHARK_FILES}
1253 )
1254
1255 add_lex_files(LIBWIRESHARK_FILES
1256         diam_dict.l
1257         dtd_parse.l
1258         dtd_preparse.l
1259         radius_dict.l
1260         uat_load.l
1261 )
1262
1263 add_lemon_files(LIBWIRESHARK_FILES
1264         dtd_grammar.lemon
1265 )
1266
1267 set(epan_LIBS
1268         wiretap
1269         wsutil
1270 #       @SSL_LIBS@
1271         ${PCRE_LIBRARIES}
1272         ${GLIB2_LIBRARIES}
1273         ${PCAP_LIBRARIES}
1274 #       @SOCKET_LIBS@
1275 #       @NSL_LIBS@
1276         ${CARES_LIBRARIES}
1277         ${ADNS_LIBRARIES}
1278         ${KERBEROS_LIBRARIES}
1279 #       @FRAMEWORKS@
1280         ${GEOIP_LIBRARIES}
1281         ${GCRYPT_LIBRARIES}
1282         ${GNUTLS_LIBRARIES}
1283         ${SMI_LIBRARIES}
1284         ${M_LIBRARIES}
1285         ${LUA_LIBRARIES}
1286         ${PYTHON_LIBRARIES}
1287 )
1288
1289 set(CLEAN_FILES
1290         # Needed to trigger build of the include files for x11
1291         #x11-declarations.h
1292         #x11-register-info.h
1293         ${LIBWIRESHARK_CLEAN_FILES}
1294         ${CRC_FILES}
1295         ${CRYPT_FILES}
1296         ${DFILTER_CLEAN_FILES}
1297         ${FTYPE_FILES}
1298         # ${DISSECTOR_FILES} contains dirty files
1299         ${DISSECTOR_SRC}
1300         ${PIDL_DISSECTOR_SRC}
1301         ${PIDL_DISSECTOR_AUTOGEN_SRC}
1302         ${ASN1_DISSECTOR_SRC}
1303         # ${DISSECTOR_FILES } end
1304         ${DISSECTOR_SUPPORT_SRC}
1305         ${LIBWIRESHARK_ASM_FILES}
1306         ${WSLUA_FILES}
1307         ${WSPYTHON_FILES}
1308 )
1309
1310 if (WERROR)
1311     set_source_files_properties(
1312         ${CLEAN_FILES}
1313         PROPERTIES
1314         COMPILE_FLAGS -Werror
1315     )
1316 endif()
1317
1318 add_library(epan ${LINK_MODE_LIB}
1319         # Needed to trigger build of the include files for x11
1320         #x11-declarations.h
1321         #x11-register-info.h
1322         ${LIBWIRESHARK_FILES}
1323         ${CRC_FILES}
1324         ${CRYPT_FILES}
1325         ${DFILTER_FILES}
1326         ${FTYPE_FILES}
1327         ${WSLUA_FILES}
1328         ${WSPYTHON_FILES}
1329         ${DISSECTOR_FILES}
1330         ${DISSECTOR_SUPPORT_SRC}
1331         ${LIBWIRESHARK_ASM_FILES}
1332 )
1333 set_target_properties(epan PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
1334
1335 # By default the name for a library with target name epan will be libepan,
1336 # but Ethereal is now named Wireshark
1337 SET_TARGET_PROPERTIES(epan PROPERTIES OUTPUT_NAME "wireshark")
1338
1339 target_link_libraries(epan ${epan_LIBS})
1340
1341 add_dependencies(epan lemon)
1342
1343 if(NOT ${ENABLE_STATIC})
1344         install(TARGETS epan
1345                 LIBRARY DESTINATION lib
1346                 RUNTIME DESTINATION lib
1347                 ARCHIVE DESTINATION lib
1348         )
1349 endif()
1350