Skip to content

Commit

Permalink
Added CFLAGS, CXXFLAGS and LDFLAGS to dav1d build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Feb 17, 2024
1 parent b0f6800 commit 0047ed1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion etc/SuperBuild/cmake/Modules/Builddav1d.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ include(ExternalProject)

set(dav1d_GIT_TAG 1.3.0)

set(dav1d_CONFIGURE ${CMAKE_COMMAND} -E env PYTHONPATH="" "CXXFLAGS=${CMAKE_CXX_FLAGS}" "CFLAGS=${CMAKE_C_FLAGS}" "LDFLAGS=${CMAKE_SHARED_LINKER_FLAGS}" -- meson setup -Denable_tools=false -Denable_tests=false --default-library=static -Dlibdir=${CMAKE_INSTALL_PREFIX}/lib --prefix=${CMAKE_INSTALL_PREFIX} build)
if(APPLE AND CMAKE_OSX_DEPLOYMENT_TARGET)
set(dav1d_CFLAGS -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET})
set(dav1d_CXXFLAGS -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET})
set(dav1d_LDFLAGS -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET})
endif()

set(dav1d_CONFIGURE ${CMAKE_COMMAND} -E env PYTHONPATH="" "CXXFLAGS=${dav1d_CXXFLAGS}" "CFLAGS=${dav1d_CFLAGS}" "LDFLAGS=${dav1d_LDFLAGS}" -- meson setup -Denable_tools=false -Denable_tests=false --default-library=static -Dlibdir=${CMAKE_INSTALL_PREFIX}/lib --prefix=${CMAKE_INSTALL_PREFIX} build)
set(dav1d_BUILD export PYTHONPATH="" && cd build && ninja)
set(dav1d_INSTALL export PYTHONPATH="" && cd build && ninja install)

Expand Down

0 comments on commit 0047ed1

Please sign in to comment.