|
| 1 | +--- |
| 2 | +const response = await fetch( |
| 3 | + "https://github.com/userdocs/qbt-workflow-files/releases/latest/download/dependency-version.json", |
| 4 | +); |
| 5 | +
|
| 6 | +const data = await response.json(); |
| 7 | +
|
| 8 | +const rows = [ |
| 9 | + { |
| 10 | + variable: "qbt_zlib_type", |
| 11 | + defaultVal: "zlib", |
| 12 | + optionsTokens: ["zlib", "zlib-ng"], |
| 13 | + example: 'qbt_zlib_type="zlib"', |
| 14 | + }, |
| 15 | + { |
| 16 | + variable: "qbt_skip_icu", |
| 17 | + defaultVal: "yes", |
| 18 | + optionsTokens: ["yes", "no"], |
| 19 | + example: 'qbt_skip_icu="yes"', |
| 20 | + }, |
| 21 | + { |
| 22 | + variable: "qbt_boost_tag", |
| 23 | + defaultVal: `boost-${data.boost || "1.88.0"}`, |
| 24 | + optionsTokens: ["Any valid git tag"], |
| 25 | + example: 'qbt_boost_tag="boost-1.86.0"', |
| 26 | + }, |
| 27 | + { |
| 28 | + variable: "qbt_libtorrent_version", |
| 29 | + defaultVal: "2.0", |
| 30 | + optionsTokens: ["1.2", "2.0"], |
| 31 | + example: 'qbt_libtorrent_version="2.0"', |
| 32 | + }, |
| 33 | + { |
| 34 | + variable: "qbt_libtorrent_tag", |
| 35 | + defaultVal: `v${data.libtorrent_2_0 || "2.0.11"}`, |
| 36 | + optionsTokens: ["Any valid git tag"], |
| 37 | + example: 'qbt_libtorrent_tag="v2.0.10"', |
| 38 | + }, |
| 39 | + { |
| 40 | + variable: "qbt_libtorrent_master_jamfile", |
| 41 | + defaultVal: "no", |
| 42 | + optionsTokens: ["yes", "no"], |
| 43 | + example: 'qbt_libtorrent_master_jamfile="no"', |
| 44 | + }, |
| 45 | + { |
| 46 | + variable: "qbt_qt_version", |
| 47 | + defaultVal: "6", |
| 48 | + optionsTokens: ["5.12", "5.15", "6.3", "6.3.1"], |
| 49 | + example: 'qbt_qt_version="6"', |
| 50 | + }, |
| 51 | + { |
| 52 | + variable: "qbt_qt_tag", |
| 53 | + defaultVal: `v${data.qt6 || "v6.9.1"}`, |
| 54 | + optionsTokens: ["Any valid git tag"], |
| 55 | + example: 'qbt_qt_tag="v6.8.0"', |
| 56 | + }, |
| 57 | + { |
| 58 | + variable: "qbt_qbittorrent_tag", |
| 59 | + defaultVal: `release-${data.qbittorrent || "5.1.2"}`, |
| 60 | + optionsTokens: ["Any valid git tag"], |
| 61 | + example: 'qbt_qbittorrent_tag="release-5.1.2"', |
| 62 | + }, |
| 63 | + { |
| 64 | + variable: "qbt_build_dir", |
| 65 | + defaultVal: "qbt-build", |
| 66 | + optionsTokens: ["qbt-build"], |
| 67 | + example: 'qbt_build_dir="~/custom"', |
| 68 | + }, |
| 69 | + { |
| 70 | + variable: "qbt_build_tool", |
| 71 | + defaultVal: "cmake", |
| 72 | + optionsTokens: ["cmake", "qmake"], |
| 73 | + example: 'qbt_build_tool="cmake"', |
| 74 | + }, |
| 75 | + { |
| 76 | + variable: "qbt_cross_name", |
| 77 | + defaultVal: "default (default to OS gcc)", |
| 78 | + optionsTokens: ["See Cross arch options below"], |
| 79 | + example: 'qbt_cross_name="aarch64"', |
| 80 | + }, |
| 81 | + { |
| 82 | + variable: "qbt_mcm_url", |
| 83 | + defaultVal: "userdocs/qbt-musl-cross-make", |
| 84 | + optionsTokens: [], |
| 85 | + example: 'qbt_mcm_url="userdocs/qbt-musl-cross-make"', |
| 86 | + }, |
| 87 | + { |
| 88 | + variable: "qbt_patches_url", |
| 89 | + defaultVal: "userdocs/qbittorrent-nox-static", |
| 90 | + optionsTokens: [], |
| 91 | + example: 'qbt_patches_url="userdocs/qbittorrent-nox-static"', |
| 92 | + }, |
| 93 | + { |
| 94 | + variable: "qbt_workflow_files", |
| 95 | + defaultVal: "no", |
| 96 | + optionsTokens: ["yes", "no"], |
| 97 | + example: 'qbt_workflow_files="no"', |
| 98 | + }, |
| 99 | + { |
| 100 | + variable: "qbt_cache_dir", |
| 101 | + defaultVal: "empty = unset", |
| 102 | + optionsTokens: [], |
| 103 | + example: 'qbt_cache_dir="cache"', |
| 104 | + }, |
| 105 | + { |
| 106 | + variable: "qbt_optimise_strip", |
| 107 | + defaultVal: "yes", |
| 108 | + optionsTokens: ["yes", "no"], |
| 109 | + example: 'qbt_optimise_strip="yes"', |
| 110 | + }, |
| 111 | + { |
| 112 | + variable: "qbt_build_debug", |
| 113 | + defaultVal: "no", |
| 114 | + optionsTokens: [], |
| 115 | + example: 'qbt_build_debug="no"', |
| 116 | + }, |
| 117 | + { |
| 118 | + variable: "qbt_standard", |
| 119 | + defaultVal: "20", |
| 120 | + optionsTokens: ["14", "17", "20", "23"], |
| 121 | + example: 'qbt_standard="20"', |
| 122 | + }, |
| 123 | + { |
| 124 | + variable: "qbt_static_ish", |
| 125 | + defaultVal: "no", |
| 126 | + optionsTokens: [], |
| 127 | + example: 'qbt_static_ish="no"', |
| 128 | + }, |
| 129 | + { |
| 130 | + variable: "qbt_optimise", |
| 131 | + defaultVal: "no", |
| 132 | + optionsTokens: ["yes", "no"], |
| 133 | + example: 'qbt_optimise="yes"', |
| 134 | + }, |
| 135 | + { |
| 136 | + variable: "qbt_with_qemu", |
| 137 | + defaultVal: "yes", |
| 138 | + optionsTokens: ["yes", "no"], |
| 139 | + example: 'qbt_with_qemu="yes"', |
| 140 | + }, |
| 141 | + { |
| 142 | + variable: "qbt_host_deps_repo", |
| 143 | + defaultVal: "userdocs/qbt-host-deps", |
| 144 | + optionsTokens: [], |
| 145 | + example: "qbt_host_deps_repo=userdocs/qbt-host-deps", |
| 146 | + }, |
| 147 | +]; |
| 148 | +--- |
| 149 | + |
| 150 | +<table> |
| 151 | + <thead> |
| 152 | + <tr> |
| 153 | + <th>Build variable</th> |
| 154 | + <th>Default if unset</th> |
| 155 | + <th>Options</th> |
| 156 | + <th>example usage</th> |
| 157 | + </tr> |
| 158 | + </thead> |
| 159 | + <tbody> |
| 160 | + { |
| 161 | + rows.map((r) => ( |
| 162 | + <tr> |
| 163 | + <td> |
| 164 | + <code>{r.variable}</code> |
| 165 | + </td> |
| 166 | + <td> |
| 167 | + <code>{r.defaultVal}</code> |
| 168 | + </td> |
| 169 | + <td> |
| 170 | + {Array.isArray(r.optionsTokens) && r.optionsTokens.length |
| 171 | + ? r.optionsTokens.map((opt, i) => ( |
| 172 | + <Fragment> |
| 173 | + <code>{opt}</code> |
| 174 | + {i < r.optionsTokens.length - 1 ? " " : ""} |
| 175 | + </Fragment> |
| 176 | + )) |
| 177 | + : ""} |
| 178 | + </td> |
| 179 | + <td> |
| 180 | + <code>{r.example}</code> |
| 181 | + </td> |
| 182 | + </tr> |
| 183 | + )) |
| 184 | + } |
| 185 | + </tbody> |
| 186 | +</table> |
0 commit comments