mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 19:00:22 +08:00
parent
ada39fd0b0
commit
eb059148da
23
.travis.yml
23
.travis.yml
@ -1,15 +1,24 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
dist: xenial
|
|
||||||
compiler: g++
|
matrix:
|
||||||
sudo: required
|
include:
|
||||||
|
- os: linux
|
||||||
|
dist: xenial
|
||||||
|
sudo: required
|
||||||
|
env: BADGE=linux
|
||||||
|
- os: osx
|
||||||
|
env: BADGE=osx
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update
|
- if [ "$BADGE" = "linux" ]; then sudo apt-get update; fi
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get install qtchooser qt5-default
|
- if [ "$BADGE" = "linux" ]; then sudo apt-get install qtchooser qt5-default qt5-qmake qtdeclarative5-dev python3-dev python-dev libpython3-dev qttools5-dev-tools; fi
|
||||||
- sudo apt-get install qt5-qmake
|
- if [ "$BADGE" = "osx" ]; then brew install cppcheck https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/qt.rb; fi
|
||||||
- sudo apt-get install qtdeclarative5-dev python3-dev python-dev libpython3-dev qttools5-dev-tools
|
- if [ "$BADGE" = "osx" ]; then brew link --force qt; fi
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- if [ "$BADGE" = "osx" ]; then export PATH="/usr/local/opt/qt/bin:$PATH"; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- lrelease ./Hv2ray.pro
|
- lrelease ./Hv2ray.pro
|
||||||
|
11
Hv2ray.pro
11
Hv2ray.pro
@ -113,6 +113,17 @@ macx {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
macx {
|
||||||
|
PYTHON_ROOT=/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions
|
||||||
|
exists( "$$PYTHON_ROOT/3.6/include/python3.6m/Python.h" ) {
|
||||||
|
equals(WITH_PYTHON, "no") {
|
||||||
|
message("Will build with python lib version 3.6.5_1.")
|
||||||
|
INCLUDEPATH += $$PYTHON_ROOT/3.6/include/python3.6m/
|
||||||
|
LIBS += -L$$PYTHON_ROOT/3.6/lib/python3.6/config-3.6m-darwin/ -lpython3.6m
|
||||||
|
WITH_PYTHON = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
unix: equals(WITH_PYTHON, "no") {
|
unix: equals(WITH_PYTHON, "no") {
|
||||||
error("No python libs found, did you install python3 dev package?")
|
error("No python libs found, did you install python3 dev package?")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user