How does AppVeyor work
This commit is contained in:
parent
d2ff0e9648
commit
e44c90098b
43
KShare.pro
43
KShare.pro
@ -113,29 +113,33 @@ HEADERS += mainwindow.hpp \
|
|||||||
uploaders/default/imgplusuploader.hpp \
|
uploaders/default/imgplusuploader.hpp \
|
||||||
filenamevalidator.hpp
|
filenamevalidator.hpp
|
||||||
|
|
||||||
CONFIG += link_pkgconfig
|
nopkg {
|
||||||
PKGCONFIG += libavformat libavcodec libswscale libavutil
|
LIBS += -lavcodec -lavformat -lavutil -lswscale
|
||||||
|
} else {
|
||||||
|
CONFIG += link_pkgconfig
|
||||||
|
PKGCONFIG += libavformat libavcodec libswscale libavutil
|
||||||
|
}
|
||||||
|
|
||||||
mac {
|
mac {
|
||||||
ICON = icons/icon.icns
|
ICON = icons/icon.icns
|
||||||
SOURCES += $$PWD/platformspecifics/mac/macbackend.cpp
|
SOURCES += $$PWD/platformspecifics/mac/macbackend.cpp
|
||||||
HEADERS += $$PWD/platformspecifics/mac/macbackend.hpp
|
HEADERS += $$PWD/platformspecifics/mac/macbackend.hpp
|
||||||
LIBS += -framework Carbon
|
LIBS += -framework Carbon
|
||||||
warning(Mac is on TODO);
|
warning(Mac is on TODO);
|
||||||
} else:win32 {
|
} else:win32 {
|
||||||
RC_FILE = icon.rc
|
RC_FILE = icon.rc
|
||||||
SOURCES += $$PWD/platformspecifics/u32/u32backend.cpp
|
SOURCES += $$PWD/platformspecifics/u32/u32backend.cpp
|
||||||
HEADERS += $$PWD/platformspecifics/u32/u32backend.hpp
|
HEADERS += $$PWD/platformspecifics/u32/u32backend.hpp
|
||||||
LIBS += -luser32 -lkernel32 -lpthread
|
LIBS += -luser32 -lkernel32 -lpthread
|
||||||
QT += winextras
|
QT += winextras
|
||||||
} else:unix {
|
} else:unix {
|
||||||
RC_FILE = icon.rc
|
RC_FILE = icon.rc
|
||||||
SOURCES += $$PWD/platformspecifics/x11/x11backend.cpp
|
SOURCES += $$PWD/platformspecifics/x11/x11backend.cpp
|
||||||
HEADERS += $$PWD/platformspecifics/x11/x11backend.hpp
|
HEADERS += $$PWD/platformspecifics/x11/x11backend.hpp
|
||||||
QT += x11extras
|
QT += x11extras
|
||||||
LIBS += -lxcb-cursor -lxcb-xfixes -lxcb
|
LIBS += -lxcb-cursor -lxcb-xfixes -lxcb
|
||||||
} else {
|
} else {
|
||||||
error(Unsupported platform);
|
error(Unsupported platform);
|
||||||
}
|
}
|
||||||
|
|
||||||
FORMS += mainwindow.ui \
|
FORMS += mainwindow.ui \
|
||||||
@ -149,7 +153,8 @@ FORMS += mainwindow.ui \
|
|||||||
DISTFILES += \
|
DISTFILES += \
|
||||||
README.md \
|
README.md \
|
||||||
LICENSE \
|
LICENSE \
|
||||||
OlderSystemFix.patch
|
OlderSystemFix.patch \
|
||||||
|
appveyor.yml
|
||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
icon.qrc
|
icon.qrc
|
||||||
|
15
appveyor.yml
Normal file
15
appveyor.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
enviroment:
|
||||||
|
QTDIR: C:\Qt\5.9\mingw53_32
|
||||||
|
PATH: %PATH%;%QTDIR%\bin;C:\MinGW\bin
|
||||||
|
build_script:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
- qmake CONFIG+=nopkg KShare.pro
|
||||||
|
- curl -kLO https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-3.3.2-win64-dev.zip
|
||||||
|
- 7z x ffmpeg-3.3.2-win64-dev.zip
|
||||||
|
- set CPATH=ffmpeg-3.3.2-win64-dev\include;%CPATH%
|
||||||
|
- curl -kLO https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-3.3.2-win64-static.zip
|
||||||
|
- 7z x ffmpeg-3.3.2-win64-static.zip
|
||||||
|
- set LIBRARY_PATH=ffmpeg-3.3.2-win64-static\lib;%LIBRARY_PATH%
|
||||||
|
- mingw32-make -j8
|
||||||
|
artifacts:
|
||||||
|
- path: release/KShare.exe
|
Loading…
Reference in New Issue
Block a user