Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
1 | set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) | 1 | set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | check_function_exists("uname" HAVE_UNAME) | 3 | check_function_exists("uname" HAVE_UNAME) | ||
4 | 4 | | |||
5 | simple_option(KEXI_SHOW_UNFINISHED "Show unfinished features in Kexi. Thus is useful for testing but may confuse end-user." OFF) | 5 | simple_option(KEXI_SHOW_UNFINISHED "Show unfinished features in KEXI. Thus is useful for testing \ | ||
6 | simple_option(KEXI_SHOW_UNIMPLEMENTED "Forces to show menu entries and dialogs just to give impression about development plans for Kexi. Only recommended for test/development versions." OFF) | 6 | but may confuse end-user." OFF) | ||
7 | simple_option(KEXI_SHOW_UNIMPLEMENTED "Forces to show menu entries and dialogs just to give \ | ||||
8 | impression about development plans for KEXI. Only recommended for test/development versions." OFF) | ||||
7 | 9 | | |||
8 | # Extra GUI features | 10 | # Extra GUI features | ||
9 | if(NOT KEXI_MOBILE) | 11 | if(NOT KEXI_MOBILE) | ||
10 | simple_option(KEXI_AUTORISE_TABBED_TOOLBAR "Experimental: Autorise the main tabbed toolbar in Kexi" OFF) | 12 | simple_option(KEXI_AUTORISE_TABBED_TOOLBAR "Experimental: Autorise the main tabbed toolbar in KEXI" OFF) | ||
11 | if(WIN32 OR APPLE) | 13 | if(WIN32 OR APPLE) | ||
12 | set(_KEXI_USE_KFILEWIDGET_DEFAULT OFF) | 14 | set(_KEXI_USE_KFILEWIDGET_DEFAULT OFF) | ||
13 | else() | 15 | else() | ||
14 | set(_KEXI_USE_KFILEWIDGET_DEFAULT ON) | 16 | set(_KEXI_USE_KFILEWIDGET_DEFAULT ON) | ||
15 | endif() | 17 | endif() | ||
16 | simple_option(KEXI_USE_KFILEWIDGET "Use KFileWidget-based inline file browser in Kexi. If OFF, a simple \ | 18 | simple_option(KEXI_USE_KFILEWIDGET "Use KFileWidget-based inline file browser in KEXI. If OFF, a simple \ | ||
17 | replacement file widget with native file dialogs is used. ON by default on UNIX, OFF by default on Windows \ | 19 | replacement file widget with native file dialogs is used. ON by default on UNIX, OFF by default on Windows \ | ||
18 | and macOS. \ | 20 | and macOS. \ | ||
19 | Note: Non-plasma Linux desktops still default to the simple replacement at runtime." | 21 | Note: Non-plasma Linux desktops still default to the simple replacement at runtime." | ||
20 | ${_KEXI_USE_KFILEWIDGET_DEFAULT} | 22 | ${_KEXI_USE_KFILEWIDGET_DEFAULT} | ||
21 | ) | 23 | ) | ||
22 | endif(NOT KEXI_MOBILE) | 24 | endif(NOT KEXI_MOBILE) | ||
23 | 25 | | |||
24 | # Experimental: | 26 | # Experimental: | ||
25 | simple_option(KEXI_SCRIPTS_SUPPORT "Experimental: Enable scripting in Kexi" OFF) | 27 | simple_option(KEXI_SCRIPTS_SUPPORT "Experimental: Enable scripting in KEXI" OFF) | ||
26 | if(KEXI_SCRIPTS_SUPPORT) | 28 | if(KEXI_SCRIPTS_SUPPORT) | ||
27 | set(REQUIRED_QTQML_VERSION 5.8.0) # >= 5.8 because of QJSEngine::newQMetaObject() | 29 | set(REQUIRED_QTQML_VERSION 5.8.0) # >= 5.8 because of QJSEngine::newQMetaObject() | ||
28 | find_package(Qt5Qml ${REQUIRED_QTQML_VERSION} REQUIRED) | 30 | find_package(Qt5Qml ${REQUIRED_QTQML_VERSION} REQUIRED) | ||
29 | set_package_properties(Qt5Qml PROPERTIES | 31 | set_package_properties(Qt5Qml PROPERTIES | ||
30 | DESCRIPTION "A framework for developing applications and libraries with the QML and JavaScript language." | 32 | DESCRIPTION "A framework for developing applications and libraries with the QML and JavaScript language." | ||
31 | URL "http://qt.io" | 33 | URL "http://qt.io" | ||
32 | TYPE REQUIRED PURPOSE "Required by Kexi scripting (JavaScript)" | 34 | TYPE REQUIRED PURPOSE "Required by KEXI scripting (JavaScript)" | ||
33 | ) | 35 | ) | ||
34 | endif() | 36 | endif() | ||
35 | 37 | | |||
36 | # Broken: | 38 | # Broken: | ||
37 | simple_option(KEXI_FORM_CURSOR_PROPERTY_SUPPORT "Broken: Enable \"cursor\" property in the form designer" OFF) | 39 | simple_option(KEXI_FORM_CURSOR_PROPERTY_SUPPORT "Broken: Enable \"cursor\" property in the form designer" OFF) | ||
38 | simple_option(KEXI_SHOW_CONTEXT_HELP "Broken: Enable context help in Kexi main window" OFF) | 40 | simple_option(KEXI_SHOW_CONTEXT_HELP "Broken: Enable context help in KEXI main window" OFF) | ||
39 | simple_option(KEXI_QUICK_PRINTING_SUPPORT "Broken: Enable print/print preview/print setup for tables/queries in the project navigator" OFF) | 41 | simple_option(KEXI_QUICK_PRINTING_SUPPORT "Broken: Enable print/print preview/print setup for tables/queries in the project navigator" OFF) | ||
40 | simple_option(KEXI_AUTOFIELD_FORM_WIDGET_SUPPORT "Broken: Enable \"auto field\" form widget in the form designer" OFF) | 42 | simple_option(KEXI_AUTOFIELD_FORM_WIDGET_SUPPORT "Broken: Enable \"auto field\" form widget in the form designer" OFF) | ||
41 | # OFF because we need to replace it with QTreeWidget which uses very different API compared to Q3ListView. Re-add QTreeWidget? | 43 | # OFF because we need to replace it with QTreeWidget which uses very different API compared to Q3ListView. Re-add QTreeWidget? | ||
42 | simple_option(KEXI_LIST_FORM_WIDGET_SUPPORT "Broken: Enable \"list\" form widget in the form designer" OFF) | 44 | simple_option(KEXI_LIST_FORM_WIDGET_SUPPORT "Broken: Enable \"list\" form widget in the form designer" OFF) | ||
43 | simple_option(KEXI_PIXMAP_COLLECTIONS_SUPPORT "Broken: Enable support for pixmap collections" OFF) | 45 | simple_option(KEXI_PIXMAP_COLLECTIONS_SUPPORT "Broken: Enable support for pixmap collections" OFF) | ||
44 | 46 | | |||
45 | # Not available: | 47 | # Not available: | ||
46 | simple_option(KEXI_MACROS_SUPPORT "Experimental: Enable macros in Kexi" OFF) | 48 | simple_option(KEXI_MACROS_SUPPORT "Experimental: Enable macros in KEXI" OFF) | ||
47 | if(KEXI_MACROS_SUPPORT) # temp. | 49 | if(KEXI_MACROS_SUPPORT) # temp. | ||
48 | message(FATAL_ERROR "Macros are not yet available.") | 50 | message(FATAL_ERROR "Macros are not yet available.") | ||
49 | endif() | 51 | endif() | ||
50 | simple_option(KEXI_TABLE_PRINT_SUPPORT "Experimental: Enable printing of tabular view in Kexi" OFF) # broken since Kexi 2 | 52 | simple_option(KEXI_TABLE_PRINT_SUPPORT "Experimental: Enable printing of tabular view in KEXI" OFF) # broken since KEXI 2 | ||
51 | if(KEXI_TABLE_PRINT_SUPPORT) # temp. | 53 | if(KEXI_TABLE_PRINT_SUPPORT) # temp. | ||
52 | message(FATAL_ERROR "Table printing is not yet available.") | 54 | message(FATAL_ERROR "Table printing is not yet available.") | ||
53 | endif() | 55 | endif() | ||
54 | simple_option(KEXI_PROJECT_TEMPLATES "Experimental: Enable support for project templates in Kexi" OFF) # broken since Kexi 2 | 56 | simple_option(KEXI_PROJECT_TEMPLATES "Experimental: Enable support for project templates in KEXI" OFF) # broken since KEXI 2 | ||
55 | if(KEXI_PROJECT_TEMPLATES) # temp. | 57 | if(KEXI_PROJECT_TEMPLATES) # temp. | ||
56 | message(FATAL_ERROR "Project templates are not yet available.") | 58 | message(FATAL_ERROR "Project templates are not yet available.") | ||
57 | endif() | 59 | endif() | ||
58 | 60 | | |||
59 | #See commit 1e433a54cd9, left here for reference | 61 | #See commit 1e433a54cd9, left here for reference | ||
60 | #option(KEXI_SQLITE_MIGRATION "If defined, SQLite3 migration to some newer format is possible. Users can see a suitable question on app's startup." OFF) | 62 | #option(KEXI_SQLITE_MIGRATION "If defined, SQLite3 migration to some newer format is possible. Users can see a suitable question on app's startup." OFF) | ||
61 | 63 | | |||
62 | add_definitions(-DTRANSLATION_DOMAIN=\"kexi\") | 64 | add_definitions(-DTRANSLATION_DOMAIN=\"kexi\") | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |