forked from shadowsocks/badvpn
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use badvpn_add_library for all internal libraries.
- Loading branch information
Showing
14 changed files
with
23 additions
and
37 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
add_library(arpprobe BArpProbe.c) | ||
target_link_libraries(arpprobe base system flow) | ||
badvpn_add_library(arpprobe "base;system;flow" "" BArpProbe.c) |
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,13 +1,10 @@ | ||
add_library(dhcpclientcore | ||
BDHCPClientCore.c | ||
) | ||
target_link_libraries(dhcpclientcore system flow flowextra badvpn_random) | ||
badvpn_add_library(dhcpclientcore "system;flow;flowextra;badvpn_random" "" BDHCPClientCore.c) | ||
|
||
if (CMAKE_SYSTEM_NAME STREQUAL "Linux") | ||
add_library(dhcpclient | ||
set(DHCPCLIENT_SOURCES | ||
BDHCPClient.c | ||
DHCPIpUdpEncoder.c | ||
DHCPIpUdpDecoder.c | ||
) | ||
target_link_libraries(dhcpclient system flow dhcpclientcore) | ||
badvpn_add_library(dhcpclient "system;flow;dhcpclientcore" "" "${DHCPCLIENT_SOURCES}") | ||
endif () |
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,5 +1,5 @@ | ||
add_library(flowextra | ||
set(FLOWEXTRA_SOURCES | ||
PacketPassInactivityMonitor.c | ||
KeepaliveIO.c | ||
) | ||
target_link_libraries(flowextra flow system) | ||
badvpn_add_library(flowextra "flow;system" "" "${FLOWEXTRA_SOURCES}") |
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,5 +1,5 @@ | ||
add_library(nspr_support | ||
set(NSPRSUPPORT_SOURCES | ||
DummyPRFileDesc.c | ||
BSSLConnection.c | ||
) | ||
target_link_libraries(nspr_support system flow threadwork ${NSPR_LIBRARIES} ${NSS_LIBRARIES}) | ||
badvpn_add_library(nspr_support "system;flow;threadwork" "${NSPR_LIBRARIES};${NSS_LIBRARIES}" "${NSPRSUPPORT_SOURCES}") |
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,6 @@ | ||
add_library(predicate | ||
set(PREDICATE_SOURCES | ||
BPredicate.c | ||
${PROJECT_SOURCE_DIR}/generated/flex_BPredicate.c | ||
${PROJECT_SOURCE_DIR}/generated/bison_BPredicate.c | ||
) | ||
target_link_libraries(predicate system) | ||
badvpn_add_library(predicate "system" "" "${PREDICATE_SOURCES}") |
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,4 +1 @@ | ||
add_library(badvpn_random | ||
BRandom2.c | ||
) | ||
target_link_libraries(badvpn_random base) | ||
badvpn_add_library(badvpn_random "base" "" BRandom2.c) |
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,5 +1,5 @@ | ||
add_library(server_conection | ||
set(SERVERCONNECTION_SOURCES | ||
ServerConnection.c | ||
SCKeepaliveSource.c | ||
) | ||
target_link_libraries(server_conection system flow flowextra nspr_support ${NSPR_LIBRARIES} ${NSS_LIBRARIES}) | ||
badvpn_add_library(server_conection "system;flow;flowextra;nspr_support" "${NSPR_LIBRARIES};${NSS_LIBRARIES}" "${SERVERCONNECTION_SOURCES}") |
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,4 +1 @@ | ||
add_library(socksclient | ||
BSocksClient.c | ||
) | ||
target_link_libraries(socksclient system flow flowextra) | ||
badvpn_add_library(socksclient "system;flow;flowextra" "" BSocksClient.c) |
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,3 +1 @@ | ||
add_library(stringmap | ||
BStringMap.c | ||
) | ||
badvpn_add_library(stringmap "" "" BStringMap.c) |
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,7 +1,7 @@ | ||
add_library(udevmonitor | ||
set(UDEVMONITOR_SOURCES | ||
NCDUdevMonitorParser.c | ||
NCDUdevMonitor.c | ||
NCDUdevCache.c | ||
NCDUdevManager.c | ||
) | ||
target_link_libraries(udevmonitor system flow stringmap) | ||
badvpn_add_library(udevmonitor "system;flow;stringmap" "" "${UDEVMONITOR_SOURCES}") |
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,2 +1 @@ | ||
add_library(udpgw_client UdpGwClient.c) | ||
target_link_libraries(udpgw_client system flow flowextra) | ||
badvpn_add_library(udpgw_client "system;flow;flowextra" "" UdpGwClient.c) |