Skip to content

Commit

Permalink
CMake: Bundle our libraries.
Browse files Browse the repository at this point in the history
Change-Id: I5df4d794602f7e53c2f4f496597f8eaf7c7b6eaa
Reviewed-on: https://code.wireshark.org/review/4588
Reviewed-by: Gerald Combs <gerald@wireshark.org>
  • Loading branch information
geraldcombs committed Oct 10, 2014
1 parent 33d20c6 commit 3a4cab7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions epan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1702,6 +1702,12 @@ set_target_properties(epan PROPERTIES COMPILE_DEFINITIONS "WS_BUILD_DLL")
set_target_properties(epan PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
set_target_properties(epan PROPERTIES VERSION ${FULL_SO_VERSION} SOVERSION 0)

if(ENABLE_APPLICATION_BUNDLE)
set_target_properties(epan PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/run/Wireshark.app/Contents/Frameworks
)
endif()

ABICHECK(libwireshark)

file(GLOB COLUMN_INFO_HEADER column-info.h)
Expand Down
7 changes: 6 additions & 1 deletion wiretap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ IF(MSVC)
set_target_properties(wiretap PROPERTIES OUTPUT_NAME "wiretap-${PROJECT_VERSION}")
ENDIF()

if(ENABLE_APPLICATION_BUNDLE)
set_target_properties(wiretap PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/run/Wireshark.app/Contents/Frameworks
)
endif()

ABICHECK(libwiretap)

add_custom_command(OUTPUT libwiretap.abi.tar.gz
Expand All @@ -145,4 +151,3 @@ if(NOT ${ENABLE_STATIC})
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
endif()

6 changes: 6 additions & 0 deletions wsutil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ set_target_properties(wsutil PROPERTIES
VERSION ${FULL_SO_VERSION} SOVERSION 0
FOLDER "DLLs")

if(ENABLE_APPLICATION_BUNDLE)
set_target_properties(wsutil PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/run/Wireshark.app/Contents/Frameworks
)
endif()

ABICHECK(libwsutil)

add_custom_command(OUTPUT libwsutil.abi.tar.gz
Expand Down

0 comments on commit 3a4cab7

Please sign in to comment.