diff options
author | Teus Benschop <teusjannette@gmail.com> | 2017-10-06 12:24:31 +0200 |
---|---|---|
committer | Teus Benschop <teusjannette@gmail.com> | 2017-10-06 12:24:31 +0200 |
commit | 90d2181239761f8950b95768d3b037843e9e8b50 (patch) | |
tree | 6cc667ab420cc04029de2de7e361d2305e214595 /platforms | |
parent | 1ea03c0fce8066c1e22188447b4a6ca4dcef1201 (diff) |
New upstream version 2.11.0
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/android/mobile/android/AndroidManifest.xml | 40 | ||||
-rw-r--r-- | platforms/android/mobile/android/res/drawable-hdpi/icon.png | bin | 0 -> 9692 bytes | |||
-rw-r--r-- | platforms/android/mobile/android/res/drawable-ldpi/icon.png | bin | 0 -> 4798 bytes | |||
-rw-r--r-- | platforms/android/mobile/android/res/drawable-mdpi/icon.png | bin | 0 -> 9692 bytes | |||
-rw-r--r-- | platforms/android/mobile/mobile.pro | 10 | ||||
-rw-r--r-- | platforms/common/bibletime/bibletime.pro | 228 | ||||
-rw-r--r-- | platforms/common/clucene/CLucene/clucene-config.h | 383 | ||||
-rw-r--r-- | platforms/common/clucene/clucene.pro | 124 | ||||
-rw-r--r-- | platforms/common/core/core.pro | 182 | ||||
-rw-r--r-- | platforms/common/curl/curl.pro | 144 | ||||
-rw-r--r-- | platforms/common/icu/icu.pro | 6 | ||||
-rw-r--r-- | platforms/common/mobile/mobile.pro | 135 | ||||
-rw-r--r-- | platforms/common/sword/sword.pro | 233 | ||||
-rwxr-xr-x | platforms/windows/mobile/mobile.pro | 4 |
14 files changed, 1489 insertions, 0 deletions
diff --git a/platforms/android/mobile/android/AndroidManifest.xml b/platforms/android/mobile/android/AndroidManifest.xml new file mode 100644 index 0000000..c2a75be --- /dev/null +++ b/platforms/android/mobile/android/AndroidManifest.xml @@ -0,0 +1,40 @@ +<?xml version='1.0' encoding='utf-8'?> +<manifest android:versionCode="109" xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" android:versionName="1.09" package="org.qtproject.bibletime.mobile"> + <application android:label="BibleTime Mobile" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:icon="@drawable/icon"> + <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation" android:screenOrientation="unspecified" android:label="BibleTime Mobile" android:name="org.qtproject.qt5.android.bindings.QtActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN"/> + <category android:name="android.intent.category.LAUNCHER"/> + </intent-filter> + <meta-data android:value="-- %%INSERT_APP_LIB_NAME%% --" android:name="android.app.lib_name"/> + <meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/> + <meta-data android:value="default" android:name="android.app.repository"/> + <meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/> + <meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/> + <!-- Deploy Qt libs as part of package --> + <meta-data android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --" android:name="android.app.bundle_local_qt_libs"/> + <meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/> + <meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/> + <!-- Run with local libs --> + <meta-data android:value="-- %%USE_LOCAL_QT_LIBS%% --" android:name="android.app.use_local_qt_libs"/> + <meta-data android:value="/data/local/tmp/qt/" android:name="android.app.libs_prefix"/> + <meta-data android:value="-- %%INSERT_LOCAL_LIBS%% --" android:name="android.app.load_local_libs"/> + <meta-data android:value="-- %%INSERT_LOCAL_JARS%% --" android:name="android.app.load_local_jars"/> + <meta-data android:value="-- %%INSERT_INIT_CLASSES%% --" android:name="android.app.static_init_classes"/> + <!-- Messages maps --> + <meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/> + <meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/> + <meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/> + <!-- Messages maps --> + <!-- Splash screen --> + <meta-data android:name="android.app.splash_screen" android:resource="@layout/splash"/> + <!-- Splash screen --> + </activity> + </application> + <uses-sdk android:targetSdkVersion="21" android:minSdkVersion="9"/> + <supports-screens android:anyDensity="true" android:xlargeScreens="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/> + <!-- %%INSERT_PERMISSIONS --> + <!-- %%INSERT_FEATURES --> + <uses-permission android:name="android.permission.INTERNET"/> + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> +</manifest> diff --git a/platforms/android/mobile/android/res/drawable-hdpi/icon.png b/platforms/android/mobile/android/res/drawable-hdpi/icon.png Binary files differnew file mode 100644 index 0000000..f7598a9 --- /dev/null +++ b/platforms/android/mobile/android/res/drawable-hdpi/icon.png diff --git a/platforms/android/mobile/android/res/drawable-ldpi/icon.png b/platforms/android/mobile/android/res/drawable-ldpi/icon.png Binary files differnew file mode 100644 index 0000000..25c5c60 --- /dev/null +++ b/platforms/android/mobile/android/res/drawable-ldpi/icon.png diff --git a/platforms/android/mobile/android/res/drawable-mdpi/icon.png b/platforms/android/mobile/android/res/drawable-mdpi/icon.png Binary files differnew file mode 100644 index 0000000..f7598a9 --- /dev/null +++ b/platforms/android/mobile/android/res/drawable-mdpi/icon.png diff --git a/platforms/android/mobile/mobile.pro b/platforms/android/mobile/mobile.pro new file mode 100644 index 0000000..b5a7932 --- /dev/null +++ b/platforms/android/mobile/mobile.pro @@ -0,0 +1,10 @@ + +SWORD_VERSION_NUM = 107004000 + +include(../../common/mobile/mobile.pro) + +OTHER_FILES += \ + android/AndroidManifest.xml + +ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android + diff --git a/platforms/common/bibletime/bibletime.pro b/platforms/common/bibletime/bibletime.pro new file mode 100644 index 0000000..ae89bed --- /dev/null +++ b/platforms/common/bibletime/bibletime.pro @@ -0,0 +1,228 @@ +# BibleTime project for QtCreator +# to run this target you must copy "share" folder from original BibleTime +# installation to parent folder of executeale location + +# Configuration +VERSION = 2.10.0_dev +CONFIG += clucene svg xml webkit +QT += printsupport + +INCLUDEPATH += . \ + +SOURCES += \ + ../../../src/bibletime.cpp \ + ../../../src/bibletime_init.cpp \ + ../../../src/bibletime_slots.cpp \ + ../../../src/bibletimeapp.cpp \ + ../../../src/main.cpp \ + ../../../src/frontend/btaboutdialog.cpp \ + ../../../src/frontend/btaboutmoduledialog.cpp \ + ../../../src/frontend/btbookshelfdockwidget.cpp \ + ../../../src/frontend/btbookshelfgroupingmenu.cpp \ + ../../../src/frontend/btbookshelfview.cpp \ + ../../../src/frontend/btbookshelfwidget.cpp \ + ../../../src/frontend/btcentralwidget.cpp \ + ../../../src/frontend/btmenuview.cpp \ + ../../../src/frontend/btmodulechooserdialog.cpp \ + ../../../src/frontend/btmoduleindexdialog.cpp \ + ../../../src/frontend/btopenworkaction.cpp \ + ../../../src/frontend/cexportmanager.cpp \ + ../../../src/frontend/cmdiarea.cpp \ + ../../../src/frontend/cprinter.cpp \ + ../../../src/frontend/bookmarks/bteditbookmarkdialog.cpp \ + ../../../src/frontend/bookmarks/cbookmarkindex.cpp \ + ../../../src/frontend/bookshelfmanager/btconfigdialog.cpp \ + ../../../src/frontend/bookshelfmanager/btmodulemanagerdialog.cpp \ + ../../../src/frontend/bookshelfmanager/cswordsetupinstallsourcesdialog.cpp \ + ../../../src/frontend/bookshelfmanager/indexpage/btindexpage.cpp \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialog.cpp \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialogmodel.cpp \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallpage.cpp \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallpagemodel.cpp \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallpageworkswidget.cpp \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallpathdialog.cpp \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallprogressdialog.cpp \ + ../../../src/frontend/bookshelfmanager/installpage/btrefreshprogressdialog.cpp \ + ../../../src/frontend/bookshelfmanager/removepage/btremovepage.cpp \ + ../../../src/frontend/bookshelfmanager/removepage/btremovepagetreemodel.cpp \ + ../../../src/frontend/cinfodisplay.cpp \ + ../../../src/frontend/display/btcolorwidget.cpp \ + ../../../src/frontend/display/btfindwidget.cpp \ + ../../../src/frontend/display/btfontsizewidget.cpp \ + ../../../src/frontend/display/bthtmljsobject.cpp \ + ../../../src/frontend/display/bthtmlreaddisplay.cpp \ + ../../../src/frontend/display/cdisplay.cpp \ + ../../../src/frontend/display/chtmlwritedisplay.cpp \ + ../../../src/frontend/display/cplainwritedisplay.cpp \ + ../../../src/frontend/display/creaddisplay.cpp \ + ../../../src/frontend/displaywindow/btactioncollection.cpp \ + ../../../src/frontend/displaywindow/btdisplaysettingsbutton.cpp \ + ../../../src/frontend/displaywindow/btmodulechooserbar.cpp \ + ../../../src/frontend/displaywindow/btmodulechooserbutton.cpp \ + ../../../src/frontend/displaywindow/bttextwindowheader.cpp \ + ../../../src/frontend/displaywindow/bttextwindowheaderwidget.cpp \ + ../../../src/frontend/displaywindow/bttoolbarpopupaction.cpp \ + ../../../src/frontend/displaywindow/cbiblereadwindow.cpp \ + ../../../src/frontend/displaywindow/cbookreadwindow.cpp \ + ../../../src/frontend/displaywindow/ccommentaryreadwindow.cpp \ + ../../../src/frontend/displaywindow/cdisplaywindow.cpp \ + ../../../src/frontend/displaywindow/chtmlwritewindow.cpp \ + ../../../src/frontend/displaywindow/clexiconreadwindow.cpp \ + ../../../src/frontend/displaywindow/cplainwritewindow.cpp \ + ../../../src/frontend/displaywindow/creadwindow.cpp \ + ../../../src/frontend/keychooser/bthistory.cpp \ + ../../../src/frontend/keychooser/cbookkeychooser.cpp \ + ../../../src/frontend/keychooser/cbooktreechooser.cpp \ + ../../../src/frontend/keychooser/ckeychooser.cpp \ + ../../../src/frontend/keychooser/ckeychooserwidget.cpp \ + ../../../src/frontend/keychooser/clexiconkeychooser.cpp \ + ../../../src/frontend/keychooser/cscrollbutton.cpp \ + ../../../src/frontend/keychooser/cscrollerwidgetset.cpp \ + ../../../src/frontend/keychooser/versekeychooser/btbiblekeywidget.cpp \ + ../../../src/frontend/keychooser/versekeychooser/btdropdownchooserbutton.cpp \ + ../../../src/frontend/keychooser/versekeychooser/btversekeymenu.cpp \ + ../../../src/frontend/keychooser/versekeychooser/cbiblekeychooser.cpp \ + ../../../src/frontend/messagedialog.cpp \ + ../../../src/frontend/searchdialog/btsearchmodulechooserdialog.cpp \ + ../../../src/frontend/searchdialog/btsearchoptionsarea.cpp \ + ../../../src/frontend/searchdialog/btsearchresultarea.cpp \ + ../../../src/frontend/searchdialog/btsearchsyntaxhelpdialog.cpp \ + ../../../src/frontend/searchdialog/chistorycombobox.cpp \ + ../../../src/frontend/searchdialog/cmoduleresultview.cpp \ + ../../../src/frontend/searchdialog/crangechooserdialog.cpp \ + ../../../src/frontend/searchdialog/csearchdialog.cpp \ + ../../../src/frontend/searchdialog/csearchresultview.cpp \ + ../../../src/frontend/searchdialog/analysis/csearchanalysisdialog.cpp \ + ../../../src/frontend/searchdialog/analysis/csearchanalysisitem.cpp \ + ../../../src/frontend/searchdialog/analysis/csearchanalysislegenditem.cpp \ + ../../../src/frontend/searchdialog/analysis/csearchanalysisscene.cpp \ + ../../../src/frontend/searchdialog/analysis/csearchanalysisview.cpp \ + ../../../src/frontend/settingsdialogs/btfontchooserwidget.cpp \ + ../../../src/frontend/settingsdialogs/btfontsettings.cpp \ + ../../../src/frontend/settingsdialogs/btshortcutsdialog.cpp \ + ../../../src/frontend/settingsdialogs/btshortcutseditor.cpp \ + ../../../src/frontend/settingsdialogs/btstandardworkstab.cpp \ + ../../../src/frontend/settingsdialogs/bttextfilterstab.cpp \ + ../../../src/frontend/settingsdialogs/cacceleratorsettings.cpp \ + ../../../src/frontend/settingsdialogs/cconfigurationdialog.cpp \ + ../../../src/frontend/settingsdialogs/cdisplaysettings.cpp \ + ../../../src/frontend/settingsdialogs/clistwidget.cpp \ + ../../../src/frontend/settingsdialogs/cswordsettings.cpp \ + ../../../src/frontend/tips/bttipdialog.cpp \ + ../../../src/util/bticons.cpp \ + ../../../src/util/btmodules.cpp \ + + +HEADERS += \ + ../../../src/bibletimeapp.h \ + ../../../src/bibletime.h \ + ../../../src/frontend/btaboutdialog.h \ + ../../../src/frontend/btaboutmoduledialog.h \ + ../../../src/frontend/btbookshelfdockwidget.h \ + ../../../src/frontend/btbookshelfgroupingmenu.h \ + ../../../src/frontend/btbookshelfview.h \ + ../../../src/frontend/btbookshelfwidget.h \ + ../../../src/frontend/btcentralwidget.h \ + ../../../src/frontend/btmenuview.h \ + ../../../src/frontend/btmodulechooserdialog.h \ + ../../../src/frontend/btmoduleindexdialog.h \ + ../../../src/frontend/btopenworkaction.h \ + ../../../src/frontend/cdragdrop.h \ + ../../../src/frontend/cexportmanager.h \ + ../../../src/frontend/cmdiarea.h \ + ../../../src/frontend/cprinter.h \ + ../../../src/frontend/bookmarks/bteditbookmarkdialog.h \ + ../../../src/frontend/bookmarks/cbookmarkindex.h \ + ../../../src/frontend/bookshelfmanager/btconfigdialog.h \ + ../../../src/frontend/bookshelfmanager/btmodulemanagerdialog.h \ + ../../../src/frontend/bookshelfmanager/cswordsetupinstallsourcesdialog.h \ + ../../../src/frontend/bookshelfmanager/indexpage/btindexpage.h \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialog.h \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialogmodel.h \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallpage.h \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallpagemodel.h \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallpageworkswidget.h \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallpathdialog.h \ + ../../../src/frontend/bookshelfmanager/installpage/btinstallprogressdialog.h \ + ../../../src/frontend/bookshelfmanager/installpage/btrefreshprogressdialog.h \ + ../../../src/frontend/bookshelfmanager/removepage/btremovepage.h \ + ../../../src/frontend/bookshelfmanager/removepage/btremovepagetreemodel.h \ + ../../../src/frontend/cinfodisplay.h \ + ../../../src/frontend/display/btcolorwidget.h \ + ../../../src/frontend/display/btfindwidget.h \ + ../../../src/frontend/display/btfontsizewidget.h \ + ../../../src/frontend/display/bthtmljsobject.h \ + ../../../src/frontend/display/bthtmlreaddisplay.h \ + ../../../src/frontend/display/cdisplay.h \ + ../../../src/frontend/display/chtmlwritedisplay.h \ + ../../../src/frontend/display/cplainwritedisplay.h \ + ../../../src/frontend/display/creaddisplay.h \ + ../../../src/frontend/displaywindow/btactioncollection.h \ + ../../../src/frontend/displaywindow/btdisplaysettingsbutton.h \ + ../../../src/frontend/displaywindow/btmodulechooserbar.h \ + ../../../src/frontend/displaywindow/btmodulechooserbutton.h \ + ../../../src/frontend/displaywindow/bttextwindowheader.h \ + ../../../src/frontend/displaywindow/bttextwindowheaderwidget.h \ + ../../../src/frontend/displaywindow/bttoolbarpopupaction.h \ + ../../../src/frontend/displaywindow/btwindowmodulechooser.h \ + ../../../src/frontend/displaywindow/cbiblereadwindow.h \ + ../../../src/frontend/displaywindow/cbookreadwindow.h \ + ../../../src/frontend/displaywindow/ccommentaryreadwindow.h \ + ../../../src/frontend/displaywindow/cdisplaywindow.h \ + ../../../src/frontend/displaywindow/chtmlwritewindow.h \ + ../../../src/frontend/displaywindow/clexiconreadwindow.h \ + ../../../src/frontend/displaywindow/cplainwritewindow.h \ + ../../../src/frontend/displaywindow/creadwindow.h \ + ../../../src/frontend/keychooser/bthistory.h \ + ../../../src/frontend/keychooser/cbookkeychooser.h \ + ../../../src/frontend/keychooser/cbooktreechooser.h \ + ../../../src/frontend/keychooser/ckeychooser.h \ + ../../../src/frontend/keychooser/ckeychooserwidget.h \ + ../../../src/frontend/keychooser/clexiconkeychooser.h \ + ../../../src/frontend/keychooser/cscrollbutton.h \ + ../../../src/frontend/keychooser/cscrollerwidgetset.h \ + ../../../src/frontend/keychooser/versekeychooser/btbiblekeywidget.h \ + ../../../src/frontend/keychooser/versekeychooser/btdropdownchooserbutton.h \ + ../../../src/frontend/keychooser/versekeychooser/btversekeymenu.h \ + ../../../src/frontend/keychooser/versekeychooser/cbiblekeychooser.h \ + ../../../src/frontend/searchdialog/btsearchmodulechooserdialog.h \ + ../../../src/frontend/searchdialog/btsearchoptionsarea.h \ + ../../../src/frontend/searchdialog/btsearchresultarea.h \ + ../../../src/frontend/searchdialog/btsearchsyntaxhelpdialog.h \ + ../../../src/frontend/searchdialog/chistorycombobox.h \ + ../../../src/frontend/searchdialog/cmoduleresultview.h \ + ../../../src/frontend/searchdialog/crangechooserdialog.h \ + ../../../src/frontend/searchdialog/csearchdialog.h \ + ../../../src/frontend/searchdialog/csearchresultview.h \ + ../../../src/frontend/searchdialog/analysis/csearchanalysisdialog.h \ + ../../../src/frontend/searchdialog/analysis/csearchanalysisitem.h \ + ../../../src/frontend/searchdialog/analysis/csearchanalysislegenditem.h \ + ../../../src/frontend/searchdialog/analysis/csearchanalysisscene.h \ + ../../../src/frontend/searchdialog/analysis/csearchanalysisview.h \ + ../../../src/frontend/settingsdialogs/btfontchooserwidget.h \ + ../../../src/frontend/settingsdialogs/btfontsettings.h \ + ../../../src/frontend/settingsdialogs/btshortcutsdialog.h \ + ../../../src/frontend/settingsdialogs/btshortcutseditor.h \ + ../../../src/frontend/settingsdialogs/btstandardworkstab.h \ + ../../../src/frontend/settingsdialogs/bttextfilterstab.h \ + ../../../src/frontend/settingsdialogs/cacceleratorsettings.h \ + ../../../src/frontend/settingsdialogs/cconfigurationdialog.h \ + ../../../src/frontend/settingsdialogs/cdisplaysettings.h \ + ../../../src/frontend/settingsdialogs/clistwidget.h \ + ../../../src/frontend/settingsdialogs/cswordsettings.h \ + ../../../src/frontend/tips/bttipdialog.h \ + ../../../src/util/btmodules.h \ + ../../../src/util/macros.h + + +RESOURCES += \ + + +OTHER_FILES += \ + + +# BibleTime Core +include(../../common/core/core.pro) + +# show translations in project explorer +OTHER_FILES += $${TRANSLATIONS} diff --git a/platforms/common/clucene/CLucene/clucene-config.h b/platforms/common/clucene/CLucene/clucene-config.h new file mode 100644 index 0000000..fa159e9 --- /dev/null +++ b/platforms/common/clucene/CLucene/clucene-config.h @@ -0,0 +1,383 @@ +#ifndef _SRC_CLUCENE_CLUCENE_CONFIG_H +#define _SRC_CLUCENE_CLUCENE_CONFIG_H 1 + +/* src/CLucene/clucene-config.h. +* Generated automatically at end of cmake. +*/ + +/* Compulsary headers. cmake will fail if these are not found: + * Eventually we will take these out of StdHeader to simplify it all a bit. +*/ +#define _CL_HAVE_ALGORITHM 1 +#define _CL_HAVE_FUNCTIONAL 1 +#define _CL_HAVE_MAP 1 +#define _CL_HAVE_VECTOR 1 +#define _CL_HAVE_LIST 1 +#define _CL_HAVE_SET 1 +#define _CL_HAVE_MATH_H 1 +#define _CL_HAVE_STDARG_H 1 +#define _CL_HAVE_STDEXCEPT 1 +#define _CL_HAVE_FCNTL_H 1 + +#define _CL_HAVE_WCSCPY 1 +#define _CL_HAVE_WCSNCPY 1 +#define _CL_HAVE_WCSCAT 1 +#define _CL_HAVE_WCSCHR 1 +#define _CL_HAVE_WCSSTR 1 +#define _CL_HAVE_WCSLEN 1 +#define _CL_HAVE_WCSCMP 1 +#define _CL_HAVE_WCSNCMP 1 +#define _CL_HAVE_WCSCSPN 1 + +/* CMake will look for these headers: */ + +/* Define to 1 if you have the ANSI C header files. */ +#define _CL_STDC_HEADERS 1 + +/* Define to 1 if you have the <string.h> header file. */ +#define _CL_HAVE_STRING_H 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#define _CL_HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <memory.h> header file. */ +#define _CL_HAVE_MEMORY_H 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +#define _CL_HAVE_UNISTD_H 1 + +/* Define to 1 if you have the <io.h> header file. */ +#define _CL_HAVE_IO_H 1 + +/* Define to 1 if you have the <direct.h> header file. */ +#define _CL_HAVE_DIRECT_H 1 + +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. */ +#define _CL_HAVE_DIRENT_H 1 + +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. */ +/* #undef _CL_HAVE_SYS_DIR_H */ + +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. */ +/* #undef _CL_HAVE_SYS_NDIR_H */ + +/* Define to 1 if you have the <errno.h> header file. */ +#define _CL_HAVE_ERRNO_H 1 + +/* Define to 1 if you have the <wchar.h> header file. */ +#define _CL_HAVE_WCHAR_H 1 + +/* Define to 1 if you have a functioning <wchar.h> header file. */ +#define _CL_HAVE_WCTYPE_H + +/* Define to 1 if you have the <ctype.h> header file. */ +#define _CL_HAVE_CTYPE_H 1 + +/* Define to 1 if you have the <windows.h> header file. */ +//#define _CL_HAVE_WINDOWS_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define _CL_HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define _CL_HAVE_INTTYPES_H 1 + + +/* CMake will look for these symbols: */ + +/* Define to 1 if the system has the type `float_t'. */ +//todo: HACK +#define _CL_HAVE_FLOAT_T 1 + +#ifdef __MINGW32__ +//typedef float float_t; +#endif + + +/* Define to 1 if the system has the type `intptr_t'. */ +//todo: HACK +#define _CL_HAVE_INTPTR_T 1 + +/* Define to 1 if the system has the type `wchar_t'. */ +//todo: HACK +#define _CL_HAVE_WCHAR_T 1 + + + +/* CMake will look for these functions: */ + +/* Define to 1 if you have the `printf' function. */ +#define _CL_HAVE_PRINTF 1 + +/* Define to 1 if you have the `snprintf' function. */ +#define _CL_HAVE_SNPRINTF 1 + + + +/* CMake will determine these module specificics */ + +/* Define if you have POSIX threads libraries and header files. */ +#define _CL_HAVE_PTHREAD 1 + +/* Define if you have POSIX threads libraries and header files. */ +//#define _CL_HAVE_WIN32_THREADS 1 + +/* define if the compiler supports ISO C++ standard library */ +#define _CL_HAVE_STD + + +/* Disable multithreading */ +/* #undef _CL_DISABLE_MULTITHREADING */ + + +/* Define to 1 if you have the <dlfcn.h> header file. */ +/* #undef _CL_HAVE_DLFCN_H */ + + +/* Define to 1 if you have the <ext/hash_map> header file. */ +#define _CL_HAVE_EXT_HASH_MAP 1 + +/* Define to 1 if you have the <ext/hash_set> header file. */ +#define _CL_HAVE_EXT_HASH_SET 1 + + +/* Define to 1 if you have the <functional> header file. */ + +/* Does not support new float byte<->float conversions */ +/* #undef _CL_HAVE_FUNCTIONING_FLOAT_BYTE */ + +/* Define to 1 if you have the `getpagesize' function. */ +/* #undef _CL_HAVE_GETPAGESIZE */ + +/* Define to 1 if you have the <hash_map> header file. */ +#define _CL_HAVE_HASH_MAP + +/* Define to 1 if you have the <hash_set> header file. */ +#define _CL_HAVE_HASH_SET + + +/* Define to 1 if you have the `lltoa' function. */ +#define _CL_HAVE_LLTOA + +/* Define to 1 if you have the `lltow' function. */ +//#define _CL_HAVE_LLTOW + +/* Define to 1 if long double works and has more range or precision than double. */ +/* #undef _CL_HAVE_LONG_DOUBLE */ + + + + +/* Define to 1 if you have a working `mmap' system call. */ +/* #undef _CL_HAVE_MMAP */ + +/* define if the compiler implements namespaces */ +#define _CL_HAVE_NAMESPACES + +/* Define if you have the nanosleep function */ +/* #undef _CL_HAVE_NANOSLEEP */ + +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ +/* #undef _CL_HAVE_NDIR_H */ + +/* Does not support new float byte<->float conversions */ +/* #undef _CL_HAVE_NO_FLOAT_BYTE */ + +/* Does not support try/catch blocks */ +/* #undef _CL_HAVE_NO_FUNCTION_TRY_BLOCKS */ + + +/* Define if recursive pthread mutexes are available */ +/* #undef _CL_HAVE_PTHREAD_MUTEX_RECURSIVE */ + + + +/* Defined if the snprintf overflow test fails */ +/* #undef _CL_HAVE_SNPRINTF_BUG */ + +/* Define to 1 if you have the `snwprintf' function. */ +#if defined _WIN32 || defined ANDROID +#define _CL_HAVE_SNWPRINTF +#endif + +/* Define to 1 if you have the <stdint.h> header file. */ +#define _CL_HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define _CL_HAVE_STDLIB_H 1 + +/* define if the compiler supports Standard Template Library */ +/* #undef _CL_HAVE_STL */ + + +/* Define to 1 if you have the `strlwr' function. */ +#define _CL_HAVE_STRLWR + +/* Define to 1 if you have the `strtoll' function. */ +#define _CL_HAVE_STRTOLL + +/* Define to 1 if you have the `strupr' function. */ +#define _CL_HAVE_STRUPR + +/* Defined if the swprintf test fails */ +/* #undef _CL_HAVE_SWPRINTF_BUG */ + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define _CL_HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/timeb.h> header file. */ +#ifndef __SYMBIAN32__ +#define _CL_HAVE_SYS_TIMEB_H 1 +#endif + +/* Define to 1 if you have the <tchar.h> header file. */ +#if defined _WIN32 && !defined __SYMBIAN32__ +#define _CL_HAVE_TCHAR_H +#endif + +/* Define to 1 if you have the `tell' function. */ +#define _CL_HAVE_TELL + + + +/* Define to 1 if you have the `vsnwprintf' function. */ +#define _CL_HAVE_VSNWPRINTF + +/* Define to 1 if you have the `wcscasecmp' function. */ +/* #undef _CL_HAVE_WCSCASECMP */ + +/* Define to 1 if you have the `wcscat' function. */ +#define _CL_HAVE_WCSCAT 1 + +/* Define to 1 if you have the `wcschr' function. */ +#define _CL_HAVE_WCSCHR 1 + +/* Define to 1 if you have the `wcscmp' function. */ +#define _CL_HAVE_WCSCMP 1 + +/* Define to 1 if you have the `wcscpy' function. */ +#define _CL_HAVE_WCSCPY 1 + +/* Define to 1 if you have the `wcscspn' function. */ +#define _CL_HAVE_WCSCSPN 1 + +/* Define to 1 if you have the `wcsicmp' function. */ +#define _CL_HAVE_WCSICMP + +/* Define to 1 if you have the `wcslen' function. */ +#define _CL_HAVE_WCSLEN 1 + +/* Define to 1 if you have the `wcsncmp' function. */ +#define _CL_HAVE_WCSNCMP 1 + +/* Define to 1 if you have the `wcsncpy' function. */ +#define _CL_HAVE_WCSNCPY 1 + +/* Define to 1 if you have the `wcsstr' function. */ +#define _CL_HAVE_WCSSTR 1 + +/* Define to 1 if you have the `wcstod' function. */ +#define _CL_HAVE_WCSTOD + +/* Define to 1 if you have the `wcstoll' function. */ +//#define _CL_HAVE_WCSTOLL + +/* Define to 1 if you have the `wcsupr' function. */ +#define _CL_HAVE_WCSUPR + + +/* Define to 1 if you have the `wprintf' function. */ +#define _CL_HAVE_WPRINTF + +/* Define to 1 if you have the `_filelength' function. */ +#define _CL_HAVE__FILELENGTH + +/* How to define a static const in a class */ +/* #undef LUCENE_STATIC_CONSTANT_SYNTAX */ + +/* Name of package */ +/* #undef _CL_PACKAGE */ + +/* Define to the address where bug reports for this package should be sent. */ +/* #undef _CL_PACKAGE_BUGREPORT */ + +/* Define to the full name of this package. */ +/* #undef _CL_PACKAGE_NAME */ + +/* Define to the full name and version of this package. */ +/* #undef _CL_PACKAGE_STRING */ + +/* Define to the one symbol short name of this package. */ +/* #undef _CL_PACKAGE_TARNAME */ + +/* Define to the version of this package. */ +/* #undef _CL_PACKAGE_VERSION */ + +/* Define to the necessary symbol if this constant uses a non-standard name on + your system. */ +/* #undef _CL_PTHREAD_CREATE_JOINABLE */ + +/* The size of a `unsigned char', as computed by sizeof. */ +/* #undef _CL_SIZEOF_UNSIGNED_CHAR */ + +/* The size of a `unsigned int', as computed by sizeof. */ +/* #undef _CL_SIZEOF_UNSIGNED_INT */ + +/* The size of a `unsigned long', as computed by sizeof. */ +/* #undef _CL_SIZEOF_UNSIGNED_LONG */ + +/* The size of a `unsigned long long', as computed by sizeof. */ +/* #undef _CL_SIZEOF_UNSIGNED_LONG_LONG */ + +/* The size of a `unsigned __int64', as computed by sizeof. */ +/* #undef _CL_SIZEOF_UNSIGNED___INT64 */ + +/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ +/* #undef _CL_STAT_MACROS_BROKEN */ + +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ +#define _CL_TIME_WITH_SYS_TIME 1 + +/* Version number of package */ +/* #undef _CL_VERSION */ + +/* Forces into Ascii mode */ +/* #undef _ASCII */ + +/* Conditional Debugging */ +/* #undef _CL__CND_DEBUG */ + +/* debuging option */ +/* #undef _DEBUG */ + +/* Number of bits in a file offset, on hosts where this is settable. */ +/* #undef _FILE_OFFSET_BITS */ + +/* Define for large files, on AIX-style hosts. */ +/* #undef _LARGE_FILES */ + +/* If not already defined, then define as a datatype of *exactly* 32 bits. */ +/* #undef uint32_t */ + +/* If not already defined, then define as a datatype of *exactly* 64 bits. */ +/* #undef uint64_t */ + +/* If not already defined, then define as a datatype of *exactly* 8 bits. */ +/* #undef uint8_t */ + +/* Fix for PATH_MAX */ +#ifdef __SYMBIAN32__ +//#include <sys/cdefs.h> +//#include <sys/syslimits.h> + +#define PATH_MAX 256 + +//#define _LUCENE_NO_NEW_STYLE_CASTS + +//#define _CL_DISABLE_NATIVE_EXCEPTIONS + +//#define _CLFINALLY() catch(...){ throw; } + +#endif + +#endif diff --git a/platforms/common/clucene/clucene.pro b/platforms/common/clucene/clucene.pro new file mode 100644 index 0000000..3093d0a --- /dev/null +++ b/platforms/common/clucene/clucene.pro @@ -0,0 +1,124 @@ +# Clucene from Qt distribution required: +# 1. download qtttols (https://qt.gitorious.org/qt/qttools/archive-tarball/stable) +# 2. extract .\src\assistant\3rdparty\clucene folder somewhere or on the same level as BibleTime repository +# 3. make sure variable CLUCENE_PATH points to correct location, it would be corrected in main *.pro file +# or by passing additional argument "CLUCENE_PATH = ..." to qmake +# This library could not be built separately at moment +# Symbian: apply platfoms/symbian/btmini/compiler.h.diff to corresponding file + +isEmpty(CLUCENE_PATH):CLUCENE_PATH = ../../../../clucene +isEmpty(CLUCENE_LIB):CLUCENE_LIB = libclucene.a + +DEFINES += _CL_DISABLE_MULTITHREADING LUCENE_DISABLE_MEMTRACKING +!symbian:DEFINES += _UCS2 + + +INCLUDEPATH += \ + $${CLUCENE_PATH}/src \ + ../../common/clucene \ + +clucenelib { + +} +else { +# Building lib +!clucene { +TEMPLATE = lib +CONFIG += staticlib +DESTDIR = $${PWD} +} + +SOURCES += \ + $${CLUCENE_PATH}/src/CLucene/analysis/AnalysisHeader.cpp \ + $${CLUCENE_PATH}/src/CLucene/analysis/Analyzers.cpp \ + $${CLUCENE_PATH}/src/CLucene/analysis/standard/StandardAnalyzer.cpp \ + $${CLUCENE_PATH}/src/CLucene/analysis/standard/StandardFilter.cpp \ + $${CLUCENE_PATH}/src/CLucene/analysis/standard/StandardTokenizer.cpp \ + $${CLUCENE_PATH}/src/CLucene/config/gunichartables.cpp \ + $${CLUCENE_PATH}/src/CLucene/config/repl_lltot.cpp \ + $${CLUCENE_PATH}/src/CLucene/config/repl_tcscasecmp.cpp \ + $${CLUCENE_PATH}/src/CLucene/config/repl_tcslwr.cpp \ + $${CLUCENE_PATH}/src/CLucene/config/repl_tcstoll.cpp \ + $${CLUCENE_PATH}/src/CLucene/config/threads.cpp \ + $${CLUCENE_PATH}/src/CLucene/config/utf8.cpp \ + $${CLUCENE_PATH}/src/CLucene/debug/condition.cpp \ + $${CLUCENE_PATH}/src/CLucene/debug/error.cpp \ + $${CLUCENE_PATH}/src/CLucene/debug/memtracking.cpp \ + $${CLUCENE_PATH}/src/CLucene/document/Document.cpp \ + $${CLUCENE_PATH}/src/CLucene/document/Field.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/DocumentWriter.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/CompoundFile.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/FieldInfos.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/FieldsReader.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/FieldsWriter.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/IndexReader.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/IndexWriter.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/MultiReader.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/SegmentInfos.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/SegmentMergeInfo.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/SegmentMergeQueue.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/SegmentMerger.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/SegmentReader.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/SegmentTermDocs.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/SegmentTermEnum.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/SegmentTermPositions.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/SegmentTermVector.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/Term.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/TermInfo.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/TermInfosReader.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/TermInfosWriter.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/TermVectorReader.cpp \ + $${CLUCENE_PATH}/src/CLucene/index/TermVectorWriter.cpp \ + $${CLUCENE_PATH}/src/CLucene/queryParser/Lexer.cpp \ + $${CLUCENE_PATH}/src/CLucene/queryParser/QueryParser.cpp \ + $${CLUCENE_PATH}/src/CLucene/queryParser/QueryParserBase.cpp \ + $${CLUCENE_PATH}/src/CLucene/queryParser/QueryToken.cpp \ + $${CLUCENE_PATH}/src/CLucene/queryParser/TokenList.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/BooleanQuery.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/BooleanScorer.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/ConjunctionScorer.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/ExactPhraseScorer.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/Explanation.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/FieldCache.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/FieldCacheImpl.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/FieldDocSortedHitQueue.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/FieldSortedHitQueue.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/FilteredTermEnum.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/FuzzyQuery.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/HitQueue.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/Hits.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/IndexSearcher.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/MultiTermQuery.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/PhrasePositions.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/PhraseQuery.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/PhraseScorer.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/PrefixQuery.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/Similarity.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/SloppyPhraseScorer.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/Sort.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/RangeQuery.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/SearchHeader.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/TermQuery.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/TermScorer.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/WildcardTermEnum.cpp \ + $${CLUCENE_PATH}/src/CLucene/search/WildcardQuery.cpp \ + $${CLUCENE_PATH}/src/CLucene/StdHeader.cpp \ + $${CLUCENE_PATH}/src/CLucene/store/IndexInput.cpp \ + $${CLUCENE_PATH}/src/CLucene/store/IndexOutput.cpp \ + $${CLUCENE_PATH}/src/CLucene/store/FSDirectory.cpp \ + $${CLUCENE_PATH}/src/CLucene/store/Lock.cpp \ + $${CLUCENE_PATH}/src/CLucene/store/TransactionalRAMDirectory.cpp \ + $${CLUCENE_PATH}/src/CLucene/store/RAMDirectory.cpp \ + $${CLUCENE_PATH}/src/CLucene/util/BitSet.cpp \ + $${CLUCENE_PATH}/src/CLucene/util/Equators.cpp \ + $${CLUCENE_PATH}/src/CLucene/util/FastCharStream.cpp \ + $${CLUCENE_PATH}/src/CLucene/util/fileinputstream.cpp \ + $${CLUCENE_PATH}/src/CLucene/util/Misc.cpp \ + $${CLUCENE_PATH}/src/CLucene/util/StringBuffer.cpp \ + $${CLUCENE_PATH}/src/CLucene/util/StringIntern.cpp \ + $${CLUCENE_PATH}/src/CLucene/util/Reader.cpp \ + $${CLUCENE_PATH}/src/CLucene/util/ThreadLocal.cpp \ + + +!android:!windows:SOURCES += $${CLUCENE_PATH}/src/CLucene/config/repl_tprintf.cpp +} diff --git a/platforms/common/core/core.pro b/platforms/common/core/core.pro new file mode 100644 index 0000000..ed7a5d4 --- /dev/null +++ b/platforms/common/core/core.pro @@ -0,0 +1,182 @@ +# BibleTime Core, could be used for Desktop, Mini and Mobile +BT_VERSION = 2.10.0_rc1 +DEFINES += BT_VERSION=\\\"$${BT_VERSION}\\\" + +# Useless warnings +gcc:QMAKE_CXXFLAGS_DEBUG += -Wno-switch -Wno-unused-parameter -Wno-unused-variable -Wno-reorder -Wno-missing-field-initializers + +INCLUDEPATH += ../../../src + +SOURCES += \ + ../../../src/backend/bookshelfmodel/btbookshelffiltermodel.cpp \ + ../../../src/backend/bookshelfmodel/btbookshelfmodel.cpp \ + ../../../src/backend/bookshelfmodel/btbookshelftreemodel.cpp \ + ../../../src/backend/bookshelfmodel/moduleitem.cpp \ + ../../../src/backend/bookshelfmodel/languageitem.cpp \ + ../../../src/backend/bookshelfmodel/item.cpp \ + ../../../src/backend/bookshelfmodel/categoryitem.cpp \ + ../../../src/backend/bookshelfmodel/indexingitem.cpp \ + ../../../src/backend/btbookmarksmodel.cpp \ + ../../../src/backend/btglobal.cpp \ + ../../../src/backend/btinstallbackend.cpp \ + ../../../src/backend/btinstallmgr.cpp \ + ../../../src/backend/btinstallthread.cpp \ + ../../../src/backend/btmoduletreeitem.cpp \ + ../../../src/backend/config/btconfig.cpp \ + ../../../src/backend/config/btconfigcore.cpp \ + ../../../src/backend/cswordmodulesearch.cpp \ + ../../../src/backend/drivers/cswordbiblemoduleinfo.cpp \ + ../../../src/backend/drivers/cswordbookmoduleinfo.cpp \ + ../../../src/backend/drivers/cswordcommentarymoduleinfo.cpp \ + ../../../src/backend/drivers/cswordlexiconmoduleinfo.cpp \ + ../../../src/backend/drivers/cswordmoduleinfo.cpp \ + ../../../src/backend/filters/gbftohtml.cpp \ + ../../../src/backend/filters/osistohtml.cpp \ + ../../../src/backend/filters/plaintohtml.cpp \ + ../../../src/backend/filters/teitohtml.cpp \ + ../../../src/backend/filters/thmltohtml.cpp \ + ../../../src/backend/keys/cswordkey.cpp \ + ../../../src/backend/keys/cswordldkey.cpp \ + ../../../src/backend/keys/cswordtreekey.cpp \ + ../../../src/backend/keys/cswordversekey.cpp \ + ../../../src/backend/managers/btstringmgr.cpp \ + ../../../src/backend/managers/cdisplaytemplatemgr.cpp \ + ../../../src/backend/managers/clanguagemgr.cpp \ + ../../../src/backend/managers/cswordbackend.cpp \ + ../../../src/backend/managers/referencemanager.cpp \ + ../../../src/backend/models/btmoduletextmodel.cpp \ + ../../../src/backend/rendering/btinforendering.cpp \ + ../../../src/backend/rendering/cbookdisplay.cpp \ + ../../../src/backend/rendering/cchapterdisplay.cpp \ + ../../../src/backend/rendering/cdisplayrendering.cpp \ + ../../../src/backend/rendering/centrydisplay.cpp \ + ../../../src/backend/rendering/chtmlexportrendering.cpp \ + ../../../src/backend/rendering/cplaintextexportrendering.cpp \ + ../../../src/backend/rendering/ctextrendering.cpp \ + ../../../src/util/cresmgr.cpp \ + ../../../src/util/directory.cpp \ + ../../../src/util/bticons.cpp \ + ../../../src/util/btmodules.cpp \ + ../../../src/util/tool.cpp \ + + +HEADERS += \ + ../../../src/backend/bookshelfmodel/btbookshelffiltermodel.h \ + ../../../src/backend/bookshelfmodel/btbookshelfmodel.h \ + ../../../src/backend/bookshelfmodel/btbookshelftreemodel.h \ + ../../../src/backend/bookshelfmodel/categoryitem.h \ + ../../../src/backend/bookshelfmodel/indexingitem.h \ + ../../../src/backend/bookshelfmodel/item.h \ + ../../../src/backend/bookshelfmodel/languageitem.h \ + ../../../src/backend/bookshelfmodel/moduleitem.h \ + ../../../src/backend/btbookmarksmodel.h \ + ../../../src/backend/btglobal.h \ + ../../../src/backend/btinstallbackend.h \ + ../../../src/backend/btinstallmgr.h \ + ../../../src/backend/btinstallthread.h \ + ../../../src/backend/btmoduletreeitem.h \ + ../../../src/backend/btsignal.h \ + ../../../src/backend/config/btconfig.h \ + ../../../src/backend/config/btconfigcore.h \ + ../../../src/backend/cswordmodulesearch.h \ + ../../../src/backend/drivers/cswordbiblemoduleinfo.h \ + ../../../src/backend/drivers/cswordbookmoduleinfo.h \ + ../../../src/backend/drivers/cswordcommentarymoduleinfo.h \ + ../../../src/backend/drivers/cswordlexiconmoduleinfo.h \ + ../../../src/backend/drivers/cswordmoduleinfo.h \ + ../../../src/backend/filters/gbftohtml.h \ + ../../../src/backend/filters/osistohtml.h \ + ../../../src/backend/filters/plaintohtml.h \ + ../../../src/backend/filters/teitohtml.h \ + ../../../src/backend/filters/thmltohtml.h \ + ../../../src/backend/managers/btstringmgr.h \ + ../../../src/backend/managers/cdisplaytemplatemgr.h \ + ../../../src/backend/managers/clanguagemgr.h \ + ../../../src/backend/managers/cswordbackend.h \ + ../../../src/backend/managers/referencemanager.h \ + ../../../src/backend/keys/cswordkey.h \ + ../../../src/backend/keys/cswordldkey.h \ + ../../../src/backend/keys/cswordtreekey.h \ + ../../../src/backend/keys/cswordversekey.h \ + ../../../src/backend/models/btmoduletextmodel.h \ + ../../../src/backend/rendering/cbookdisplay.h \ + ../../../src/backend/rendering/cchapterdisplay.h \ + ../../../src/backend/rendering/cdisplayrendering.h \ + ../../../src/backend/rendering/centrydisplay.h \ + ../../../src/backend/rendering/chtmlexportrendering.h \ + ../../../src/backend/rendering/cplaintextexportrendering.h \ + ../../../src/backend/rendering/ctextrendering.h \ + ../../../src/util/cresmgr.h \ + ../../../src/util/directory.h \ + ../../../src/util/bticons.h \ + ../../../src/util/btmodules.h \ + ../../../src/util/tool.h \ + + +# Core Platform Section + +# iOS Platform +mac:CONFIG -= webkit + +# Android platform +android { +!lessThan(QT_MAJOR_VERSION, 5):CONFIG -= webkit +DEFINES += STDC_HEADERS +} + +# Symbian platform +# on S60 webkit not works, maybe wrong packaging? +symbian { +DEFINES -= BT_VERSION=\\\"$${BT_VERSION}\\\" +greaterThan(S60_VERSION, 5.0) { +DEFINES += BT_VERSION=\"$${BT_VERSION}\" +} +else { +DEFINES += BT_VERSION=\"\\\"$${BT_VERSION}\\\"\" +CONFIG -= webkit +} +} + +# BlackBerry10 Platform +blackberry { +CONFIG -= webkit +DEFINES += unix +LIBS += -lsocket +} + +# Qt +greaterThan(QT_MAJOR_VERSION, 4):QT += widgets +svg:QT += svg xml + + +# Core Configuration Section + +# WebKit +# should be after platforms section, optional +webkit { +greaterThan(QT_MAJOR_VERSION, 4) { + QT += webkitwidgets +} +else { + QT += webkit +} +DEFINES += BT_MINI_WEBKIT +} +else:!mini:!mobile { +warning("Non Mini build: WebKit required") +} + +# Clucene +clucene:include(../../common/clucene/clucene.pro) +!clucene:DEFINES += BT_NO_CLUCENE + +# CURL +# optional +curl:include(../../common/curl/curl.pro) + +# ICU +# optional +icu:include(../../common/icu/icu.pro) + +# Sword +include(../../common/sword/sword.pro) diff --git a/platforms/common/curl/curl.pro b/platforms/common/curl/curl.pro new file mode 100644 index 0000000..d5dc9b6 --- /dev/null +++ b/platforms/common/curl/curl.pro @@ -0,0 +1,144 @@ +# Curl is optional package (http://curl.haxx.se/download/curl-7.34.0.tar.gz) +# Make sure variable CURL_PATH and CURL_LIB points to correct location +# This library must be built separately + +isEmpty(CURL_PATH):CURL_PATH = ../../../../curl/curl-7.33.0 + +INCLUDEPATH += $${CURL_PATH}/include + +DEFINES += CURL_STATICLIB + + +DEFINES += CURLAVAILABLE CURLSFTPAVAILABLE + +DEFINES += CURL_DISABLE_TFTP +#DEFINES += CURL_DISABLE_FTP +DEFINES += CURL_DISABLE_LDAP +DEFINES += CURL_DISABLE_TELNET +DEFINES += CURL_DISABLE_DICT +DEFINES += CURL_DISABLE_FILE +DEFINES += CURL_DISABLE_POP3 +DEFINES += CURL_DISABLE_IMAP +DEFINES += CURL_DISABLE_SMTP +DEFINES += CURL_DISABLE_RTSP +#DEFINES += CURL_DISABLE_RTMP +DEFINES += CURL_DISABLE_GOPHER + + +SOURCES += \ + $${CURL_PATH}/lib/easy.c \ + $${CURL_PATH}/lib/timeval.c \ + $${CURL_PATH}/lib/base64.c \ + $${CURL_PATH}/lib/hostip.c \ + $${CURL_PATH}/lib/progress.c \ + $${CURL_PATH}/lib/formdata.c \ + $${CURL_PATH}/lib/cookie.c \ + $${CURL_PATH}/lib/http.c \ + $${CURL_PATH}/lib/sendf.c \ + $${CURL_PATH}/lib/ftp.c \ + $${CURL_PATH}/lib/if2ip.c \ + $${CURL_PATH}/lib/speedcheck.c \ + $${CURL_PATH}/lib/ssluse.c \ + $${CURL_PATH}/lib/version.c \ + $${CURL_PATH}/lib/getenv.c \ + $${CURL_PATH}/lib/escape.c \ + $${CURL_PATH}/lib/mprintf.c \ + $${CURL_PATH}/lib/netrc.c \ + $${CURL_PATH}/lib/getinfo.c \ + $${CURL_PATH}/lib/transfer.c \ + $${CURL_PATH}/lib/strequal.c \ + $${CURL_PATH}/lib/security.c \ + $${CURL_PATH}/lib/curl_fnmatch.c \ + $${CURL_PATH}/lib/fileinfo.c \ + $${CURL_PATH}/lib/ftplistparser.c \ + $${CURL_PATH}/lib/wildcard.c \ + $${CURL_PATH}/lib/krb5.c \ + $${CURL_PATH}/lib/memdebug.c \ + $${CURL_PATH}/lib/http_chunks.c \ + $${CURL_PATH}/lib/strtok.c \ + $${CURL_PATH}/lib/connect.c \ + $${CURL_PATH}/lib/llist.c \ + $${CURL_PATH}/lib/hash.c \ + $${CURL_PATH}/lib/multi.c \ + $${CURL_PATH}/lib/content_encoding.c \ + $${CURL_PATH}/lib/share.c \ + $${CURL_PATH}/lib/http_digest.c \ + $${CURL_PATH}/lib/md4.c \ + $${CURL_PATH}/lib/md5.c \ + $${CURL_PATH}/lib/http_negotiate.c \ + $${CURL_PATH}/lib/inet_pton.c \ + $${CURL_PATH}/lib/strtoofft.c \ + $${CURL_PATH}/lib/strerror.c \ + $${CURL_PATH}/lib/amigaos.c \ + $${CURL_PATH}/lib/hostasyn.c \ + $${CURL_PATH}/lib/hostip4.c \ + $${CURL_PATH}/lib/hostip6.c \ + $${CURL_PATH}/lib/hostsyn.c \ + $${CURL_PATH}/lib/inet_ntop.c \ + $${CURL_PATH}/lib/parsedate.c \ + $${CURL_PATH}/lib/select.c \ + $${CURL_PATH}/lib/gtls.c \ + $${CURL_PATH}/lib/sslgen.c \ + $${CURL_PATH}/lib/splay.c \ + $${CURL_PATH}/lib/strdup.c \ + $${CURL_PATH}/lib/socks.c \ + $${CURL_PATH}/lib/ssh.c \ + $${CURL_PATH}/lib/nss.c \ + $${CURL_PATH}/lib/qssl.c \ + $${CURL_PATH}/lib/curl_addrinfo.c \ + $${CURL_PATH}/lib/socks_gssapi.c \ + $${CURL_PATH}/lib/socks_sspi.c \ + $${CURL_PATH}/lib/curl_sspi.c \ + $${CURL_PATH}/lib/slist.c \ + $${CURL_PATH}/lib/nonblock.c \ + $${CURL_PATH}/lib/curl_memrchr.c \ + $${CURL_PATH}/lib/pingpong.c \ + $${CURL_PATH}/lib/curl_threads.c \ + $${CURL_PATH}/lib/warnless.c \ + $${CURL_PATH}/lib/hmac.c \ + $${CURL_PATH}/lib/polarssl.c \ + $${CURL_PATH}/lib/polarssl_threadlock.c \ + $${CURL_PATH}/lib/curl_rtmp.c \ + #$${CURL_PATH}/lib/openldap.c \ + $${CURL_PATH}/lib/curl_gethostname.c \ + $${CURL_PATH}/lib/axtls.c \ + $${CURL_PATH}/lib/idn_win32.c \ + $${CURL_PATH}/lib/http_negotiate_sspi.c \ + $${CURL_PATH}/lib/cyassl.c \ + $${CURL_PATH}/lib/http_proxy.c \ + $${CURL_PATH}/lib/non-ascii.c \ + $${CURL_PATH}/lib/asyn-ares.c \ + $${CURL_PATH}/lib/asyn-thread.c \ + $${CURL_PATH}/lib/curl_gssapi.c \ + $${CURL_PATH}/lib/curl_ntlm.c \ + $${CURL_PATH}/lib/curl_ntlm_wb.c \ + $${CURL_PATH}/lib/curl_ntlm_core.c \ + $${CURL_PATH}/lib/curl_ntlm_msgs.c \ + $${CURL_PATH}/lib/curl_sasl.c \ + $${CURL_PATH}/lib/curl_schannel.c \ + $${CURL_PATH}/lib/curl_multibyte.c \ + $${CURL_PATH}/lib/curl_darwinssl.c \ + $${CURL_PATH}/lib/hostcheck.c \ + $${CURL_PATH}/lib/bundles.c \ + $${CURL_PATH}/lib/conncache.c \ + $${CURL_PATH}/lib/pipeline.c \ + $${CURL_PATH}/lib/dotdot.c \ + $${CURL_PATH}/lib/x509asn1.c \ + $${CURL_PATH}/lib/gskit.c \ + $${CURL_PATH}/lib/http2.c \ + #$${CURL_PATH}/lib/libcurl.rc \ + $${CURL_PATH}/lib/curl_rawstr.c \ + $${CURL_PATH}/lib/curl_url.c \ + +!contains(DEFINES, CURL_DISABLE_FILE):SOURCES += $${CURL_PATH}/lib/file.c +!contains(DEFINES, CURL_DISABLE_TFTP):SOURCES += $${CURL_PATH}/lib/tftp.c +!contains(DEFINES, CURL_DISABLE_TELNET):SOURCES += $${CURL_PATH}/lib/telnet.c +!contains(DEFINES, CURL_DISABLE_DICT):SOURCES += $${CURL_PATH}/lib/dict.c +!contains(DEFINES, CURL_DISABLE_POP3):SOURCES += $${CURL_PATH}/lib/pop3.c +!contains(DEFINES, CURL_DISABLE_IMAP):SOURCES += $${CURL_PATH}/lib/imap.c +!contains(DEFINES, CURL_DISABLE_SMTP):SOURCES += $${CURL_PATH}/lib/smtp.c +!contains(DEFINES, CURL_DISABLE_RTSP):SOURCES += $${CURL_PATH}/lib/rtsp.c +!contains(DEFINES, CURL_DISABLE_GOPHER):SOURCES += $${CURL_PATH}/lib/gopher.c + +# do we really need CRYPTO_AUTH? +DEFINES += CURL_DISABLE_CRYPTO_AUTH diff --git a/platforms/common/icu/icu.pro b/platforms/common/icu/icu.pro new file mode 100644 index 0000000..646cf75 --- /dev/null +++ b/platforms/common/icu/icu.pro @@ -0,0 +1,6 @@ +# ICU is optional package (http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.zip) +# make sure variable below points to correct location + +isEmpty(ICU_PATH):ICU_PATH = ../../../../icu4c-52 + + diff --git a/platforms/common/mobile/mobile.pro b/platforms/common/mobile/mobile.pro new file mode 100644 index 0000000..4b41a55 --- /dev/null +++ b/platforms/common/mobile/mobile.pro @@ -0,0 +1,135 @@ +CONFIG += clucene mobile c++11 +QT += svg xml qml quick + +QML_ROOT_PATH = /home/gary/shared/sw/bibletime/src/mobile/qml + +DEFINES += BT_MOBILE +QMAKE_CXXFLAGS += -DBT_GIT_VERSION=\\\"`git rev-parse HEAD`\\\" + +include(../../common/core/core.pro) + +SOURCES += \ + ../../../src/mobile/bibletimeapp.cpp \ + ../../../src/mobile/bibletime.cpp \ + ../../../src/mobile/bookshelfmanager/installmanager.cpp \ + ../../../src/mobile/bookshelfmanager/installprogress.cpp \ + ../../../src/mobile/bookshelfmanager/installsources.cpp \ + ../../../src/mobile/bookshelfmanager/installsourcesmanager.cpp \ + ../../../src/mobile/btmmain.cpp \ + ../../../src/mobile/keychooser/bookkeychooser.cpp \ + ../../../src/mobile/keychooser/keynamechooser.cpp \ + ../../../src/mobile/keychooser/versechooser.cpp \ + ../../../src/mobile/models/roleitemmodel.cpp \ + ../../../src/mobile/models/searchmodel.cpp \ + ../../../src/mobile/sessionmanager/sessionmanager.cpp \ + ../../../src/mobile/ui/btsearchinterface.cpp \ + ../../../src/mobile/ui/btstyle.cpp \ + ../../../src/mobile/ui/btwindowinterface.cpp \ + ../../../src/mobile/ui/gridchooser.cpp \ + ../../../src/mobile/ui/indexthread.cpp \ + ../../../src/mobile/ui/modulechooser.cpp \ + ../../../src/mobile/ui/moduleinterface.cpp \ + ../../../src/mobile/ui/qtquick2applicationviewer.cpp \ + ../../../src/mobile/ui/treechoosermodel.cpp \ + ../../../src/mobile/ui/viewmanager.cpp \ + ../../../src/mobile/util/findqmlobject.cpp \ + ../../../src/mobile/util/messagedialog.cpp + +HEADERS += \ + ../../../src/mobile/bibletimeapp.h \ + ../../../src/mobile/bibletime.h \ + ../../../src/mobile/bookshelfmanager/installmanager.h \ + ../../../src/mobile/bookshelfmanager/installprogress.h \ + ../../../src/mobile/bookshelfmanager/installsources.h \ + ../../../src/mobile/bookshelfmanager/installsourcesmanager.h \ + ../../../src/mobile/btmmain.h \ + ../../../src/mobile/keychooser/bookkeychooser.h \ + ../../../src/mobile/ui/indexthread.h \ + ../../../src/mobile/keychooser/keynamechooser.h \ + ../../../src/mobile/keychooser/versechooser.h \ + ../../../src/mobile/models/roleitemmodel.h \ + ../../../src/mobile/models/searchmodel.h \ + ../../../src/mobile/sessionmanager/sessionmanager.h \ + ../../../src/mobile/ui/btsearchinterface.h \ + ../../../src/mobile/ui/btstyle.h \ + ../../../src/mobile/ui/btwindowinterface.h \ + ../../../src/mobile/ui/gridchooser.h \ + ../../../src/mobile/ui/modulechooser.h \ + ../../../src/mobile/ui/moduleinterface.h \ + ../../../src/mobile/ui/qtquick2applicationviewer.h \ + ../../../src/mobile/ui/treechoosermodel.h \ + ../../../src/mobile/ui/viewmanager.h \ + ../../../src/mobile/util/findqmlobject.h \ + ../../../src/mobile/util/messagedialog.h + +OTHER_FILES += \ + ../../../src/mobile/qml \ + ../../../src/mobile/qml/main.qml \ + ../../../src/mobile/qml/About.qml \ + ../../../src/mobile/qml/BtButtonStyle.qml \ + ../../../src/mobile/qml/ContextMenu.qml \ + ../../../src/mobile/qml/FontSizeSlider.qml \ + ../../../src/mobile/qml/GridChooser.qml \ + ../../../src/mobile/qml/GridChooserButton.qml \ + ../../../src/mobile/qml/InstallManagerChooser.qml \ + ../../../src/mobile/qml/KeyNameChooser.qml \ + ../../../src/mobile/qml/LeftArrow.qml \ + ../../../src/mobile/qml/ListSelectView.qml \ + ../../../src/mobile/qml/ListTextView.qml \ + ../../../src/mobile/qml/ListWorksView.qml \ + ../../../src/mobile/qml/MainToolbar.qml \ + ../../../src/mobile/qml/Menus.qml \ + ../../../src/mobile/qml/MenuButton.qml \ + ../../../src/mobile/qml/ModuleChooser.qml \ + ../../../src/mobile/qml/PrevNextArrow.qml \ + ../../../src/mobile/qml/Progress.qml \ + ../../../src/mobile/qml/Question.qml \ + ../../../src/mobile/qml/RightArrow.qml \ + ../../../src/mobile/qml/Search.qml \ + ../../../src/mobile/qml/SearchIcon.qml \ + ../../../src/mobile/qml/SearchResults.qml \ + ../../../src/mobile/qml/SetFont.qml \ + ../../../src/mobile/qml/SimpleComboBox.qml \ + ../../../src/mobile/qml/StartupBookshelfManager.qml \ + ../../../src/mobile/qml/TitleColorBar.qml \ + ../../../src/mobile/qml/TreeChooser.qml \ + ../../../src/mobile/qml/Window.qml \ + ../../../src/mobile/qml/WindowManager.qml \ + +lupdate_only { + SOURCES = ../../../src/mobile/qml/*.qml + SOURCES += ../../../src/mobile/keychooser/versechooser.cpp + SOURCES += ../../../src/mobile/bookshelfmanager/installprogress.cpp + SOURCES += ../../../src/mobile/bookshelfmanager/installsources.cpp + SOURCES += ../../../src/mobile/bookshelfmanager/installsourcesmanager.cpp + SOURCES += ../../../src/mobile/qml/StartupBookshelfManager.qml + SOURCES += ../../../src/mobile/ui/btsearchinterface.cpp +} + +TRANSLATIONS += \ + ../../../i18n/messages/mobile_ui_ar.ts \ + ../../../i18n/messages/mobile_ui_cs.ts \ + ../../../i18n/messages/mobile_ui_da.ts \ + ../../../i18n/messages/mobile_ui_de.ts \ + ../../../i18n/messages/mobile_ui_en_GB.ts \ + ../../../i18n/messages/mobile_ui_es.ts \ + ../../../i18n/messages/mobile_ui_et.ts \ + ../../../i18n/messages/mobile_ui_fi.ts \ + ../../../i18n/messages/mobile_ui_fr.ts \ + ../../../i18n/messages/mobile_ui_hu.ts \ + ../../../i18n/messages/mobile_ui_it.ts \ + ../../../i18n/messages/mobile_ui_lt.ts \ + ../../../i18n/messages/mobile_ui_pl.ts \ + ../../../i18n/messages/mobile_ui_pt_BR.ts \ + ../../../i18n/messages/mobile_ui_pt.ts \ + ../../../i18n/messages/mobile_ui_ru.ts \ + ../../../i18n/messages/mobile_ui_sk.ts \ + ../../../i18n/messages/mobile_ui.ts \ + ../../../i18n/messages/mobile_ui_zh_TW.ts \ + ../../../i18n/messages/mobile_ui_C.ts + +RESOURCES += \ + ../../../src/mobile/btm.qrc \ + ../../../i18n/messages/mobile_translate.qrc \ + ../../../src/mobile/locales.qrc + diff --git a/platforms/common/sword/sword.pro b/platforms/common/sword/sword.pro new file mode 100644 index 0000000..757a08b --- /dev/null +++ b/platforms/common/sword/sword.pro @@ -0,0 +1,233 @@ +# Sword 1.7.0 or higher required (http://crosswire.org/ftpmirror/pub/sword/source/v1.7/sword-1.7.0.tar.gz) +# make sure variable below points to correct location + +isEmpty(SWORD_PATH):SWORD_PATH = ../../../../sword +isEmpty(SWORD_VERSION_NUM):SWORD_VERSION_NUM = 107005000 + + +INCLUDEPATH += $${SWORD_PATH}/include + + +SOURCES += \ + $${SWORD_PATH}/src/frontend/swdisp.cpp \ + $${SWORD_PATH}/src/frontend/swlog.cpp \ + $${SWORD_PATH}/src/keys/swkey.cpp \ + $${SWORD_PATH}/src/keys/listkey.cpp \ + $${SWORD_PATH}/src/keys/strkey.cpp \ + $${SWORD_PATH}/src/keys/treekey.cpp \ + $${SWORD_PATH}/src/keys/treekeyidx.cpp \ + $${SWORD_PATH}/src/keys/versekey.cpp \ + $${SWORD_PATH}/src/keys/versetreekey.cpp \ + $${SWORD_PATH}/src/mgr/swconfig.cpp \ + $${SWORD_PATH}/src/mgr/swmgr.cpp \ + $${SWORD_PATH}/src/mgr/swfiltermgr.cpp \ + $${SWORD_PATH}/src/mgr/encfiltmgr.cpp \ + $${SWORD_PATH}/src/mgr/markupfiltmgr.cpp \ + $${SWORD_PATH}/src/mgr/filemgr.cpp \ + $${SWORD_PATH}/src/mgr/versificationmgr.cpp \ + $${SWORD_PATH}/src/mgr/swlocale.cpp \ + $${SWORD_PATH}/src/mgr/localemgr.cpp \ + $${SWORD_PATH}/src/mgr/swcacher.cpp \ + $${SWORD_PATH}/src/mgr/swsearchable.cpp \ + $${SWORD_PATH}/src/mgr/installmgr.cpp \ + $${SWORD_PATH}/src/mgr/stringmgr.cpp \ + $${SWORD_PATH}/src/modules/swmodule.cpp \ + $${SWORD_PATH}/src/modules/comments/swcom.cpp \ + $${SWORD_PATH}/src/modules/comments/hrefcom/hrefcom.cpp \ + $${SWORD_PATH}/src/modules/comments/rawcom/rawcom.cpp \ + $${SWORD_PATH}/src/modules/comments/rawcom4/rawcom4.cpp \ + $${SWORD_PATH}/src/modules/comments/rawfiles/rawfiles.cpp \ + $${SWORD_PATH}/src/modules/comments/zcom/zcom.cpp \ + $${SWORD_PATH}/src/modules/common/rawstr.cpp \ + $${SWORD_PATH}/src/modules/common/rawstr4.cpp \ + $${SWORD_PATH}/src/modules/common/swcomprs.cpp \ + $${SWORD_PATH}/src/modules/common/lzsscomprs.cpp \ + $${SWORD_PATH}/src/modules/common/rawverse.cpp \ + $${SWORD_PATH}/src/modules/common/rawverse4.cpp \ + $${SWORD_PATH}/src/modules/common/swcipher.cpp \ + $${SWORD_PATH}/src/modules/common/zverse.cpp \ + $${SWORD_PATH}/src/modules/common/zstr.cpp \ + $${SWORD_PATH}/src/modules/common/entriesblk.cpp \ + $${SWORD_PATH}/src/modules/common/sapphire.cpp \ + $${SWORD_PATH}/src/modules/common/zipcomprs.cpp \ + $${SWORD_PATH}/src/modules/filters/swbasicfilter.cpp \ + $${SWORD_PATH}/src/modules/filters/swoptfilter.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfhtml.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfxhtml.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfhtmlhref.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfwebif.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfplain.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfrtf.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfstrongs.cpp \ + $${SWORD_PATH}/src/modules/filters/gbffootnotes.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfheadings.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfredletterwords.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfmorph.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfwordjs.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlstrongs.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlfootnotes.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlheadings.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlmorph.cpp \ + $${SWORD_PATH}/src/modules/filters/thmllemma.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlscripref.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlvariants.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlgbf.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlrtf.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlhtml.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlxhtml.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlhtmlhref.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlwebif.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlwordjs.cpp \ + $${SWORD_PATH}/src/modules/filters/teiplain.cpp \ + $${SWORD_PATH}/src/modules/filters/teirtf.cpp \ + $${SWORD_PATH}/src/modules/filters/teihtmlhref.cpp \ + $${SWORD_PATH}/src/modules/filters/teixhtml.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfthml.cpp \ + $${SWORD_PATH}/src/modules/filters/gbfosis.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlosis.cpp \ + $${SWORD_PATH}/src/modules/filters/thmlplain.cpp \ + $${SWORD_PATH}/src/modules/filters/osisosis.cpp \ + $${SWORD_PATH}/src/modules/filters/osisheadings.cpp \ + $${SWORD_PATH}/src/modules/filters/osisfootnotes.cpp \ + $${SWORD_PATH}/src/modules/filters/osishtmlhref.cpp \ + $${SWORD_PATH}/src/modules/filters/osisxhtml.cpp \ + $${SWORD_PATH}/src/modules/filters/osiswebif.cpp \ + $${SWORD_PATH}/src/modules/filters/osismorph.cpp \ + $${SWORD_PATH}/src/modules/filters/osisstrongs.cpp \ + $${SWORD_PATH}/src/modules/filters/osisplain.cpp \ + $${SWORD_PATH}/src/modules/filters/osisrtf.cpp \ + $${SWORD_PATH}/src/modules/filters/osislemma.cpp \ + $${SWORD_PATH}/src/modules/filters/osisredletterwords.cpp \ + $${SWORD_PATH}/src/modules/filters/osisscripref.cpp \ + $${SWORD_PATH}/src/modules/filters/osisvariants.cpp \ + $${SWORD_PATH}/src/modules/filters/osiswordjs.cpp \ + $${SWORD_PATH}/src/modules/filters/osismorphsegmentation.cpp \ + $${SWORD_PATH}/src/modules/filters/latin1utf8.cpp \ + $${SWORD_PATH}/src/modules/filters/latin1utf16.cpp \ + $${SWORD_PATH}/src/modules/filters/utf8utf16.cpp \ + $${SWORD_PATH}/src/modules/filters/utf16utf8.cpp \ + $${SWORD_PATH}/src/modules/filters/utf8html.cpp \ + $${SWORD_PATH}/src/modules/filters/utf8latin1.cpp \ + $${SWORD_PATH}/src/modules/filters/utf8cantillation.cpp \ + $${SWORD_PATH}/src/modules/filters/utf8hebrewpoints.cpp \ + $${SWORD_PATH}/src/modules/filters/utf8arabicpoints.cpp \ + $${SWORD_PATH}/src/modules/filters/utf8greekaccents.cpp \ + $${SWORD_PATH}/src/modules/filters/cipherfil.cpp \ + $${SWORD_PATH}/src/modules/filters/rtfhtml.cpp \ + $${SWORD_PATH}/src/modules/filters/greeklexattribs.cpp \ + $${SWORD_PATH}/src/modules/filters/unicodertf.cpp \ + $${SWORD_PATH}/src/modules/filters/papyriplain.cpp \ + $${SWORD_PATH}/src/modules/genbook/swgenbook.cpp \ + $${SWORD_PATH}/src/modules/genbook/rawgenbook/rawgenbook.cpp \ + $${SWORD_PATH}/src/modules/lexdict/swld.cpp \ + $${SWORD_PATH}/src/modules/lexdict/rawld/rawld.cpp \ + $${SWORD_PATH}/src/modules/lexdict/rawld4/rawld4.cpp \ + $${SWORD_PATH}/src/modules/lexdict/zld/zld.cpp \ + $${SWORD_PATH}/src/modules/texts/swtext.cpp \ + $${SWORD_PATH}/src/modules/texts/rawtext/rawtext.cpp \ + $${SWORD_PATH}/src/modules/texts/rawtext4/rawtext4.cpp \ + $${SWORD_PATH}/src/modules/texts/ztext/ztext.cpp \ + $${SWORD_PATH}/src/utilfuns/swobject.cpp \ + $${SWORD_PATH}/src/utilfuns/utilstr.cpp \ + $${SWORD_PATH}/src/utilfuns/utilxml.cpp \ + $${SWORD_PATH}/src/utilfuns/swversion.cpp \ + $${SWORD_PATH}/src/utilfuns/swbuf.cpp \ + $${SWORD_PATH}/src/utilfuns/ftpparse.c \ + $${SWORD_PATH}/src/utilfuns/url.cpp \ + $${SWORD_PATH}/src/utilfuns/roman.cpp \ + $${SWORD_PATH}/src/utilfuns/zlib/untgz.c \ + $${SWORD_PATH}/src/utilfuns/zlib/zutil.c \ + $${SWORD_PATH}/src/utilfuns/zlib/uncompr.c \ + $${SWORD_PATH}/src/utilfuns/zlib/trees.c \ + $${SWORD_PATH}/src/utilfuns/zlib/inftrees.c \ + $${SWORD_PATH}/src/utilfuns/zlib/inflate.c \ + $${SWORD_PATH}/src/utilfuns/zlib/inffast.c \ + $${SWORD_PATH}/src/utilfuns/zlib/deflate.c \ + $${SWORD_PATH}/src/utilfuns/zlib/crc32.c \ + $${SWORD_PATH}/src/utilfuns/zlib/compress.c \ + $${SWORD_PATH}/src/utilfuns/zlib/adler32.c \ + + +lessThan(SWORD_VERSION_NUM, 107000000) { # 1.6 series +SOURCES += \ + $${SWORD_PATH}/src/mgr/ftptrans.cpp \ + $${SWORD_PATH}/src/modules/filters/plainhtml.cpp \ + $${SWORD_PATH}/src/modules/filters/osisruby.cpp \ + $${SWORD_PATH}/src/utilfuns/swunicod.cpp \ + $${SWORD_PATH}/src/utilfuns/zlib/infutil.c \ + $${SWORD_PATH}/src/utilfuns/zlib/infcodes.c \ + $${SWORD_PATH}/src/utilfuns/zlib/infblock.c \ + $${SWORD_PATH}/src/utilfuns/zlib/gzio.c \ +} +else { # 1.7 series +SOURCES += \ + $${SWORD_PATH}/src/mgr/remotetrans.cpp \ + $${SWORD_PATH}/src/modules/filters/osisglosses.cpp \ + $${SWORD_PATH}/src/modules/filters/osisenum.cpp \ + $${SWORD_PATH}/src/modules/filters/osisreferencelinks.cpp \ + $${SWORD_PATH}/src/modules/filters/osisxlit.cpp \ + $${SWORD_PATH}/src/modules/filters/scsuutf8.cpp \ + $${SWORD_PATH}/src/utilfuns/zlib/gzlib.c \ + $${SWORD_PATH}/src/utilfuns/zlib/gzread.c \ + +# Compressors +windows:DEFINES += EXCLUDEXZ EXCLUDEBZIP2 + +!contains(DEFINES, EXCLUDEXZ) { + SOURCES += $${SWORD_PATH}/src/modules/common/xzcomprs.cpp +} +!contains(DEFINES, EXCLUDEBZIP2) { + SOURCES += $${SWORD_PATH}/src/modules/common/bz2comprs.cpp +} + + +!lessThan(SWORD_VERSION_NUM, 107005000) { +SOURCES += \ + $${SWORD_PATH}/src/modules/filters/gbflatex.cpp \ + $${SWORD_PATH}/src/modules/filters/osislatex.cpp \ + $${SWORD_PATH}/src/modules/filters/thmllatex.cpp \ + $${SWORD_PATH}/src/modules/texts/ztext4/ztext4.cpp \ + $${SWORD_PATH}/src/modules/comments/zcom4/zcom4.cpp \ + $${SWORD_PATH}/src/modules/common/zverse4.cpp \ + $${SWORD_PATH}/src/modules/filters/teilatex.cpp \ +} +} + +# CURL +curl { +SOURCES += $${SWORD_PATH}/src/mgr/curlftpt.cpp +SOURCES += $${SWORD_PATH}/src/mgr/curlhttpt.cpp +} +else { +SOURCES += $${SWORD_PATH}/src/mgr/ftplibftpt.cpp +} + +# Non Symbian platforms +!symbian { +INCLUDEPATH += $${SWORD_PATH}/include/internal/regex + +SOURCES += $${SWORD_PATH}/src/utilfuns/regex.c + +!curl:SOURCES += $${SWORD_PATH}/src/utilfuns/ftplib.c +} +else { +# include ftplib from Symbian folder +!curl:SOURCES += ftplib.c +} + + +# Windows platform +windows { +DEFINES += _CRT_SECURE_NO_WARNINGS REGEX_MALLOC + +INCLUDEPATH += $${SWORD_PATH}/src/utilfuns/win32 + +SOURCES += $${SWORD_PATH}/src/utilfuns/win32/dirent.cpp + +LIBS += -lws2_32 +} + +# MeeGo platform +unix:contains(MEEGO_EDITION,harmattan) { +DEFINES += STDC_HEADERS +} diff --git a/platforms/windows/mobile/mobile.pro b/platforms/windows/mobile/mobile.pro new file mode 100755 index 0000000..95cdb3f --- /dev/null +++ b/platforms/windows/mobile/mobile.pro @@ -0,0 +1,4 @@ + +DEFINES += WIN32 +include(../../common/mobile/mobile.pro) + |