Commit 32526514 authored by Dennis Rassmann's avatar Dennis Rassmann

add windows specific build options

Signed-off-by: Dennis Rassmann's avatarshowp1984 <showp1984@gmail.com>
parent 135f668b
......@@ -11,7 +11,28 @@ DEFINES += APP_VERSION=\\\"$$VERSION\\\"
TARGET = Bricked-Installer
TEMPLATE = app
SOURCES += main.cpp \
quazip/unzip.c \
mainwindow.cpp \
dragons.cpp \
info.cpp \
detect.cpp \
flasher.cpp \
openfile.cpp
HEADERS += mainwindow.h \
dragons.h \
info.h \
detect.h \
flasher.h \
openfile.h
FORMS += mainwindow.ui \
dragons.ui \
info.ui \
detect.ui \
flasher.ui \
openfile.ui
RESOURCES += res/res_loc.qrc
unix {
SOURCES += quazip/unzip.c \
quazip/zip.c \
quazip/JlCompress.cpp \
quazip/qioapi.cpp \
......@@ -19,13 +40,7 @@ SOURCES += main.cpp \
quazip/quacrc32.cpp \
quazip/quazip.cpp \
quazip/quazipfile.cpp \
quazip/quazipnewinfo.cpp \
mainwindow.cpp \
dragons.cpp \
info.cpp \
detect.cpp \
flasher.cpp \
openfile.cpp
quazip/quazipnewinfo.cpp
HEADERS += quazip/crypt.h \
quazip/ioapi.h \
quazip/JlCompress.h \
......@@ -38,17 +53,15 @@ HEADERS += quazip/crypt.h \
quazip/quazip.h \
quazip/quazipnewinfo.h \
quazip/unzip.h \
quazip/zip.h \
mainwindow.h \
dragons.h \
info.h \
detect.h \
flasher.h \
openfile.h
FORMS += mainwindow.ui \
dragons.ui \
info.ui \
detect.ui \
flasher.ui \
openfile.ui
RESOURCES += res/res_loc.qrc
quazip/zip.h
}
Debug:UI_DIR = debug/.ui
win32 {
INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib
DEFINES += QUAZIP_BUILD
CONFIG(staticlib): DEFINES += QUAZIP_STATIC
LIBS += -Lquazip/libs
LIBS += -lquazip
}
#############################################################################
# Makefile for building: Bricked-Installer
# Generated by qmake (2.01a) (Qt 4.6.2) on: Mon Jul 2 01:48:58 2012
# Generated by qmake (2.01a) (Qt 4.6.2) on: Mon Jul 2 18:37:34 2012
# Project: Bricked-Installer.pro
# Template: app
# Command: /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile Bricked-Installer.pro
......@@ -44,6 +44,12 @@ OBJECTS_DIR = ./
####### Files
SOURCES = main.cpp \
mainwindow.cpp \
dragons.cpp \
info.cpp \
detect.cpp \
flasher.cpp \
openfile.cpp \
quazip/unzip.c \
quazip/zip.c \
quazip/JlCompress.cpp \
......@@ -52,21 +58,21 @@ SOURCES = main.cpp \
quazip/quacrc32.cpp \
quazip/quazip.cpp \
quazip/quazipfile.cpp \
quazip/quazipnewinfo.cpp \
mainwindow.cpp \
dragons.cpp \
info.cpp \
detect.cpp \
flasher.cpp \
openfile.cpp moc_quazipfile.cpp \
moc_mainwindow.cpp \
quazip/quazipnewinfo.cpp moc_mainwindow.cpp \
moc_dragons.cpp \
moc_info.cpp \
moc_detect.cpp \
moc_flasher.cpp \
moc_openfile.cpp \
moc_quazipfile.cpp \
qrc_res_loc.cpp
OBJECTS = main.o \
mainwindow.o \
dragons.o \
info.o \
detect.o \
flasher.o \
openfile.o \
unzip.o \
zip.o \
JlCompress.o \
......@@ -76,19 +82,13 @@ OBJECTS = main.o \
quazip.o \
quazipfile.o \
quazipnewinfo.o \
mainwindow.o \
dragons.o \
info.o \
detect.o \
flasher.o \
openfile.o \
moc_quazipfile.o \
moc_mainwindow.o \
moc_dragons.o \
moc_info.o \
moc_detect.o \
moc_flasher.o \
moc_openfile.o \
moc_quazipfile.o \
qrc_res_loc.o
DIST = /usr/share/qt4/mkspecs/common/g++.conf \
/usr/share/qt4/mkspecs/common/unix.conf \
......@@ -191,7 +191,7 @@ qmake: FORCE
dist:
@$(CHK_DIR_EXISTS) .tmp/Bricked-Installer0.1 || $(MKDIR) .tmp/Bricked-Installer0.1
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/Bricked-Installer0.1/ && $(COPY_FILE) --parents quazip/crypt.h quazip/ioapi.h quazip/JlCompress.h quazip/quaadler32.h quazip/quachecksum32.h quazip/quacrc32.h quazip/quazipfile.h quazip/quazipfileinfo.h quazip/quazip_global.h quazip/quazip.h quazip/quazipnewinfo.h quazip/unzip.h quazip/zip.h mainwindow.h dragons.h info.h detect.h flasher.h openfile.h .tmp/Bricked-Installer0.1/ && $(COPY_FILE) --parents res/res_loc.qrc .tmp/Bricked-Installer0.1/ && $(COPY_FILE) --parents main.cpp quazip/unzip.c quazip/zip.c quazip/JlCompress.cpp quazip/qioapi.cpp quazip/quaadler32.cpp quazip/quacrc32.cpp quazip/quazip.cpp quazip/quazipfile.cpp quazip/quazipnewinfo.cpp mainwindow.cpp dragons.cpp info.cpp detect.cpp flasher.cpp openfile.cpp .tmp/Bricked-Installer0.1/ && $(COPY_FILE) --parents mainwindow.ui dragons.ui info.ui detect.ui flasher.ui openfile.ui .tmp/Bricked-Installer0.1/ && (cd `dirname .tmp/Bricked-Installer0.1` && $(TAR) Bricked-Installer0.1.tar Bricked-Installer0.1 && $(COMPRESS) Bricked-Installer0.1.tar) && $(MOVE) `dirname .tmp/Bricked-Installer0.1`/Bricked-Installer0.1.tar.gz . && $(DEL_FILE) -r .tmp/Bricked-Installer0.1
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/Bricked-Installer0.1/ && $(COPY_FILE) --parents mainwindow.h dragons.h info.h detect.h flasher.h openfile.h quazip/crypt.h quazip/ioapi.h quazip/JlCompress.h quazip/quaadler32.h quazip/quachecksum32.h quazip/quacrc32.h quazip/quazipfile.h quazip/quazipfileinfo.h quazip/quazip_global.h quazip/quazip.h quazip/quazipnewinfo.h quazip/unzip.h quazip/zip.h .tmp/Bricked-Installer0.1/ && $(COPY_FILE) --parents res/res_loc.qrc .tmp/Bricked-Installer0.1/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp dragons.cpp info.cpp detect.cpp flasher.cpp openfile.cpp quazip/unzip.c quazip/zip.c quazip/JlCompress.cpp quazip/qioapi.cpp quazip/quaadler32.cpp quazip/quacrc32.cpp quazip/quazip.cpp quazip/quazipfile.cpp quazip/quazipnewinfo.cpp .tmp/Bricked-Installer0.1/ && $(COPY_FILE) --parents mainwindow.ui dragons.ui info.ui detect.ui flasher.ui openfile.ui .tmp/Bricked-Installer0.1/ && (cd `dirname .tmp/Bricked-Installer0.1` && $(TAR) Bricked-Installer0.1.tar Bricked-Installer0.1 && $(COMPRESS) Bricked-Installer0.1.tar) && $(MOVE) `dirname .tmp/Bricked-Installer0.1`/Bricked-Installer0.1.tar.gz . && $(DEL_FILE) -r .tmp/Bricked-Installer0.1
clean:compiler_clean
......@@ -210,19 +210,9 @@ mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_moc_header_make_all: moc_quazipfile.cpp moc_mainwindow.cpp moc_dragons.cpp moc_info.cpp moc_detect.cpp moc_flasher.cpp moc_openfile.cpp
compiler_moc_header_make_all: moc_mainwindow.cpp moc_dragons.cpp moc_info.cpp moc_detect.cpp moc_flasher.cpp moc_openfile.cpp moc_quazipfile.cpp
compiler_moc_header_clean:
-$(DEL_FILE) moc_quazipfile.cpp moc_mainwindow.cpp moc_dragons.cpp moc_info.cpp moc_detect.cpp moc_flasher.cpp moc_openfile.cpp
moc_quazipfile.cpp: quazip/quazip_global.h \
quazip/quazip.h \
quazip/zip.h \
quazip/ioapi.h \
quazip/unzip.h \
quazip/quazipfileinfo.h \
quazip/quazipnewinfo.h \
quazip/quazipfile.h
/usr/bin/moc-qt4 $(DEFINES) $(INCPATH) quazip/quazipfile.h -o moc_quazipfile.cpp
-$(DEL_FILE) moc_mainwindow.cpp moc_dragons.cpp moc_info.cpp moc_detect.cpp moc_flasher.cpp moc_openfile.cpp moc_quazipfile.cpp
moc_mainwindow.cpp: info.h \
detect.h \
openfile.h \
......@@ -256,6 +246,16 @@ moc_openfile.cpp: info.h \
openfile.h
/usr/bin/moc-qt4 $(DEFINES) $(INCPATH) openfile.h -o moc_openfile.cpp
moc_quazipfile.cpp: quazip/quazip_global.h \
quazip/quazip.h \
quazip/zip.h \
quazip/ioapi.h \
quazip/unzip.h \
quazip/quazipfileinfo.h \
quazip/quazipnewinfo.h \
quazip/quazipfile.h
/usr/bin/moc-qt4 $(DEFINES) $(INCPATH) quazip/quazipfile.h -o moc_quazipfile.cpp
compiler_rcc_make_all: qrc_res_loc.cpp
compiler_rcc_clean:
-$(DEL_FILE) qrc_res_loc.cpp
......@@ -307,6 +307,55 @@ main.o: main.cpp dragons.h \
flasher.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
mainwindow.o: mainwindow.cpp mainwindow.h \
info.h \
detect.h \
openfile.h \
flasher.h \
ui_mainwindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
dragons.o: dragons.cpp dragons.h \
mainwindow.h \
info.h \
detect.h \
openfile.h \
flasher.h \
ui_dragons.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o dragons.o dragons.cpp
info.o: info.cpp info.h \
ui_info.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o info.o info.cpp
detect.o: detect.cpp detect.h \
info.h \
openfile.h \
flasher.h \
ui_detect.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o detect.o detect.cpp
flasher.o: flasher.cpp flasher.h \
info.h \
ui_flasher.h \
openfile.h \
quazip/quazip.h \
quazip/zip.h \
quazip/ioapi.h \
quazip/unzip.h \
quazip/quazip_global.h \
quazip/quazipfileinfo.h \
quazip/quazipfile.h \
quazip/quazipnewinfo.h \
quazip/JlCompress.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o flasher.o flasher.cpp
openfile.o: openfile.cpp openfile.h \
info.h \
flasher.h \
ui_openfile.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o openfile.o openfile.cpp
unzip.o: quazip/unzip.c quazip/unzip.h \
quazip/ioapi.h \
quazip/crypt.h \
......@@ -366,49 +415,6 @@ quazipnewinfo.o: quazip/quazipnewinfo.cpp quazip/quazipnewinfo.h \
quazip/quazip_global.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o quazipnewinfo.o quazip/quazipnewinfo.cpp
mainwindow.o: mainwindow.cpp mainwindow.h \
info.h \
detect.h \
openfile.h \
flasher.h \
ui_mainwindow.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
dragons.o: dragons.cpp dragons.h \
mainwindow.h \
info.h \
detect.h \
openfile.h \
flasher.h \
ui_dragons.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o dragons.o dragons.cpp
info.o: info.cpp info.h \
ui_info.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o info.o info.cpp
detect.o: detect.cpp detect.h \
info.h \
openfile.h \
flasher.h \
ui_detect.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o detect.o detect.cpp
flasher.o: flasher.cpp flasher.h \
info.h \
ui_flasher.h \
openfile.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o flasher.o flasher.cpp
openfile.o: openfile.cpp openfile.h \
info.h \
flasher.h \
ui_openfile.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o openfile.o openfile.cpp
moc_quazipfile.o: moc_quazipfile.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_quazipfile.o moc_quazipfile.cpp
moc_mainwindow.o: moc_mainwindow.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
......@@ -427,6 +433,9 @@ moc_flasher.o: moc_flasher.cpp
moc_openfile.o: moc_openfile.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_openfile.o moc_openfile.cpp
moc_quazipfile.o: moc_quazipfile.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_quazipfile.o moc_quazipfile.cpp
qrc_res_loc.o: qrc_res_loc.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_res_loc.o qrc_res_loc.cpp
......
......@@ -37,6 +37,11 @@ unix:!symbian {
}
win32 {
INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib
DEFINES += QUAZIP_BUILD
CONFIG(staticlib): DEFINES += QUAZIP_STATI
DESTDIR += libs
headers.path=$$PREFIX/include/quazip
headers.files=$$HEADERS
target.path=$$PREFIX/lib
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment