Page MenuHome

Windows: Allow alternative location for the libraries/tests

Authored by Ray molenkamp (LazyDodo) on Sat, May 16, 12:01 AM.



There was a request to move the lib folder off the SSD the blender code was on due to the size of the libs, which seemed like a reasonable thing to support.

This diff adds the option by setting the BLENDER_LIB_DIR environment variable. Initially i thought that adding the option to make.bat would suffice but you would end up adding libdir d:\the\new\place\the\libs\live\ to every make.bat invocation which is... "less than ideal" an environment var is the way the go here.

The BLENDER_LIB_DIR needs to be set to the root of the library directory (so should *not* include the win64_vc15 bit)

I'm pretty sure i didn't break anything for other platforms except for the change in tests/python/CMakeLists.txt tested on windows, I think it'll work for the other platforms but a second pair of eyes wouldn't hurt there.

Diff Detail

rB Blender
tmp_lib_dir (branched from master)
Build Status
Buildable 8072
Build 8072: arc lint + arc unit

Event Timeline

Ray molenkamp (LazyDodo) requested review of this revision.Sat, May 16, 12:01 AM
Ray molenkamp (LazyDodo) created this revision.

Isn't it possible to create a symlink for this purpose?

I know that these are not trivial to create on Windows, but I'm not sure an environment variable is much easier.

you can make a symlink with mklink on ntfs volumes, it however requires administrative privileges which are generally hard to come by in corporate/educational environments. while setting an environment var anyone can do

Ok, I don't mind having it.

I guess you can document this somewhere in make.bat help.

This revision is now accepted and ready to land.Thu, May 21, 12:30 AM