[Bf-committers] How to Create a Minimal Blender Build / Branch?

Campbell Barton ideasman42 at gmail.com
Tue Nov 25 01:11:41 CET 2014


Hi Brad,

Blender can be built with many features excluded completely,
On *nix systems you can run `make lite`,

This simply disables a lot of options for you, you can run CMake directly.

https://developer.blender.org/diffusion/B/browse/master/build_files/cmake/config/blender_lite.cmake

You might also want to look into the cycles repository,
https://developer.blender.org/diffusion/C/
Since its a stand-alone renderer.

----

As for actually stripping out the source files which aren't used,
thats a bit more work - theres a few ways to do this which come to
mind.

- Wrap the compiler in a shell script, do a single threaded build and
append the paths of all source files to a list, then remove source
files not  found in the list.

- Use a filesystem with access times enabled, do a clean build, then
write a script to remove all files not accessed during the build.

- Build with VERBOSE option enabled & extract the source files from
the build output.

Note that some IDE's (MSVC/qtcreator... probably others) can be set to
only show files which are built, if you happen to use some IDE that
has this feature it could save your from having to find a clever way
to strip down the source.

On Tue, Nov 25, 2014 at 12:50 AM, Brad Hollister <behollis at soe.ucsc.edu> wrote:
> Hi,
>
> Which parts of the source tree would be required for a minimalistic
> build of Blender, such that it would only contain UI, polygon modeling
> and .blend support for only geometry data? It would be nice not to
> have to include the Python interpreter, but I assume it is required
> for basic UI layout. (Obviously, many source files would also have to
> be altered for this simplification of the source as well, from the
> essential modules.)
>
> I ask, because I'm designing a course in open source development for
> computer graphics. It would be great to give students the opportunity
> to work in a Blender branch that only contains minimal aspects of the
> project to avoid early confusion, etc.
>
> Regards,
> Brad
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



-- 
- Campbell


More information about the Bf-committers mailing list