mirror of
https://github.com/icewind1991/sm-sourcenav.git
synced 2026-06-03 09:04:12 +02:00
remove debug
This commit is contained in:
parent
94d7095a06
commit
c9a71e3911
3 changed files with 13 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
/target
|
/target
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
*.smx
|
*.smx
|
||||||
|
dist
|
||||||
11
Makefile
Normal file
11
Makefile
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
DIR:=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
|
||||||
|
.PHONY: target/i686-unknown-linux-gnu/release/libsourcenav.so
|
||||||
|
|
||||||
|
all: dist/sourcenav.ext.so
|
||||||
|
|
||||||
|
dist/sourcenav.ext.so: target/i686-unknown-linux-gnu/release/libsourcenav.so
|
||||||
|
cp target/i686-unknown-linux-gnu/release/libsourcenav.so dist/sourcenav.ext.so
|
||||||
|
|
||||||
|
target/i686-unknown-linux-gnu/release/libsourcenav.so:
|
||||||
|
docker run --rm -v /tmp/sourcenav_cargo_reg:/root/.cargo/registry -v /tmp/sourcenav_cargo_git:/root/.cargo/git \
|
||||||
|
-v "$(DIR)":/app icewind1991/old-libc-rust-builder build --release --target=i686-unknown-linux-gnu
|
||||||
|
|
@ -24,11 +24,6 @@ impl<'ctx> TryIntoPlugin<'ctx> for NavTree {
|
||||||
|
|
||||||
#[native]
|
#[native]
|
||||||
fn native_obj_new(_ctx: &IPluginContext, path: &CStr) -> NavTree {
|
fn native_obj_new(_ctx: &IPluginContext, path: &CStr) -> NavTree {
|
||||||
println!("path: {}", path.to_str().unwrap());
|
|
||||||
println!(
|
|
||||||
"pwd: {}",
|
|
||||||
std::env::current_dir().unwrap().to_str().unwrap()
|
|
||||||
);
|
|
||||||
let data = read(path.to_str().unwrap()).unwrap();
|
let data = read(path.to_str().unwrap()).unwrap();
|
||||||
NavTree(get_quad_tree(data).unwrap())
|
NavTree(get_quad_tree(data).unwrap())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue