|
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.7.1 |
| 4 | + VERSION 2.8.0 |
5 | 5 | LANGUAGES C |
6 | 6 | DESCRIPTION "Fast neofetch-like system information tool" |
7 | 7 | HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch" |
@@ -42,7 +42,6 @@ include(CheckIncludeFile) |
42 | 42 |
|
43 | 43 | include(CMakeDependentOption) |
44 | 44 |
|
45 | | -cmake_dependent_option(ENABLE_LIBPCI "Enable libpci" ON "LINUX OR BSD" OFF) |
46 | 45 | cmake_dependent_option(ENABLE_VULKAN "Enable vulkan" ON "LINUX OR APPLE OR BSD OR WIN32 OR ANDROID" OFF) |
47 | 46 | cmake_dependent_option(ENABLE_WAYLAND "Enable wayland-client" ON "LINUX OR BSD" OFF) |
48 | 47 | cmake_dependent_option(ENABLE_XCB_RANDR "Enable xcb-randr" ON "LINUX OR BSD" OFF) |
@@ -70,7 +69,6 @@ cmake_dependent_option(ENABLE_PULSE "Enable pulse" ON "LINUX" OFF) |
70 | 69 | cmake_dependent_option(ENABLE_DDCUTIL "Enable ddcutil" ON "LINUX" OFF) |
71 | 70 | cmake_dependent_option(ENABLE_DIRECTX_HEADERS "Enable DirectX headers for WSL" ON "LINUX" OFF) |
72 | 71 | cmake_dependent_option(ENABLE_THREADS "Enable multithreading" ON "Threads_FOUND" OFF) |
73 | | -cmake_dependent_option(ENABLE_PCI_MEMORY "Enable detecting GPU memory size with libpci" OFF "LINUX OR BSD" OFF) |
74 | 72 |
|
75 | 73 | option(ENABLE_SYSTEM_YYJSON "Use system provided (instead of fastfetch embedded) yyjson library" OFF) |
76 | 74 | option(ENABLE_ASAN "Build fastfetch with ASAN (address sanitizer)" OFF) |
@@ -310,6 +308,7 @@ set(LIBFASTFETCH_SRC |
310 | 308 | src/modules/board/board.c |
311 | 309 | src/modules/brightness/brightness.c |
312 | 310 | src/modules/break/break.c |
| 311 | + src/modules/camera/camera.c |
313 | 312 | src/modules/chassis/chassis.c |
314 | 313 | src/modules/colors/colors.c |
315 | 314 | src/modules/cpu/cpu.c |
@@ -434,6 +433,7 @@ if(LINUX) |
434 | 433 | src/detection/wm/wm_nosupport.c |
435 | 434 | src/detection/de/de_linux.c |
436 | 435 | src/detection/wmtheme/wmtheme_linux.c |
| 436 | + src/detection/camera/camera_linux.c |
437 | 437 | src/util/platform/FFPlatform_unix.c |
438 | 438 | ) |
439 | 439 | elseif(ANDROID) |
@@ -487,6 +487,7 @@ elseif(ANDROID) |
487 | 487 | src/detection/wm/wm_nosupport.c |
488 | 488 | src/detection/de/de_nosupport.c |
489 | 489 | src/detection/wmtheme/wmtheme_nosupport.c |
| 490 | + src/detection/camera/camera_android.c |
490 | 491 | src/util/platform/FFPlatform_unix.c |
491 | 492 | ) |
492 | 493 | elseif(BSD) |
@@ -549,6 +550,7 @@ elseif(BSD) |
549 | 550 | src/detection/wm/wm_nosupport.c |
550 | 551 | src/detection/de/de_linux.c |
551 | 552 | src/detection/wmtheme/wmtheme_linux.c |
| 553 | + src/detection/camera/camera_linux.c |
552 | 554 | src/util/platform/FFPlatform_unix.c |
553 | 555 | ) |
554 | 556 | elseif(APPLE) |
@@ -604,6 +606,7 @@ elseif(APPLE) |
604 | 606 | src/detection/wm/wm_apple.c |
605 | 607 | src/detection/de/de_nosupport.c |
606 | 608 | src/detection/wmtheme/wmtheme_apple.m |
| 609 | + src/detection/camera/camera_apple.m |
607 | 610 | src/util/apple/cf_helpers.c |
608 | 611 | src/util/apple/osascript.m |
609 | 612 | src/util/platform/FFPlatform_unix.c |
@@ -659,6 +662,7 @@ elseif(WIN32) |
659 | 662 | src/detection/wm/wm_windows.cpp |
660 | 663 | src/detection/de/de_nosupport.c |
661 | 664 | src/detection/wmtheme/wmtheme_windows.c |
| 665 | + src/detection/camera/camera_windows.cpp |
662 | 666 | src/util/windows/getline.c |
663 | 667 | src/util/windows/com.cpp |
664 | 668 | src/util/windows/registry.c |
@@ -792,10 +796,6 @@ function(ff_lib_enable VARNAME PKGCONFIG_NAMES CMAKE_NAME) |
792 | 796 | endforeach() |
793 | 797 | endfunction() |
794 | 798 |
|
795 | | -ff_lib_enable(LIBPCI |
796 | | - "libpci" |
797 | | - "Pci" |
798 | | -) |
799 | 799 | ff_lib_enable(VULKAN |
800 | 800 | "vulkan" |
801 | 801 | "Vulkan" |
@@ -918,9 +918,11 @@ if(LINUX) |
918 | 918 | ) |
919 | 919 | elseif(APPLE) |
920 | 920 | target_link_libraries(libfastfetch |
| 921 | + PRIVATE "-framework AVFoundation" |
921 | 922 | PRIVATE "-framework Cocoa" |
922 | 923 | PRIVATE "-framework CoreFoundation" |
923 | 924 | PRIVATE "-framework CoreAudio" |
| 925 | + PRIVATE "-framework CoreMedia" |
924 | 926 | PRIVATE "-framework CoreVideo" |
925 | 927 | PRIVATE "-framework CoreWLAN" |
926 | 928 | PRIVATE "-framework IOBluetooth" |
|
0 commit comments