File tree Expand file tree Collapse file tree 12 files changed +39
-20
lines changed Expand file tree Collapse file tree 12 files changed +39
-20
lines changed Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ if(WITH_COVERAGE)
467
467
append_coverage_compiler_flags ()
468
468
469
469
set (COVERAGE_EXCLUDES
470
- "'^(.+/)?( thirdparty|zxcvbn) /.*'"
470
+ "'^(.+/)?thirdparty/.*'"
471
471
"'^(.+/)?main\\ .cpp$$'"
472
472
"'^(.+/)?cli/keepassxc-cli\\ .cpp$$'"
473
473
"'^(.+/)?proxy/keepassxc-proxy\\ .cpp$$'" )
@@ -613,6 +613,12 @@ endif()
613
613
614
614
include_directories (SYSTEM ${ZLIB_INCLUDE_DIR} )
615
615
616
+ find_library (ZXCVBN_LIBRARIES zxcvbn )
617
+ if (NOT ZXCVBN_LIBRARIES )
618
+ add_subdirectory (src/thirdparty/zxcvbn )
619
+ set (ZXCVBN_LIBRARIES zxcvbn )
620
+ endif (NOT ZXCVBN_LIBRARIES )
621
+
616
622
add_subdirectory (src )
617
623
add_subdirectory (share )
618
624
if (WITH_TESTS )
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ Files: src/streams/qtiocompressor.*
249
249
Copyright: 2009-2012, Nokia Corporation and/or its subsidiary(-ies)
250
250
License: LGPL-2.1 or GPL-3
251
251
252
- Files: src/zxcvbn/zxcvbn.*
252
+ Files: src/thirdparty/ zxcvbn/zxcvbn.*
253
253
Copyright: 2015-2017, Tony Evans
254
254
License: MIT
255
255
Original file line number Diff line number Diff line change 16
16
set (EXCLUDED_DIRS
17
17
# third-party directories
18
18
src/thirdparty
19
- src/zxcvbn
20
19
# objective-c directories
21
20
src/touchid
22
21
src/autotype/mac
Original file line number Diff line number Diff line change
1
+ codecov :
2
+ require_ci_to_pass : false
1
3
coverage :
2
4
range : 60..80
3
5
round : nearest
4
6
precision : 2
7
+ status :
8
+ project :
9
+ default :
10
+ target : auto
11
+ threshold : 0.5%
12
+ paths :
13
+ - " src"
14
+ patch :
15
+ default :
16
+ target : 50%
17
+ threshold : 0%
18
+ informational : true
19
+ paths :
20
+ - " src"
5
21
fixes :
6
22
- " */src/::"
23
+ ignore :
24
+ - " src/gui/styles/**"
25
+ - " src/thirdparty/**"
7
26
comment :
8
27
require_changes : true
Original file line number Diff line number Diff line change 16
16
17
17
include_directories (${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
18
18
19
- find_library (ZXCVBN_LIBRARIES zxcvbn )
20
- if (NOT ZXCVBN_LIBRARIES )
21
- add_library (zxcvbn STATIC zxcvbn/zxcvbn.c )
22
- # Disable error-level shadow issues
23
- if (CC_HAS_Wshadow_compatible_local )
24
- set_property (SOURCE zxcvbn/zxcvbn.c APPEND PROPERTY COMPILE_OPTIONS "-Wno-shadow-compatible-local" )
25
- endif ()
26
- if (CC_HAS_Wshadow_local )
27
- set_property (SOURCE zxcvbn/zxcvbn.c APPEND PROPERTY COMPILE_OPTIONS "-Wno-shadow-local" )
28
- endif ()
29
- include_directories (${CMAKE_CURRENT_SOURCE_DIR} /zxcvbn )
30
- set (ZXCVBN_LIBRARIES zxcvbn )
31
- endif (NOT ZXCVBN_LIBRARIES )
32
-
33
19
set (keepassx_SOURCES
34
20
core/Alloc.cpp
35
21
core/AutoTypeAssociations.cpp
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ set(cli_SOURCES
45
45
Show.cpp )
46
46
47
47
add_library (cli STATIC ${cli_SOURCES} )
48
- target_link_libraries (cli Qt5::Core )
48
+ target_link_libraries (cli ${ZXCVBN_LIBRARIES} Qt5::Core )
49
49
50
50
find_package (Readline )
51
51
Original file line number Diff line number Diff line change
1
+ add_library (zxcvbn STATIC zxcvbn.c )
2
+ # Disable error-level shadow issues
3
+ if (CC_HAS_Wshadow_compatible_local )
4
+ set_property (SOURCE zxcvbn.c APPEND PROPERTY COMPILE_OPTIONS "-Wno-shadow-compatible-local" )
5
+ endif ()
6
+ if (CC_HAS_Wshadow_local )
7
+ set_property (SOURCE zxcvbn.c APPEND PROPERTY COMPILE_OPTIONS "-Wno-shadow-local" )
8
+ endif ()
9
+ target_include_directories (zxcvbn PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments