diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-11-22 16:49:17 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-11-22 16:49:17 +0000 |
commit | ec560b5b478c610904865be4d45995813f0d80ab (patch) | |
tree | f28aaf1c7d93e29724a5d431c02762feca5781fa /CMakeLists.txt | |
parent | eb41468008a81ef3fdc2d0e661f6e476c1a85cc9 (diff) |
Link with CoreFoundation and SystemConfiguration and add cfuitils.c on
OS X where needed. Dumpcap, rawshark and tshark don't appear to require
Cocoa so remove it.
svn path=/trunk/; revision=46144
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1468894c71..acaadff4cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -521,6 +521,8 @@ if(APPLE) #TODO verify that APPLE implies HAVE_OS_X_FRAMEWORKS set(HAVE_OS_X_FRAMEWORKS 1) FIND_LIBRARY (APPLE_CORE_SERVICES_LIBRARY CoreServices) + FIND_LIBRARY (APPLE_CORE_FOUNDATION_LIBRARY CoreFoundation) + FIND_LIBRARY (APPLE_SYSTEM_CONFIGURATION_LIBRARY SystemConfiguration) FIND_LIBRARY (APPLE_COCOA_LIBRARY Cocoa) endif() @@ -611,6 +613,7 @@ set(WIRESHARK_COMMON_SRC ${PLATFORM_SRC} capture-pcap-util.c cfile.c + cfutils.c clopts_common.c disabled_protos.c frame_data_sequence.c @@ -759,6 +762,7 @@ if(BUILD_wireshark AND GTK_FOUND) ${PORTAUDIO_LIBRARIES} ${LIBEPAN_LIBS} ${APPLE_CORE_SERVICES_LIBRARY} + ${APPLE_SYSTEM_CONFIGURATION_LIBRARY} ${APPLE_COCOA_LIBRARY} ${NL_LIBRARIES} ) @@ -780,7 +784,8 @@ if(BUILD_qtshark AND QT_FOUND) codecs ${PORTAUDIO_LIBRARIES} ${LIBEPAN_LIBS} - ${APPLE_CORE_SERVICES_LIBRARY} + ${APPLE_CORE_FOUNDATION_LIBRARY} + ${APPLE_SYSTEM_CONFIGURATION_LIBRARY} ${APPLE_COCOA_LIBRARY} ${NL_LIBRARIES} ) @@ -800,11 +805,13 @@ register_tap_files(tshark-tap-register.c if(BUILD_tshark) set(tshark_LIBS ${LIBEPAN_LIBS} - ${APPLE_COCOA_LIBRARY} + ${APPLE_CORE_FOUNDATION_LIBRARY} + ${APPLE_SYSTEM_CONFIGURATION_LIBRARY} ) set(tshark_FILES capture_opts.c capture_sync.c + cfutils.c tempfile.c tshark-tap-register.c tshark.c @@ -823,7 +830,8 @@ endif() if(BUILD_rawshark AND PCAP_FOUND) set(rawshark_LIBS ${LIBEPAN_LIBS} - ${APPLE_COCOA_LIBRARY} + ${APPLE_CORE_FOUNDATION_LIBRARY} + ${APPLE_SYSTEM_CONFIGURATION_LIBRARY} ) set(rawshark_FILES ${WIRESHARK_COMMON_SRC} @@ -976,7 +984,8 @@ if(BUILD_dumpcap AND PCAP_FOUND) ${GLIB2_LIBRARIES} ${GTHREAD2_LIBRARIES} ${ZLIB_LIBRARIES} - ${APPLE_COCOA_LIBRARY} + ${APPLE_CORE_FOUNDATION_LIBRARY} + ${APPLE_SYSTEM_CONFIGURATION_LIBRARY} ${NL_LIBRARIES} ) set(dumpcap_FILES @@ -984,6 +993,7 @@ if(BUILD_dumpcap AND PCAP_FOUND) capture_opts.c capture-pcap-util.c capture_stop_conditions.c + cfutils.c clopts_common.c conditions.c dumpcap.c |