From: David Steele Date: Tue, 25 Jun 2024 11:18:40 +0000 (+0100) Subject: Remove GlView from vulkan build X-Git-Tag: accepted/tizen/unified/20240717.060554~1^2~2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df0e4acc2a8c50af8e629e5542de5edef48892f3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Remove GlView from vulkan build Change-Id: I58cc77ffc872c2f7033cc80d729355b78deeadd8 --- diff --git a/build/tizen/CMakeLists.txt b/build/tizen/CMakeLists.txt index 056af0b996..13fe82c711 100644 --- a/build/tizen/CMakeLists.txt +++ b/build/tizen/CMakeLists.txt @@ -31,6 +31,7 @@ OPTION(ENABLE_I18N "Turns on internationalisation" OFF) OPTION(ENABLE_COVERAGE "Coverage" OFF) OPTION(ENABLE_PKG_CONFIGURE "Use pkgconfig" ON) OPTION(ENABLE_LINK_TEST "Enable the link test" ON) +OPTION(ENABLE_VULKAN "Enable Vulkan instead of GLES" OFF) OPTION(INSTALL_DOXYGEN_DOC "Install doxygen doc" ON) OPTION(CONFIGURE_AUTOMATED_TESTS "Configure automated tests" ON) OPTION(USE_DEFAULT_RESOURCE_DIR "Whether to use the default resource folders. Otherwise set environment variables for DALI_IMAGE_DIR, DALI_SOUND_DIR, DALI_STYLE_DIR, DALI_STYLE_IMAGE_DIR and DALI_DATA_READ_ONLY_DIR" ON) @@ -359,6 +360,13 @@ IF ( WIN32 ) FIND_PACKAGE( pthreads REQUIRED ) ENDIF() +IF( NOT ENABLE_VULKAN) + SET(SOURCES ${SOURCES} + ${toolkit_internal_egl_src_files} + ${public_api_egl_src_files} + ) +ENDIF() + ADD_LIBRARY( ${name} ${LIBTYPE} ${SOURCES} ) SET(CUSTOM_COMPILE_OPTIONS "") @@ -640,6 +648,7 @@ MESSAGE( STATUS "Debug build: " ${ENABLE_DEBUG} ) MESSAGE( STATUS "Export all symbols: " ${ENABLE_EXPORTALL} ) MESSAGE( STATUS "Coverage: " ${ENABLE_COVERAGE} ) MESSAGE( STATUS "Trace: " ${ENABLE_TRACE} ) +MESSAGE( STATUS "Vulkan: " ${ENABLE_VULKAN} ) MESSAGE( STATUS "Doxygen: " ${doxygenEnabled} ) MESSAGE( STATUS "Data Dir (Read/Write): " ${dataReadWriteDir} ) MESSAGE( STATUS "Data Dir (Read Only): " ${dataReadOnlyDir} ) diff --git a/dali-toolkit/internal/file.list b/dali-toolkit/internal/file.list index e20bddd126..661ccaedc7 100644 --- a/dali-toolkit/internal/file.list +++ b/dali-toolkit/internal/file.list @@ -129,10 +129,6 @@ SET( toolkit_src_files ${toolkit_src_dir}/controls/video-view/video-view-impl.cpp ${toolkit_src_dir}/controls/web-view/web-view-impl.cpp ${toolkit_src_dir}/controls/camera-view/camera-view-impl.cpp - ${toolkit_src_dir}/controls/gl-view/drawable-view-impl.cpp - ${toolkit_src_dir}/controls/gl-view/drawable-view-native-renderer.cpp - ${toolkit_src_dir}/controls/gl-view/gl-view-impl.cpp - ${toolkit_src_dir}/controls/gl-view/gl-view-render-thread.cpp ${toolkit_src_dir}/accessibility-manager/accessibility-manager-impl.cpp ${toolkit_src_dir}/feedback/feedback-style.cpp ${toolkit_src_dir}/focus-manager/keyboard-focus-manager-impl.cpp @@ -255,6 +251,13 @@ SET( toolkit_src_files ${toolkit_src_dir}/text/text-geometry.cpp ) +SET(toolkit_internal_egl_src_files + ${toolkit_src_dir}/controls/gl-view/drawable-view-impl.cpp + ${toolkit_src_dir}/controls/gl-view/drawable-view-native-renderer.cpp + ${toolkit_src_dir}/controls/gl-view/gl-view-impl.cpp + ${toolkit_src_dir}/controls/gl-view/gl-view-render-thread.cpp +) + SET( SOURCES ${SOURCES} ${toolkit_src_files} ) diff --git a/dali-toolkit/public-api/file.list b/dali-toolkit/public-api/file.list index 6da20124df..0a69c83c3e 100644 --- a/dali-toolkit/public-api/file.list +++ b/dali-toolkit/public-api/file.list @@ -29,7 +29,6 @@ SET( public_api_src_files ${public_api_src_dir}/controls/text-controls/text-field.cpp ${public_api_src_dir}/controls/video-view/video-view.cpp ${public_api_src_dir}/controls/camera-view/camera-view.cpp - ${public_api_src_dir}/controls/gl-view/gl-view.cpp ${public_api_src_dir}/image-loader/image.cpp ${public_api_src_dir}/image-loader/image-url.cpp ${public_api_src_dir}/image-loader/async-image-loader.cpp @@ -53,6 +52,10 @@ SET( public_api_src_files ${public_api_src_dir}/enums.cpp ) +SET(public_api_egl_src_files + ${public_api_src_dir}/controls/gl-view/gl-view.cpp +) + # Add public header files here SET( public_api_header_files ${public_api_src_dir}/dali-toolkit-version.h