mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-19 02:10:28 +08:00
using grpc by default
This commit is contained in:
parent
78e428223c
commit
dc8e2a1bea
4
.github/workflows/build-qv2ray-cmake.yml
vendored
4
.github/workflows/build-qv2ray-cmake.yml
vendored
@ -99,7 +99,7 @@ jobs:
|
|||||||
cd build
|
cd build
|
||||||
export _QV2RAY_BUILD_INFO_="Qv2ray built from Github Action"
|
export _QV2RAY_BUILD_INFO_="Qv2ray built from Github Action"
|
||||||
export _QV2RAY_BUILD_EXTRA_INFO_="qt${{ matrix.qt_version }}-${{ github.sha }}"
|
export _QV2RAY_BUILD_EXTRA_INFO_="qt${{ matrix.qt_version }}-${{ github.sha }}"
|
||||||
cmake .. -DUSE_GRPC=ON
|
cmake ..
|
||||||
|
|
||||||
- name: Linux - ${{ matrix.qt_version }} - Generate Dependencies and Makefile
|
- name: Linux - ${{ matrix.qt_version }} - Generate Dependencies and Makefile
|
||||||
if: matrix.platform == 'ubuntu-16.04'
|
if: matrix.platform == 'ubuntu-16.04'
|
||||||
@ -112,7 +112,7 @@ jobs:
|
|||||||
cd build
|
cd build
|
||||||
export _QV2RAY_BUILD_INFO_="Qv2ray built from Github Action"
|
export _QV2RAY_BUILD_INFO_="Qv2ray built from Github Action"
|
||||||
export _QV2RAY_BUILD_EXTRA_INFO_="qt${{ matrix.qt_version }}-${{ github.sha }}"
|
export _QV2RAY_BUILD_EXTRA_INFO_="qt${{ matrix.qt_version }}-${{ github.sha }}"
|
||||||
cmake .. -DUSE_GRPC=ON
|
cmake ..
|
||||||
#qmake .. CONFIG+="debug_and_release no_increase_build_number" PREFIX=/usr
|
#qmake .. CONFIG+="debug_and_release no_increase_build_number" PREFIX=/usr
|
||||||
# -------------------------------------------------------- Build
|
# -------------------------------------------------------- Build
|
||||||
- name: Build Qv2ray
|
- name: Build Qv2ray
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
if(USE_GRPC)
|
if(NOT USE_LIBQVB)
|
||||||
find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin)
|
find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin)
|
||||||
|
|
||||||
find_library(GRPC_LIBRARY NAMES grpc)
|
find_library(GRPC_LIBRARY NAMES grpc)
|
||||||
@ -31,6 +31,7 @@ if(USE_GRPC)
|
|||||||
DEPENDS "${API_PROTO}"
|
DEPENDS "${API_PROTO}"
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
|
add_definitions(-DBACKEND_LIBQVB)
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
set(QV2RAY_BACKEND_LIBRARIES ${CMAKE_SOURCE_DIR}/libs/libqvb-linux64.a)
|
set(QV2RAY_BACKEND_LIBRARIES ${CMAKE_SOURCE_DIR}/libs/libqvb-linux64.a)
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
|
Loading…
Reference in New Issue
Block a user