Skip to content

Commit

Permalink
cmake EGL stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Dec 29, 2024
1 parent 9669e7a commit d6e5ad4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ include(friction-ffmpeg)
add_definitions(-DPROJECT_VERSION="${PROJECT_VERSION}")

if(${LINUX_DEPLOY})
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
set(CMAKE_INSTALL_RPATH "$ORIGIN/../lib")
endif()

Expand Down
7 changes: 7 additions & 0 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ add_definitions(-DPROJECT_BRANCH="${GIT_BRANCH}")

add_definitions(-DCORE_LIBRARY)

if(UNIX AND NOT APPLE)
option(USE_EGL "Use EGL" OFF)
if(${USE_EGL})
add_definitions(-DFRICTION_EGL)
endif()
endif()

include_directories(
#${QUAZIP_INCLUDE_DIRS}
${FFMPEG_INCLUDE_DIRS}
Expand Down
2 changes: 1 addition & 1 deletion src/core/appsupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ void AppSupport::initEnv(const bool &isRenderer)
if (registry.value("AppsUseLightTheme", 0).toInt() == 0) { qputenv("QT_QPA_PLATFORM", "windows:darkmode=1"); }
#endif
#elif defined(Q_OS_LINUX)
#ifdef PROJECT_OFFICIAL
#ifndef FRICTION_EGL
qputenv("QT_QPA_PLATFORM", "xcb");
#endif
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ option(MAC_DEPLOY "Mac Deploy" OFF)
option(SYNC_SKIA_DEPS "Sync third-party depends" ON)

if(UNIX AND NOT APPLE)
option(USE_EGL "Use EGL in skia" OFF)
option(USE_EGL "Use EGL" OFF)
endif()

set(SKIA_SRC "${CMAKE_CURRENT_SOURCE_DIR}/skia")
Expand Down

0 comments on commit d6e5ad4

Please sign in to comment.