Changeset View
Changeset View
Standalone View
Standalone View
games/anki/Makefile
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
# USES=ssl is required for the compilation of the Rust code | # USES=ssl is required for the compilation of the Rust code | ||||
USES= cargo desktop-file-utils pyqt:5 python:3.8+ shebangfix ssl | USES= cargo desktop-file-utils pyqt:5 python:3.8+ shebangfix ssl | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= ankitects | GH_ACCOUNT= ankitects | ||||
# Translation files | # Translation files | ||||
GH_TUPLE= ankitects:anki-core-i18n:56d46d6:ftlrslib \ | GH_TUPLE= ankitects:anki-core-i18n:56d46d6:ftlrslib \ | ||||
ankitects:anki-desktop-ftl:5359f84:ftlextra | ankitects:anki-desktop-ftl:5359f84:ftlextra | ||||
# Cargo crates | |||||
GH_TUPLE+= ankitects:hyper-timeout:0cb6f7d14c62819e37cd221736f8b0555e823712:hypertimeout \ | |||||
ankitects:linkcheck:2f20798ce521cc594d510d4e417e76d5eac04d4b:linkcheck \ | |||||
ankitects:reqwest:7591444614de02b658ddab125efba7b2bb4e2335:reqwest \ | |||||
ankitects:tokio-io-timeout:1ee0892217e9a76bba4bb369ec5fab8854935a3c:tokioiotimeout \ | |||||
timothee-haudebourg:pct-str:4adccd8d4a222ab2672350a102f06ae832a0572d:pctstr | |||||
# Bazel Skylib framework and sets of bazel rules | # Bazel Skylib framework and sets of bazel rules | ||||
GH_TUPLE+= bazelbuild:bazel-skylib:e59b620:bzlskylib \ | GH_TUPLE+= bazelbuild:bazel-skylib:e59b620:bzlskylib \ | ||||
bazelbuild:rules_cc:40548a2:bzlrcc \ | bazelbuild:rules_cc:40548a2:bzlrcc \ | ||||
bazelbuild:rules_java:c13e3ea:bzlrjava \ | bazelbuild:rules_java:c13e3ea:bzlrjava \ | ||||
bazelbuild:rules_nodejs:2d02e82:bzlrnodejs \ | bazelbuild:rules_nodejs:2d02e82:bzlrnodejs \ | ||||
bazelbuild:rules_proto:f7a30f6:bzlrproto \ | bazelbuild:rules_proto:f7a30f6:bzlrproto \ | ||||
ankitects:esbuild_toolchain:f942aa9:esbuildtc \ | ankitects:esbuild_toolchain:f942aa9:esbuildtc \ | ||||
ankitects:rules_pip:fb02cb7:bzlrpip \ | ankitects:rules_pip:fb02cb7:bzlrpip \ | ||||
▲ Show 20 Lines • Show All 321 Lines • ▼ Show 20 Lines | CARGO_CRATES= Inflector-0.11.4 \ | ||||
which-4.2.2 \ | which-4.2.2 \ | ||||
winapi-0.3.9 \ | winapi-0.3.9 \ | ||||
winapi-i686-pc-windows-gnu-0.4.0 \ | winapi-i686-pc-windows-gnu-0.4.0 \ | ||||
winapi-util-0.1.5 \ | winapi-util-0.1.5 \ | ||||
winapi-x86_64-pc-windows-gnu-0.4.0 \ | winapi-x86_64-pc-windows-gnu-0.4.0 \ | ||||
winreg-0.7.0 \ | winreg-0.7.0 \ | ||||
wyz-0.2.0 \ | wyz-0.2.0 \ | ||||
xml5ever-0.16.1 \ | xml5ever-0.16.1 \ | ||||
zip-0.5.13 | zip-0.5.13 \ | ||||
CARGO_USE_GITHUB= yes | reqwest@git+https://github.com/ankitects/reqwest.git?rev=7591444614de02b658ddab125efba7b2bb4e2335\#7591444614de02b658ddab125efba7b2bb4e2335 \ | ||||
hyper-timeout@git+https://github.com/ankitects/hyper-timeout.git?rev=0cb6f7d14c62819e37cd221736f8b0555e823712\#0cb6f7d14c62819e37cd221736f8b0555e823712 \ | |||||
linkcheck@git+https://github.com/ankitects/linkcheck.git?rev=2f20798ce521cc594d510d4e417e76d5eac04d4b\#2f20798ce521cc594d510d4e417e76d5eac04d4b \ | |||||
tokio-io-timeout@git+https://github.com/ankitects/tokio-io-timeout.git?rev=1ee0892217e9a76bba4bb369ec5fab8854935a3c\#1ee0892217e9a76bba4bb369ec5fab8854935a3c \ | |||||
pct-str@git+https://github.com/timothee-haudebourg/pct-str.git?rev=4adccd8d4a222ab2672350a102f06ae832a0572d\#4adccd8d4a222ab2672350a102f06ae832a0572d | |||||
CARGO_CARGOTOML= ${WRKSRC}/pylib/rsbridge/Cargo.toml | CARGO_CARGOTOML= ${WRKSRC}/pylib/rsbridge/Cargo.toml | ||||
CARGO_BUILD= no | CARGO_BUILD= no | ||||
CARGO_INSTALL= no | CARGO_INSTALL= no | ||||
# BAZEL=1 is required otherwise ${WRKSRC}/rslib/build/main.rs produces a dummy | # BAZEL=1 is required otherwise ${WRKSRC}/rslib/build/main.rs produces a dummy | ||||
# buildinfo.txt that doesn't contain the actual build hash. | # buildinfo.txt that doesn't contain the actual build hash. | ||||
CARGO_ENV= BAZEL=1 \ | CARGO_ENV= BAZEL=1 \ | ||||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | @${CP} ${FILESDIR}/bazel/BUILD.bazel-rust_output-strings_json \ | ||||
${_MY_LOCALREPO}/rust_output/strings_json/BUILD.bazel | ${_MY_LOCALREPO}/rust_output/strings_json/BUILD.bazel | ||||
@${CP} ${FILESDIR}/bazel/BUILD.bazel-i18n ${WRKSRC_ftlrslib}/BUILD.bazel | @${CP} ${FILESDIR}/bazel/BUILD.bazel-i18n ${WRKSRC_ftlrslib}/BUILD.bazel | ||||
@${CP} ${FILESDIR}/bazel/BUILD.bazel-i18n ${WRKSRC_ftlextra}/BUILD.bazel | @${CP} ${FILESDIR}/bazel/BUILD.bazel-i18n ${WRKSRC_ftlextra}/BUILD.bazel | ||||
# Move some files out of the way as they will be replaced by custom copies. | # Move some files out of the way as they will be replaced by custom copies. | ||||
@${MV} ${WRKSRC}/repos.bzl ${WRKSRC}/repos.bzl.dist | @${MV} ${WRKSRC}/repos.bzl ${WRKSRC}/repos.bzl.dist | ||||
@${MV} ${WRKSRC}/pip/pyqt5/defs.bzl ${WRKSRC}/pip/pyqt5/defs.bzl.dist | @${MV} ${WRKSRC}/pip/pyqt5/defs.bzl ${WRKSRC}/pip/pyqt5/defs.bzl.dist | ||||
@${MV} ${WRKSRC}/pylib/rsbridge/BUILD.bazel ${WRKSRC}/pylib/rsbridge/BUILD.bazel.dist | @${MV} ${WRKSRC}/pylib/rsbridge/BUILD.bazel ${WRKSRC}/pylib/rsbridge/BUILD.bazel.dist | ||||
@${MV} ${WRKSRC}/rslib/i18n/BUILD.bazel ${WRKSRC}/rslib/i18n/BUILD.bazel.dist | @${MV} ${WRKSRC}/rslib/i18n/BUILD.bazel ${WRKSRC}/rslib/i18n/BUILD.bazel.dist | ||||
# Required for a successful Rust compilation | |||||
@${MV} ${WRKSRC}/Cargo.lock ${WRKSRC}/Cargo.lock.dist | |||||
# Copy the replacement files | # Copy the replacement files | ||||
@${CP} ${FILESDIR}/bazel/repos.bzl ${WRKSRC}/ | @${CP} ${FILESDIR}/bazel/repos.bzl ${WRKSRC}/ | ||||
@${CP} ${FILESDIR}/bazel/pyqt5.bzl ${WRKSRC}/pip/pyqt5/defs.bzl | @${CP} ${FILESDIR}/bazel/pyqt5.bzl ${WRKSRC}/pip/pyqt5/defs.bzl | ||||
@${CP} ${FILESDIR}/bazel/BUILD.bazel-pylib-rsbridge \ | @${CP} ${FILESDIR}/bazel/BUILD.bazel-pylib-rsbridge \ | ||||
${WRKSRC}/pylib/rsbridge/BUILD.bazel | ${WRKSRC}/pylib/rsbridge/BUILD.bazel | ||||
@${CP} ${FILESDIR}/bazel/BUILD.bazel-rslib-i18n \ | @${CP} ${FILESDIR}/bazel/BUILD.bazel-rslib-i18n \ | ||||
${WRKSRC}/rslib/i18n/BUILD.bazel | ${WRKSRC}/rslib/i18n/BUILD.bazel | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |