cmake: make WERROR_COMMON_FLAGS a normal string
[gd/wireshark/.git] / epan / dissectors / CMakeLists.txt
1 # CMakeLists.txt
2 #
3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
6 #
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21
22 ADD_CUSTOM_CMAKE_INCLUDE()
23
24 add_subdirectory(asn1 EXCLUDE_FROM_ALL)
25 add_subdirectory(dcerpc EXCLUDE_FROM_ALL)
26 add_subdirectory(pidl EXCLUDE_FROM_ALL)
27
28 include_directories(
29         ${CMAKE_CURRENT_BINARY_DIR}
30         ${CMAKE_CURRENT_SOURCE_DIR}
31 )
32
33 add_custom_command(
34         OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/packet-ncp2222.c
35         COMMAND ${PYTHON_EXECUTABLE}
36                 ${CMAKE_SOURCE_DIR}/tools/ncp2222.py
37                 -o ${CMAKE_CURRENT_BINARY_DIR}/packet-ncp2222.c
38         DEPENDS
39                 packet-ncp2222.inc
40                 ${CMAKE_SOURCE_DIR}/tools/ncp2222.py
41 )
42
43 add_custom_target(x11-dissector
44         COMMAND ${PERL_EXECUTABLE}
45                 ${CMAKE_SOURCE_DIR}/tools/process-x11-fields.pl ${CMAKE_CURRENT_SOURCE_DIR}/dissectors
46                 < ${CMAKE_CURRENT_SOURCE_DIR}/x11-fields
47         COMMAND ${PERL_EXECUTABLE}
48                 ${CMAKE_SOURCE_DIR}/tools/process-x11-xcb.pl ${CMAKE_CURRENT_SOURCE_DIR}/dissectors
49         DEPENDS
50                 x11-fields
51                 ${CMAKE_SOURCE_DIR}/tools/process-x11-fields.pl
52                 ${CMAKE_SOURCE_DIR}/tools/process-x11-xcb.pl
53                 ${CMAKE_CURRENT_SOURCE_DIR}/xcbproto
54                 ${CMAKE_CURRENT_SOURCE_DIR}/mesa
55 )
56
57 set_target_properties(x11-dissector PROPERTIES FOLDER "Generated Dissectors/X11")
58
59 set(CLEAN_ASN1_DISSECTOR_SRC
60         packet-ansi_map.c
61         packet-acp133.c
62         packet-acse.c
63         packet-ansi_tcap.c
64         packet-atn-ulcs.c
65         packet-atn-cm.c
66         packet-atn-cpdlc.c
67         packet-c1222.c
68         packet-camel.c
69         packet-cdt.c
70         packet-charging_ase.c
71         packet-cmip.c
72         packet-cmp.c
73         packet-cms.c
74         packet-credssp.c
75         packet-crmf.c
76         packet-dap.c
77         packet-disp.c
78         packet-dop.c
79         packet-dsp.c
80         packet-ecp.c
81         packet-ess.c
82         packet-ftam.c
83         packet-goose.c
84         packet-gsm_map.c
85         packet-HI2Operations.c
86         packet-h225.c
87         packet-h235.c
88         packet-h245.c
89         packet-h248.c
90         packet-h282.c
91         packet-h283.c
92         packet-h323.c
93         packet-h450.c
94         packet-h450-ros.c
95         packet-h460.c
96         packet-h501.c
97         packet-hnbap.c
98         packet-idmp.c
99         packet-ilp.c
100         packet-inap.c
101         packet-isdn-sup.c
102         packet-kerberos.c
103         packet-lcsap.c
104         packet-ldap.c
105         packet-logotypecertextn.c
106         packet-lpp.c
107         packet-lppa.c
108         packet-lppe.c
109         packet-lte-rrc.c
110         packet-m2ap.c
111         packet-m3ap.c
112         packet-mms.c
113         packet-mpeg-audio.c
114         packet-mpeg-pes.c
115         packet-nbap.c
116         packet-novell_pkis.c
117         packet-ns_cert_exts.c
118         packet-ocsp.c
119         packet-p1.c
120         packet-p22.c
121         packet-p7.c
122         packet-p772.c
123         packet-pcap.c
124         packet-pkcs1.c
125         packet-pkcs12.c
126         packet-pkinit.c
127         packet-pkix1explicit.c
128         packet-pkix1implicit.c
129         packet-pkixac.c
130         packet-pkixproxy.c
131         packet-pkixqualified.c
132         packet-pkixtsp.c
133         packet-pres.c
134         packet-q932.c
135         packet-q932-ros.c
136         packet-qsig.c
137         packet-ranap.c
138         packet-rnsap.c
139         packet-ros.c
140         packet-rrc.c
141         packet-rrlp.c
142         packet-rtse.c
143         packet-rua.c
144         packet-s1ap.c
145         packet-sabp.c
146         packet-sbc-ap.c
147         packet-smrse.c
148         packet-snmp.c
149         packet-spnego.c
150         packet-sv.c
151         packet-t124.c
152         packet-t125.c
153         packet-t38.c
154         packet-tcap.c
155         packet-tetra.c
156         packet-ulp.c
157         packet-wlancertextn.c
158         packet-x2ap.c
159         packet-x509af.c
160         packet-x509ce.c
161         packet-x509if.c
162         packet-x509sat.c
163 )
164
165 set(DIRTY_ASN1_DISSECTOR_SRC
166 )
167
168 set(ASN1_DISSECTOR_SRC
169         ${CLEAN_ASN1_DISSECTOR_SRC}
170         ${DIRTY_ASN1_DISSECTOR_SRC}
171 )
172
173 set(DIRTY_CORBA_IDL_DISSECTOR_SRC
174         packet-cosnaming.c
175         packet-gias.c
176         packet-parlay.c
177         packet-tango.c
178 )
179
180 set(CLEAN_CORBA_IDL_DISSECTOR_SRC
181         packet-coseventcomm.c
182 )
183
184 set(CORBA_IDL_DISSECTOR_SRC
185         ${CLEAN_CORBA_IDL_DISSECTOR_SRC}
186         ${DIRTY_CORBA_IDL_DISSECTOR_SRC}
187 )
188
189 source_group(dissectors-corba FILES ${CORBA_IDL_DISSECTOR_SRC})
190
191 add_library(dissectors-corba OBJECT
192         ${CORBA_IDL_DISSECTOR_SRC}
193 )
194
195 set_target_properties(dissectors-corba PROPERTIES
196         FOLDER "Libs/epan/dissectors"
197         COMPILE_DEFINITIONS "WS_BUILD_DLL"
198         COMPILE_OPTIONS "${WS_WARNINGS_C_FLAGS}"
199 )
200
201 if(WIN32 AND "${CMAKE_GENERATOR}" STREQUAL "Visual Studio 12 2013 Win64")
202         # CORBA IDL dissectors are triggering a MSVC 2013 x64 /O2 bug leading to a NULL pointer dereference (see bug 12495)
203         target_compile_options(dissectors-corba PRIVATE $<$<CONFIG:Release>:/Ox> $<$<CONFIG:RelWithDebInfo>:/Ox>)
204 endif()
205
206 set(NCP2222_DISSECTOR_SRC
207         packet-ncp2222.c
208 )
209
210 source_group(dissectors-ncp2222 FILES ${NCP2222_DISSECTOR_SRC})
211
212 set(DISSECTOR_SRC
213         file-btsnoop.c
214         file-elf.c
215         file-file.c
216         file-gif.c
217         file-jpeg.c
218         file-mp4.c
219         file-pcap.c
220         file-pcapng.c
221         file-png.c
222         packet-2dparityfec.c
223         packet-3com-njack.c
224         packet-3com-xns.c
225         packet-3g-a11.c
226         packet-6lowpan.c
227         packet-9p.c
228         packet-a21.c
229         packet-aarp.c
230         packet-aastra-aasp.c
231         packet-acap.c
232         packet-acn.c
233         packet-acr122.c
234         packet-actrace.c
235         packet-adb.c
236         packet-adb_cs.c
237         packet-adb_service.c
238         packet-adwin-config.c
239         packet-adwin.c
240         packet-aeron.c
241         packet-afp.c
242         packet-afs.c
243         packet-agentx.c
244         packet-aim-admin.c
245         packet-aim-adverts.c
246         packet-aim-bos.c
247         packet-aim-buddylist.c
248         packet-aim-chat.c
249         packet-aim-chatnav.c
250         packet-aim-directory.c
251         packet-aim-email.c
252         packet-aim-generic.c
253         packet-aim-icq.c
254         packet-aim-invitation.c
255         packet-aim-location.c
256         packet-aim-messaging.c
257         packet-aim-oft.c
258         packet-aim-popup.c
259         packet-aim-signon.c
260         packet-aim-ssi.c
261         packet-aim-sst.c
262         packet-aim-stats.c
263         packet-aim-translate.c
264         packet-aim-userlookup.c
265         packet-aim.c
266         packet-ajp13.c
267         packet-alcap.c
268         packet-alljoyn.c
269         packet-amqp.c
270         packet-amr.c
271         packet-ancp.c
272         packet-ans.c
273         packet-ansi_637.c
274         packet-ansi_683.c
275         packet-ansi_801.c
276         packet-ansi_a.c
277         packet-aodv.c
278         packet-aoe.c
279         packet-aol.c
280         packet-ap1394.c
281         packet-app-pkix-cert.c
282         packet-applemidi.c
283         packet-aprs.c
284         packet-arcnet.c
285         packet-armagetronad.c
286         packet-arp.c
287         packet-artnet.c
288         packet-aruba-adp.c
289         packet-aruba-erm.c
290         packet-aruba-iap.c
291         packet-aruba-papi.c
292         packet-ar_drone.c
293         packet-asap.c
294         packet-ascend.c
295         packet-asf.c
296         packet-assa_r3.c
297         packet-asterix.c
298         packet-at.c
299         packet-atalk.c
300         packet-ath.c
301         packet-atm.c
302         packet-atmtcp.c
303         packet-auto_rp.c
304         packet-ax25.c
305         packet-ax25-kiss.c
306         packet-ax25-nol3.c
307         packet-ax4000.c
308         packet-ayiya.c
309         packet-babel.c
310         packet-bacapp.c
311         packet-bacnet.c
312         packet-banana.c
313         packet-bat.c
314         packet-batadv.c
315         packet-bctp.c
316         packet-beep.c
317         packet-bencode.c
318         packet-ber.c
319         packet-bfcp.c
320         packet-bfd.c
321         packet-bgp.c
322         packet-bitcoin.c
323         packet-bittorrent.c
324         packet-bjnp.c
325         packet-bluecom.c
326         packet-bluetooth.c
327         packet-bmc.c
328         packet-bmp.c
329         packet-bofl.c
330         packet-bootp.c
331         packet-bootparams.c
332         packet-bpdu.c
333         packet-bpq.c
334         packet-brdwlk.c
335         packet-brp.c
336         packet-bssap.c
337         packet-bssgp.c
338         packet-bt-dht.c
339         packet-bt-utp.c
340         packet-bt3ds.c
341         packet-btamp.c
342         packet-btatt.c
343         packet-btbnep.c
344         packet-btbredr_rf.c
345         packet-btavctp.c
346         packet-btavdtp.c
347         packet-btavrcp.c
348         packet-bthci_acl.c
349         packet-bthci_cmd.c
350         packet-bthci_evt.c
351         packet-bthci_sco.c
352         packet-bthci_vendor.c
353         packet-bthcrp.c
354         packet-bthfp.c
355         packet-bthid.c
356         packet-bthsp.c
357         packet-btl2cap.c
358         packet-btle.c
359         packet-btle_rf.c
360         packet-btmcap.c
361         packet-btrfcomm.c
362         packet-btsap.c
363         packet-btsdp.c
364         packet-btsmp.c
365         packet-bvlc.c
366         packet-bzr.c
367         packet-c15ch.c
368         packet-calcappprotocol.c
369         packet-canopen.c
370         packet-capwap.c
371         packet-carp.c
372         packet-cast.c
373         packet-catapult-dct2000.c
374         packet-cattp.c
375         packet-cbor.c
376         packet-ccsds.c
377         packet-cdp.c
378         packet-cell_broadcast.c
379         packet-ceph.c
380         packet-cfdp.c
381         packet-cfm.c
382         packet-cgmp.c
383         packet-chargen.c
384         packet-chdlc.c
385         packet-cigi.c
386         packet-cimd.c
387         packet-cimetrics.c
388         packet-cip.c
389         packet-cipmotion.c
390         packet-cipsafety.c
391         packet-cisco-erspan.c
392         packet-cisco-fp-mim.c
393         packet-cisco-marker.c
394         packet-cisco-metadata.c
395         packet-cisco-oui.c
396         packet-cisco-sm.c
397         packet-cisco-ttag.c
398         packet-cisco-wids.c
399         packet-classicstun.c
400         packet-clearcase.c
401         packet-clip.c
402         packet-clique-rm.c
403         packet-clnp.c
404         packet-cmpp.c
405         packet-cnip.c
406         packet-coap.c
407         packet-collectd.c
408         packet-componentstatus.c
409         packet-cops.c
410         packet-corosync-totemnet.c
411         packet-corosync-totemsrp.c
412         packet-cosine.c
413         packet-couchbase.c
414         packet-cp2179.c
415         packet-cpfi.c
416         packet-cpha.c
417         packet-cql.c
418         packet-csm-encaps.c
419         packet-csn1.c
420         packet-ctdb.c
421         packet-cups.c
422         packet-daap.c
423         packet-data.c
424         packet-daytime.c
425         packet-db-lsp.c
426         packet-dbus.c
427         packet-dcc.c
428         packet-dccp.c
429         packet-dcerpc-bossvr.c
430         packet-dcerpc-browser.c
431         packet-dcerpc-cds_clerkserver.c
432         packet-dcerpc-cds_solicit.c
433         packet-dcerpc-conv.c
434         packet-dcerpc-cprpc_server.c
435         packet-dcerpc-dce122.c
436         packet-dcerpc-dtsprovider.c
437         packet-dcerpc-dtsstime_req.c
438         packet-dcerpc-epm.c
439         packet-dcerpc-fileexp.c
440         packet-dcerpc-fldb.c
441         packet-dcerpc-frsapi.c
442         packet-dcerpc-frsrpc.c
443         packet-dcerpc-ftserver.c
444         packet-dcerpc-icl_rpc.c
445         packet-dcerpc-krb5rpc.c
446         packet-dcerpc-llb.c
447         packet-dcerpc-messenger.c
448         packet-dcerpc-mgmt.c
449         packet-dcerpc-ndr.c
450         packet-dcerpc-netlogon.c
451         packet-dcerpc-pnp.c
452         packet-dcerpc-rdaclif.c
453         packet-dcerpc-rep_proc.c
454         packet-dcerpc-roverride.c
455         packet-dcerpc-rpriv.c
456         packet-dcerpc-rras.c
457         packet-dcerpc-rs_acct.c
458         packet-dcerpc-rs_attr.c
459         packet-dcerpc-rs_attr_schema.c
460         packet-dcerpc-rs_bind.c
461         packet-dcerpc-rs_misc.c
462         packet-dcerpc-rs_pgo.c
463         packet-dcerpc-rs_plcy.c
464         packet-dcerpc-rs_prop_acct.c
465         packet-dcerpc-rs_prop_acl.c
466         packet-dcerpc-rs_prop_attr.c
467         packet-dcerpc-rs_prop_pgo.c
468         packet-dcerpc-rs_prop_plcy.c
469         packet-dcerpc-rs_pwd_mgmt.c
470         packet-dcerpc-rs_repadm.c
471         packet-dcerpc-rs_replist.c
472         packet-dcerpc-rs_repmgr.c
473         packet-dcerpc-rs_unix.c
474         packet-dcerpc-rsec_login.c
475         packet-dcerpc-samr.c
476         packet-dcerpc-secidmap.c
477         packet-dcerpc-spoolss.c
478         packet-dcerpc-svcctl.c
479         packet-dcerpc-tapi.c
480         packet-dcerpc-tkn4int.c
481         packet-dcerpc-trksvr.c
482         packet-dcerpc-ubikdisk.c
483         packet-dcerpc-ubikvote.c
484         packet-dcerpc-update.c
485         packet-dcerpc.c
486         packet-dcm.c
487         packet-dcom-dispatch.c
488         packet-dcom-oxid.c
489         packet-dcom-remact.c
490         packet-dcom-remunkn.c
491         packet-dcom-sysact.c
492         packet-dcom.c
493         packet-dcp-etsi.c
494         packet-ddtp.c
495         packet-dec-bpdu.c
496         packet-dec-dnart.c
497         packet-dect.c
498         packet-devicenet.c
499         packet-dhcp-failover.c
500         packet-dhcpv6.c
501         packet-diameter.c
502         packet-diameter_3gpp.c
503         packet-diffserv-mpls-common.c
504         packet-dis.c
505         packet-distcc.c
506         packet-dji-uav.c
507         packet-dlm3.c
508         packet-dlsw.c
509         packet-dmp.c
510         packet-dmx.c
511         packet-dnp.c
512         packet-dns.c
513         packet-dof.c
514         packet-dplay.c
515         packet-dpnss-link.c
516         packet-dpnss.c
517         packet-drda.c
518         packet-dsi.c
519         packet-dsr.c
520         packet-dtcp-ip.c
521         packet-dtls.c
522         packet-dtn.c
523         packet-dtp.c
524         packet-dtpt.c
525         packet-dua.c
526         packet-dvb-ait.c
527         packet-dvb-bat.c
528         packet-dvb-data-mpe.c
529         packet-dvb-eit.c
530         packet-dvb-ipdc.c
531         packet-dvb-nit.c
532         packet-dvb-s2-bb.c
533         packet-dvb-sdt.c
534         packet-dvb-tdt.c
535         packet-dvb-tot.c
536         packet-dvbci.c
537         packet-dvmrp.c
538         packet-e100.c
539         packet-e164.c
540         packet-e212.c
541         packet-eap.c
542         packet-eapol.c
543         packet-echo.c
544         packet-ecmp.c
545         packet-ecp-oui.c
546         packet-edonkey.c
547         packet-egd.c
548         packet-ehdlc.c
549         packet-ehs.c
550         packet-eigrp.c
551         packet-eiss.c
552         packet-elasticsearch.c
553         packet-elcom.c
554         packet-elmi.c
555         packet-enc.c
556         packet-enip.c
557         packet-enrp.c
558         packet-enttec.c
559         packet-epl.c
560         packet-epl_v1.c
561         packet-epmd.c
562         packet-epon.c
563         packet-erf.c
564         packet-erldp.c
565         packet-esio.c
566         packet-esis.c
567         packet-etag.c
568         packet-etch.c
569         packet-eth.c
570         packet-etherip.c
571         packet-ethertype.c
572         packet-etsi_card_app_toolkit.c
573         packet-etv.c
574         packet-evrc.c
575         packet-exec.c
576         packet-exported_pdu.c
577         packet-extreme.c
578         packet-fc.c
579         packet-fcct.c
580         packet-fcdns.c
581         packet-fcels.c
582         packet-fcfcs.c
583         packet-fcfzs.c
584         packet-fcgi.c
585         packet-fcip.c
586         packet-fclctl.c
587         packet-fcoe.c
588         packet-fcoib.c
589         packet-fcp.c
590         packet-fcsb3.c
591         packet-fcsp.c
592         packet-fcswils.c
593         packet-fddi.c
594         packet-fefd.c
595         packet-ff.c
596         packet-finger.c
597         packet-fip.c
598         packet-fix.c
599         packet-flexnet.c
600         packet-flexray.c
601         packet-flip.c
602         packet-fmp.c
603         packet-fmp_notify.c
604         packet-fmtp.c
605         packet-force10-oui.c
606         packet-forces.c
607         packet-foundry.c
608         packet-fp_hint.c
609         packet-fr.c
610         packet-fractalgeneratorprotocol.c
611         packet-frame.c
612         packet-ftp.c
613         packet-fw1.c
614         packet-g723.c
615         packet-gadu-gadu.c
616         packet-gdb.c
617         packet-gdsdb.c
618         packet-gearman.c
619         packet-ged125.c
620         packet-geneve.c
621         packet-gfp.c
622         packet-gift.c
623         packet-giop.c
624         packet-git.c
625         packet-glbp.c
626         packet-gluster_cli.c
627         packet-gluster_pmap.c
628         packet-glusterd.c
629         packet-glusterfs.c
630         packet-glusterfs_hndsk.c
631         packet-gmhdr.c
632         packet-gmr1_bcch.c
633         packet-gmr1_common.c
634         packet-gmr1_dtap.c
635         packet-gmr1_rach.c
636         packet-gmr1_rr.c
637         packet-gmrp.c
638         packet-gnutella.c
639         packet-gopher.c
640         packet-gpef.c
641         packet-gprs-llc.c
642         packet-gprscdr.c
643         packet-gre.c
644         packet-gsm_a_bssmap.c
645         packet-gsm_a_common.c
646         packet-gsm_a_dtap.c
647         packet-gsm_a_gm.c
648         packet-gsm_a_rp.c
649         packet-gsm_a_rr.c
650         packet-gsm_abis_om2000.c
651         packet-gsm_abis_oml.c
652         packet-gsm_abis_tfp.c
653         packet-gsm_abis_pgsl.c
654         packet-gsm_bsslap.c
655         packet-gsm_bssmap_le.c
656         packet-gsm_cbch.c
657         packet-gsm_ipa.c
658         packet-gsm_osmux.c
659         packet-gsm_rlcmac.c
660         packet-gsm_sim.c
661         packet-gsm_sms.c
662         packet-gsm_sms_ud.c
663         packet-gsm_um.c
664         packet-gsmtap.c
665         packet-gssapi.c
666         packet-gtp.c
667         packet-gtpv2.c
668         packet-gvcp.c
669         packet-gvrp.c
670         packet-gvsp.c
671         packet-h1.c
672         packet-h221_nonstd.c
673         packet-h223.c
674         packet-h248_10.c
675         packet-h248_2.c
676         packet-h248_3gpp.c
677         packet-h248_7.c
678         packet-h248_annex_c.c
679         packet-h248_annex_e.c
680         packet-h248_q1950.c
681         packet-h261.c
682         packet-h263.c
683         packet-h263p.c
684         packet-h264.c
685         packet-hartip.c
686         packet-hazelcast.c
687         packet-hci_h1.c
688         packet-hci_h4.c
689         packet-hci_mon.c
690         packet-hci_usb.c
691         packet-hclnfsd.c
692         packet-hcrt.c
693         packet-hdcp.c
694         packet-hdcp2.c
695         packet-hdfs.c
696         packet-hdfsdata.c
697         packet-hdmi.c
698         packet-hip.c
699         packet-hiqnet.c
700         packet-hislip.c
701         packet-homeplug-av.c
702         packet-homeplug.c
703         packet-hp-erm.c
704         packet-hpext.c
705         packet-hpfeeds.c
706         packet-hpsw.c
707         packet-hpteam.c
708         packet-hsms.c
709         packet-hsr-prp-supervision.c
710         packet-hsr.c
711         packet-hsrp.c
712         packet-http.c
713         packet-http2.c
714         packet-http-urlencoded.c
715         packet-hyperscsi.c
716         packet-i2c.c
717         packet-iana-oui.c
718         packet-iapp.c
719         packet-iax2.c
720         packet-icap.c
721         packet-icep.c
722         packet-icmp.c
723         packet-icmpv6.c
724         packet-icp.c
725         packet-icq.c
726         packet-idp.c
727         packet-idrp.c
728         packet-iec104.c
729         packet-ieee1722.c
730         packet-ieee17221.c
731         packet-ieee80211-netmon.c
732         packet-ieee80211-prism.c
733         packet-ieee80211-radio.c
734         packet-ieee80211-radiotap-iter.c
735         packet-ieee80211-radiotap.c
736         packet-ieee80211-wlancap.c
737         packet-ieee80211.c
738         packet-ieee802154.c
739         packet-ieee8021ah.c
740         packet-ieee8023.c
741         packet-ieee802a.c
742         packet-ifcp.c
743         packet-igap.c
744         packet-igmp.c
745         packet-igrp.c
746         packet-imap.c
747         packet-imf.c
748         packet-infiniband.c
749         packet-infiniband_sdp.c
750         packet-interlink.c
751         packet-ip.c
752         packet-ipars.c
753         packet-ipdc.c
754         packet-ipdr.c
755         packet-ipfc.c
756         packet-ipmi.c
757         packet-ipmi-app.c
758         packet-ipmi-bridge.c
759         packet-ipmi-chassis.c
760         packet-ipmi-picmg.c
761         packet-ipmi-se.c
762         packet-ipmi-session.c
763         packet-ipmi-storage.c
764         packet-ipmi-trace.c
765         packet-ipmi-transport.c
766         packet-ipmi-pps.c
767         packet-ipmi-update.c
768         packet-ipmi-vita.c
769         packet-ipnet.c
770         packet-ipoib.c
771         packet-ipos.c
772         packet-ipp.c
773         packet-ipsec-tcp.c
774         packet-ipsec-udp.c
775         packet-ipsec.c
776         packet-ipsi-ctl.c
777         packet-ipv6.c
778         packet-ipvs-syncd.c
779         packet-ipx.c
780         packet-ipxwan.c
781         packet-irc.c
782         packet-isakmp.c
783         packet-iscsi.c
784         packet-isdn.c
785         packet-iser.c
786         packet-isi.c
787         packet-isis-clv.c
788         packet-isis-hello.c
789         packet-isis-lsp.c
790         packet-isis-snp.c
791         packet-isis.c
792         packet-isl.c
793         packet-ismacryp.c
794         packet-ismp.c
795         packet-isns.c
796         packet-iso14443.c
797         packet-iso15765.c
798         packet-iso7816.c
799         packet-iso8583.c
800         packet-isup.c
801         packet-itdm.c
802         packet-iua.c
803         packet-iuup.c
804         packet-iwarp-ddp-rdmap.c
805         packet-iwarp-mpa.c
806         packet-ixiatrailer.c
807         packet-ixveriwave.c
808         packet-j1939.c
809         packet-jmirror.c
810         packet-jpeg.c
811         packet-json.c
812         packet-juniper.c
813         packet-jxta.c
814         packet-k12.c
815         packet-kadm5.c
816         packet-kafka.c
817         packet-kdp.c
818         packet-kdsp.c
819         packet-kerberos4.c
820         packet-kingfisher.c
821         packet-kink.c
822         packet-kismet.c
823         packet-klm.c
824         packet-knet.c
825         packet-knxnetip.c
826         packet-kpasswd.c
827         packet-kt.c
828         packet-l1-events.c
829         packet-l2tp.c
830         packet-lacp.c
831         packet-lanforge.c
832         packet-lapb.c
833         packet-lapbether.c
834         packet-lapd.c
835         packet-lapdm.c
836         packet-laplink.c
837         packet-lapsat.c
838         packet-lat.c
839         packet-lbm.c
840         packet-lbmc.c
841         packet-lbmpdm.c
842         packet-lbmpdmtcp.c
843         packet-lbmr.c
844         packet-lbtrm.c
845         packet-lbtru.c
846         packet-lbttcp.c
847         packet-ldp.c
848         packet-ldss.c
849         packet-lg8979.c
850         packet-lge_monitor.c
851         packet-link16.c
852         packet-linx.c
853         packet-lisp-data.c
854         packet-lisp-tcp.c
855         packet-lisp.c
856         packet-llc.c
857         packet-lldp.c
858         packet-llrp.c
859         packet-llt.c
860         packet-lltd.c
861         packet-lmi.c
862         packet-lmp.c
863         packet-logcat.c
864         packet-logcat-text.c
865         packet-lon.c
866         packet-loop.c
867         packet-lpd.c
868         packet-lsc.c
869         packet-ltp.c
870         packet-lwapp.c
871         packet-lwm.c
872         packet-lwm2mtlv.c
873         packet-lwres.c
874         packet-m2pa.c
875         packet-m2tp.c
876         packet-m2ua.c
877         packet-m3ua.c
878         packet-maap.c
879         packet-mac-lte-framed.c
880         packet-mac-lte.c
881         packet-maccontrol.c
882         packet-macsec.c
883         packet-mactelnet.c
884         packet-manolito.c
885         packet-marker.c
886         packet-mausb.c
887         packet-mbim.c
888         packet-mbtcp.c
889         packet-mcpe.c
890         packet-mdshdr.c
891         packet-media.c
892         packet-megaco.c
893         packet-memcache.c
894         packet-mesh.c
895         packet-meta.c
896         packet-metamako.c
897         packet-mgcp.c
898         packet-mih.c
899         packet-mikey.c
900         packet-mime-encap.c
901         packet-mint.c
902         packet-miop.c
903         packet-mip.c
904         packet-mip6.c
905         packet-mka.c
906         packet-mmse.c
907         packet-mndp.c
908         packet-mojito.c
909         packet-moldudp.c
910         packet-moldudp64.c
911         packet-mongo.c
912         packet-mount.c
913         packet-mp2t.c
914         packet-mp4ves.c
915         packet-mpeg-ca.c
916         packet-mpeg-descriptor.c
917         packet-mpeg-dsmcc.c
918         packet-mpeg-pat.c
919         packet-mpeg-pmt.c
920         packet-mpeg-sect.c
921         packet-mpeg1.c
922         packet-mpls-echo.c
923         packet-mpls-pm.c
924         packet-mpls-psc.c
925         packet-mplstp-oam.c
926         packet-mpls-y1711.c
927         packet-mpls.c
928         packet-mq-base.c
929         packet-mq-pcf.c
930         packet-mq.c
931         packet-mqtt.c
932         packet-mqtt-sn.c
933         packet-mrcpv2.c
934         packet-mrdisc.c
935         packet-mrp-mmrp.c
936         packet-mrp-msrp.c
937         packet-mrp-mvrp.c
938         packet-ms-mms.c
939         packet-msdp.c
940         packet-msn-messenger.c
941         packet-msnip.c
942         packet-msnlb.c
943         packet-msproxy.c
944         packet-msrp.c
945         packet-mstp.c
946         packet-mswsp.c
947         packet-mtp2.c
948         packet-mtp3.c
949         packet-mtp3mg.c
950         packet-multipart.c
951         packet-mux27010.c
952         packet-mysql.c
953         packet-nas_eps.c
954         packet-nasdaq-itch.c
955         packet-nasdaq-soup.c
956         packet-nat-pmp.c
957         packet-nb_rtpmux.c
958         packet-nbd.c
959         packet-nbifom.c
960         packet-nbipx.c
961         packet-nbt.c
962         packet-ncp-nmas.c
963         packet-ncp-sss.c
964         packet-ncp.c
965         packet-ncs.c
966         packet-ndmp.c
967         packet-ndp.c
968         packet-ndps.c
969         packet-negoex.c
970         packet-netanalyzer.c
971         packet-netbios.c
972         packet-netdump.c
973         packet-netflow.c
974         packet-netlink-netfilter.c
975         packet-netlink-route.c
976         packet-netlink-sock_diag.c
977         packet-netlink.c
978         packet-netperfmeter.c
979         packet-netrom.c
980         packet-netsync.c
981         packet-nettl.c
982         packet-newmail.c
983         packet-nflog.c
984         packet-nfs.c
985         packet-nfsacl.c
986         packet-nfsauth.c
987         packet-nhrp.c
988         packet-nisplus.c
989         packet-nlm.c
990         packet-nlsp.c
991         packet-nntp.c
992         packet-noe.c
993         packet-nordic_ble.c
994         packet-nsip.c
995         packet-nsh.c
996         packet-nsrp.c
997         packet-nstrace.c
998         packet-nt-oui.c
999         packet-nt-tpcp.c
1000         packet-ntlmssp.c
1001         packet-ntp.c
1002         packet-null.c
1003         packet-nwmtp.c
1004         packet-nwp.c
1005         packet-oampdu.c
1006         packet-obex.c
1007         packet-ocfs2.c
1008         packet-oicq.c
1009         packet-oipf.c
1010         packet-olsr.c
1011         packet-omapi.c
1012         packet-omron-fins.c
1013         packet-opa.c
1014         packet-opa-fe.c
1015         packet-opa-mad.c
1016         packet-opa-snc.c
1017         packet-openflow.c
1018         packet-openflow_v1.c
1019         packet-openflow_v4.c
1020         packet-openflow_v5.c
1021         packet-opensafety.c
1022         packet-openvpn.c
1023         packet-openwire.c
1024         packet-opsi.c
1025         packet-optommp.c
1026         packet-osc.c
1027         packet-osi-options.c
1028         packet-osi.c
1029         packet-ositp.c
1030         packet-ospf.c
1031         packet-ossp.c
1032         packet-ouch.c
1033         packet-p_mul.c
1034         packet-pathport.c
1035         packet-packetbb.c
1036         packet-packetlogger.c
1037         packet-pagp.c
1038         packet-paltalk.c
1039         packet-pana.c
1040         packet-pcap_pktdata.c
1041         packet-pcapng_block.c
1042         packet-pcep.c
1043         packet-pcli.c
1044         packet-pcnfsd.c
1045         packet-pcp.c
1046         packet-pdc.c
1047         packet-pdcp-lte.c
1048         packet-peekremote.c
1049         packet-per.c
1050         packet-pflog.c
1051         packet-pgm.c
1052         packet-pgsql.c
1053         packet-pim.c
1054         packet-pingpongprotocol.c
1055         packet-pktap.c
1056         packet-pktc.c
1057         packet-pktgen.c
1058         packet-pmproxy.c
1059         packet-pnrp.c
1060         packet-pop.c
1061         packet-portmap.c
1062         packet-ppcap.c
1063         packet-ppi-antenna.c
1064         packet-ppi-geolocation-common.c
1065         packet-ppi-gps.c
1066         packet-ppi-sensor.c
1067         packet-ppi-vector.c
1068         packet-ppi.c
1069         packet-ppp.c
1070         packet-pppoe.c
1071         packet-pptp.c
1072         packet-prp.c
1073         packet-ptp.c
1074         packet-ptpip.c
1075         packet-pulse.c
1076         packet-pvfs2.c
1077         packet-pw-atm.c
1078         packet-pw-cesopsn.c
1079         packet-pw-common.c
1080         packet-pw-eth.c
1081         packet-pw-fr.c
1082         packet-pw-hdlc.c
1083         packet-pw-oam.c
1084         packet-pw-satop.c
1085         packet-q2931.c
1086         packet-q708.c
1087         packet-q931.c
1088         packet-q933.c
1089         packet-qllc.c
1090         packet-qnet6.c
1091         packet-quake.c
1092         packet-quake2.c
1093         packet-quake3.c
1094         packet-quakeworld.c
1095         packet-quic.c
1096         packet-radius.c
1097         packet-radius_packetcable.c
1098         packet-raknet.c
1099         packet-raw.c
1100         packet-rdm.c
1101         packet-rdp.c
1102         packet-rdt.c
1103         packet-redback.c
1104         packet-redbackli.c
1105         packet-reload-framing.c
1106         packet-reload.c
1107         packet-retix-bpdu.c
1108         packet-rfc2190.c
1109         packet-rfid-felica.c
1110         packet-rfid-mifare.c
1111         packet-rfid-pn532.c
1112         packet-rfid-pn532-hci.c
1113         packet-rftap.c
1114         packet-rgmp.c
1115         packet-riemann.c
1116         packet-rip.c
1117         packet-ripng.c
1118         packet-rlc-lte.c
1119         packet-rlc.c
1120         packet-rlm.c
1121         packet-rlogin.c
1122         packet-rmcp.c
1123         packet-rmi.c
1124         packet-rmp.c
1125         packet-rmt-alc.c
1126         packet-rmt-fec.c
1127         packet-rmt-lct.c
1128         packet-rmt-norm.c
1129         packet-rohc.c
1130         packet-roofnet.c
1131         packet-rpc.c
1132         packet-rpcap.c
1133         packet-rpcrdma.c
1134         packet-rpki-rtr.c
1135         packet-rpl.c
1136         packet-rquota.c
1137         packet-rsh.c
1138         packet-rsip.c
1139         packet-rsl.c
1140         packet-rstat.c
1141         packet-rsvd.c
1142         packet-rsvp.c
1143         packet-rsync.c
1144         packet-rtacser.c
1145         packet-rtcdc.c
1146         packet-rtcp.c
1147         packet-rtitcp.c
1148         packet-rtls.c
1149         packet-rtmpt.c
1150         packet-rtnet.c
1151         packet-rtp-events.c
1152         packet-rtp-midi.c
1153         packet-rtp.c
1154         packet-rtpproxy.c
1155         packet-rtps.c
1156         packet-rtsp.c
1157         packet-rudp.c
1158         packet-rwall.c
1159         packet-rx.c
1160         packet-s5066sis.c
1161         packet-s5066dts.c
1162         packet-s7comm.c
1163         packet-s7comm_szl_ids.c
1164         packet-sadmind.c
1165         packet-sametime.c
1166         packet-sap.c
1167         packet-sasp.c
1168         packet-sbus.c
1169         packet-sbc.c
1170         packet-sccp.c
1171         packet-sccpmg.c
1172         packet-scop.c
1173         packet-scriptingservice.c
1174         packet-scsi-mmc.c
1175         packet-scsi-osd.c
1176         packet-scsi-sbc.c
1177         packet-scsi-smc.c
1178         packet-scsi-ssc.c
1179         packet-scsi.c
1180         packet-scte35.c
1181         packet-sctp.c
1182         packet-sdh.c
1183         packet-sdlc.c
1184         packet-sdp.c
1185         packet-sebek.c
1186         packet-selfm.c
1187         packet-sercosiii.c
1188         packet-ses.c
1189         packet-sflow.c
1190         packet-sgsap.c
1191         packet-shim6.c
1192         packet-sigcomp.c
1193         packet-simple.c
1194         packet-simulcrypt.c
1195         packet-sip.c
1196         packet-sipfrag.c
1197         packet-sita.c
1198         packet-skinny.c
1199         packet-skype.c
1200         packet-slimp3.c
1201         packet-sll.c
1202         packet-slowprotocols.c
1203         packet-slsk.c
1204         packet-smb-browse.c
1205         packet-smb-common.c
1206         packet-smb-logon.c
1207         packet-smb-mailslot.c
1208         packet-smb-pipe.c
1209         packet-smb-sidsnooping.c
1210         packet-smb-direct.c
1211         packet-smb.c
1212         packet-smb2.c
1213         packet-smcr.c
1214         packet-sml.c
1215         packet-smpp.c
1216         packet-smtp.c
1217         packet-sna.c
1218         packet-snaeth.c
1219         packet-sndcp-xid.c
1220         packet-sndcp.c
1221         packet-socketcan.c
1222         packet-socks.c
1223         packet-soupbintcp.c
1224         packet-spdy.c
1225         packet-spice.c
1226         packet-spp.c
1227         packet-spray.c
1228         packet-sprt.c
1229         packet-srp.c
1230         packet-srvloc.c
1231         packet-sscf-nni.c
1232         packet-sscop.c
1233         packet-ssh.c
1234         packet-ssl-utils.c
1235         packet-ssl.c
1236         packet-sstp.c
1237         packet-stanag4607.c
1238         packet-starteam.c
1239         packet-stat-notify.c
1240         packet-stat.c
1241         packet-stt.c
1242         packet-stun.c
1243         packet-sua.c
1244         packet-swipe.c
1245         packet-symantec.c
1246         packet-sync.c
1247         packet-synergy.c
1248         packet-synphasor.c
1249         packet-sysdig-event.c
1250         packet-sysex.c
1251         packet-syslog.c
1252         packet-t30.c
1253         packet-tacacs.c
1254         packet-tali.c
1255         packet-tapa.c
1256         packet-tcp.c
1257         packet-tcpros.c
1258         packet-tdmoe.c
1259         packet-tdmop.c
1260         packet-tds.c
1261         packet-teamspeak2.c
1262         packet-teimanagement.c
1263         packet-teklink.c
1264         packet-telkonet.c
1265         packet-telnet.c
1266         packet-teredo.c
1267         packet-text-media.c
1268         packet-tfp.c
1269         packet-tftp.c
1270         packet-thrift.c
1271         packet-time.c
1272         packet-tipc.c
1273         packet-tivoconnect.c
1274         packet-tn3270.c
1275         packet-tn5250.c
1276         packet-tnef.c
1277         packet-tns.c
1278         packet-tpkt.c
1279         packet-tpncp.c
1280         packet-tr.c
1281         packet-trill.c
1282         packet-trmac.c
1283         packet-tsp.c
1284         packet-tte-pcf.c
1285         packet-tte.c
1286         packet-turbocell.c
1287         packet-turnchannel.c
1288         packet-tuxedo.c
1289         packet-tzsp.c
1290         packet-u3v.c
1291         packet-ua.c
1292         packet-ua3g.c
1293         packet-uasip.c
1294         packet-uaudp.c
1295         packet-ubertooth.c
1296         packet-ucp.c
1297         packet-udld.c
1298         packet-udp.c
1299         packet-uds.c
1300         packet-udt.c
1301         packet-uftp.c
1302         packet-uftp4.c
1303         packet-uhd.c
1304         packet-uma.c
1305         packet-umts_fp.c
1306         packet-umts_mac.c
1307         packet-usb-audio.c
1308         packet-usb-ccid.c
1309         packet-usb-com.c
1310         packet-usb-dfu.c
1311         packet-usb-hid.c
1312         packet-usb-hub.c
1313         packet-usb-masstorage.c
1314         packet-usb-video.c
1315         packet-usb.c
1316         packet-usbip.c
1317         packet-user_encap.c
1318         packet-userlog.c
1319         packet-uts.c
1320         packet-v120.c
1321         packet-v150fw.c
1322         packet-v52.c
1323         packet-v5dl.c
1324         packet-v5ef.c
1325         packet-v5ua.c
1326         packet-vcdu.c
1327         packet-vicp.c
1328         packet-vines.c
1329         packet-vlan.c
1330         packet-vmlab.c
1331         packet-vnc.c
1332         packet-vntag.c
1333         packet-vp8.c
1334         packet-vrrp.c
1335         packet-vrt.c
1336         packet-vsip.c
1337         packet-vsock.c
1338         packet-vssmonitoring.c
1339         packet-vtp.c
1340         packet-vuze-dht.c
1341         packet-vxi11.c
1342         packet-vxlan.c
1343         packet-wai.c
1344         packet-wap.c
1345         packet-wassp.c
1346         packet-waveagent.c
1347         packet-wbxml.c
1348         packet-wccp.c
1349         packet-wcp.c
1350         packet-websocket.c
1351         packet-wfleet-hdlc.c
1352         packet-who.c
1353         packet-whois.c
1354         packet-wifi-display.c
1355         packet-wifi-p2p.c
1356         packet-windows-common.c
1357         packet-winsrepl.c
1358         packet-wlccp.c
1359         packet-wol.c
1360         packet-wow.c
1361         packet-wps.c
1362         packet-wreth.c
1363         packet-wsmp.c
1364         packet-wsp.c
1365         packet-wtls.c
1366         packet-wtp.c
1367         packet-x11.c
1368         packet-x25.c
1369         packet-x29.c
1370         packet-xcsl.c
1371         packet-xdmcp.c
1372         packet-xip.c
1373         packet-xip-serval.c
1374         packet-xmcp.c
1375         packet-xml.c
1376         packet-xmpp-conference.c
1377         packet-xmpp-core.c
1378         packet-xmpp-gtalk.c
1379         packet-xmpp-jingle.c
1380         packet-xmpp-other.c
1381         packet-xmpp-utils.c
1382         packet-xmpp.c
1383         packet-xot.c
1384         packet-xtp.c
1385         packet-xyplex.c
1386         packet-yami.c
1387         packet-yhoo.c
1388         packet-ymsg.c
1389         packet-ypbind.c
1390         packet-yppasswd.c
1391         packet-ypserv.c
1392         packet-ypxfr.c
1393         packet-zbee-aps.c
1394         packet-zbee-nwk.c
1395         packet-zbee-nwk-gp.c
1396         packet-zbee-security.c
1397         packet-zbee-zcl.c
1398         packet-zbee-zcl-closures.c
1399         packet-zbee-zcl-general.c
1400         packet-zbee-zcl-ha.c
1401         packet-zbee-zcl-hvac.c
1402         packet-zbee-zcl-lighting.c
1403         packet-zbee-zcl-meas-sensing.c
1404         packet-zbee-zcl-misc.c
1405         packet-zbee-zcl-sas.c
1406         packet-zbee-zcl-se.c
1407         packet-zbee-zdp.c
1408         packet-zbee-zdp-binding.c
1409         packet-zbee-zdp-discovery.c
1410         packet-zbee-zdp-management.c
1411         packet-zebra.c
1412         packet-zep.c
1413         packet-ziop.c
1414         packet-zrtp.c
1415         packet-zvt.c
1416 )
1417
1418 set(DISSECTOR_SUPPORT_SRC
1419         packet-dcerpc-nt.c
1420         usb.c
1421         register.c
1422 )
1423 source_group(dissector-support FILES ${DISSECTOR_SUPPORT_SRC})
1424
1425 set(DISSECTOR_FILES
1426         ${DISSECTOR_SRC}
1427         ${PIDL_DISSECTOR_SRC}
1428         ${PIDL_DISSECTOR_AUTOGEN_SRC}
1429         ${ASN1_DISSECTOR_SRC}
1430         ${NCP2222_DISSECTOR_SRC}
1431         ${CUSTOM_DISSECTOR_SRC}
1432         ${CUSTOM_DIRTY_ASN1_DISSECTOR_SRC}
1433 )
1434 source_group(dissectors FILES ${DISSECTOR_FILES})
1435
1436 set(ALL_DISSECTOR_SRC
1437         ${DISSECTOR_FILES}
1438         ${CORBA_IDL_DISSECTOR_SRC}
1439 )
1440
1441 register_dissector_files(register.c
1442         dissectors
1443         ${ALL_DISSECTOR_SRC}
1444 )
1445
1446 set(CLEAN_FILES
1447         ${DISSECTOR_SRC}
1448         ${PIDL_DISSECTOR_SRC}
1449         ${CLEAN_ASN1_DISSECTOR_SRC}
1450         ${CLEAN_CORBA_IDL_DISSECTOR_SRC}
1451         ${NCP2222_DISSECTOR_SRC}
1452         ${DISSECTOR_SUPPORT_SRC}
1453 )
1454
1455 set_source_files_properties(
1456         ${CLEAN_FILES}
1457         PROPERTIES
1458         COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
1459 )
1460
1461 add_library(dissectors OBJECT
1462         ${DISSECTOR_FILES}
1463         ${DISSECTOR_SUPPORT_SRC}
1464 )
1465
1466 set_target_properties(dissectors PROPERTIES
1467         FOLDER "Libs/epan/dissectors"
1468         COMPILE_DEFINITIONS "WS_BUILD_DLL"
1469         COMPILE_OPTIONS "${WS_WARNINGS_C_FLAGS}"
1470 )
1471
1472 set(CHECKAPI_FILE_LIST "${CMAKE_CURRENT_BINARY_DIR}/files.txt")
1473 file(GLOB DISSECTOR_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.h")
1474 file(WRITE "${CHECKAPI_FILE_LIST}" "${DISSECTOR_FILES}" "${CORBA_IDL_DISSECTOR_SRC}")
1475 CHECKAPI(
1476         NAME
1477           dissectors
1478         SWITCHES
1479           -g abort -g termoutput -build --file ${CHECKAPI_FILE_LIST}
1480         SOURCES
1481           ${DISSECTOR_SUPPORT_SRC}
1482           ${DISSECTOR_HEADERS}
1483 )
1484
1485 #
1486 # Editor modelines  -  http://www.wireshark.org/tools/modelines.html
1487 #
1488 # Local variables:
1489 # c-basic-offset: 8
1490 # tab-width: 8
1491 # indent-tabs-mode: t
1492 # End:
1493 #
1494 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
1495 # :indentSize=8:tabSize=8:noTabs=false:
1496 #