Nimble support

This commit is contained in:
Ehmry - 2019-02-26 01:36:07 +01:00
parent 6fafc577dc
commit 90d2480cfe
3 changed files with 22 additions and 0 deletions

5
nimble/Tuprules.tup Normal file
View File

@ -0,0 +1,5 @@
!nim_to_depot = |> nim cpp --os:genode -d:posix -o:%o %f \
|> $(DEPOT_DIR)/bin/x86_64/%d/@(DEPOT_VERSION)/%B
NIMBLE_BINARIES_INCLUDE = $(TUP_CWD)/binaries.tup
NIMBLE_PACKAGE_INCLUDE = $(TUP_CWD)/package.tup

8
nimble/binaries.tup Normal file
View File

@ -0,0 +1,8 @@
include_rules
: foreach src/*.nim |> !nim_to_depot |> {binary}
ifdef DEPOT_KEY
: {binary} |> !depot_bin_tarball |> {tarballs}
: foreach {tarballs} |> !depot_sign_tarball |>
endif

9
nimble/package.tup Normal file
View File

@ -0,0 +1,9 @@
include_rules
: archives |> tup varsed %f %o |> $(DEPOT_DIR)/pkg/%d/@(DEPOT_VERSION)/%b {package}
: runtime |> tup varsed %f - | xmllint - > %o |> $(DEPOT_DIR)/pkg/%d/@(DEPOT_VERSION)/%b {package}
ifdef DEPOT_KEY
: {package} |> !depot_pkg_tarball |> {tarball}
: {tarball} |> !public_signature |>
endif