mirror of
https://github.com/KDE/kasts.git
synced 2024-12-20 12:43:19 +01:00
Don't try to use clang-format on android at all
This commit is contained in:
parent
214394aae7
commit
02d78b2f32
@ -24,11 +24,12 @@ include(ECMSetupVersion)
|
|||||||
include(ECMQtDeclareLoggingCategory)
|
include(ECMQtDeclareLoggingCategory)
|
||||||
include(ECMGenerateExportHeader)
|
include(ECMGenerateExportHeader)
|
||||||
include(KDEInstallDirs)
|
include(KDEInstallDirs)
|
||||||
include(KDEClangFormat)
|
|
||||||
include(KDEGitCommitHooks)
|
include(KDEGitCommitHooks)
|
||||||
include(KDECMakeSettings)
|
include(KDECMakeSettings)
|
||||||
include(KDECompilerSettings NO_POLICY_SCOPE)
|
include(KDECompilerSettings NO_POLICY_SCOPE)
|
||||||
|
if(NOT ANDROID)
|
||||||
|
include(KDEClangFormat)
|
||||||
|
endif()
|
||||||
|
|
||||||
ecm_setup_version(${PROJECT_VERSION}
|
ecm_setup_version(${PROJECT_VERSION}
|
||||||
VARIABLE_PREFIX KASTS
|
VARIABLE_PREFIX KASTS
|
||||||
@ -73,10 +74,10 @@ add_subdirectory(src)
|
|||||||
|
|
||||||
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||||
|
|
||||||
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES src/*.cpp src/*.h)
|
|
||||||
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
|
|
||||||
|
|
||||||
if (NOT ANDROID)
|
if (NOT ANDROID)
|
||||||
# inside if-statement to work around problems with gitlab Android CI
|
# inside if-statement to work around problems with gitlab Android CI
|
||||||
|
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES src/*.cpp src/*.h)
|
||||||
|
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
|
||||||
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
|
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user