mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-19 18:30:34 +08:00

* rewrite: rewritten Qv2ray.pro, adding project 'hooks' * fix: fixed windows build * fix: fixed macOS build * Removing excess blank lines Co-authored-by: DuckSoft <realducksoft@gmail.com>
27 lines
747 B
Plaintext
27 lines
747 B
Plaintext
message(" ")
|
|
message("Configuring Qv2ray build for Linux")
|
|
isEmpty(PREFIX) {
|
|
PREFIX=/usr/local
|
|
}
|
|
|
|
use_grpc {
|
|
# For gRPC and protobuf in linux and macOS
|
|
message(" --> Linking against gRPC and protobuf library.")
|
|
LIBS += -L/usr/local/lib -lgrpc++ -lgrpc
|
|
} else {
|
|
message(" --> Linking libqvb static library, for Linux platform.")
|
|
LIBS += -L$$PWD/../libs/ -lqvb-linux64
|
|
}
|
|
|
|
message(" --> Generating desktop dependency.")
|
|
desktop.files += $$PWD/../assets/qv2ray.desktop
|
|
desktop.path = $$PREFIX/share/applications/
|
|
|
|
message(" --> Generating icons dependency.")
|
|
icon.files += $$PWD/../assets/icons/qv2ray.png
|
|
icon.path = $$PREFIX/share/icons/hicolor/256x256/apps/
|
|
|
|
target.path = $$PREFIX/bin/
|
|
INSTALLS += target desktop icon
|
|
|