Skip to content

Commit 2d68361

Browse files
committed
Link against libpcap.so
1 parent e05a974 commit 2d68361

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
steps:
99
- name: Checkout
1010
uses: actions/[email protected]
11+
with:
12+
submodules: true
1113
- name: Install libpcap-dev
1214
run: sudo apt install libpcap-dev
1315
- name: Set up JDK 11

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "src/main/c/libpcap"]
2+
path = src/main/c/libpcap
3+
url = https://github.com/the-tcpdump-group/libpcap

src/main/c/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ project(pcap-native LANGUAGES C)
55
set(CMAKE_C_STANDARD 99)
66
set(CMAKE_C_STANDARD_REQUIRED ON)
77

8+
add_subdirectory(libpcap)
9+
set_property(TARGET pcap PROPERTY SOVERSION)
10+
set_property(TARGET pcap PROPERTY VERSION)
11+
812
set(LIB_OUTPUT_DIR ${CMAKE_BINARY_DIR}/lib)
913
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LIB_OUTPUT_DIR})
1014
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LIB_OUTPUT_DIR})

src/main/c/libpcap

Submodule libpcap added at a158da1

0 commit comments

Comments
 (0)