Skip to content

Commit 9f6664a

Browse files
committed
remove libuv uvw curl 3rdparty
1 parent fe52538 commit 9f6664a

26 files changed

+581
-1582
lines changed

.gitmodules

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
[submodule "src/plugin-interface"]
1111
path = src/plugin-interface
1212
url = https://github.com/Qv2ray/QvPlugin-Interface
13-
[submodule "3rdparty/libuv"]
14-
path = 3rdparty/libuv
15-
url = https://github.com/libuv/libuv.git
16-
[submodule "3rdparty/uvw"]
17-
path = 3rdparty/uvw
18-
url = https://github.com/skypjack/uvw.git
1913
[submodule "cmake/android"]
2014
path = cmake/android
2115
url = https://github.com/LaurentGomila/qt-android-cmake

3rdparty/libuv

Lines changed: 0 additions & 1 deletion
This file was deleted.

3rdparty/uvw

Lines changed: 0 additions & 1 deletion
This file was deleted.

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ message("Qv2ray Version: ${_QV2RAY_BUILD_INFO_STR_} - ${_QV2RAY_BUILD_EXTRA_INFO
221221
# ==================================================================================
222222
# 3rdparty Sources
223223
# ==================================================================================
224-
include(cmake/libuv.cmake)
225-
include(cmake/libcurl.cmake)
226224
include(cmake/libsemver.cmake)
227225
include(cmake/backend.cmake)
228226
include(3rdparty/QJsonStruct/QJsonStruct.cmake)
@@ -294,18 +292,14 @@ add_library(qv2ray_baselib STATIC
294292
target_link_libraries(qv2ray_baselib
295293
${QV2RAY_QT_LIBS}
296294
${QV2RAY_BACKEND_LIBRARY}
297-
${LibUV_LIBRARIES}
298-
${CURL_LIBRARIES}
299295
${SINGLEAPPLICATION_LIBRARY}
300296
Threads::Threads
301297
)
302298

303299
target_include_directories(qv2ray_baselib PUBLIC
304300
${CMAKE_BINARY_DIR}
305301
${QV2RAY_BASEDIR_COMPONENTS}
306-
${LibUV_INCLUDE_DIR}
307302
${SINGLEAPPLICATION_DIR}
308-
${CURL_INCLUDE_DIRS}
309303
${CMAKE_CURRENT_SOURCE_DIR}
310304
${CMAKE_CURRENT_SOURCE_DIR}/src
311305
${Protobuf_INCLUDE_DIRS}

cmake/FindLibUV.cmake

Lines changed: 0 additions & 139 deletions
This file was deleted.

cmake/components/qv2ray-base.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ set(QV2RAY_BASE_SOURCES
4141
${QV2RAY_BASEDIR_COMPONENTS}/latency/TCPing.h
4242
${QV2RAY_BASEDIR_COMPONENTS}/latency/RealPing.cpp
4343
${QV2RAY_BASEDIR_COMPONENTS}/latency/RealPing.h
44-
${QV2RAY_BASEDIR_COMPONENTS}/latency/DNSBase.h
45-
${QV2RAY_BASEDIR_COMPONENTS}/latency/win/ICMPPing.cpp
46-
${QV2RAY_BASEDIR_COMPONENTS}/latency/win/ICMPPing.h
47-
${QV2RAY_BASEDIR_COMPONENTS}/latency/unix/ICMPPing.cpp
48-
${QV2RAY_BASEDIR_COMPONENTS}/latency/unix/ICMPPing.h
4944
#
5045
${QV2RAY_BASEDIR_COMPONENTS}/ntp/QvNTPClient.cpp
5146
${QV2RAY_BASEDIR_COMPONENTS}/ntp/QvNTPClient.h

cmake/libcurl.cmake

Lines changed: 0 additions & 10 deletions
This file was deleted.

cmake/libuv.cmake

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/base/models/QvSettingsObject.h

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ struct Qv2rayConfig_Graph
3737
safetype::QvEnumMap<StatisticsType, safetype::QvPair<QvGraphPenConfig>> colorConfig;
3838
JSONSTRUCT_COMPARE(Qv2rayConfig_Graph, useOutboundStats, hasDirectStats, colorConfig)
3939
JSONSTRUCT_REGISTER(Qv2rayConfig_Graph, F(useOutboundStats, hasDirectStats, colorConfig))
40-
const static inline QvPair<QvGraphPenConfig> DefaultPen{
41-
{ 134, 196, 63, 1.5f, Qt::SolidLine },
42-
{ 50, 153, 255, 1.5f, Qt::SolidLine }
40+
const static inline QvPair<QvGraphPenConfig> DefaultPen {
41+
{134, 196, 63, 1.5f, Qt::SolidLine},
42+
{50, 153, 255, 1.5f, Qt::SolidLine}
4343
};
44-
const static inline QvPair<QvGraphPenConfig> DirectPen{
45-
{ 0, 210, 240, 1.5f, Qt::DotLine },
46-
{ 235, 220, 42, 1.5f, Qt::DotLine }
44+
const static inline QvPair<QvGraphPenConfig> DirectPen {
45+
{0, 210, 240, 1.5f, Qt::DotLine},
46+
{235, 220, 42, 1.5f, Qt::DotLine}
4747
};
4848
};
4949

@@ -68,10 +68,8 @@ struct Qv2rayConfig_UI
6868
bool useOldShareLinkFormat = false;
6969
bool startMinimized = true;
7070
bool exitByCloseEvent = false;
71-
JSONSTRUCT_COMPARE(Qv2rayConfig_UI, theme, language, quietMode, graphConfig, useDarkTheme, useDarkTrayIcon, useGlyphTrayIcon, maximumLogLines,
72-
maxJumpListCount, recentConnections, useOldShareLinkFormat, startMinimized, exitByCloseEvent)
73-
JSONSTRUCT_REGISTER(Qv2rayConfig_UI, F(theme, language, quietMode, graphConfig, useDarkTheme, useDarkTrayIcon, useGlyphTrayIcon,
74-
maximumLogLines, maxJumpListCount, recentConnections, useOldShareLinkFormat, startMinimized, exitByCloseEvent))
71+
JSONSTRUCT_COMPARE(Qv2rayConfig_UI, theme, language, quietMode, graphConfig, useDarkTheme, useDarkTrayIcon, useGlyphTrayIcon, maximumLogLines, maxJumpListCount, recentConnections, useOldShareLinkFormat, startMinimized, exitByCloseEvent)
72+
JSONSTRUCT_REGISTER(Qv2rayConfig_UI, F(theme, language, quietMode, graphConfig, useDarkTheme, useDarkTrayIcon, useGlyphTrayIcon, maximumLogLines, maxJumpListCount, recentConnections, useOldShareLinkFormat, startMinimized, exitByCloseEvent))
7573
};
7674

7775
struct Qv2rayConfig_Plugin
@@ -119,9 +117,12 @@ struct Qv2rayConfig_Kernel
119117
#undef _VARNAME_VASSETSPATH_
120118

121119
JSONSTRUCT_COMPARE(Qv2rayConfig_Kernel, enableAPI, statsPort, //
122-
v2CorePath_linux, v2AssetsPath_linux, //
123-
v2CorePath_macx, v2AssetsPath_macx, //
124-
v2CorePath_win, v2AssetsPath_win)
120+
v2CorePath_linux,
121+
v2AssetsPath_linux, //
122+
v2CorePath_macx,
123+
v2AssetsPath_macx, //
124+
v2CorePath_win,
125+
v2AssetsPath_win)
125126
JSONSTRUCT_REGISTER(Qv2rayConfig_Kernel, //
126127
F(enableAPI, statsPort), //
127128
F(v2CorePath_linux, v2AssetsPath_linux), //
@@ -154,8 +155,7 @@ struct Qv2rayConfig_Advanced
154155
enum Qv2rayLatencyTestingMethod
155156
{
156157
TCPING = 0,
157-
ICMPING = 1,
158-
REALPING = 2
158+
REALPING = 1
159159
};
160160

161161
struct Qv2rayConfig_Network
@@ -213,8 +213,7 @@ struct Qv2rayConfigObject
213213
#else
214214
Q_DISABLE_COPY_MOVE(Qv2rayConfigObject);
215215
#endif
216-
JSONSTRUCT_COMPARE(Qv2rayConfigObject, config_version, logLevel, autoStartId, lastConnectedId, autoStartBehavior, uiConfig, pluginConfig,
217-
kernelConfig, updateConfig, networkConfig, inboundConfig, outboundConfig, advancedConfig, defaultRouteConfig)
216+
JSONSTRUCT_COMPARE(Qv2rayConfigObject, config_version, logLevel, autoStartId, lastConnectedId, autoStartBehavior, uiConfig, pluginConfig, kernelConfig, updateConfig, networkConfig, inboundConfig, outboundConfig, advancedConfig, defaultRouteConfig)
218217
JSONSTRUCT_REGISTER_NOCOPYMOVE(Qv2rayConfigObject, //
219218
A(config_version, autoStartId, lastConnectedId, autoStartBehavior, logLevel), //
220219
A(uiConfig, advancedConfig, pluginConfig, updateConfig, kernelConfig, networkConfig), //

0 commit comments

Comments
 (0)