File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ project(core)
44
55if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "mips64" )
66 add_definitions (-DUNSUPPORTPLATFORM )
7+ message (STATUS "Skipping WebEngineWidgets for mips64 platform." )
8+ else ()
9+ find_package (Qt${QT_VERSION_MAJOR} COMPONENTS WebEngineWidgets REQUIRED )
10+ target_link_libraries (${PROJECT_NAME} Qt${QT_VERSION_MAJOR}::WebEngineWidgets )
711endif ()
812
913FILE (GLOB_RECURSE PROJECT_SOURCES
@@ -30,12 +34,4 @@ target_link_libraries(${PROJECT_NAME}
3034 ${DtkWidget_LIBRARIES}
3135 )
3236
33- if (NOT ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "loongarch64" )
34- # loogarch not support web engine now, maybe remove this condition later.
35- find_package (Qt${QT_VERSION_MAJOR} COMPONENTS WebEngineWidgets REQUIRED )
36- target_link_libraries (${PROJECT_NAME} Qt${QT_VERSION_MAJOR}::WebEngineWidgets )
37- else ()
38- message (STATUS "Skipping WebEngineWidgets for loongarch64 platform." )
39- endif ()
40-
4137install (TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${PLUGIN_INSTALL_PATH} )
You can’t perform that action at this time.
0 commit comments