|
1 | 1 | cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url |
2 | 2 |
|
3 | 3 | project(fastfetch |
4 | | - VERSION 2.21.3 |
| 4 | + VERSION 2.22.0 |
5 | 5 | LANGUAGES C |
6 | 6 | DESCRIPTION "Fast neofetch-like system information tool" |
7 | 7 | HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch" |
@@ -69,7 +69,7 @@ cmake_dependent_option(ENABLE_FREETYPE "Enable freetype" ON "ANDROID" OFF) |
69 | 69 | cmake_dependent_option(ENABLE_PULSE "Enable pulse" ON "LINUX OR SunOS" OFF) |
70 | 70 | cmake_dependent_option(ENABLE_DDCUTIL "Enable ddcutil" ON "LINUX" OFF) |
71 | 71 | cmake_dependent_option(ENABLE_DIRECTX_HEADERS "Enable DirectX headers for WSL" ON "LINUX" OFF) |
72 | | -cmake_dependent_option(ENABLE_ELF "Enable libelf" ON "LINUX OR FreeBSD OR SunOS" OFF) |
| 72 | +cmake_dependent_option(ENABLE_ELF "Enable libelf" ON "LINUX OR FreeBSD OR ANDROID" OFF) |
73 | 73 | cmake_dependent_option(ENABLE_THREADS "Enable multithreading" ON "Threads_FOUND" OFF) |
74 | 74 |
|
75 | 75 | option(ENABLE_SYSTEM_YYJSON "Use system provided (instead of fastfetch embedded) yyjson library" OFF) |
@@ -401,6 +401,7 @@ set(LIBFASTFETCH_SRC |
401 | 401 | src/util/base64.c |
402 | 402 | src/util/FFlist.c |
403 | 403 | src/util/FFstrbuf.c |
| 404 | + src/util/path.c |
404 | 405 | src/util/platform/FFPlatform.c |
405 | 406 | src/util/smbiosHelper.c |
406 | 407 | ) |
@@ -481,7 +482,7 @@ if(LINUX) |
481 | 482 | src/detection/wmtheme/wmtheme_linux.c |
482 | 483 | src/detection/camera/camera_linux.c |
483 | 484 | src/util/platform/FFPlatform_unix.c |
484 | | - src/util/linux/elf.c |
| 485 | + src/util/binary_linux.c |
485 | 486 | ) |
486 | 487 | elseif(ANDROID) |
487 | 488 | list(APPEND LIBFASTFETCH_SRC |
@@ -543,6 +544,7 @@ elseif(ANDROID) |
543 | 544 | src/detection/wmtheme/wmtheme_nosupport.c |
544 | 545 | src/detection/camera/camera_android.c |
545 | 546 | src/util/platform/FFPlatform_unix.c |
| 547 | + src/util/binary_linux.c |
546 | 548 | ) |
547 | 549 | elseif(FreeBSD) |
548 | 550 | list(APPEND LIBFASTFETCH_SRC |
@@ -621,7 +623,7 @@ elseif(FreeBSD) |
621 | 623 | src/detection/wmtheme/wmtheme_linux.c |
622 | 624 | src/detection/camera/camera_linux.c |
623 | 625 | src/util/platform/FFPlatform_unix.c |
624 | | - src/util/linux/elf.c |
| 626 | + src/util/binary_linux.c |
625 | 627 | ) |
626 | 628 | elseif(APPLE) |
627 | 629 | list(APPEND LIBFASTFETCH_SRC |
@@ -687,6 +689,7 @@ elseif(APPLE) |
687 | 689 | src/util/apple/cf_helpers.c |
688 | 690 | src/util/apple/osascript.m |
689 | 691 | src/util/platform/FFPlatform_unix.c |
| 692 | + src/util/binary_apple.c |
690 | 693 | ) |
691 | 694 | elseif(WIN32) |
692 | 695 | list(APPEND LIBFASTFETCH_SRC |
@@ -753,6 +756,7 @@ elseif(WIN32) |
753 | 756 | src/util/windows/unicode.c |
754 | 757 | src/util/windows/wmi.cpp |
755 | 758 | src/util/platform/FFPlatform_windows.c |
| 759 | + src/util/binary_windows.c |
756 | 760 | ) |
757 | 761 | elseif(SunOS) |
758 | 762 | list(APPEND LIBFASTFETCH_SRC |
@@ -829,7 +833,7 @@ elseif(SunOS) |
829 | 833 | src/detection/wmtheme/wmtheme_linux.c |
830 | 834 | src/detection/camera/camera_nosupport.c |
831 | 835 | src/util/platform/FFPlatform_unix.c |
832 | | - src/util/linux/elf.c |
| 836 | + src/util/binary_linux.c |
833 | 837 | ) |
834 | 838 | endif() |
835 | 839 |
|
@@ -1135,6 +1139,7 @@ elseif(WIN32) |
1135 | 1139 | PRIVATE "setupapi" |
1136 | 1140 | PRIVATE "hid" |
1137 | 1141 | PRIVATE "wtsapi32" |
| 1142 | + PRIVATE "imagehlp" |
1138 | 1143 | ) |
1139 | 1144 | elseif(FreeBSD) |
1140 | 1145 | target_link_libraries(libfastfetch |
@@ -1332,6 +1337,12 @@ install( |
1332 | 1337 | RENAME "${CMAKE_PROJECT_NAME}" |
1333 | 1338 | ) |
1334 | 1339 |
|
| 1340 | +install( |
| 1341 | + FILES "${CMAKE_SOURCE_DIR}/completions/${CMAKE_PROJECT_NAME}.zsh" |
| 1342 | + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/zsh/site-functions" |
| 1343 | + RENAME "_${CMAKE_PROJECT_NAME}" |
| 1344 | +) |
| 1345 | + |
1335 | 1346 | install( |
1336 | 1347 | FILES "${CMAKE_SOURCE_DIR}/completions/${CMAKE_PROJECT_NAME}.fish" |
1337 | 1348 | DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/fish/vendor_completions.d" |
|
0 commit comments