GTK3 typo fixes:
[obnox/wireshark/wip.git] / gtk / 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
25 set(WIRESHARK_GTK_SRC
26         about_dlg.c
27         airpcap_dlg.c
28         airpcap_gui_utils.c
29         capture_dlg.c
30         capture_file_dlg.c
31         capture_if_dlg.c
32         capture_info_dlg.c
33         cfilter_combo_utils.c
34         color_dlg.c
35         color_edit_dlg.c
36         color_utils.c
37         conversations_table.c
38         decode_as_ber.c
39         decode_as_dcerpc.c
40         decode_as_dlg.c
41         dfilter_expr_dlg.c
42         dissector_tables_dlg.c
43         dlg_utils.c
44         drag_and_drop.c
45         expert_comp_table.c
46         export_object.c
47         export_object_dicom.c
48         export_object_http.c
49         export_object_smb.c
50         export_sslkeys.c
51         filter_autocomplete.c
52         file_dlg.c
53         file_import_dlg.c
54         fileset_dlg.c
55         filter_dlg.c
56         filter_utils.c
57         find_dlg.c
58         firewall_dlg.c
59         follow_ssl.c
60         follow_stream.c
61         follow_tcp.c
62         follow_udp.c
63         font_utils.c
64         goto_dlg.c
65         graph_analysis.c
66         gui_stat_util.c
67         gui_utils.c
68         help_dlg.c
69         hostlist_table.c
70         macros_dlg.c
71         main.c
72         main_airpcap_toolbar.c
73         main_filter_toolbar.c
74         main_menubar.c
75         main_proto_draw.c
76         main_statusbar.c
77         main_toolbar.c
78         main_welcome.c
79         manual_addr_resolv.c
80         mcast_stream.c
81         menus.c
82         new_packet_list.c
83         packet_history.c
84         packet_list_store.c
85         packet_win.c
86         pixmap_save.c
87         plugins_dlg.c
88         prefs_capture.c
89         prefs_column.c
90         prefs_dlg.c
91         prefs_gui.c
92         prefs_layout.c
93         prefs_nameres.c
94         prefs_print.c
95         prefs_protocols.c
96         prefs_taps.c
97         prefs_stream.c
98         print_dlg.c
99         profile_dlg.c
100         progress_dlg.c
101         proto_dlg.c
102         proto_help.c
103         proto_hier_stats_dlg.c
104         range_utils.c
105         recent.c
106         rtp_player.c
107         rtp_stream.c
108         sctp_byte_graph_dlg.c
109         sctp_error_dlg.c
110         sctp_graph_dlg.c
111         sctp_stat.c
112         service_response_time_table.c
113         simple_dialog.c
114         stock_icons.c
115         summary_dlg.c
116         supported_protos_dlg.c
117         tap_param_dlg.c
118         text_import.c
119         text_page_utils.c
120         time_shift_dlg.c
121         uat_gui.c
122         voip_calls.c
123         webbrowser.c
124 )
125
126 set(WIRESHARK_TAP_SRC
127         afp_stat.c
128         ansi_a_stat.c
129         ansi_map_stat.c
130         bootp_stat.c
131         camel_counter.c
132         camel_srt.c
133         compare_stat.c
134         conversations_eth.c
135         conversations_fc.c
136         conversations_fddi.c
137         conversations_ip.c
138         conversations_ipv6.c
139         conversations_ipx.c
140         conversations_jxta.c
141         conversations_ncp.c
142         conversations_rsvp.c
143         conversations_sctp.c
144         conversations_tcpip.c
145         conversations_tr.c
146         conversations_udpip.c
147         conversations_usb.c
148         conversations_wlan.c
149         dcerpc_stat.c
150         diameter_stat.c
151         expert_comp_dlg.c
152         fc_stat.c
153         flow_graph.c
154         funnel_stat.c
155         gsm_a_stat.c
156         gsm_map_stat.c
157         gsm_map_summary.c
158         gtp_stat.c
159         h225_counter.c
160         h225_ras_srt.c
161         hostlist_eth.c
162         hostlist_fc.c
163         hostlist_fddi.c
164         hostlist_ip.c
165         hostlist_ipv6.c
166         hostlist_ipx.c
167         hostlist_jxta.c
168         hostlist_ncp.c
169         hostlist_rsvp.c
170         hostlist_sctp.c
171         hostlist_tcpip.c
172         hostlist_tr.c
173         hostlist_udpip.c
174         hostlist_usb.c
175         hostlist_wlan.c
176         iax2_analysis.c
177         io_stat.c
178         ldap_stat.c
179         mac_lte_stat_dlg.c
180         mcast_stream_dlg.c
181         megaco_stat.c
182         mgcp_stat.c
183         mtp3_stat.c
184         mtp3_summary.c
185         ncp_stat.c
186         radius_stat.c
187         rlc_lte_stat_dlg.c
188         rpc_progs.c
189         rpc_stat.c
190         rtp_analysis.c
191         rtp_stream_dlg.c
192         scsi_stat.c
193         sctp_assoc_analyse.c
194         sctp_chunk_stat.c
195         sctp_chunk_stat_dlg.c
196         sctp_stat_dlg.c
197         sip_stat.c
198         smb_stat.c
199         smb2_stat.c
200         stats_tree_stat.c
201         tcp_graph.c
202         voip_calls_dlg.c
203         wlan_stat_dlg.c
204         wsp_stat.c
205 )
206
207 set(CLEAN_FILES
208         ${WIRESHARK_GTK_SRC}
209         ${WIRESHARK_TAP_SRC}
210 )
211
212 add_lex_files(WIRESHARK_GTK_SRC
213         text_import_scanner.l
214 )
215
216 if (WERROR)
217         set_source_files_properties(
218                 ${CLEAN_FILES}
219                 PROPERTIES
220                 COMPILE_FLAGS -Werror
221         )
222 endif()
223
224 if (NOT ENABLE_GTK3)
225         add_definitions(
226                 # We are only allowed to include gtk/gtk.h, no other files. When
227                 # violating this with gtk3 the compiler will complain anyway.
228                 -DGTK_DISABLE_SINGLE_INCLUDES
229
230                 # GTK+ 3 removes many implementation details and struct members from its
231                 # public headers. Make the compiler catch all uses of direct access to
232                 # struct fields so that you can go through them one by one and replace
233                 # them with a call to an accessor function instead.
234                 -DGSEAL_ENABLE
235
236                 # To verify that your program does not use any deprecated symbols,
237                 # you can use defines to remove deprecated symbols from the header files
238                 -DGDK_DISABLE_DEPRECATED
239                 -DGTK_DISABLE_DEPRECATED
240         )
241 endif()
242
243 if (WANT_PACKET_EDITOR)
244         add_definitions(
245                 -DWANT_PACKET_EDITOR
246         )
247 endif()
248
249 if (ENABLE_UI_MANAGER)
250         add_definitions(
251                 -DMAIN_MENU_USE_UIMANAGER
252         )
253 endif()
254
255 if(WIN32)
256         set(PLATFORM_UI_SRC
257                 capture_if_details_dlg_win32.c
258                 gtkvumeter.c
259         )
260 endif()
261
262 register_tap_files(wireshark-tap-register.c
263         ${WIRESHARK_TAP_SRC}
264 )
265
266 add_library(ui STATIC
267         ${WIRESHARK_GTK_SRC}
268         ${WIRESHARK_TAP_SRC}
269         ${PLATFORM_UI_SRC}
270         wireshark-tap-register.c
271 )
272 set_target_properties(ui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
273
274 #install(TARGETS ui
275 #       LIBRARY DESTINATION lib
276 #       RUNTIME DESTINATION lib
277 #       ARCHIVE DESTINATION lib
278 #)
279