mirror of
https://github.com/egor-white/zaprett.git
synced 2026-01-28 05:29:51 +05:00
fix bindgen
This commit is contained in:
@@ -53,8 +53,11 @@ fn main() {
|
||||
{
|
||||
builder = builder.header(header.to_string_lossy());
|
||||
}
|
||||
|
||||
builder = builder.clang_arg("-Dmain=nfqws2_main");
|
||||
if let Ok(luajit) = env::var("LUAJIT") {
|
||||
builder = builder
|
||||
.clang_arg(format!("-I{}", luajit))
|
||||
.clang_arg("-Dmain=nfqws2_main");
|
||||
}
|
||||
|
||||
let bindings = builder
|
||||
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
|
||||
|
||||
@@ -125,6 +125,7 @@ build-android *args: prepare-android
|
||||
(
|
||||
echo "Building target $t"
|
||||
export CFLAGS="-I$NETFILTER_LIBS-$t/include -I$NETFILTER_LIBS-$t/include/luajit-2.1"
|
||||
export LUAJIT="$NETFILTER_LIBS-$t/include/luajit-2.1"
|
||||
export LDFLAGS="-L$NETFILTER_LIBS-$t/lib"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
export LJIT=1
|
||||
|
||||
Reference in New Issue
Block a user