mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
bazel configuration
This commit is contained in:
parent
8a157316d4
commit
557ce768fa
6
WORKSPACE
Normal file
6
WORKSPACE
Normal file
@ -0,0 +1,6 @@
|
||||
workspace(name = "v2ray_core")
|
||||
|
||||
local_repository(
|
||||
name = "v2ray_ext",
|
||||
path = "../ext",
|
||||
)
|
46
release/BUILD
Normal file
46
release/BUILD
Normal file
@ -0,0 +1,46 @@
|
||||
package(default_visibility=["//visibility:public"])
|
||||
|
||||
load("@v2ray_ext//bazel:build.bzl", "foreign_go_binary")
|
||||
load("@v2ray_ext//bazel:zip.bzl", "pkg_zip")
|
||||
|
||||
package(default_visibility=["//visibility:public"])
|
||||
|
||||
foreign_go_binary(
|
||||
name = "v2ray_linux_amd64",
|
||||
pkg = "v2ray.com/core/main",
|
||||
output = "v2ray",
|
||||
os = "linux",
|
||||
arch = "amd64",
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "config_json",
|
||||
srcs = ["config/config.json"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "config_all",
|
||||
srcs = ["config/vpoint_socks_vmess.json", "config/vpoint_vmess_freedom.json"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "systemd",
|
||||
srcs = ["config/systemd/v2ray.service", "config/systemv/v2ray"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "doc",
|
||||
srcs = glob(["doc/*.md"]),
|
||||
)
|
||||
|
||||
pkg_zip(
|
||||
name = "v2ray_linux_amd64_package",
|
||||
srcs = [
|
||||
":v2ray_linux_amd64",
|
||||
"@v2ray_ext//tools/control/main:v2ctl_linux_amd64",
|
||||
":config_all",
|
||||
":systemd",
|
||||
":doc",
|
||||
],
|
||||
out = "v2ray-linux-64.zip",
|
||||
)
|
25
release/config/config.json
Normal file
25
release/config/config.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"log": {
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"inbound": {
|
||||
"port": 1080,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"auth": "noauth",
|
||||
"udp": false,
|
||||
"ip": "127.0.0.1"
|
||||
}
|
||||
},
|
||||
"outbound": {
|
||||
"protocol": "freedom",
|
||||
"settings": {},
|
||||
"tag": "direct"
|
||||
},
|
||||
"policy": {
|
||||
"levels": {
|
||||
"0": {"uplinkOnly": 0}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user