From 5358ae24ba8b46fe969cbb26e7abff44a83f44c5 Mon Sep 17 00:00:00 2001 From: Akos Polster Date: Sat, 20 Nov 2010 17:45:50 +0100 Subject: [PATCH] Add Symbian cleanup script. --- dorian.pro | 355 +++++++++++++++++++++++++------------------------ pkg/symbian/clean.bat | 39 ++++++ 2 files changed, 217 insertions(+), 177 deletions(-) create mode 100755 pkg/symbian/clean.bat diff --git a/dorian.pro b/dorian.pro index ccdb153..538cd5e 100644 --- a/dorian.pro +++ b/dorian.pro @@ -1,177 +1,178 @@ -QT += webkit xml sql network - -INCLUDEPATH += $$PWD \ - $$PWD/model \ - $$PWD/widgets - -SOURCES += \ - main.cpp \ - mainwindow.cpp \ - bookview.cpp \ - model/unzip/unzip.c \ - model/unzip/ioapi.c \ - model/extractzip.cpp \ - model/library.cpp \ - model/book.cpp \ - librarydialog.cpp \ - devtools.cpp \ - infodialog.cpp \ - widgets/translucentbutton.cpp \ - settingswindow.cpp \ - model/settings.cpp \ - bookmarksdialog.cpp \ - model/sortedlibrary.cpp \ - bookmarkinfodialog.cpp \ - widgets/dyalog.cpp \ - chaptersdialog.cpp \ - fullscreenwindow.cpp \ - trace.cpp \ - widgets/toolbuttonbox.cpp \ - model/bookfinder.cpp \ - widgets/listwindow.cpp \ - widgets/progress.cpp \ - adopterwindow.cpp \ - platform.cpp \ - model/bookdb.cpp \ - searchdialog.cpp \ - search.cpp \ - widgets/flickable.cpp \ - searchresultsdialog.cpp \ - searchresultinfodialog.cpp \ - widgets/progressdialog.cpp \ - widgets/splash.cpp - -HEADERS += \ - mainwindow.h \ - bookview.h \ - model/opshandler.h \ - model/unzip/unzip.h \ - model/unzip/ioapi.h \ - model/extractzip.h \ - model/library.h \ - model/book.h \ - librarydialog.h \ - devtools.h \ - infodialog.h \ - widgets/translucentbutton.h \ - settingswindow.h \ - model/settings.h \ - bookmarksdialog.h \ - model/xmlerrorhandler.h \ - model/containerhandler.h \ - model/sortedlibrary.h \ - model/ncxhandler.h \ - bookmarkinfodialog.h \ - widgets/dyalog.h \ - chaptersdialog.h \ - fullscreenwindow.h \ - trace.h \ - widgets/toolbuttonbox.h \ - model/bookfinder.h \ - widgets/listwindow.h \ - widgets/progress.h \ - adopterwindow.h \ - model/xmlhandler.h \ - platform.h \ - model/bookdb.h \ - searchdialog.h \ - search.h \ - widgets/flickable.h \ - searchresultsdialog.h \ - searchresultinfodialog.h \ - widgets/progressdialog.h \ - widgets/splash.h - -RESOURCES += \ - dorian.qrc - -OTHER_FILES += \ - TODO.txt \ - pkg/acknowledgements.txt \ - pkg/maemo/postinst \ - pkg/maemo/dorian.desktop \ - pkg/maemo/control \ - pkg/maemo/changelog \ - pkg/maemo/build.sh \ - styles/night.css \ - pkg/changelog \ - pkg/maemo/build-scratchbox.sh \ - styles/sand.css \ - styles/default.css \ - pkg/version.txt \ - styles/sand.js \ - styles/night.js \ - styles/default.js \ - styles/day.js \ - www/index.html \ - pkg/maemo/autobuild.sh \ - pkg/maemo/autobuild-scratchbox.sh \ - LICENSE.txt \ - pkg/symbian/book.svg - -DEFINES += \ - USE_FILE32API - -!symbian { - DEFINES += DORIAN_TEST_MODEL - include(model/modeltest/modeltest.pri) -} - -unix { - symbian { - } else { - LIBS += -lz - } -} - -win32 { - DEFINES += ZLIB_WINAPI - INCLUDEPATH += $$PWD/model/zlib - LIBS += pkg/win32/zlibstat.lib -} - -symbian { - TARGET = Dorian - TARGET.UID3 = 0xA89FC85B - TARGET.CAPABILITY = UserEnvironment NetworkServices ReadUserData \ - WriteUserData - TARGET.EPOCHEAPSIZE = 0x080000 0x4000000 - ICON = $$PWD/pkg/symbian/book.svg - # packageheader = "$${LITERAL_HASH}{\"Dorian\"}, (0xA89FC85B), 0, 3, 6" - # my_deployment.pkg_prerules = packageheader - # DEPLOYMENT += my_deployment - - INCLUDEPATH += $(QTDIR)/src/3rdparty/zlib - HEADERS += \ - widgets/flickcharm.h \ - widgets/mediakeysobserver.h - SOURCES += \ - widgets/flickcharm.cpp \ - widgets/mediakeysobserver.cpp - LIBS += -lremconinterfacebase -lremconcoreapi -} - -maemo5 { - QT += maemo5 dbus - isEmpty(PREFIX) { - PREFIX = /usr - } - BINDIR = $$PREFIX/bin - DATADIR =$$PREFIX/share - DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\" - - # For "make install" - - INSTALLS += target desktop icon48 iconscalable - - target.path = $$BINDIR - - desktop.path = $$DATADIR/applications/hildon - desktop.files += pkg/maemo/dorian.desktop - - icon48.path = $$DATADIR/icons/hicolor/48x48/hildon - icon48.files += pkg/maemo/icon-48/dorian.png - - iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon - iconscalable.files += pkg/maemo/icon-scalable/dorian.png -} +QT += webkit xml sql network + +INCLUDEPATH += $$PWD \ + $$PWD/model \ + $$PWD/widgets + +SOURCES += \ + main.cpp \ + mainwindow.cpp \ + bookview.cpp \ + model/unzip/unzip.c \ + model/unzip/ioapi.c \ + model/extractzip.cpp \ + model/library.cpp \ + model/book.cpp \ + librarydialog.cpp \ + devtools.cpp \ + infodialog.cpp \ + widgets/translucentbutton.cpp \ + settingswindow.cpp \ + model/settings.cpp \ + bookmarksdialog.cpp \ + model/sortedlibrary.cpp \ + bookmarkinfodialog.cpp \ + widgets/dyalog.cpp \ + chaptersdialog.cpp \ + fullscreenwindow.cpp \ + trace.cpp \ + widgets/toolbuttonbox.cpp \ + model/bookfinder.cpp \ + widgets/listwindow.cpp \ + widgets/progress.cpp \ + adopterwindow.cpp \ + platform.cpp \ + model/bookdb.cpp \ + searchdialog.cpp \ + search.cpp \ + widgets/flickable.cpp \ + searchresultsdialog.cpp \ + searchresultinfodialog.cpp \ + widgets/progressdialog.cpp \ + widgets/splash.cpp + +HEADERS += \ + mainwindow.h \ + bookview.h \ + model/opshandler.h \ + model/unzip/unzip.h \ + model/unzip/ioapi.h \ + model/extractzip.h \ + model/library.h \ + model/book.h \ + librarydialog.h \ + devtools.h \ + infodialog.h \ + widgets/translucentbutton.h \ + settingswindow.h \ + model/settings.h \ + bookmarksdialog.h \ + model/xmlerrorhandler.h \ + model/containerhandler.h \ + model/sortedlibrary.h \ + model/ncxhandler.h \ + bookmarkinfodialog.h \ + widgets/dyalog.h \ + chaptersdialog.h \ + fullscreenwindow.h \ + trace.h \ + widgets/toolbuttonbox.h \ + model/bookfinder.h \ + widgets/listwindow.h \ + widgets/progress.h \ + adopterwindow.h \ + model/xmlhandler.h \ + platform.h \ + model/bookdb.h \ + searchdialog.h \ + search.h \ + widgets/flickable.h \ + searchresultsdialog.h \ + searchresultinfodialog.h \ + widgets/progressdialog.h \ + widgets/splash.h + +RESOURCES += \ + dorian.qrc + +OTHER_FILES += \ + TODO.txt \ + pkg/acknowledgements.txt \ + pkg/maemo/postinst \ + pkg/maemo/dorian.desktop \ + pkg/maemo/control \ + pkg/maemo/changelog \ + pkg/maemo/build.sh \ + styles/night.css \ + pkg/changelog \ + pkg/maemo/build-scratchbox.sh \ + styles/sand.css \ + styles/default.css \ + pkg/version.txt \ + styles/sand.js \ + styles/night.js \ + styles/default.js \ + styles/day.js \ + www/index.html \ + pkg/maemo/autobuild.sh \ + pkg/maemo/autobuild-scratchbox.sh \ + LICENSE.txt \ + pkg/symbian/book.svg \ + pkg/symbian/clean.bat + +DEFINES += \ + USE_FILE32API + +!symbian { + DEFINES += DORIAN_TEST_MODEL + include(model/modeltest/modeltest.pri) +} + +unix { + symbian { + } else { + LIBS += -lz + } +} + +win32 { + DEFINES += ZLIB_WINAPI + INCLUDEPATH += $$PWD/model/zlib + LIBS += pkg/win32/zlibstat.lib +} + +symbian { + TARGET = Dorian + TARGET.UID3 = 0xA89FC85B + TARGET.CAPABILITY = UserEnvironment NetworkServices ReadUserData \ + WriteUserData + TARGET.EPOCHEAPSIZE = 0x080000 0x4000000 + ICON = $$PWD/pkg/symbian/book.svg + # packageheader = "$${LITERAL_HASH}{\"Dorian\"}, (0xA89FC85B), 0, 3, 6" + # my_deployment.pkg_prerules = packageheader + # DEPLOYMENT += my_deployment + + INCLUDEPATH += $(QTDIR)/src/3rdparty/zlib + HEADERS += \ + widgets/flickcharm.h \ + widgets/mediakeysobserver.h + SOURCES += \ + widgets/flickcharm.cpp \ + widgets/mediakeysobserver.cpp + LIBS += -lremconinterfacebase -lremconcoreapi +} + +maemo5 { + QT += maemo5 dbus + isEmpty(PREFIX) { + PREFIX = /usr + } + BINDIR = $$PREFIX/bin + DATADIR =$$PREFIX/share + DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\" + + # For "make install" + + INSTALLS += target desktop icon48 iconscalable + + target.path = $$BINDIR + + desktop.path = $$DATADIR/applications/hildon + desktop.files += pkg/maemo/dorian.desktop + + icon48.path = $$DATADIR/icons/hicolor/48x48/hildon + icon48.files += pkg/maemo/icon-48/dorian.png + + iconscalable.path = $$DATADIR/icons/hicolor/scalable/hildon + iconscalable.files += pkg/maemo/icon-scalable/dorian.png +} diff --git a/pkg/symbian/clean.bat b/pkg/symbian/clean.bat new file mode 100755 index 0000000..4c0565f --- /dev/null +++ b/pkg/symbian/clean.bat @@ -0,0 +1,39 @@ +@echo off + +set src=c:\users\workspace\dorian +set build=C:\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\BUILD\users\workspace + +if not exist %src%\dorian.pro goto badsrc + +if exist %src%\.make.cache del /q %src%\.make.cache +if exist %src%\abld.bat del /q %src%\abld.bat +if exist %src%\bld.inf del /q %src%\bld.inf +if exist %src%\dorian.loc del /q %src%\dorian.loc +if exist %src%\dorian.rss del /q %src%\dorian.rss +if exist %src%\dorian.sis del /q %src%\dorian.sis +if exist %src%\*.nmp del /q %src%\*.mmp +if exist %src%\dorian_installer.pkg del /q %src%\dorian_installer.pkg +if exist %src%\dorian_reg.rss del /q %src%\dorian_reg.rss +if exist %src%\dorian_template.pkg del /q %src%\dorian_template.pkg +if exist %src%\Makefile del /q %src%\Makefile +if exist %src%\Makefile_* del /q %src%\Makefile_* +if exist %src%\moc rmdir /s /q %src%\moc +if exist %src%\obj rmdir /s /q %src%\obj +if exist %src%\rcc rmdir /s /q %src%\rcc +if exist %src%\tmp rmdir /s /q %src%\tmp +if exist %src%\ui rmdir /s /q %src%\ui + +if not exist %build% goto badbuild +if exist %build%\dorian rmdir /s /q %build%\dorian + +goto exit + +:badsrc +echo Source directory %src% does not exist +goto exit + +:badbuild +echo Build directory %build% does not exist +goto exit + +:exit -- 1.7.9.5