From 552bff5e5663b522bffdfc484867e42585356374 Mon Sep 17 00:00:00 2001 From: houzh Date: Tue, 12 Sep 2023 23:03:08 +0800 Subject: [PATCH] fix x64/sigma portins's makefile --- src/porting/sigma/CMakeLists.txt | 2 +- src/porting/x64/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/porting/sigma/CMakeLists.txt b/src/porting/sigma/CMakeLists.txt index b3e2b1c2..3dfe521c 100755 --- a/src/porting/sigma/CMakeLists.txt +++ b/src/porting/sigma/CMakeLists.txt @@ -57,7 +57,7 @@ set(NONPKG_LIBS "-L${PROJECT_SOURCE_DIR}/libs -lmi_common -lmi_sys -lmi_gfx \ configure_file(cdroidhal.pc.in cdroidhal.pc @ONLY) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cdroidhal.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) -add_library(tvhal SHARED ${SIGMA_SRCS} ) +add_library(tvhal SHARED ${SIGMA_SRCS} graph_gfx.c) target_link_libraries(tvhal ${SIGMA_LIBS}) file(GLOB MILIBS ${PROJECT_SOURCE_DIR}/libs/*.so) install (TARGETS ${SIGMATARGET} DESTINATION lib) diff --git a/src/porting/x64/CMakeLists.txt b/src/porting/x64/CMakeLists.txt index f6b6bb6a..5b51cfbd 100644 --- a/src/porting/x64/CMakeLists.txt +++ b/src/porting/x64/CMakeLists.txt @@ -77,8 +77,8 @@ include_directories(./ ${X64_INCLUDE_DIRS} ) message("CMAKE_SOURCE_DIR=${CMAKE_SOURCE_DIR} GRAPH_SRCS=${GRAPH_SRCS}") -add_library(tvhal SHARED ${X64_SRCS} ${GRAPH_SRCS}) -target_link_libraries(tvhal PRIVATE ${X64_LIBRARIES}) +add_library(tvhal SHARED ${X64_SRCS} ../common/graph_xlib.c) +target_link_libraries(tvhal PRIVATE ${X11_LIBRARIES}) set(PREFIX ${CMAKE_INSTALL_PREFIX}) set(NONPKG_LIBS "-L${CMAKE_INSTALL_PREFIX}/lib")