-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Vendored Dependencies | ||
src/frontend/glad/** linguist-vendored | ||
src/frontend/qt_sdl/gif-h/** linguist-vendored | ||
src/frontend/qt_sdl/toml/** linguist-vendored | ||
src/net/libslirp/** linguist-vendored | ||
src/net/pcap/** linguist-vendored | ||
src/sha1/** linguist-vendored | ||
src/teakra/** linguist-vendored | ||
src/tiny-AES-c/** linguist-vendored | ||
src/xxhash/** linguist-vendored | ||
|
||
# A handful of custom files embedded in the vendored dependencies | ||
|
||
## Ad-hoc CMakeLists.txt for melonDS | ||
!src/net/libslirp/src/CMakeLists.txt -linguist-vendored | ||
|
||
## glib stub | ||
!src/net/libslirp/src/glib/** -linguist-vendored |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
add_library(net-utils STATIC | ||
Net.cpp | ||
Net_PCap.cpp | ||
Net_Slirp.cpp | ||
PacketDispatcher.cpp | ||
LocalMP.cpp | ||
) | ||
|
||
target_include_directories(net-utils PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") | ||
target_include_directories(net-utils PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..") | ||
|
||
|
||
option(USE_SYSTEM_LIBSLIRP "Use system libslirp instead of the bundled version" OFF) | ||
if (USE_SYSTEM_LIBSLIRP) | ||
pkg_check_modules(Slirp REQUIRED IMPORTED_TARGET slirp) | ||
target_link_libraries(net-utils PRIVATE PkgConfig::Slirp) | ||
else() | ||
add_subdirectory(libslirp EXCLUDE_FROM_ALL) | ||
target_link_libraries(net-utils PRIVATE slirp) | ||
endif() |