From Yaniv Kaul: SPICE dissector
[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(CRYPT_FILES
43         crypt/airpdcap.c
44         crypt/airpdcap_ccmp.c
45         crypt/airpdcap_debug.c
46         crypt/airpdcap_rijndael.c
47         crypt/airpdcap_tkip.c
48         crypt/crypt-aes.c
49         crypt/crypt-des.c
50         crypt/crypt-md4.c
51         crypt/crypt-md5.c
52         crypt/crypt-rc4.c
53         crypt/crypt-sha1.c
54 )
55
56 set(DFILTER_FILES
57         dfilter/dfilter.c
58         dfilter/dfilter-macro.c
59         dfilter/dfunctions.c
60         dfilter/dfvm.c
61         dfilter/drange.c
62         dfilter/gencode.c
63         dfilter/semcheck.c
64         dfilter/sttype-function.c
65         dfilter/sttype-integer.c
66         dfilter/sttype-pointer.c
67         dfilter/sttype-range.c
68         dfilter/sttype-string.c
69         dfilter/sttype-test.c
70         dfilter/syntax-tree.c
71 )
72
73 set(DFILTER_CLEAN_FILES
74         ${DFILTER_FILES}
75 )
76
77 add_lex_files(DFILTER_FILES
78         dfilter/scanner.l
79 )
80
81 add_lemon_files(DFILTER_FILES
82         dfilter/grammar.lemon
83 )
84
85 if (AUTOGEN_pidl)
86     # TODO
87 endif()
88
89 if (AUTOGEN_dcerpc)
90   FOREACH(PROTOCOL_NAME ${PIDL_DISSECTOR_AUTOGEN_NAMES})
91     set(PIDL_DISSECTOR_AUTOGEN_SRC
92         ${PIDL_DISSECTOR_AUTOGEN_SRC}
93         dissectors/dcerpc/${PROTOCOL_NAME}/packet-dcerpc-${PROTOCOL_NAME}.c
94     )
95   ENDFOREACH()
96
97   FOREACH(PROTOCOL_NAME ${PIDL_DISSECTOR_AUTOGEN_NAMES})
98     SET(CUR_PROTO_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dissectors/dcerpc/${PROTOCOL_NAME})
99     SET(CUR_PROTO_C_FILE packet-dcerpc-${PROTOCOL_NAME}.c)
100     SET(CUR_PROTO_H_FILE packet-dcerpc-${PROTOCOL_NAME}.h)
101     ADD_CUSTOM_COMMAND(
102         OUTPUT
103           ${CUR_PROTO_DIR}/${CUR_PROTO_C_FILE}
104           ${CUR_PROTO_DIR}/${CUR_PROTO_H_FILE}
105         COMMAND
106           idl2wrs ${PROTOCOL_NAME}
107         COMMAND
108           ${CMAKE_COMMAND} -E copy_if_different ${CUR_PROTO_DIR}/${CUR_PROTO_C_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/dissectors/${CUR_PROTO_C_FILE}
109         COMMAND
110           ${CMAKE_COMMAND} -E copy_if_different ${CUR_PROTO_DIR}/${CUR_PROTO_H_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/dissectors/${CUR_PROTO_H_FILE}
111         WORKING_DIRECTORY
112           ${CUR_PROTO_DIR}
113         DEPENDS
114           ${CUR_PROTO_DIR}/${PROTOCOL_NAME}.idl
115           ${CUR_PROTO_DIR}/${PROTOCOL_NAME}.cnf
116           ${CUR_PROTO_DIR}/packet-dcerpc-${PROTOCOL_NAME}-template.c
117           ${CUR_PROTO_DIR}/packet-dcerpc-${PROTOCOL_NAME}-template.h
118     )
119   ENDFOREACH()
120 else()
121   FOREACH(PROTOCOL_NAME ${PIDL_DISSECTOR_AUTOGEN_NAMES})
122     set(PIDL_DISSECTOR_AUTOGEN_SRC
123         ${PIDL_DISSECTOR_AUTOGEN_SRC}
124         dissectors/packet-dcerpc-${PROTOCOL_NAME}.c
125     )
126   ENDFOREACH()
127 endif()
128
129 ADD_CUSTOM_COMMAND(
130     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/packet-ncp2222.c
131     COMMAND ${PYTHON_EXECUTABLE}
132       ${CMAKE_SOURCE_DIR}/tools/ncp2222.py
133       -o ${CMAKE_CURRENT_BINARY_DIR}/packet-ncp2222.c
134     DEPENDS
135       dissectors/packet-ncp2222.inc
136       ${CMAKE_SOURCE_DIR}/tools/ncp2222.py
137 )
138
139 ADD_CUSTOM_COMMAND(
140     OUTPUT
141        x11-dissector
142 #      x11-declarations.h
143 #      x11-enum.h
144 #      x11-extension-errors.h
145 #      x11-extension-implementation.h
146 #      x11-fields
147 #      x11-glx-render-enum.h
148 #      x11-register-info.h
149     COMMAND ${PERL_EXECUTABLE}
150       ${CMAKE_SOURCE_DIR}/tools/process-x11-fields.pl
151       <dissectors/x11-fields
152     COMMAND ${PERL_EXECUTABLE}
153       ${CMAKE_SOURCE_DIR}/tools/process-x11-xcb.pl
154     DEPENDS
155       dissectors/x11-fields
156       ${CMAKE_SOURCE_DIR}/tools/process-x11-fields.pl
157       ${CMAKE_SOURCE_DIR}/tools/process-x11-xcb.pl
158 )
159
160 # Note that some dissectors are added in dissectors/dcerpc/CMakeLists.txt
161 set(PIDL_DISSECTOR_SRC
162 #       dissectors/packet-dcerpc-budb.c
163 #       dissectors/packet-dcerpc-butc.c
164 #       dissectors/packet-dcerpc-drsuapi.c
165         dissectors/packet-dcerpc-atsvc.c
166         dissectors/packet-dcerpc-dfs.c
167         dissectors/packet-dcerpc-dssetup.c
168         dissectors/packet-dcerpc-efs.c
169         dissectors/packet-dcerpc-frstrans.c
170         dissectors/packet-dcerpc-initshutdown.c
171         dissectors/packet-dcerpc-nspi.c
172         dissectors/packet-dcerpc-rfr.c
173         dissectors/packet-dcerpc-srvsvc.c
174         dissectors/packet-dcerpc-wkssvc.c
175         dissectors/packet-dcerpc-wzcsvc.c
176 )
177 set(DIRTY_PIDL_DISSECTOR_SRC
178         dissectors/packet-dcerpc-dnsserver.c
179         dissectors/packet-dcerpc-eventlog.c
180         dissectors/packet-dcerpc-lsa.c
181         dissectors/packet-dcerpc-winreg.c
182 )
183 set(ASN1_DISSECTOR_SRC
184         dissectors/packet-acp133.c
185         dissectors/packet-acse.c
186         dissectors/packet-ansi_tcap.c
187         dissectors/packet-camel.c
188         dissectors/packet-cdt.c
189         dissectors/packet-charging_ase.c
190         dissectors/packet-cmip.c
191         dissectors/packet-cmp.c
192         dissectors/packet-cms.c
193         dissectors/packet-crmf.c
194         dissectors/packet-dap.c
195         dissectors/packet-disp.c
196         dissectors/packet-dop.c
197         dissectors/packet-dsp.c
198         dissectors/packet-ess.c
199         dissectors/packet-ftam.c
200         dissectors/packet-goose.c
201         dissectors/packet-h225.c
202         dissectors/packet-h235.c
203         dissectors/packet-h245.c
204         dissectors/packet-h248.c
205         dissectors/packet-h282.c
206         dissectors/packet-h283.c
207         dissectors/packet-h323.c
208         dissectors/packet-h450.c
209         dissectors/packet-h450-ros.c
210         dissectors/packet-h460.c
211         dissectors/packet-h501.c
212         dissectors/packet-idmp.c
213         dissectors/packet-logotypecertextn.c
214         dissectors/packet-mms.c
215         dissectors/packet-mpeg-audio.c
216         dissectors/packet-mpeg-pes.c
217         dissectors/packet-ns_cert_exts.c
218         dissectors/packet-ocsp.c
219         dissectors/packet-opsi.c
220         dissectors/packet-p7.c
221         dissectors/packet-p772.c
222         dissectors/packet-pkcs1.c
223         dissectors/packet-pkinit.c
224         dissectors/packet-pkix1explicit.c
225         dissectors/packet-pkix1implicit.c
226         dissectors/packet-pkixac.c
227         dissectors/packet-pkixproxy.c
228         dissectors/packet-pkixqualified.c
229         dissectors/packet-pkixtsp.c
230         dissectors/packet-q932.c
231         dissectors/packet-q932-ros.c
232         dissectors/packet-qsig.c
233         dissectors/packet-ranap.c
234         dissectors/packet-ros.c
235         dissectors/packet-rtse.c
236         dissectors/packet-rua.c
237         dissectors/packet-s1ap.c
238         dissectors/packet-sabp.c
239         dissectors/packet-smrse.c
240         dissectors/packet-spnego.c
241         dissectors/packet-sv.c
242         dissectors/packet-ulp.c
243         dissectors/packet-wlancertextn.c
244         dissectors/packet-x224.c
245         dissectors/packet-x2ap.c
246         dissectors/packet-x509af.c
247         dissectors/packet-x509ce.c
248         dissectors/packet-x509if.c
249         dissectors/packet-x509sat.c
250 )
251
252 set(DIRTY_ASN1_DISSECTOR_SRC
253         dissectors/packet-ansi_map.c
254         dissectors/packet-gnm.c
255         dissectors/packet-gsm_map.c
256         dissectors/packet-gprscdr.c
257         dissectors/packet-HI2Operations.c
258         dissectors/packet-hnbap.c
259         dissectors/packet-inap.c
260         dissectors/packet-ldap.c
261         dissectors/packet-lte-rrc.c
262         dissectors/packet-nbap.c
263         dissectors/packet-p1.c
264         dissectors/packet-p22.c
265         dissectors/packet-pcap.c
266         dissectors/packet-pkcs12.c
267         dissectors/packet-pres.c
268         dissectors/packet-rnsap.c
269         dissectors/packet-rrc.c
270         dissectors/packet-rrlp.c
271         dissectors/packet-snmp.c
272         dissectors/packet-t124.c
273         dissectors/packet-t125.c
274         dissectors/packet-tcap.c
275         dissectors/packet-tetra.c
276 )
277
278 set(DISSECTOR_SRC
279         dissectors/packet-2dparityfec.c
280         dissectors/packet-3com-njack.c
281         dissectors/packet-3com-xns.c
282         dissectors/packet-3g-a11.c
283         dissectors/packet-6lowpan.c
284         dissectors/packet-9p.c
285         dissectors/packet-aarp.c
286         dissectors/packet-acap.c
287         dissectors/packet-acn.c
288         dissectors/packet-actrace.c
289         dissectors/packet-adwin.c
290         dissectors/packet-adwin-config.c
291         dissectors/packet-afp.c
292         dissectors/packet-afs.c
293         dissectors/packet-agentx.c
294         dissectors/packet-aim.c
295         dissectors/packet-aim-adverts.c
296         dissectors/packet-aim-admin.c
297         dissectors/packet-aim-bos.c
298         dissectors/packet-aim-buddylist.c
299         dissectors/packet-aim-chat.c
300         dissectors/packet-aim-chatnav.c
301         dissectors/packet-aim-directory.c
302         dissectors/packet-aim-email.c
303         dissectors/packet-aim-generic.c
304         dissectors/packet-aim-icq.c
305         dissectors/packet-aim-invitation.c
306         dissectors/packet-aim-location.c
307         dissectors/packet-aim-messaging.c
308         dissectors/packet-aim-oft.c
309         dissectors/packet-aim-popup.c
310         dissectors/packet-aim-signon.c
311         dissectors/packet-aim-ssi.c
312         dissectors/packet-aim-sst.c
313         dissectors/packet-aim-stats.c
314         dissectors/packet-aim-translate.c
315         dissectors/packet-aim-userlookup.c
316         dissectors/packet-airopeek.c
317         dissectors/packet-ajp13.c
318         dissectors/packet-alcap.c
319         dissectors/packet-amqp.c
320         dissectors/packet-amr.c
321         dissectors/packet-ancp.c
322         dissectors/packet-ans.c
323         dissectors/packet-ansi_637.c
324         dissectors/packet-ansi_683.c
325         dissectors/packet-ansi_801.c
326         dissectors/packet-ansi_a.c
327         dissectors/packet-aodv.c
328         dissectors/packet-aoe.c
329         dissectors/packet-ap1394.c
330         dissectors/packet-app-pkix-cert.c
331         dissectors/packet-applemidi.c
332         dissectors/packet-arcnet.c
333         dissectors/packet-armagetronad.c
334         dissectors/packet-arp.c
335         dissectors/packet-artnet.c
336         dissectors/packet-aruba-adp.c
337         dissectors/packet-aruba-erm.c
338         dissectors/packet-aruba-papi.c
339         dissectors/packet-asap.c
340         dissectors/packet-ascend.c
341         dissectors/packet-asf.c
342         dissectors/packet-assa_r3.c
343         dissectors/packet-atalk.c
344         dissectors/packet-atm.c
345         dissectors/packet-atmtcp.c
346         dissectors/packet-auto_rp.c
347         dissectors/packet-ax4000.c
348         dissectors/packet-ayiya.c
349         dissectors/packet-bacapp.c
350         dissectors/packet-bacnet.c
351         dissectors/packet-banana.c
352         dissectors/packet-babel.c
353         dissectors/packet-bat.c
354         dissectors/packet-batadv.c
355         dissectors/packet-bctp.c
356         dissectors/packet-beep.c
357         dissectors/packet-ber.c
358         dissectors/packet-bfd.c
359         dissectors/packet-bgp.c
360         dissectors/packet-bittorrent.c
361         dissectors/packet-bjnp.c
362         dissectors/packet-bmc.c
363         dissectors/packet-bofl.c
364         dissectors/packet-bootp.c
365         dissectors/packet-bootparams.c
366         dissectors/packet-bpdu.c
367         dissectors/packet-brdwlk.c
368         dissectors/packet-bssap.c
369         dissectors/packet-bssgp.c
370         dissectors/packet-btamp.c
371         dissectors/packet-bthci_acl.c
372         dissectors/packet-bthci_cmd.c
373         dissectors/packet-bthci_evt.c
374         dissectors/packet-bthci_sco.c
375         dissectors/packet-btl2cap.c
376         dissectors/packet-btobex.c
377         dissectors/packet-btrfcomm.c
378         dissectors/packet-btsdp.c
379         dissectors/packet-bt-utp.c
380         dissectors/packet-bvlc.c
381         dissectors/packet-calcappprotocol.c
382         dissectors/packet-capwap.c
383         dissectors/packet-cast.c
384         dissectors/packet-catapult-dct2000.c
385         dissectors/packet-ccsds.c
386         dissectors/packet-cdp.c
387         dissectors/packet-cfm.c
388         dissectors/packet-cgmp.c
389         dissectors/packet-chdlc.c
390         dissectors/packet-cigi.c
391         dissectors/packet-cimd.c
392         dissectors/packet-cimetrics.c
393         dissectors/packet-cip.c
394         dissectors/packet-cisco-erspan.c
395         dissectors/packet-cisco-oui.c
396         dissectors/packet-cisco-sm.c
397         dissectors/packet-cisco-wids.c
398         dissectors/packet-classicstun.c
399         dissectors/packet-clearcase.c
400         dissectors/packet-clip.c
401         dissectors/packet-clnp.c
402         dissectors/packet-cmpp.c
403         dissectors/packet-cnip.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-hdfs.c
623         dissectors/packet-hdfsdata.c
624         dissectors/packet-hilscher.c
625         dissectors/packet-hip.c
626         dissectors/packet-homeplug.c
627         dissectors/packet-homeplug-av.c
628         dissectors/packet-hp-erm.c
629         dissectors/packet-hpext.c
630         dissectors/packet-hpsw.c
631         dissectors/packet-hpteam.c
632         dissectors/packet-hsrp.c
633         dissectors/packet-http.c
634         dissectors/packet-hyperscsi.c
635         dissectors/packet-i2c.c
636         dissectors/packet-iana-oui.c
637         dissectors/packet-iapp.c
638         dissectors/packet-iax2.c
639         dissectors/packet-infiniband_sdp.c
640         dissectors/packet-icap.c
641         dissectors/packet-icep.c
642         dissectors/packet-icmp.c
643         dissectors/packet-icmpv6.c
644         dissectors/packet-icp.c
645         dissectors/packet-icq.c
646         dissectors/packet-idp.c
647         dissectors/packet-iec104.c
648         dissectors/packet-ieee1722.c
649         dissectors/packet-ieee80211.c
650         dissectors/packet-ieee802154.c
651         dissectors/packet-ieee8021ah.c
652         dissectors/packet-ieee8023.c
653         dissectors/packet-ieee802a.c
654         dissectors/packet-ifcp.c
655         dissectors/packet-igap.c
656         dissectors/packet-igmp.c
657         dissectors/packet-igrp.c
658         dissectors/packet-image-gif.c
659         dissectors/packet-image-jfif.c
660         dissectors/packet-image-png.c
661         dissectors/packet-imap.c
662         dissectors/packet-imf.c
663         dissectors/packet-infiniband.c
664         dissectors/packet-ipars.c
665         dissectors/packet-ip.c
666         dissectors/packet-ipdc.c
667         dissectors/packet-ipfc.c
668         dissectors/packet-ipmi.c
669         dissectors/packet-ipmi-session.c
670         dissectors/packet-ipnet.c
671         dissectors/packet-ipp.c
672         dissectors/packet-ipsec.c
673         dissectors/packet-ipsec-tcp.c
674         dissectors/packet-ipsec-udp.c
675         dissectors/packet-ipsi-ctl.c
676         dissectors/packet-ipv6.c
677         dissectors/packet-ipvs-syncd.c
678         dissectors/packet-ipx.c
679         dissectors/packet-ipxwan.c
680         dissectors/packet-irc.c
681         dissectors/packet-isakmp.c
682         dissectors/packet-iscsi.c
683         dissectors/packet-isdn.c
684         dissectors/packet-isis-clv.c
685         dissectors/packet-isis-hello.c
686         dissectors/packet-isis-lsp.c
687         dissectors/packet-isis-snp.c
688         dissectors/packet-isis.c
689         dissectors/packet-isl.c
690         dissectors/packet-ismacryp.c
691         dissectors/packet-ismp.c
692         dissectors/packet-isns.c
693         dissectors/packet-isup.c
694         dissectors/packet-itdm.c
695         dissectors/packet-iua.c
696         dissectors/packet-iuup.c
697         dissectors/packet-iwarp-ddp-rdmap.c
698         dissectors/packet-iwarp-mpa.c
699         dissectors/packet-jmirror.c
700         dissectors/packet-jpeg.c
701         dissectors/packet-json.c
702         dissectors/packet-juniper.c
703         dissectors/packet-jxta.c
704         dissectors/packet-k12.c
705         dissectors/packet-kadm5.c
706         dissectors/packet-kdp.c
707         dissectors/packet-kerberos.c
708         dissectors/packet-kerberos4.c
709         dissectors/packet-klm.c
710         dissectors/packet-kingfisher.c
711         dissectors/packet-kink.c
712         dissectors/packet-kismet.c
713         dissectors/packet-kpasswd.c
714         dissectors/packet-l2tp.c
715         dissectors/packet-lanforge.c
716         dissectors/packet-lapb.c
717         dissectors/packet-lapbether.c
718         dissectors/packet-lapd.c
719         dissectors/packet-lapdm.c
720         dissectors/packet-laplink.c
721         dissectors/packet-l1-events.c
722         dissectors/packet-ldp.c
723         dissectors/packet-ldss.c
724         dissectors/packet-lge_monitor.c
725         dissectors/packet-linx.c
726         dissectors/packet-lisp-data.c
727         dissectors/packet-lisp.c
728         dissectors/packet-llc.c
729         dissectors/packet-lldp.c
730         dissectors/packet-llt.c
731         dissectors/packet-lmi.c
732         dissectors/packet-lmp.c
733         dissectors/packet-lon.c
734         dissectors/packet-loop.c
735         dissectors/packet-lpd.c
736         dissectors/packet-lsc.c
737         dissectors/packet-ltp.c
738         dissectors/packet-lwapp.c
739         dissectors/packet-lwres.c
740         dissectors/packet-m2pa.c
741         dissectors/packet-m2tp.c
742         dissectors/packet-m2ua.c
743         dissectors/packet-m3ua.c
744         dissectors/packet-mac-lte.c
745         dissectors/packet-mactelnet.c
746         dissectors/packet-maccontrol.c
747         dissectors/packet-manolito.c
748         dissectors/packet-mbtcp.c
749         dissectors/packet-mdshdr.c
750         dissectors/packet-media.c
751         dissectors/packet-megaco.c
752         dissectors/packet-memcache.c
753         dissectors/packet-mesh.c
754         dissectors/packet-meta.c
755         dissectors/packet-mgcp.c
756         dissectors/packet-mikey.c
757         dissectors/packet-mime-encap.c
758         dissectors/packet-miop.c
759         dissectors/packet-mip.c
760         dissectors/packet-mip6.c
761         dissectors/packet-ms-mms.c
762         dissectors/packet-mmse.c
763         dissectors/packet-mndp.c
764         dissectors/packet-mongo.c
765         dissectors/packet-mount.c
766         dissectors/packet-mp2t.c
767         dissectors/packet-mp4ves.c
768         dissectors/packet-mpeg1.c
769         dissectors/packet-mpls.c
770         dissectors/packet-mpls-echo.c
771         dissectors/packet-mq.c
772         dissectors/packet-mq-pcf.c
773         dissectors/packet-mrdisc.c
774         dissectors/packet-mrp-mmrp.c
775         dissectors/packet-mrp-msrp.c
776         dissectors/packet-msdp.c
777         dissectors/packet-msnlb.c
778         dissectors/packet-msn-messenger.c
779         dissectors/packet-msnip.c
780         dissectors/packet-msproxy.c
781         dissectors/packet-msrp.c
782         dissectors/packet-mstp.c
783         dissectors/packet-mtp2.c
784         dissectors/packet-mtp3.c
785         dissectors/packet-mtp3mg.c
786         dissectors/packet-multipart.c
787         dissectors/packet-mux27010.c
788         dissectors/packet-mysql.c
789         dissectors/packet-nas_eps.c
790         dissectors/packet-nasdaq-itch.c
791         dissectors/packet-nat-pmp.c
792         dissectors/packet-nb_rtpmux.c
793         dissectors/packet-nbd.c
794         dissectors/packet-nbipx.c
795         dissectors/packet-nbns.c
796         dissectors/packet-ncp.c
797         packet-ncp2222.c
798         dissectors/packet-ncp-nmas.c
799         dissectors/packet-ncp-sss.c
800         dissectors/packet-ncs.c
801         dissectors/packet-ndmp.c
802         dissectors/packet-ndp.c
803         dissectors/packet-ndps.c
804         dissectors/packet-netbios.c
805         dissectors/packet-netdump.c
806         dissectors/packet-netflow.c
807         dissectors/packet-netmon-802_11.c
808         dissectors/packet-netperfmeter.c
809         dissectors/packet-netsync.c
810         dissectors/packet-nettl.c
811         dissectors/packet-newmail.c
812         dissectors/packet-nfs.c
813         dissectors/packet-nfsacl.c
814         dissectors/packet-nfsauth.c
815         dissectors/packet-nhrp.c
816         dissectors/packet-nisplus.c
817         dissectors/packet-nlm.c
818         dissectors/packet-nlsp.c
819         dissectors/packet-nntp.c
820         dissectors/packet-nstrace.c
821         dissectors/packet-nsip.c
822         dissectors/packet-nsrp.c
823         dissectors/packet-nt-oui.c
824         dissectors/packet-nt-tpcp.c
825         dissectors/packet-ntlmssp.c
826         dissectors/packet-ntp.c
827         dissectors/packet-null.c
828         dissectors/packet-nwmtp.c
829         dissectors/packet-oicq.c
830         dissectors/packet-olsr.c
831         dissectors/packet-omapi.c
832         dissectors/packet-omron-fins.c
833         dissectors/packet-opensafety.c
834         dissectors/packet-osi-options.c
835         dissectors/packet-osi.c
836         dissectors/packet-ositp.c
837         dissectors/packet-ospf.c
838         dissectors/packet-p_mul.c
839         dissectors/packet-packetbb.c
840         dissectors/packet-packetlogger.c
841         dissectors/packet-pagp.c
842         dissectors/packet-paltalk.c
843         dissectors/packet-pana.c
844         dissectors/packet-pcep.c
845         dissectors/packet-pcli.c
846         dissectors/packet-pcnfsd.c
847         dissectors/packet-pdcp-lte.c
848         dissectors/packet-per.c
849         dissectors/packet-pflog.c
850         dissectors/packet-pgm.c
851         dissectors/packet-pgsql.c
852         dissectors/packet-pim.c
853         dissectors/packet-pingpongprotocol.c
854         dissectors/packet-pktgen.c
855         dissectors/packet-pktc.c
856         dissectors/packet-pnrp.c
857         dissectors/packet-pop.c
858         dissectors/packet-portmap.c
859         dissectors/packet-ppi.c
860         dissectors/packet-ppi-antenna.c
861         dissectors/packet-ppi-geolocation-common.c
862         dissectors/packet-ppi-geolocation-common.h
863         dissectors/packet-ppi-gps.c
864         dissectors/packet-ppi-sensor.c
865         dissectors/packet-ppp.c
866         dissectors/packet-pppoe.c
867         dissectors/packet-pptp.c
868         dissectors/packet-prp.c
869         dissectors/packet-ptp.c
870         dissectors/packet-pvfs2.c
871         dissectors/packet-pw-common.c
872         dissectors/packet-pw-eth.c
873         dissectors/packet-pw-hdlc.c
874         dissectors/packet-pw-fr.c
875         dissectors/packet-pw-atm.c
876         dissectors/packet-pw-cesopsn.c
877         dissectors/packet-pw-satop.c
878         dissectors/packet-q2931.c
879         dissectors/packet-q708.c
880         dissectors/packet-q931.c
881         dissectors/packet-q933.c
882         dissectors/packet-qllc.c
883         dissectors/packet-quake.c
884         dissectors/packet-quake2.c
885         dissectors/packet-quake3.c
886         dissectors/packet-quakeworld.c
887         dissectors/packet-radius.c
888         dissectors/packet-radius_packetcable.c
889         dissectors/packet-radiotap.c
890         dissectors/packet-radiotap-iter.c
891         dissectors/packet-raw.c
892         dissectors/packet-rdm.c
893         dissectors/packet-rdp.c
894         dissectors/packet-rdt.c
895         dissectors/packet-redback.c
896         dissectors/packet-redbackli.c
897         dissectors/packet-reload.c
898         dissectors/packet-reload-framing.c
899         dissectors/packet-retix-bpdu.c
900         dissectors/packet-rfc2190.c
901         dissectors/packet-rgmp.c
902         dissectors/packet-rip.c
903         dissectors/packet-ripng.c
904         dissectors/packet-rlc.c
905         dissectors/packet-rlc-lte.c
906         dissectors/packet-rlm.c
907         dissectors/packet-rlogin.c
908         dissectors/packet-rmcp.c
909         dissectors/packet-rmi.c
910         dissectors/packet-rmp.c
911         dissectors/packet-rmt-alc.c
912         dissectors/packet-rmt-common.c
913         dissectors/packet-rmt-fec.c
914         dissectors/packet-rmt-lct.c
915         dissectors/packet-rmt-norm.c
916         dissectors/packet-rohc.c
917         dissectors/packet-roofnet.c
918         dissectors/packet-rpc.c
919         dissectors/packet-rpcap.c
920         dissectors/packet-rpl.c
921         dissectors/packet-rquota.c
922         dissectors/packet-rsh.c
923         dissectors/packet-rsip.c
924         dissectors/packet-rsl.c
925         dissectors/packet-rstat.c
926         dissectors/packet-rsvp.c
927         dissectors/packet-rsync.c
928         dissectors/packet-rtcp.c
929         dissectors/packet-rtmpt.c
930         dissectors/packet-rtnet.c
931         dissectors/packet-rtp-events.c
932         dissectors/packet-rtp.c
933         dissectors/packet-rtps.c
934         dissectors/packet-rtps2.c
935         dissectors/packet-rtsp.c
936         dissectors/packet-rudp.c
937         dissectors/packet-rwall.c
938         dissectors/packet-rx.c
939         dissectors/packet-s5066.c
940         dissectors/packet-sadmind.c
941         dissectors/packet-sametime.c
942         dissectors/packet-sap.c
943         dissectors/packet-sasp.c
944         dissectors/packet-sbus.c
945         dissectors/packet-sccp.c
946         dissectors/packet-sccpmg.c
947         dissectors/packet-scop.c
948         dissectors/packet-scsi.c
949         dissectors/packet-scsi-mmc.c
950         dissectors/packet-scsi-osd.c
951         dissectors/packet-scsi-sbc.c
952         dissectors/packet-scsi-smc.c
953         dissectors/packet-scsi-ssc.c
954         dissectors/packet-sctp.c
955         dissectors/packet-sdlc.c
956         dissectors/packet-sdp.c
957         dissectors/packet-sebek.c
958         dissectors/packet-sercosiii.c
959         dissectors/packet-ses.c
960         dissectors/packet-sflow.c
961         dissectors/packet-sgsap.c
962         dissectors/packet-simulcrypt.c
963         dissectors/packet-sip.c
964         dissectors/packet-sigcomp.c
965         dissectors/packet-sipfrag.c
966         dissectors/packet-sita.c
967         dissectors/packet-skinny.c
968         dissectors/packet-slimp3.c
969         dissectors/packet-sll.c
970         dissectors/packet-slowprotocols.c
971         dissectors/packet-slsk.c
972         dissectors/packet-smb-browse.c
973         dissectors/packet-smb-common.c
974         dissectors/packet-smb-logon.c
975         dissectors/packet-smb-mailslot.c
976         dissectors/packet-smb-pipe.c
977         dissectors/packet-smb-sidsnooping.c
978         dissectors/packet-smb.c
979         dissectors/packet-smb2.c
980         dissectors/packet-smpp.c
981         dissectors/packet-smtp.c
982         dissectors/packet-sna.c
983         dissectors/packet-snaeth.c
984         dissectors/packet-sndcp.c
985         dissectors/packet-sndcp-xid.c
986         dissectors/packet-socketcan.c
987         dissectors/packet-socks.c
988         dissectors/packet-nasdaq-soup.c
989         dissectors/packet-spice.c
990         dissectors/packet-spp.c
991         dissectors/packet-spray.c
992         dissectors/packet-srp.c
993         dissectors/packet-sscf-nni.c
994         dissectors/packet-srvloc.c
995         dissectors/packet-sscop.c
996         dissectors/packet-scriptingservice.c
997         dissectors/packet-ssh.c
998         dissectors/packet-ssl.c
999         dissectors/packet-ssl-utils.c
1000         dissectors/packet-starteam.c
1001         dissectors/packet-stat-notify.c
1002         dissectors/packet-stat.c
1003         dissectors/packet-stun.c
1004         dissectors/packet-sua.c
1005         dissectors/packet-symantec.c
1006         dissectors/packet-synergy.c
1007         dissectors/packet-synphasor.c
1008         dissectors/packet-syslog.c
1009         dissectors/packet-t30.c
1010         dissectors/packet-t38.c
1011         dissectors/packet-tacacs.c
1012         dissectors/packet-tali.c
1013         dissectors/packet-tapa.c
1014         dissectors/packet-tcp.c
1015         dissectors/packet-tdmoe.c
1016         dissectors/packet-tds.c
1017         dissectors/packet-teamspeak2.c
1018         dissectors/packet-teimanagement.c
1019         dissectors/packet-teklink.c
1020         dissectors/packet-telnet.c
1021         dissectors/packet-teredo.c
1022         dissectors/packet-text-media.c
1023         dissectors/packet-telkonet.c
1024         dissectors/packet-tftp.c
1025         dissectors/packet-time.c
1026         dissectors/packet-tipc.c
1027         dissectors/packet-tivoconnect.c
1028         dissectors/packet-tnef.c
1029         dissectors/packet-tns.c
1030         dissectors/packet-tn3270.c
1031         dissectors/packet-tn5250.c
1032         dissectors/packet-tpkt.c
1033         dissectors/packet-tpncp.c
1034         dissectors/packet-tr.c
1035         dissectors/packet-trill.c
1036         dissectors/packet-mim.c
1037         dissectors/packet-trmac.c
1038         dissectors/packet-tsp.c
1039         dissectors/packet-tte.c
1040         dissectors/packet-tte-pcf.c
1041         dissectors/packet-turbocell.c
1042         dissectors/packet-turnchannel.c
1043         dissectors/packet-tuxedo.c
1044         dissectors/packet-tzsp.c
1045         dissectors/packet-ua.c
1046         dissectors/packet-uaudp.c
1047         dissectors/packet-ucp.c
1048         dissectors/packet-udld.c
1049         dissectors/packet-udp.c
1050         dissectors/packet-uma.c
1051         dissectors/packet-umts_fp.c
1052         dissectors/packet-umts_mac.c
1053         dissectors/packet-usb.c
1054         dissectors/packet-usb-at.c
1055         dissectors/packet-usb-hid.c
1056         dissectors/packet-usb-hub.c
1057         dissectors/packet-usb-masstorage.c
1058         dissectors/packet-user_encap.c
1059         dissectors/packet-uts.c
1060         dissectors/packet-v120.c
1061         dissectors/packet-v5ua.c
1062         dissectors/packet-v52.c
1063         dissectors/packet-vcdu.c
1064         dissectors/packet-vicp.c
1065         dissectors/packet-vines.c
1066         dissectors/packet-vj.c
1067         dissectors/packet-vlan.c
1068         dissectors/packet-vmlab.c
1069         dissectors/packet-vnc.c
1070         dissectors/packet-vrrp.c
1071         dissectors/packet-vtp.c
1072         dissectors/packet-vuze-dht.c
1073         dissectors/packet-vxi11.c
1074         dissectors/packet-wai.c
1075         dissectors/packet-wap.c
1076         dissectors/packet-wassp.c
1077         dissectors/packet-wbxml.c
1078         dissectors/packet-wccp.c
1079         dissectors/packet-wcp.c
1080         dissectors/packet-wfleet-hdlc.c
1081         dissectors/packet-who.c
1082         dissectors/packet-wifi-p2p.c
1083         dissectors/packet-windows-common.c
1084         dissectors/packet-winsrepl.c
1085         dissectors/packet-wlccp.c
1086         dissectors/packet-wol.c
1087         dissectors/packet-wow.c
1088         dissectors/packet-wps.c
1089         dissectors/packet-wsmp.c
1090         dissectors/packet-wsp.c
1091         dissectors/packet-wtls.c
1092         dissectors/packet-wtp.c
1093         dissectors/packet-x11.c
1094         dissectors/packet-x25.c
1095         dissectors/packet-x29.c
1096         dissectors/packet-xcsl.c
1097         dissectors/packet-xdmcp.c
1098         dissectors/packet-xml.c
1099         dissectors/packet-xmcp.c
1100         dissectors/packet-xmpp.c
1101         dissectors/packet-xot.c
1102         dissectors/packet-xtp.c
1103         dissectors/packet-xyplex.c
1104         dissectors/packet-yhoo.c
1105         dissectors/packet-ymsg.c
1106         dissectors/packet-ypbind.c
1107         dissectors/packet-yppasswd.c
1108         dissectors/packet-ypserv.c
1109         dissectors/packet-ypxfr.c
1110         dissectors/packet-zbee-aps.c
1111         dissectors/packet-zbee-security.c
1112         dissectors/packet-zbee-nwk.c
1113         dissectors/packet-zbee-zcl.c
1114         dissectors/packet-zbee-zdp.c
1115         dissectors/packet-zbee-zdp-binding.c
1116         dissectors/packet-zbee-zdp-discovery.c
1117         dissectors/packet-zbee-zdp-management.c
1118         dissectors/packet-zebra.c
1119         dissectors/packet-zep.c
1120         dissectors/packet-ziop.c
1121         dissectors/packet-zrtp.c
1122 )
1123
1124 # IPMI sub-parsers for each network function code
1125 set(IPMI_SUBPARSERS
1126         dissectors/packet-ipmi-app.c
1127         dissectors/packet-ipmi-bridge.c
1128         dissectors/packet-ipmi-chassis.c
1129         dissectors/packet-ipmi-picmg.c
1130         dissectors/packet-ipmi-se.c
1131         dissectors/packet-ipmi-storage.c
1132         dissectors/packet-ipmi-transport.c
1133         dissectors/packet-ipmi-pps.c
1134         dissectors/packet-ipmi-update.c
1135 )
1136
1137 set(DISSECTOR_SUPPORT_SRC
1138         ${IPMI_SUBPARSERS}
1139         dissectors/packet-dcerpc-nt.c
1140         register.c
1141 )
1142
1143 set(LIBWIRESHARK_ASM_FILES
1144         asm_utils.c
1145 # todo
1146 #       !IFDEF NASM
1147 #       asm_utils_win32_x86.obj: asm_utils_win32_x86.asm
1148 #               $(NASM) -f $(WIRESHARK_TARGET_PLATFORM) -o $@ $?
1149 #       !ENDIF
1150 #       ...
1151 #       !IF defined(NASM) && "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
1152 #               asm_utils_win32_x86.obj
1153 #       !ELSE
1154 #               asm_utils.obj
1155 #       !ENDIF
1156 )
1157
1158 set(DISSECTOR_FILES
1159         ${DISSECTOR_SRC}
1160         ${PIDL_DISSECTOR_SRC}
1161         ${PIDL_DISSECTOR_AUTOGEN_SRC}
1162         ${DIRTY_PIDL_DISSECTOR_SRC}
1163         ${ASN1_DISSECTOR_SRC}
1164         ${DIRTY_ASN1_DISSECTOR_SRC}
1165 )
1166
1167 register_dissector_files(register.c
1168         dissectors
1169         ${DISSECTOR_FILES}
1170 )
1171
1172 set(FTYPE_FILES
1173         ftypes/ftypes.c
1174         ftypes/ftype-bytes.c
1175         ftypes/ftype-double.c
1176         ftypes/ftype-integer.c
1177         ftypes/ftype-ipv4.c
1178         ftypes/ftype-ipv6.c
1179         ftypes/ftype-guid.c
1180         ftypes/ftype-none.c
1181         ftypes/ftype-pcre.c
1182         ftypes/ftype-string.c
1183         ftypes/ftype-time.c
1184         ftypes/ftype-tvbuff.c
1185 )
1186
1187 ADD_CUSTOM_COMMAND(
1188     OUTPUT
1189       sminmpec.c
1190     COMMAND ${PERL_EXECUTABLE}
1191       ${CMAKE_SOURCE_DIR}/tools/make-sminmpec.pl
1192       ${CMAKE_CURRENT_SOURCE_DIR}/enterprise-numbers
1193       sminmpec.c
1194     DEPENDS
1195       enterprise-numbers
1196       ${CMAKE_SOURCE_DIR}/tools/make-sminmpec.pl
1197 )
1198
1199 set(LIBWIRESHARK_FILES
1200         addr_and_mask.c
1201         addr_resolv.c
1202         address_to_str.c
1203         adler32.c
1204         afn.c
1205         asn1.c
1206         atalk-utils.c
1207         base64.c
1208         bitswap.c
1209         camel-persistentdata.c
1210         charsets.c
1211         circuit.c
1212         codecs.c
1213         column.c
1214         column-utils.c
1215         conversation.c
1216         crc16-tvb.c
1217         crc32-tvb.c
1218         crc8-tvb.c
1219         dissector_filters.c
1220         emem.c
1221         epan.c
1222         ex-opt.c
1223         except.c
1224         expert.c
1225         filesystem.c
1226         filter_expressions.c
1227         follow.c
1228         frame_data.c
1229         frequency-utils.c
1230         funnel.c
1231         gcp.c
1232         geoip_db.c
1233         golay.c
1234         guid-utils.c
1235         h225-persistentdata.c
1236         in_cksum.c
1237         ipproto.c
1238         ipv4.c
1239         next_tvb.c
1240         nstime.c
1241         oids.c
1242         osi-utils.c
1243         packet.c
1244         plugins.c
1245         prefs.c
1246         proto.c
1247         range.c
1248         reassemble.c
1249         reedsolomon.c
1250         report_err.c
1251         req_resp_hdrs.c
1252         sigcomp_state_hdlr.c
1253         sigcomp-udvm.c
1254         sminmpec.c
1255         sna-utils.c
1256         stat_cmd_args.c
1257         stats_tree.c
1258         strutil.c
1259         stream.c
1260         t35.c
1261         tap.c
1262         tcap-persistentdata.c
1263         timestamp.c
1264         tfs.c
1265         to_str.c
1266         tvbparse.c
1267         tvbuff.c
1268         uat.c
1269         value_string.c
1270         xdlc.c
1271 )
1272
1273 set(LIBWIRESHARK_CLEAN_FILES
1274         ${LIBWIRESHARK_FILES}
1275 )
1276
1277 add_lex_files(LIBWIRESHARK_FILES
1278         diam_dict.l
1279         dtd_parse.l
1280         dtd_preparse.l
1281         radius_dict.l
1282         uat_load.l
1283 )
1284
1285 add_lemon_files(LIBWIRESHARK_FILES
1286         dtd_grammar.lemon
1287 )
1288
1289 set(epan_LIBS
1290         wiretap
1291         wsutil
1292 #       @SSL_LIBS@
1293         ${GLIB2_LIBRARIES}
1294         ${PCAP_LIBRARIES}
1295 #       @SOCKET_LIBS@
1296 #       @NSL_LIBS@
1297         ${CARES_LIBRARIES}
1298         ${ADNS_LIBRARIES}
1299         ${KERBEROS_LIBRARIES}
1300 #       @FRAMEWORKS@
1301         ${GEOIP_LIBRARIES}
1302         ${GCRYPT_LIBRARIES}
1303         ${GNUTLS_LIBRARIES}
1304         ${SMI_LIBRARIES}
1305         ${M_LIBRARIES}
1306         ${LUA_LIBRARIES}
1307         ${PYTHON_LIBRARIES}
1308 )
1309
1310 set(CLEAN_FILES
1311         # Needed to trigger build of the include files for x11
1312         #x11-declarations.h
1313         #x11-register-info.h
1314         ${LIBWIRESHARK_CLEAN_FILES}
1315         ${CRYPT_FILES}
1316         ${DFILTER_CLEAN_FILES}
1317         ${FTYPE_FILES}
1318         # ${DISSECTOR_FILES} contains dirty files
1319         ${DISSECTOR_SRC}
1320         ${PIDL_DISSECTOR_SRC}
1321         ${PIDL_DISSECTOR_AUTOGEN_SRC}
1322         ${ASN1_DISSECTOR_SRC}
1323         # ${DISSECTOR_FILES } end
1324         ${DISSECTOR_SUPPORT_SRC}
1325         ${LIBWIRESHARK_ASM_FILES}
1326         ${WSLUA_FILES}
1327         ${WSPYTHON_FILES}
1328 )
1329
1330 if (WERROR)
1331     set_source_files_properties(
1332         ${CLEAN_FILES}
1333         PROPERTIES
1334         COMPILE_FLAGS -Werror
1335     )
1336 endif()
1337
1338 add_library(epan ${LINK_MODE_LIB}
1339         # Needed to trigger build of the include files for x11
1340         #x11-declarations.h
1341         #x11-register-info.h
1342         ${LIBWIRESHARK_FILES}
1343         ${CRYPT_FILES}
1344         ${DFILTER_FILES}
1345         ${FTYPE_FILES}
1346         ${WSLUA_FILES}
1347         ${WSPYTHON_FILES}
1348         ${DISSECTOR_FILES}
1349         ${DISSECTOR_SUPPORT_SRC}
1350         ${LIBWIRESHARK_ASM_FILES}
1351 )
1352 set_target_properties(epan PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
1353
1354 # By default the name for a library with target name epan will be libepan,
1355 # but Ethereal is now named Wireshark
1356 SET_TARGET_PROPERTIES(epan PROPERTIES OUTPUT_NAME "wireshark")
1357
1358 target_link_libraries(epan ${epan_LIBS})
1359
1360 add_dependencies(epan lemon)
1361
1362 if(NOT ${ENABLE_STATIC})
1363         install(TARGETS epan
1364                 LIBRARY DESTINATION lib
1365                 RUNTIME DESTINATION lib
1366                 ARCHIVE DESTINATION lib
1367         )
1368 endif()
1369