| 1 | <!DOCTYPE html> |
| 2 | <html><head> |
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 4 | <title>.kdesrc-buildrc</title> |
| 5 | <meta name="generator" content="KF5::SyntaxHighlighting - Definition (kdesrc-buildrc) - Theme (Breeze Dark)"/> |
| 6 | </head><body style="background-color:#232629;color:#cfcfc2"><pre> |
| 7 | <span style="color:#7a7c7d"># List of all options: https://docs.kde.org/trunk5/en/kdesrc-build/kdesrc-build/conf-options-table.html</span> |
| 8 | |
| 9 | <span style="font-weight:bold">global</span> |
| 10 | branch-group <span style="color:#f67400">kf6-qt6</span> |
| 11 | |
| 12 | <span style="color:#7a7c7d"># strange capitalisation of value</span> |
| 13 | include-dependencies <span style="color:#f67400">TrUe</span> |
| 14 | |
| 15 | <span style="color:#7a7c7d"># path with tilde</span> |
| 16 | kdedir ~<span style="color:#f67400">/kde/usr</span> |
| 17 | |
| 18 | <span style="color:#7a7c7d"># try using the existing option as value for other option</span> |
| 19 | qtdir <span style="color:#27ae60">${source-dir}</span> <span style="color:#7a7c7d"># Comment on the same line with value</span> |
| 20 | |
| 21 | <span style="color:#7a7c7d"># Use line breaks</span> |
| 22 | cmake-options -DCMAKE_BUILD_TYPE=<span style="color:#f67400">RelWithDebInfo</span> <span style="color:#f67400">\</span> |
| 23 | <span style="color:#da4453;text-decoration:underline">-DQT_MAJOR_VERSION</span><span style="color:#f67400">=6</span> <span style="color:#f67400">\</span> |
| 24 | <span style="color:#f67400">-DBUILD_WITH_QT6=ON</span> |
| 25 | |
| 26 | num-cores <span style="color:#27ae60">${non-existing-var}</span> |
| 27 | num-cores-low-mem <span style="color:#f67400">4</span> |
| 28 | |
| 29 | <span style="color:#7d4c0b">non-existing-option</span> <span style="color:#f67400">12345</span> |
| 30 | |
| 31 | <span style="color:#7a7c7d"># use int value for binary option</span> |
| 32 | install-session-driver <span style="color:#da4453;text-decoration:underline">5</span> |
| 33 | |
| 34 | <span style="color:#7a7c7d"># impossible enum value (allowed are: invent, flat, metadata)</span> |
| 35 | directory-layout <span style="color:#f67400">project-ids-as-folder-names</span> |
| 36 | |
| 37 | <span style="color:#7a7c7d"># option with valid value with spaces</span> |
| 38 | cmake-generator <span style="color:#f67400">Kate</span> <span style="color:#f67400">-</span> <span style="color:#f67400">Ninja</span> |
| 39 | end global |
| 40 | |
| 41 | <span style="color:#7a7c7d"># Comment with \</span> |
| 42 | <span style="color:#7a7c7d"># line break</span> |
| 43 | |
| 44 | include<span style="color:#f67400"> ~/kde6/src/kdesrc-build/kf6-common-options-build-include</span> |
| 45 | |
| 46 | options<span style="color:#27ae60;font-weight:bold"> kcalc</span> |
| 47 | <span style="color:#7a7c7d"># use of module-set only option in the options block:</span> |
| 48 | <span style="color:#da4453;text-decoration:underline">use-modules</span> <span style="color:#7d4c0b">one</span> <span style="color:#f67400">two</span> <span style="color:#f67400">\</span> |
| 49 | <span style="color:#f67400">three</span> |
| 50 | |
| 51 | <span style="color:#7a7c7d"># use of unrecognized option:</span> |
| 52 | <span style="color:#7d4c0b">new-option</span> <span style="color:#f67400">true</span> |
| 53 | end options |
| 54 | |
| 55 | |
| 56 | module-set |
| 57 | <span style="color:#7a7c7d"># use of global-only option in module-set:</span> |
| 58 | <span style="color:#da4453;text-decoration:underline">stop-on-failure</span> <span style="color:#f67400">true</span> |
| 59 | |
| 60 | <span style="color:#7a7c7d"># use allowed option:</span> |
| 61 | use-modules<span style="color:#27ae60;font-weight:bold"> one two three</span> |
| 62 | end module-set |
| 63 | |
| 64 | <span style="color:#7a7c7d"># module block without the actual name</span> |
| 65 | module |
| 66 | repository <span style="color:#f67400">kde-projects</span> |
| 67 | end module |
| 68 | |
| 69 | <span style="color:#7a7c7d"># double opening module block (forget ending the module block):</span> |
| 70 | module<span style="color:#27ae60;font-weight:bold"> kcalc</span> |
| 71 | <span style="color:#7d4c0b">module</span> <span style="color:#f67400">kcalc</span> |
| 72 | <span style="color:#7a7c7d"># body without options</span> |
| 73 | end module kcalc |
| 74 | |
| 75 | <span style="color:#7a7c7d"># non-recognized block</span> |
| 76 | kcalc |
| 77 | repository kde-projects |
| 78 | end kcalc |
| 79 | |
| 80 | <span style="color:#7a7c7d"># </span><span style="color:#3f8058">kate:</span><span style="color:#7a7c7d"> </span><span style="color:#7f8c8d">syntax</span><span style="color:#f44f4f"> kdesrc-buildrc</span><span style="color:#7f8c8d">;</span> |
| 81 | </pre></body></html> |