|
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.33.0 |
| 4 | + VERSION 2.34.0 |
5 | 5 | LANGUAGES C |
6 | 6 | DESCRIPTION "Fast neofetch-like system information tool" |
7 | 7 | HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch" |
@@ -70,8 +70,8 @@ cmake_dependent_option(ENABLE_IMAGEMAGICK7 "Enable imagemagick 7" ON "LINUX OR F |
70 | 70 | cmake_dependent_option(ENABLE_IMAGEMAGICK6 "Enable imagemagick 6" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR APPLE OR SunOS" OFF) |
71 | 71 | cmake_dependent_option(ENABLE_CHAFA "Enable chafa" ON "ENABLE_IMAGEMAGICK6 OR ENABLE_IMAGEMAGICK7" OFF) |
72 | 72 | cmake_dependent_option(ENABLE_ZLIB "Enable zlib" ON "ENABLE_IMAGEMAGICK6 OR ENABLE_IMAGEMAGICK7" OFF) |
73 | | -cmake_dependent_option(ENABLE_EGL "Enable egl" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR WIN32 OR SunOS" OFF) |
74 | | -cmake_dependent_option(ENABLE_GLX "Enable glx" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR SunOS" OFF) |
| 73 | +cmake_dependent_option(ENABLE_EGL "Enable egl" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR ANDROID OR WIN32 OR SunOS" OFF) |
| 74 | +cmake_dependent_option(ENABLE_GLX "Enable glx" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR ANDROID OR SunOS" OFF) |
75 | 75 | cmake_dependent_option(ENABLE_OSMESA "Enable osmesa" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR SunOS" OFF) |
76 | 76 | cmake_dependent_option(ENABLE_OPENCL "Enable opencl" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR WIN32 OR ANDROID OR SunOS" OFF) |
77 | 77 | cmake_dependent_option(ENABLE_FREETYPE "Enable freetype" ON "ANDROID" OFF) |
@@ -534,7 +534,7 @@ if(LINUX) |
534 | 534 | src/detection/users/users_linux.c |
535 | 535 | src/detection/wallpaper/wallpaper_linux.c |
536 | 536 | src/detection/wifi/wifi_linux.c |
537 | | - src/detection/wm/wm_nosupport.c |
| 537 | + src/detection/wm/wm_linux.c |
538 | 538 | src/detection/de/de_linux.c |
539 | 539 | src/detection/wmtheme/wmtheme_linux.c |
540 | 540 | src/detection/camera/camera_linux.c |
@@ -617,7 +617,6 @@ elseif(FreeBSD) |
617 | 617 | src/common/sysctl.c |
618 | 618 | src/detection/battery/battery_bsd.c |
619 | 619 | src/detection/bios/bios_bsd.c |
620 | | - src/detection/bluetooth/bluetooth_nosupport.c |
621 | 620 | src/detection/bluetoothradio/bluetoothradio_nosupport.c |
622 | 621 | src/detection/board/board_bsd.c |
623 | 622 | src/detection/bootmgr/bootmgr_bsd.c |
@@ -690,6 +689,15 @@ elseif(FreeBSD) |
690 | 689 | src/util/platform/FFPlatform_unix.c |
691 | 690 | src/util/binary_linux.c |
692 | 691 | ) |
| 692 | + if(DragonFly) |
| 693 | + list(APPEND LIBFASTFETCH_SRC |
| 694 | + src/detection/bluetooth/bluetooth_nosupport.c |
| 695 | + ) |
| 696 | + else() |
| 697 | + list(APPEND LIBFASTFETCH_SRC |
| 698 | + src/detection/bluetooth/bluetooth_bsd.c |
| 699 | + ) |
| 700 | + endif() |
693 | 701 | elseif(NetBSD) |
694 | 702 | list(APPEND LIBFASTFETCH_SRC |
695 | 703 | src/common/dbus.c |
@@ -914,7 +922,7 @@ elseif(APPLE) |
914 | 922 | src/detection/users/users_linux.c |
915 | 923 | src/detection/wallpaper/wallpaper_apple.m |
916 | 924 | src/detection/wifi/wifi_apple.m |
917 | | - src/detection/wm/wm_apple.c |
| 925 | + src/detection/wm/wm_apple.m |
918 | 926 | src/detection/de/de_nosupport.c |
919 | 927 | src/detection/wmtheme/wmtheme_apple.m |
920 | 928 | src/detection/camera/camera_apple.m |
@@ -995,6 +1003,7 @@ elseif(WIN32) |
995 | 1003 | src/util/windows/registry.c |
996 | 1004 | src/util/windows/unicode.c |
997 | 1005 | src/util/windows/wmi.cpp |
| 1006 | + src/util/windows/version.c |
998 | 1007 | src/util/platform/FFPlatform_windows.c |
999 | 1008 | src/util/binary_windows.c |
1000 | 1009 | ) |
@@ -1133,6 +1142,14 @@ else() |
1133 | 1142 | endif() |
1134 | 1143 | endif() |
1135 | 1144 |
|
| 1145 | +if(ANDROID) |
| 1146 | + if(CMAKE_SIZEOF_VOID_P EQUAL 8) |
| 1147 | + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,/vendor/lib64 -Wl,-rpath,/system/lib64") |
| 1148 | + else() |
| 1149 | + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,/vendor/lib -Wl,-rpath,/system/lib") |
| 1150 | + endif() |
| 1151 | +endif() |
| 1152 | + |
1136 | 1153 | if(LINUX AND EXISTS "/lib/ld-musl-${CMAKE_HOST_SYSTEM_PROCESSOR}.so.1") |
1137 | 1154 | execute_process(COMMAND "/lib/ld-musl-${CMAKE_HOST_SYSTEM_PROCESSOR}.so.1" |
1138 | 1155 | ERROR_VARIABLE LD_MUSL_RESULT) |
@@ -1468,6 +1485,7 @@ elseif(FreeBSD) |
1468 | 1485 | target_link_libraries(libfastfetch |
1469 | 1486 | PRIVATE "m" |
1470 | 1487 | PRIVATE "usbhid" |
| 1488 | + PRIVATE "bluetooth" |
1471 | 1489 | ) |
1472 | 1490 | if(NOT DragonFly) |
1473 | 1491 | target_link_libraries(libfastfetch |
|
0 commit comments