support ProcFolderBegin/ProcFolderEnd in Windows platform.
This commit is contained in:
parent
7bceaf2f9c
commit
a3e0cb4330
@ -5,25 +5,25 @@ project(CMPlatform)
|
|||||||
include(path_config.cmake)
|
include(path_config.cmake)
|
||||||
CMPlatformSetup(${CMAKE_CURRENT_SOURCE_DIR})
|
CMPlatformSetup(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
OPTION(BUILD_QT5_SUPPORT_LIB OFF)
|
OPTION(BUILD_QT_SUPPORT_LIB OFF)
|
||||||
|
|
||||||
IF(BUILD_QT5_SUPPORT_LIB)
|
IF(BUILD_QT_SUPPORT_LIB)
|
||||||
|
|
||||||
add_definitions("-DHGL_QT5")
|
add_definitions("-DHGL_QT6")
|
||||||
|
|
||||||
set(QT_MIN_VERSION "5.14.0")
|
set(QT_MIN_VERSION "6.0.0")
|
||||||
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core)
|
find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core)
|
||||||
|
|
||||||
include_directories(${Qt5Core_INCLUDES})
|
include_directories(${Qt6Core_INCLUDES})
|
||||||
add_definitions(${Qt5Core_DEFINITIONS})
|
add_definitions(${Qt6Core_DEFINITIONS})
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
SET(HGL_QT_MAIN_SOURCE ${CMPLATFORM_ROOT_SOURCE_PATH}/src/QT/QT5WinUCS2.cpp)
|
SET(HGL_QT_MAIN_SOURCE ${CMPLATFORM_ROOT_SOURCE_PATH}/src/QT/QTWinUCS2.cpp)
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(HGL_QT_MAIN_SOURCE ${CMPLATFORM_ROOT_SOURCE_PATH}/src/QT/QT5UnixUTF8.cpp)
|
SET(HGL_QT_MAIN_SOURCE ${CMPLATFORM_ROOT_SOURCE_PATH}/src/QT/QTUnixUTF8.cpp)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
SET(HGL_QT_LIB CM.QT5Support)
|
SET(HGL_QT_LIB CM.QT6Support)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
add_subdirectory(${CMPLATFORM_ROOT_SOURCE_PATH})
|
add_subdirectory(${CMPLATFORM_ROOT_SOURCE_PATH})
|
||||||
|
@ -104,11 +104,13 @@ namespace hgl
|
|||||||
|
|
||||||
if(sub_efc&&config->sub_folder)
|
if(sub_efc&&config->sub_folder)
|
||||||
{
|
{
|
||||||
|
ProcFolderBegin(config,sub_efc,fi);
|
||||||
|
|
||||||
sub_count=this->Enum(sub_efc);
|
sub_count=this->Enum(sub_efc);
|
||||||
if(sub_count>0)count+=sub_count;
|
if(sub_count>0)count+=sub_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
ProcFolder(config,sub_efc,fi);
|
ProcFolderEnd(config,sub_efc,fi);
|
||||||
|
|
||||||
if(sub_efc)
|
if(sub_efc)
|
||||||
delete sub_efc;
|
delete sub_efc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user