-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: don't depend on luarocks-build-rust-mlua
This uses a Makefile instead. Using `luarocks-build-rust-mlua` has some downsides: - Users have to install it (this seems to cause problems on some systems), even if they are pulling the binary rock. This is because luarocks doesn't have a separate `build_dependencies` table. - On the GitHub Actions Windows runner, luarocks fails to build this with `luarocks-build-rust-mlua`. I don't know if this is an issue for Windows in general, but this might fix it.
- Loading branch information
Showing
4 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
build: | ||
ifeq ($(findstring "/5.1",$(INST_LIBDIR)),) | ||
cargo build --release --features lua51 | ||
else ifeq ($(findstring "/5.2",$(INST_LIBDIR)),) | ||
cargo build --release --features lua52 | ||
else ifeq ($(findstring "/5.3",$(INST_LIBDIR)),) | ||
cargo build --release --features lua53 | ||
else ifeq ($(findstring "/5.4",$(INST_LIBDIR)),) | ||
cargo build --release --features lua54 | ||
endif | ||
|
||
install: | ||
mkdir -p $(INST_LIBDIR) | ||
@if [ -f target/release/libtoml_edit.so ]; then cp target/release/libtoml_edit.so $(INST_LIBDIR)/toml_edit.so; fi | ||
@if [ -f target/release/libtoml_edit.dylib ]; then cp target/release/libtoml_edit.dylib $(INST_LIBDIR)/toml_edit.dylib; fi | ||
@if [ -f target/release/libtoml_edit.dll ]; then cp target/release/libtoml_edit.dll $(INST_LIBDIR)/toml_edit.dll; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
}; | ||
nativeCheckInputs = with luaself; | ||
[ | ||
luarocks-build-rust-mlua | ||
busted | ||
] | ||
++ oa.nativeCheckInputs; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters