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