mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
fix build of phonon component without OpenGL
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c75a8bd048
commit
52d94d5a00
1 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ add_definitions(
|
|||
# -DQT_NO_PHONON_PLATFORMPLUGIN
|
||||
# -DPHONON_NO_CAPTURE
|
||||
)
|
||||
set(EXTRA_PHONON_LIBS KtCore)
|
||||
set(EXTRA_PHONON_LIBS KtCore KtGui)
|
||||
|
||||
# TODO: aliases
|
||||
set(PHONON_PUBLIC_HEADERS
|
||||
|
@ -190,7 +190,7 @@ set(PHONON_SOURCES
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/videowidget.cpp
|
||||
)
|
||||
|
||||
if((WITH_OPENGL AND OPENGL_FOUND) AND PHONON_GRAPHICS)
|
||||
if(WITH_OPENGL AND OPENGL_FOUND AND PHONON_GRAPHICS)
|
||||
set(PHONON_HEADERS
|
||||
${PHONON_HEADERS}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/graphicsview/abstractvideographicspainter.h
|
||||
|
@ -216,7 +216,7 @@ if((WITH_OPENGL AND OPENGL_FOUND) AND PHONON_GRAPHICS)
|
|||
)
|
||||
include_directories(${OPENGL_INCLUDE_DIR})
|
||||
else()
|
||||
set(PHONON_GRAPHICS TRUE)
|
||||
set(PHONON_GRAPHICS FALSE)
|
||||
katie_definition(-DPHONON_NO_GRAPHICSVIEW)
|
||||
endif()
|
||||
|
||||
|
@ -355,7 +355,7 @@ set_target_properties(KtPhonon PROPERTIES
|
|||
)
|
||||
|
||||
set(PHONON_REQUIRES KtCore)
|
||||
if(WITH_OPENGL AND OPENGL_FOUND)
|
||||
if(WITH_OPENGL AND OPENGL_FOUND AND PHONON_GRAPHICS)
|
||||
set(PHONON_REQUIRES "${PHONON_REQUIRES} KtOpenGL")
|
||||
endif()
|
||||
if(WITH_DBUS AND DBUS_FOUND)
|
||||
|
|
Loading…
Add table
Reference in a new issue