-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vcpkg baseline] Fix ports build on Linux #23478
Merged
vicroms
merged 12 commits into
microsoft:master
from
JackBoosY:dev/jack/vcpkg-baseline-20220310
Mar 11, 2022
Merged
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
1939963
[vcpkg baseline] Fix ncurses linux build
c7d9b93
version
d151674
fix homepage
1f1fc1a
version
00ab17a
[libgnutls] Fix build on Linux
ca6102f
version
8de726f
[pcapplusplus] Re-factory build system, use cmake instead.
0123f1d
version
0096f59
version
ec90b0a
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/…
af7c347
Update ports/ncurses/vcpkg.json
JackBoosY 51b2337
Update versions/n-/ncurses.json
JackBoosY File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
{ | ||
"name": "ncurses", | ||
"version-string": "6.3", | ||
"port-version": 1, | ||
"description": "free software emulation of curses in System V Release 4.0", | ||
"homepage": "https://invisible-island.net/ncurses/announce.html", | ||
"license": "MIT", | ||
"supports": "!windows | mingw" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
cmake_minimum_required(VERSION 3.12) | ||
|
||
project(pcapplusplus CXX) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") | ||
|
||
if (WIN32) | ||
set(BUILD_SHARED_LIBS OFF) | ||
endif() | ||
|
||
# dependencies | ||
include(FindPackageHandleStandardArgs) | ||
include(SelectLibraryConfigurations) | ||
if (WIN32) | ||
find_path(PCAP_INCLUDES NAMES pcap.h) | ||
find_library(PCAP_LIBRARY_RELEASE NAMES wpcap PATH_SUFFIXES lib REQUIRED) | ||
find_library(PCAP_LIBRARY_DEBUG NAMES wpcap PATH_SUFFIXES lib REQUIRED) | ||
find_library(PACKET_LIBRARY_RELEASE NAMES Packet PATH_SUFFIXES lib REQUIRED) | ||
find_library(PACKET_LIBRARY_DEBUG NAMES Packet PATH_SUFFIXES lib REQUIRED) | ||
select_library_configurations(PCAP) | ||
select_library_configurations(PACKET) | ||
list(APPEND PCAP_LIBRARIES ${PACKET_LIBRARIES}) | ||
else() | ||
find_path(PCAP_INCLUDES NAMES pcap.h) | ||
find_library(PCAP_LIBRARY_RELEASE NAMES pcap PATH_SUFFIXES lib REQUIRED) | ||
find_library(PCAP_LIBRARY_DEBUG NAMES pcap PATH_SUFFIXES lib REQUIRED) | ||
select_library_configurations(PCAP) | ||
endif() | ||
|
||
find_package(Threads REQUIRED) | ||
|
||
# common++ | ||
file(GLOB COMMONPP_HEADERS "${CMAKE_CURRENT_LIST_DIR}/Common++/header/*.h") | ||
file(GLOB COMMONPP_SOURCES "${CMAKE_CURRENT_LIST_DIR}/Common++/src/*.cpp") | ||
|
||
add_library(commonpp ${COMMONPP_SOURCES}) | ||
|
||
target_include_directories(commonpp PUBLIC "${CMAKE_CURRENT_LIST_DIR}/Common++/header" | ||
"${CMAKE_CURRENT_LIST_DIR}/3rdParty/EndianPortable/include") | ||
set_target_properties(commonpp PROPERTIES OUTPUT_NAME Common++) | ||
if (WIN32) | ||
target_compile_definitions(commonpp PRIVATE WPCAP HAVE_REMOTE _CRT_SECURE_NO_WARNINGS) | ||
elseif (UNIX AND NOT APPLE) | ||
target_compile_definitions(commonpp PRIVATE LINUX) | ||
elseif (APPLE) | ||
target_compile_definitions(commonpp PRIVATE MAC_OS_X) | ||
endif() | ||
|
||
# packet++ | ||
file(GLOB PACKETPP_HEADERS "${CMAKE_CURRENT_LIST_DIR}/Packet++/header/*.h") | ||
file(GLOB PACKETPP_SOURCES "${CMAKE_CURRENT_LIST_DIR}/Packet++/src/*.cpp") | ||
list(APPEND PACKETPP_SOURCES "${CMAKE_CURRENT_LIST_DIR}/3rdParty/hash-library/md5.cpp") | ||
|
||
add_library(packetpp ${PACKETPP_SOURCES}) | ||
|
||
target_include_directories(packetpp PUBLIC "${CMAKE_CURRENT_LIST_DIR}/Packet++/header" | ||
"${CMAKE_CURRENT_LIST_DIR}/3rdParty/hash-library") | ||
target_link_libraries(packetpp PRIVATE commonpp) | ||
set_target_properties(packetpp PROPERTIES OUTPUT_NAME Packet++) | ||
if (WIN32) | ||
target_compile_definitions(packetpp PRIVATE WPCAP HAVE_REMOTE _CRT_SECURE_NO_WARNINGS) | ||
elseif (UNIX AND NOT APPLE) | ||
target_compile_definitions(packetpp PRIVATE LINUX) | ||
elseif (APPLE) | ||
target_compile_definitions(packetpp PRIVATE MAC_OS_X) | ||
endif() | ||
|
||
# pcap++ | ||
file(GLOB PCAPPP_HEADERS "${CMAKE_CURRENT_LIST_DIR}/Pcap++/header/*.h") | ||
file(GLOB PCAPPP_SOURCES "${CMAKE_CURRENT_LIST_DIR}/Pcap++/src/*.cpp") | ||
file(GLOB LIGHTPCAPNG_SOURCES "${CMAKE_CURRENT_LIST_DIR}/3rdParty/LightPcapNg/LightPcapNg/src/*.cpp") | ||
|
||
add_library(pcappp ${PCAPPP_SOURCES}) | ||
|
||
target_include_directories(pcappp PUBLIC "${CMAKE_CURRENT_LIST_DIR}/Pcap++/header" "${PCAP_INCLUDES}" | ||
"${CMAKE_CURRENT_LIST_DIR}/3rdParty/LightPcapNg/LightPcapNg/include") | ||
target_link_libraries(pcappp PUBLIC commonpp packetpp ${PCAP_LIBRARIES} Threads::Threads) | ||
|
||
if (WIN32) | ||
target_link_libraries(pcappp PUBLIC ws2_32 iphlpapi) | ||
elseif (APPLE) | ||
find_library(COREFOUNDATION_LIBRARY CoreFoundation) | ||
find_library(SYSTEMCONFIGURATION_LIBRARY SystemConfiguration) | ||
target_link_libraries(pcappp PUBLIC ${COREFOUNDATION_LIBRARY} ${SYSTEMCONFIGURATION_LIBRARY}) | ||
endif() | ||
|
||
if (WIN32) | ||
target_compile_definitions(pcappp PRIVATE WPCAP HAVE_REMOTE HAVE_STRUCT_TIMESPEC _CRT_SECURE_NO_WARNINGS) | ||
elseif (UNIX AND NOT APPLE) | ||
target_compile_definitions(pcappp PRIVATE LINUX) | ||
elseif (APPLE) | ||
target_compile_definitions(pcappp PRIVATE MAC_OS_X) | ||
endif() | ||
|
||
set_target_properties(pcappp PROPERTIES OUTPUT_NAME Pcap++) | ||
|
||
# Install | ||
install(FILES ${PCAPPP_HEADERS} ${COMMONPP_HEADERS} ${PACKETPP_HEADERS} DESTINATION include) | ||
install(FILES "${CMAKE_CURRENT_LIST_DIR}/LICENSE" DESTINATION share/pcapplusplus) | ||
|
||
install( | ||
TARGETS pcappp commonpp packetpp | ||
RUNTIME DESTINATION bin | ||
LIBRARY DESTINATION lib | ||
ARCHIVE DESTINATION lib | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BillyONeal The failure of our PR suggestion agent should be due to an incorrect version field in the manifest file, but no specific error message is mentioned in the log:
That should caused by the vcpkg-tool changes.