-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VxWorks vivante graphics toolchain file
Change-Id: I74a5d2bce37e895ce16f911d56bf24f77a73dab5 Reviewed-by: Alexandru Croitor <[email protected]> Reviewed-by: Karim Pinter <[email protected]>
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
coin/provisioning/common/linux/cmake_toolchain_files/vxworks_toolchain.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Copyright (C) 2024 The Qt Company Ltd. | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
if(QT_VXWORKS_TOOLCHAIN_FILE) | ||
set(_original_toolchain_file "${QT_VXWORKS_TOOLCHAIN_FILE}") | ||
elseif(DEFINED ENV{QT_VXWORKS_TOOLCHAIN_FILE}) | ||
set(_original_toolchain_file "$ENV{QT_VXWORKS_TOOLCHAIN_FILE}") | ||
else() | ||
message(FATAL_ERROR "QT_VXWORKS_TOOLCHAIN_FILE is not set.") | ||
endif() | ||
|
||
if(NOT EXISTS "${_original_toolchain_file}") | ||
message(FATAL_ERORR "${_original_toolchain_file} doesn't exists.") | ||
endif() | ||
|
||
include("${_original_toolchain_file}") | ||
unset(_original_toolchain_file) | ||
|
||
list(APPEND CMAKE_TRY_COMPILE_PLATFORM_VARIABLES QT_VXWORKS_TOOLCHAIN_FILE) | ||
|
||
set(_common_lib_path "${CMAKE_SYSROOT}/usr/lib/common") | ||
set(EGL_INCLUDE_DIR ${CMAKE_SYSROOT}/usr/h/public CACHE PATH "Path to EGL include directory" FORCE) | ||
set(EGL_LIBRARY ${_common_lib_path}/libgfxFslVivEGL.so CACHE PATH "Path to EGL lib" FORCE) | ||
set(GLESv2_INCLUDE_DIR ${CMAKE_SYSROOT}/usr/h/public CACHE PATH "Path to GLES include directory" FORCE) | ||
set(GLESv2_LIBRARY ${_common_lib_path}/libgfxFslVivGLESv2.so CACHE PATH "Path to GLES lib" FORCE) | ||
|
||
set(VxWorksPlatformGraphics_DEFINES "-D_FSLVIV") | ||
set(VxWorksPlatformGraphics_LIBRARIES_PACK | ||
"${_common_lib_path}/libgfxFslVivGAL.so" | ||
"${_common_lib_path}/libgfxFslVivGLSLC.so" | ||
"${_common_lib_path}/libgfxFslVivVDK.so" | ||
"${_common_lib_path}/libxml.so" | ||
) | ||
|
||
set(VxWorksPlatformGraphics_REQUIRED_LIBRARIES | ||
${VxWorksPlatformGraphics_LIBRARIES_PACK} | ||
${EGL_LIBRARY} | ||
${GLESv2_LIBRARY} | ||
) | ||
unset(_common_lib_path) |