Add README
This commit is contained in:
parent
a2b17d749c
commit
bb75b4a2fd
4 changed files with 7 additions and 3 deletions
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Rust LuaJIT 2 Bindings
|
||||||
|
|
||||||
|
[](https://dev.azure.com/aloucks/aloucks/_build/latest?definitionId=2&branchName=master)
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
BINDGEN_VERSION=$(bindgen --version)
|
BINDGEN_VERSION=$(bindgen --version | grep -v -e '^cargo')
|
||||||
|
|
||||||
bindgen -o src/ffi.rs \
|
bindgen -o src/ffi.rs \
|
||||||
--raw-line "/// Generated with: ${BINDGEN_VERSION}" \
|
--raw-line "/// Generated with: ${BINDGEN_VERSION}" \
|
||||||
|
|
3
build.rs
3
build.rs
|
@ -19,7 +19,8 @@ fn main() {
|
||||||
let lib_path = format!("{}/lua51.lib", &src_dir);
|
let lib_path = format!("{}/lua51.lib", &src_dir);
|
||||||
dbg!(&lib_path);
|
dbg!(&lib_path);
|
||||||
if !std::fs::metadata(&lib_path).is_ok() {
|
if !std::fs::metadata(&lib_path).is_ok() {
|
||||||
let cl_exe: cc::Tool = cc::windows_registry::find_tool(&target, "cl.exe").unwrap();
|
let cl_exe: cc::Tool =
|
||||||
|
cc::windows_registry::find_tool(&target, "cl.exe").expect("cl.exe not found");
|
||||||
let msvcbuild_bat = format!("{}/msvcbuild.bat", &src_dir);
|
let msvcbuild_bat = format!("{}/msvcbuild.bat", &src_dir);
|
||||||
|
|
||||||
dbg!(&msvcbuild_bat);
|
dbg!(&msvcbuild_bat);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* automatically generated by rust-bindgen */
|
/* automatically generated by rust-bindgen */
|
||||||
|
|
||||||
// Generated with: bindgen 0.49.1
|
// Generated with: bindgen 0.52.0
|
||||||
|
|
||||||
pub const LUA_LDIR: &'static [u8; 7usize] = b"!\\lua\\\0";
|
pub const LUA_LDIR: &'static [u8; 7usize] = b"!\\lua\\\0";
|
||||||
pub const LUA_CDIR: &'static [u8; 3usize] = b"!\\\0";
|
pub const LUA_CDIR: &'static [u8; 3usize] = b"!\\\0";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue