Page MenuHome

Move the extern_draco library in the extern folder (Visual Studio)
ClosedPublic

Authored by Phillip Thomas (Cambloid) on Feb 16 2020, 2:06 PM.

Details

Summary

This is more an eye candy for Visual Studio developers.
It moves the extern_draco project in Visual Studio under the extern folder where it belongs according to the source tree.
It also makes it consistent on how libs are added in blender.

Diff Detail

Repository
rB Blender

Event Timeline

Phillip Thomas (Cambloid) edited the summary of this revision. (Show Details)
Brecht Van Lommel (brecht) requested changes to this revision.Feb 16 2020, 2:40 PM

This makes draco no longer shared library, which is needed for Python to import it.

This revision now requires changes to proceed.Feb 16 2020, 2:40 PM

Updated the script, so that the library is still built as shared library.

Ray Molenkamp (LazyDodo) requested changes to this revision.Feb 16 2020, 6:58 PM
Ray Molenkamp (LazyDodo) added inline comments.
extern/draco/CMakeLists.txt
47

Duplicating code all over the place is not the way to go, In build_files/cmake/macros.cmake add a blender_project_group macro that has this bit of code in it and call the macro instead.

Once you have the macro don't forget to de-duplicate the code in blender_add_lib__impl as well.

This revision now requires changes to proceed.Feb 16 2020, 6:58 PM

moved the if statement into blender_source_group function

But now the function name no longer covers what it actually does since it sets both the source and project groups, which is the reason i suggested the separate macro.

I see the upside of not having to do 2 calls though, i'm torn here, @Brecht Van Lommel (brecht) any strong opinion between renaming blender_source_group to blender_source_and_project_groups (or something else) and keeping two separate macro's for the source and project groups?

build_files/cmake/macros.cmake
172

whitespace changes

Removed the trailing whitespace and the empty lines

This revision is now accepted and ready to land.Feb 18 2020, 3:27 PM