forked from Unvanquished/updater
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Unvanquished#11 from FreeSlave/dockerfile
qmake project file and Dockerfile. Updated build instructions in README.md
- Loading branch information
Showing
5 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
build/ | ||
.moc/ | ||
*.o | ||
*.exe | ||
*.a | ||
*.lib | ||
updater | ||
moc_*.cpp | ||
moc_*.h | ||
moc_*.o | ||
ui_*.cpp | ||
ui_*.h | ||
qrc_*.cpp | ||
*.stash | ||
*.pro.user | ||
updater_plugin_import.cpp | ||
uic_wrapper.sh | ||
Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM freeslave/qt5-base-static:5.8.0-1 | ||
RUN apt-get install -y autoconf gettext libcppunit-dev libtool libgcrypt11-dev libxml2-dev pkgconf | ||
COPY . /updater | ||
WORKDIR /updater/aria2 | ||
RUN autoreconf -i | ||
RUN ARIA2_STATIC=yes ./configure --without-libxml2 --without-libexpat --without-sqlite3 --disable-ssl --enable-libaria2 --without-zlib --without-libcares --enable-static=yes | ||
RUN make clean && make -j`nproc` | ||
WORKDIR /updater | ||
ENV PATH=/opt/Qt5.8-static-release/bin:$PATH | ||
RUN qmake -config release | ||
RUN make clean && make -j`nproc` | ||
CMD cp updater /build-docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
QT += network widgets gui core | ||
TARGET = updater | ||
TEMPLATE = app | ||
|
||
HEADERS += newsfetcher.h \ | ||
currentversionfetcher.h \ | ||
ariadownloader.h \ | ||
downloadworker.h \ | ||
system.h \ | ||
settingsdialog.h \ | ||
downloadtimecalculator.h \ | ||
mainwindow.h | ||
SOURCES += newsfetcher.cpp \ | ||
currentversionfetcher.cpp \ | ||
ariadownloader.cpp \ | ||
downloadworker.cpp \ | ||
main.cpp \ | ||
settingsdialog.cpp \ | ||
downloadtimecalculator.cpp \ | ||
mainwindow.cpp | ||
|
||
mac { | ||
SOURCES += osx.cpp | ||
} unix { | ||
SOURCES += unix.cpp | ||
} win32 { | ||
SOURCES += win.cpp | ||
} | ||
|
||
CONFIG += c++11 | ||
|
||
DEFINES += QUAZIP_BUILD | ||
DEFINES += QUAZIP_STATIC | ||
include(quazip/quazip.pri) | ||
|
||
win32:LIBS += -lz aria2/src/.libs/libaria2.a | ||
unix:LIBS += -lz "-Laria2/src/.libs" -laria2 | ||
RESOURCES += resources.qrc | ||
FORMS += mainwindow.ui settingsdialog.ui |