rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
748 stars 90 forks source link

Allow customizing lib search path for Rust when building on Windows #186

Closed MolotovCherry closed 4 months ago

MolotovCherry commented 4 months ago

I want to place libmem.lib elsewhere (e.g. in my own project directory), but there's no way to configure the search path.

I added an env var LIBMEM_SEARCH_PATH that can be defined in the shell before building, and it will add it as an additional lib search path.

Let me know your thoughts! I can also change the var name or make other changes if you prefer.

rdbo commented 4 months ago

I renamed the variable and will start doing some work from here, thank you!