Skip to content

Commit

Permalink
feat: cache [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan committed May 14, 2024
1 parent 253a70f commit d9af06e
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 24 deletions.
87 changes: 63 additions & 24 deletions Config-mini.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,45 @@ config PACKAGE_v2ray_mini_compress_upx
bool "Compress executable files with UPX"
default y

config PACKAGE_v2ray_mini_custom_features
bool "Custom Features"
config PACKAGE_v2ray_mini_enable_features
bool "Enable Features"
default n

menu "Features Configuration"
depends on PACKAGE_v2ray_mini_custom_features
menu "Enable Features Configuration"
depends on PACKAGE_v2ray_mini_enable_features

# Subscription Supports
config PACKAGE_v2ray_min_with_subscription_support
bool "With Subscription Supports"
default n

# Developer preview services
config PACKAGE_v2ray_min_with_instman
bool "With Instance Manager"
default n

# Developer preview features
config PACKAGE_v2ray_main_with_preview_features
bool "With Preview Features"
default n

# Developer preview proxies
config PACKAGE_v2ray_mini_with_vlite_proto
bool "With VLite Protocol"
default n

config PACKAGE_v2ray_mini_with_shadowsocks2022_proto
bool "With Shadowsocks2022 Protocol"
default n

endmenu

config PACKAGE_v2ray_mini_disable_features
bool "Disable Features"
default n

menu "Disable Features Configuration"
depends on PACKAGE_v2ray_mini_disable_features

config PACKAGE_v2ray_mini_without_dns
bool "Without Internal DNS Support"
Expand All @@ -28,14 +61,6 @@ config PACKAGE_v2ray_mini_without_log
bool "Without Log Support"
default n

config PACKAGE_v2ray_mini_without_tls
bool "Without TLS Support"
default n

config PACKAGE_v2ray_mini_without_udp
bool "Without UDP Support"
default n

config PACKAGE_v2ray_mini_without_policy
bool "Without Local Policy Support"
default n
Expand All @@ -52,6 +77,7 @@ config PACKAGE_v2ray_mini_without_statistics
bool "Without Statistics Support"
default n

# Inbound and outbound proxies
config PACKAGE_v2ray_mini_without_blackhole_proto
bool "Without Blackhole Protocol"
default n
Expand All @@ -68,10 +94,6 @@ config PACKAGE_v2ray_mini_without_freedom_proto
bool "Without Freedom Protocol"
default n

config PACKAGE_v2ray_mini_without_mtproto_proxy
bool "Without MTProto Proxy"
default n

config PACKAGE_v2ray_mini_without_http_proto
bool "Without HTTP Protocol"
default n
Expand All @@ -88,34 +110,51 @@ config PACKAGE_v2ray_mini_without_trojan_proto
bool "Without Trojan Protocol"
default n

config PACKAGE_v2ray_min_without_vless_proto
bool "Without VLESS Protocol"
default n

config PACKAGE_v2ray_mini_without_vmess_proto
bool "Without VMess Protocol"
default n

# Transports
config PACKAGE_v2ray_mini_without_domain_socket_trans
bool "Without Domain Socket Transport"
default n

config PACKAGE_v2ray_mini_without_tcp_trans
bool "Without TCP Transport"
default n

config PACKAGE_v2ray_mini_without_mkcp_trans
bool "Without mKCP Transport"
config PACKAGE_v2ray_mini_without_udp_trans
bool "Without UDP Transport"
default n

config PACKAGE_v2ray_mini_without_websocket_trans
bool "Without WebSocket Transport"
config PACKAGE_v2ray_mini_without_grpc_trans
bool "Without gRPC Transport"
default n

config PACKAGE_v2ray_mini_without_http2_trans
bool "Without HTTP/2 Transport"
config PACKAGE_v2ray_mini_without_http_trans
bool "Without HTTP Transport"
default n

config PACKAGE_v2ray_mini_without_domain_socket_trans
bool "Without Domain Socket Transport"
config PACKAGE_v2ray_mini_without_kcp_trans
bool "Without KCP Transport"
default n

config PACKAGE_v2ray_mini_without_quic_trans
bool "Without QUIC Transport"
default n

config PACKAGE_v2ray_mini_without_tls_trans
bool "Without TLS Transport"
default n

config PACKAGE_v2ray_mini_without_websocket_trans
bool "Without WebSocket Transport"
default n

endmenu

endmenu
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,23 @@ endef

V2RAY_SED_ARGS:=

ifneq ($(CONFIG_PACKAGE_v2ray_$(BUILD_VARIANT)_with_subscription_support),y)
V2RAY_SED_ARGS += \
s,_ "$(GO_PKG)/app/subscription/.*",// &,;
endif

ifneq ($(CONFIG_PACKAGE_v2ray_$(BUILD_VARIANT)_with_preview_services),y)
V2RAY_SED_ARGS += \
s,_ "$(GO_PKG)/app/instman/command",// &,; \
s,_ "$(GO_PKG)/app/observatory/command",// &,;
endif

ifneq ($(CONFIG_PACKAGE_v2ray_$(BUILD_VARIANT)_with_preview_features),y)
V2RAY_SED_ARGS += \
s,_ "$(GO_PKG)/app/instman/command",// &,; \
s,_ "$(GO_PKG)/app/observatory/command",// &,;
endif

ifeq ($(CONFIG_PACKAGE_v2ray_$(BUILD_VARIANT)_custom_features),y)

ifeq ($(CONFIG_PACKAGE_v2ray_$(BUILD_VARIANT)_without_dns),y)
Expand Down

0 comments on commit d9af06e

Please sign in to comment.