Merge branch 'master' into blender2.8
[blender.git] / build_files / cmake / macros.cmake
index f8350b9ab7f0159757ef76b5372db929bb538782..417c012b526dc38c1dab212115452a79ffa26d7f 100644 (file)
@@ -319,7 +319,7 @@ function(SETUP_LIBDIRS)
                        link_directories(${JACK_LIBPATH})
                endif()
                if(WITH_CODEC_SNDFILE)
-                       link_directories(${SNDFILE_LIBPATH})
+                       link_directories(${LIBSNDFILE_LIBPATH})
                endif()
                if(WITH_FFTW3)
                        link_directories(${FFTW3_LIBPATH})
@@ -400,7 +400,7 @@ function(setup_liblinks
                target_link_libraries(${target} ${JACK_LIBRARIES})
        endif()
        if(WITH_CODEC_SNDFILE)
-               target_link_libraries(${target} ${SNDFILE_LIBRARIES})
+               target_link_libraries(${target} ${LIBSNDFILE_LIBRARIES})
        endif()
        if(WITH_SDL AND NOT WITH_SDL_DYNLOAD)
                target_link_libraries(${target} ${SDL_LIBRARY})
@@ -548,6 +548,12 @@ function(SETUP_BLENDER_SORTED_LIBS)
                endif()
        endif()
 
+       if(WITH_AUDASPACE AND NOT WITH_SYSTEM_AUDASPACE)
+               list(APPEND BLENDER_LINK_LIBS
+                       audaspace
+                       audaspace-py)
+       endif()
+
        # Sort libraries
        set(BLENDER_SORTED_LIBS
                bf_windowmanager
@@ -578,12 +584,14 @@ function(SETUP_BLENDER_SORTED_LIBS)
                bf_editor_curve
                bf_editor_gpencil
                bf_editor_interface
+               bf_editor_manipulator_library
                bf_editor_mesh
                bf_editor_metaball
                bf_editor_object
                bf_editor_armature
                bf_editor_physics
                bf_editor_render
+               bf_editor_scene
                bf_editor_screen
                bf_editor_sculpt_paint
                bf_editor_sound
@@ -596,6 +604,7 @@ function(SETUP_BLENDER_SORTED_LIBS)
                bf_python
                bf_python_ext
                bf_python_mathutils
+               bf_python_gawain
                bf_python_bmesh
                bf_freestyle
                bf_ikplugin
@@ -603,11 +612,14 @@ function(SETUP_BLENDER_SORTED_LIBS)
                bf_alembic
                bf_bmesh
                bf_gpu
+               bf_draw
                bf_blenloader
                bf_blenkernel
                bf_physics
                bf_nodes
                bf_rna
+               bf_editor_manipulator_library  # rna -> manipulator bad-level calls
+               bf_python
                bf_imbuf
                bf_blenlib
                bf_depsgraph
@@ -648,6 +660,8 @@ function(SETUP_BLENDER_SORTED_LIBS)
                bf_blenfont
                bf_blentranslation
                bf_intern_audaspace
+               audaspace
+               audaspace-py
                bf_intern_mikktspace
                bf_intern_dualcon
                bf_intern_cycles
@@ -659,6 +673,7 @@ function(SETUP_BLENDER_SORTED_LIBS)
                cycles_util
                cycles_subd
                bf_intern_opencolorio
+               bf_intern_gawain
                bf_intern_eigen
                extern_rangetree
                extern_wcwidth
@@ -1498,6 +1513,7 @@ function(find_python_package
                  NAMES
                    ${package}
                  HINTS
+                   "${PYTHON_LIBPATH}/"
                    "${PYTHON_LIBPATH}/python${PYTHON_VERSION}/"
                    "${PYTHON_LIBPATH}/python${_PY_VER_MAJOR}/"
                  PATH_SUFFIXES