Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
90bb004
Merge pull request #371 from LinusDierheimer/master
LinusDierheimer Dec 31, 2022
4890cb6
RaspberryPi Logo, RaspberryPi small logo
IamNoRobot Dec 31, 2022
9f93ca8
README: document image logo support
CarterLi Jan 1, 2023
4a781d8
Logo: support raw image type
CarterLi Jan 1, 2023
8e3b628
Image: support iterm protocol with `--logo-type`
CarterLi Jan 1, 2023
39d8ebc
Logo: support `--logo-padding-top`
CarterLi Jan 1, 2023
4247d15
Fix error text typo from item to iterm
jessebot Jan 1, 2023
dcc22f3
Merge pull request #376 from jessebot/patch-1
LinusDierheimer Jan 1, 2023
34c33dd
RaspberryPi Logo, RaspberryPi small logo
IamNoRobot Jan 1, 2023
02abc07
fixed formatting error
IamNoRobot Jan 1, 2023
c069d14
Merge pull request #373 from IamNoRobot/pi-logo
LinusDierheimer Jan 1, 2023
2193fb5
Merge pull request #378 from IamNoRobot/pi-logo
LinusDierheimer Jan 1, 2023
8533dc2
Update Changelog
LinusDierheimer Jan 1, 2023
8224968
Windows: look for config files in $LOCALAPPDATA
CarterLi Jan 2, 2023
d692fe9
Windows: don't try to load config file in `/etc`
CarterLi Jan 2, 2023
ae6d921
Config: don't generate a config file silently
CarterLi Jan 2, 2023
3caa92c
macOS: looking for config files in `~/Library/Preferences`
CarterLi Jan 2, 2023
0d722eb
Config: add `--list-config-paths` option
CarterLi Jan 2, 2023
a98c71a
Config: search for user config file in the order of `configDirs`
CarterLi Jan 2, 2023
30f9bcb
TerminalFont: fix mintty terminal font detection
CarterLi Jan 3, 2023
f3db4e4
Windows: store config file in RoamingAppData instead of LocalAppData
CarterLi Jan 3, 2023
a307977
Image: don't try to read image file with `--logo none`
CarterLi Jan 3, 2023
3e2c344
Android: honor $XDG_CONFIG_HOME when loading user config file
CarterLi Jan 7, 2023
959540f
DisplayServer: support brightness detection (macOS)
CarterLi Jan 7, 2023
2621c48
DisplayServer: support brightness detection (Windows)
CarterLi Jan 7, 2023
d0bab2c
Image: fix compiler warnings (Windows)
CarterLi Jan 7, 2023
e7af38a
DisplayServer: make display brightness actually work (Windows)
CarterLi Jan 7, 2023
137039f
Initialize brightness on wayland too
LinusDierheimer Jan 7, 2023
bb57714
Use configDirs to look for fastfetch configs
LinusDierheimer Jan 7, 2023
2a092de
Detect data dirs at runtime
LinusDierheimer Jan 8, 2023
b1c0a2d
Better init of config & data dirs
LinusDierheimer Jan 8, 2023
1bbcd9a
Look for logo files in <datadir>/fastfetch/logos/ too
LinusDierheimer Jan 8, 2023
9f8e256
DisplayServer: support brightness detection (Linux)
CarterLi Jan 8, 2023
4daf301
Global: fix memleaks
CarterLi Jan 9, 2023
0b12e73
DisplayServer: make brightness detection actually work (Linux)
CarterLi Jan 9, 2023
0fd6308
Global: fix other possible bugs where enumerating directories without…
CarterLi Jan 9, 2023
012c755
macOS: try fixing #380
CarterLi Jan 9, 2023
ef18c8e
Users: remove `"wtsapi32_extend"` as mingw_w64 now officially support…
CarterLi Jan 9, 2023
5cc17bc
Add support for displaying the ISA string on RISC-V CPUs
aaronfranke Jan 8, 2023
078cb6e
fix[getNixPackagesImpl]: count line with `wc -l` instead, also fixes …
VergeDX Jan 9, 2023
599c06e
Merge pull request #384 from VergeDX/dev
CarterLi Jan 9, 2023
0aa7d64
Initial logo documentation
LinusDierheimer Jan 9, 2023
8db1534
Merge pull request #381 from aaronfranke/cpu-riscv
LinusDierheimer Jan 9, 2023
d9a022f
Brightness: add new module (macOS)
CarterLi Jan 9, 2023
85098a6
Brightness: add support for Linux
CarterLi Jan 9, 2023
476b049
Brightness: add support for Windows
CarterLi Jan 9, 2023
4cc5f35
DisplayServer: revert changes of brightness partially
CarterLi Jan 9, 2023
8f932ac
DisplayServer: fix build (Linux)
CarterLi Jan 9, 2023
d4c361a
Battery: support FreeBSD
CarterLi Jan 10, 2023
bc8a7a0
Battery: fix bug on FreeBSD
CarterLi Jan 10, 2023
af03c74
Battery: fix build on macOS
CarterLi Jan 10, 2023
7f97725
Disk: add `--disk-show-unknown` option
CarterLi Jan 10, 2023
ef2a511
TerminalShell: detect terminal version when available
CarterLi Jan 10, 2023
c636575
Title: fix computer name being trancated sometime
CarterLi Jan 10, 2023
db17f95
TerminalShell: detect Termux version
CarterLi Jan 10, 2023
8ffbae8
Windows: clarify we support Windows 7 and newer only
CarterLi Jan 10, 2023
a67ba71
Windows: fix CLANG64 build
CarterLi Jan 11, 2023
94a8e03
Windows: remove outdated comments
CarterLi Jan 11, 2023
b839305
Battery: add comments for future use (FreeBSD)
CarterLi Jan 11, 2023
ccdb5c5
Linux: enable FF_*_AUTO_DESTROY
CarterLi Jan 11, 2023
54ea9c2
TerminalFont: support WezTerm font detection
CarterLi Jan 11, 2023
b1f63ab
Global: rename FF_UNUSED_PARAM to FF_MAYBE_UNUSED since it can be use…
CarterLi Jan 11, 2023
a0acfee
TermiinalShell: code refactor
CarterLi Jan 11, 2023
76d957a
TerminalShell: support gnome-terminal version detection
CarterLi Jan 11, 2023
b2f978a
TerminalShell: support kitty version detection
CarterLi Jan 11, 2023
ee903d2
TerminalShell: support konsole version detection
CarterLi Jan 11, 2023
09ff8d3
TerminalShell: support xfce4-terminal version detection
CarterLi Jan 11, 2023
9dab23b
TerminalShell: code refactor
CarterLi Jan 11, 2023
7145f52
TerminalShell: add `--shell-version` and `--terminal-version` options…
CarterLi Jan 11, 2023
99fc4e7
TerminalShell: fix build on Windows
CarterLi Jan 11, 2023
a74f813
CHANGLOG: remove a duplicated entry
CarterLi Jan 11, 2023
84a03e8
README: clarify that fastfetch isn't written in pure C
CarterLi Jan 11, 2023
6ca3b76
Update README
CarterLi Jan 11, 2023
cd0b74b
TerminalShell: support deepin-terminal version detection
CarterLi Jan 11, 2023
eb02206
TerminalShell: support Windows Terminal version detection
CarterLi Jan 11, 2023
66ed9ad
TerminalShell: support ConEmu version detection
CarterLi Jan 11, 2023
ebfbf10
TerminalShell: support Alacritty terminal version detection
CarterLi Jan 11, 2023
c386195
TerminalFont: support Alacritty on Windows
CarterLi Jan 11, 2023
c4aa55d
TerminalFont: support WezTerm on Windows
CarterLi Jan 11, 2023
387b829
Windows: fix bug that line buffering doesn't work properly
CarterLi Jan 11, 2023
46ed8aa
TerminalFont: don't try to detecting kitty and tty fonts on Windows
CarterLi Jan 11, 2023
670cf6f
GPU selection options
LinusDierheimer Jan 12, 2023
f794053
Merge branch 'dev' of github.com:LinusDierheimer/fastfetch into dev
LinusDierheimer Jan 12, 2023
5a90d8b
Better GPU type detection
LinusDierheimer Jan 12, 2023
1a710e4
Better GPU type detection nr2
LinusDierheimer Jan 12, 2023
53c6a0e
GPU: apply GPU type selection logic to Windows
CarterLi Jan 12, 2023
2b55119
Global: support hiding other texts when printing percentage values
CarterLi Jan 12, 2023
67ab7c0
GPU: support vendor detection
CarterLi Jan 13, 2023
dcf04aa
GPU: detect type based on vendor
CarterLi Jan 13, 2023
83ea189
GPU: simplify code
CarterLi Jan 13, 2023
3cee8f5
FFlist: add new functions to make it be able to work as a queue
CarterLi Jan 13, 2023
e076097
FFlist: fix compiler warnings
CarterLi Jan 13, 2023
b739d94
Command: an attempt to add a new module which can run custom shell sc…
CarterLi Jan 13, 2023
cdff993
Windows: fix the last issue that breaks Win10-
CarterLi Jan 14, 2023
9c0fc63
Windows: with cdff99, the special build for Win7 is no longer needed.…
CarterLi Jan 14, 2023
026424a
Don't crash when uname fails
LinusDierheimer Jan 14, 2023
53430b9
Merge branch 'dev' of github.com:LinusDierheimer/fastfetch into dev
LinusDierheimer Jan 14, 2023
6e1d656
Fix budgie detection
LinusDierheimer Jan 14, 2023
8a05470
Fix build on linux
LinusDierheimer Jan 14, 2023
6ae9e0b
Merge pull request #389 from CarterLi/command
CarterLi Jan 14, 2023
f77f617
Update Support Status
LinusDierheimer Jan 14, 2023
f13a502
Update logo doc
LinusDierheimer Jan 14, 2023
b6abc6e
Update logo doc
LinusDierheimer Jan 14, 2023
27efc94
FFlist: silence compiler warnings when compiling with -m32
CarterLi Jan 14, 2023
dd77ebe
Fix GitHub code scanning alert
LinusDierheimer Jan 14, 2023
cc7724d
FFPlatform: don't use target platform as running platform
CarterLi Jan 15, 2023
a1d8e3e
Introduce FFPlatform
LinusDierheimer Jan 15, 2023
3ef3cca
First round of fixes for FFPlatform
LinusDierheimer Jan 15, 2023
7bef500
Second round of fixes for FFPlatform
LinusDierheimer Jan 15, 2023
c1d9220
Third round of fixes for FFPlatform
LinusDierheimer Jan 15, 2023
1c93d68
Wifi: add basic Linux support using `iw`
CarterLi Jan 15, 2023
d4ecbc6
FFPlatform: fix memleaks
CarterLi Jan 15, 2023
9b6dafe
Packages: fix rpm count detection
CarterLi Jan 15, 2023
52f36d2
Doc: update CHANGELOG
CarterLi Jan 15, 2023
c832c7d
Host: don't print None as product version
CarterLi Jan 14, 2023
6b41b85
Windows: fix sigfault
CarterLi Jan 15, 2023
14286e8
Fix typo
CarterLi Jan 15, 2023
ab7b057
Fix config files loading other config files
LinusDierheimer Jan 15, 2023
9a26877
FFPlatform: remove extra `/`
CarterLi Jan 16, 2023
b1ccd2e
Don't show subvolumes by default
LinusDierheimer Jan 16, 2023
a4e4e9c
Merge branch 'dev' of github.com:LinusDierheimer/fastfetch into dev
LinusDierheimer Jan 16, 2023
df793c2
Wifi: use ioctls instead of `iw` (Linux)
CarterLi Jan 16, 2023
f28805f
Wifi: detect more information using libnm (Linux)
CarterLi Jan 17, 2023
68977be
CI: build with `libnm` support; print supported features
CarterLi Jan 16, 2023
c746cde
Wifi: code refactor; fix a silly copy & paste error
CarterLi Jan 17, 2023
5899999
Display: split phycial resolution and scaled resolution
CarterLi Jan 17, 2023
fdb0cfb
Display: detect scaled resolution (Windows)
CarterLi Jan 17, 2023
6e90404
Display: document scaled resolution support
CarterLi Jan 17, 2023
5edab41
Cursor: prefer gtk over Xresources
LinusDierheimer Jan 17, 2023
622a5c2
Wifi: fall back to ioctls if fail to loading libnm libs
CarterLi Jan 17, 2023
65e2331
CI: print brightness
CarterLi Jan 17, 2023
f4a5803
Resolution: rename to display
CarterLi Jan 17, 2023
10b9976
Font: optimise output for Windows
CarterLi Jan 18, 2023
4ce618c
DisplayServer: fix win32 compatibility
CarterLi Jan 18, 2023
068cbaf
Packages: detect pacman package count inside MSYS2 env (Windows)
CarterLi Jan 18, 2023
1e9ec54
Global: add `NO_CONFIG` env variable
CarterLi Jan 20, 2023
a71f214
Disk(Linux): Better subvolume detection
LinusDierheimer Jan 20, 2023
6f4bdaf
Temp: fix severial issues. Fixes #398
CarterLi Jan 20, 2023
2af07fe
Changelog: doc cpu temp fix
CarterLi Jan 20, 2023
6d4bd06
Fastfetch: add missing `\n` when printing messages
CarterLi Jan 20, 2023
e651633
Temp: detect both `device/class` and`device/device/class`
CarterLi Jan 20, 2023
734ee38
Disk (Linux): partition name impl & general refactor
LinusDierheimer Jan 20, 2023
d9e79a5
Fastfetch: print more info with `-v`
CarterLi Jan 19, 2023
f640102
CPU (Linux): fix compiler warnings
CarterLi Jan 21, 2023
b424c52
Disk (Android): fix compiling errors
CarterLi Jan 21, 2023
c1444c0
Android: support Wifi & Battery by using `termux-api`
CarterLi Jan 21, 2023
3b820f1
Doc: document wifi / battery support on Android
CarterLi Jan 21, 2023
e8bde5a
Wifi: fix compiling on macOS
CarterLi Jan 21, 2023
27f7659
Fix subvolume detection
LinusDierheimer Jan 21, 2023
7edc715
Merge branch 'dev' of github.com:LinusDierheimer/fastfetch into dev
LinusDierheimer Jan 21, 2023
c15f557
Disk(Linux): Use mountpoint as last fallback for disk name
LinusDierheimer Jan 21, 2023
f360e10
Release: 1.9.0
CarterLi Jan 21, 2023
e0b2db1
Changelog: update version
CarterLi Jan 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 12 additions & 77 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v3

- name: install required packages
run: sudo apt-get update && sudo apt-get install -y libpci-dev libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libdbus-1-dev libmagickcore-dev libxfconf-0-dev libsqlite3-dev rpm librpm-dev libzstd-dev libegl-dev libglx-dev libosmesa6-dev ocl-icd-opencl-dev libcjson-dev
run: sudo apt-get update && sudo apt-get install -y libpci-dev libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libdbus-1-dev libmagickcore-dev libxfconf-0-dev libsqlite3-dev rpm librpm-dev libzstd-dev libegl-dev libglx-dev libosmesa6-dev ocl-icd-opencl-dev libcjson-dev libnm-dev

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand All @@ -34,6 +34,9 @@ jobs:
- name: perform CodeQL analysis
uses: github/codeql-action/analyze@v2

- name: list features
run: ./fastfetch --list-features

- name: run fastfetch
run: time ./fastfetch --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all

Expand Down Expand Up @@ -80,6 +83,9 @@ jobs:
- name: perform CodeQL analysis
uses: github/codeql-action/analyze@v2

- name: list features
run: ./fastfetch --list-features

- name: run fastfetch
run: time ./fastfetch --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all

Expand Down Expand Up @@ -113,6 +119,7 @@ jobs:
run: |
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On .
cmake --build . --target package
./fastfetch --list-features
time ./fastfetch --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all
time ./flashfetch
ctest
Expand Down Expand Up @@ -179,6 +186,9 @@ jobs:
- name: copy necessary dlls
run: cp /clang64/bin/{libcjson,libOpenCL,vulkan-1}.dll .

- name: list features
run: ./fastfetch --list-features

- name: run fastfetch
run: time ./fastfetch --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all

Expand All @@ -197,80 +207,6 @@ jobs:
name: fastfetch-windows
path: ./fastfetch-*-Windows.zip

win7:
name: Win7
runs-on: windows-latest
permissions:
security-events: write
contents: read
defaults:
run:
shell: msys2 {0}
steps:
- name: checkout repository
uses: actions/checkout@v3

- name: setup-msys2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git zip mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc mingw-w64-x86_64-cjson mingw-w64-x86_64-vulkan-loader mingw-w64-x86_64-opencl-icd

- name: print msys version
run: uname -a

# https://github.com/msys2/MINGW-packages/issues/13524#event-7555720785
- name: create OpenCL.pc
run: |
cat > /mingw64/lib/pkgconfig/OpenCL.pc << EOF
prefix=/mingw64
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: OpenCL
Description: Open Computing Language generic Installable Client Driver Loader
Version: 2022.09.30-1
Libs: -L${libdir} -lOpenCL.dll
Cflags: -I${includedir}
EOF

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: c, cpp

- name: configure project
run: env PKG_CONFIG_PATH=/mingw64/lib/pkgconfig/:$PKG_CONFIG_PATH cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DENABLE_BUFFER=Off .

- name: build project
run: cmake --build .

- name: perform CodeQL analysis
uses: github/codeql-action/analyze@v2

- name: copy necessary dlls
run: cp /mingw64/bin/{libcjson,libOpenCL,vulkan-1}.dll .

- name: run fastfetch
run: time ./fastfetch --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all

- name: run flashfetch
run: time ./flashfetch

- name: run tests
run: ctest

- name: create zip archive
run: zip fastfetch-$(./fastfetch --version-raw)-Win7.zip *.dll fastfetch.exe flashfetch.exe

- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: fastfetch-win7
path: ./fastfetch-*-Win7.zip

release:
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'LinusDierheimer/fastfetch'
name: Release
Expand All @@ -280,7 +216,6 @@ jobs:
- macos
- freebsd
- windows
- win7
permissions:
contents: write
steps:
Expand All @@ -300,4 +235,4 @@ jobs:
tag: ${{ needs.linux.outputs.ffversion }}
commit: ${{ github.sha }}
artifactErrorsFailBuild: true
artifacts: fastfetch-linux/*,fastfetch-macos/*,fastfetch-freebsd/*,fastfetch-windows/*,fastfetch-win7/*
artifacts: fastfetch-linux/*,fastfetch-macos/*,fastfetch-freebsd/*,fastfetch-windows/*
48 changes: 47 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,49 @@
# 1.9.0

Notable Changes:
* fastfetch no longer creates a sample config file silently. Use `--gen-config` to generate one.
* fastfetch now search for user config file in the order of `fastfetch --list-config-paths`
* Unknown disks are hidden by default.
* `Resolution` module is renamed to `Display`. (#393)

Features:
* `--logo-padding-top` option (@CarterLi, #372)
* Raw image file as logo support (@CarterLi)
* Look for config files in `$APPDATA` ([RoamingAppData](https://superuser.com/questions/21458/why-are-there-directories-called-local-locallow-and-roaming-under-users-user#answer-21462)) (Windows)
* Look for config files in `~/Library/Preferences` (macOS)
* Add `--list-config-paths` option which list search paths of config files
* Add `--list-data-paths` option which list search paths for presets and logos
* Add `Brightness` module support
* Add `Battery` module support for FreeBSD
* Add `--disk-show-unknown` option for Disk module
* Add `--disk-show-subvolumes` option for Disk module
* Add `--gpu-hide-integrated` option (#379)
* Add `--gpu-hide-discrete` option (#379)
* Detect terminal version when available
* Support `WezTerm` terminal font detection (requires [`wezterm` executable](https://wezfurlong.org/wezterm/cli/general.html) being available)
* Add `--shell-version` and `--terminal-version` options to disable shell / terminal version detection
* Enhance `--percent-type` to allow hiding other texts (#387)
* Add Wifi module support for Linux
* Detect scaled resolutions (Windows, macOS)
* Optimise font module printing (Windows)
* Detect pacman package count inside MSYS2 environment (Windows)
* Add Wifi / Battery module support for Android
* Disk name support for Linux

Logos:
* Raspbian (@IamNoRobot, #373)

Bugfixes:
* `--logo-type` now does accept `iterm` too (@CarterLi, #374)
* Fix mintty terminal font detection (Windows)
* Fix bug that line buffering doesn't work properly (Windows)
* Fix rpm package count detection (Linux)
* Fix cpu temp detection (Linux)

Other:
* Fixed a Typo in iterm error message (@jessebot, #376)
* Don't try to load config file in `/etc` (Windows)

# 1.8.2

Bugfixes:
Expand Down Expand Up @@ -112,7 +158,7 @@ Bugfixes:
* Don't segfault in GPU code on Intel Macs (@CarterLi, #236)
* Don't use hardcoded size units in presets (@dr460nf1r3, #255)
* Don't crash with some format strings (#252)
* --logo-none keeps key color now (#264)
* --logo none keeps key color now (#264)

# 1.7.2

Expand Down
39 changes: 30 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url

project(fastfetch
VERSION 1.8.2
VERSION 1.9.0
LANGUAGES C
DESCRIPTION "Fast system information tool"
HOMEPAGE_URL "https://github.com/LinusDierheimer/fastfetch"
Expand Down Expand Up @@ -68,6 +68,7 @@ cmake_dependent_option(ENABLE_GLX "Enable glx" ON "LINUX OR BSD" OFF)
cmake_dependent_option(ENABLE_OSMESA "Enable osmesa" ON "LINUX OR BSD" OFF)
cmake_dependent_option(ENABLE_OPENCL "Enable opencl" ON "LINUX OR BSD OR WIN32" OFF)
cmake_dependent_option(ENABLE_LIBCJSON "Enable libcjson" ON "LINUX OR WIN32" OFF)
cmake_dependent_option(ENABLE_LIBNM "Enable libnm" ON "LINUX" OFF)
cmake_dependent_option(ENABLE_FREETYPE "Enable freetype" ON "ANDROID" OFF)
cmake_dependent_option(ENABLE_THREADS "Enable multithreading" ON "Threads_FOUND AND NOT ANDROID" OFF)
cmake_dependent_option(ENABLE_BUFFER "Enable stdout buffer" ON "LINUX OR APPLE OR BSD OR WIN32 OR ANDROID" OFF)
Expand Down Expand Up @@ -102,6 +103,7 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wconversion")
if(WIN32)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wconversion -fno-exceptions -fno-rtti")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--tsaware -Wl,--build-id -Wl,--subsystem,console:6.1,--major-os-version,6,--minor-os-version,1")
endif()

# Used for dlopen finding dylibs installed by homebrew
Expand Down Expand Up @@ -244,7 +246,6 @@ set(LIBFASTFETCH_SRC
src/detection/packages/packages.c
src/detection/terminalfont/terminalfont.c
src/detection/terminalshell/terminalshell.c
src/detection/title.c
src/detection/vulkan.c
src/logo/builtin.c
src/logo/image/im6.c
Expand All @@ -254,13 +255,15 @@ set(LIBFASTFETCH_SRC
src/modules/battery.c
src/modules/bios.c
src/modules/board.c
src/modules/brightness.c
src/modules/break.c
src/modules/chassis.c
src/modules/colors.c
src/modules/cpu.c
src/modules/cpuUsage.c
src/modules/cursor.c
src/modules/custom.c
src/modules/command.c
src/modules/date.c
src/modules/datetime.c
src/modules/de.c
Expand All @@ -281,7 +284,7 @@ set(LIBFASTFETCH_SRC
src/modules/poweradapter.c
src/modules/processes.c
src/modules/publicip.c
src/modules/resolution.c
src/modules/display.c
src/modules/separator.c
src/modules/shell.c
src/modules/media.c
Expand All @@ -300,6 +303,7 @@ set(LIBFASTFETCH_SRC
src/util/FFlist.c
src/util/FFstrbuf.c
src/util/FFvaluestore.c
src/util/platform/FFPlatform.c
)

if(LINUX)
Expand All @@ -309,6 +313,7 @@ if(LINUX)
src/detection/battery/battery_linux.c
src/detection/bios/bios_linux.c
src/detection/board/board_linux.c
src/detection/brightness/brightness_linux.c
src/detection/chassis/chassis_linux.c
src/detection/cpu/cpu_linux.c
src/detection/cpuUsage/cpuUsage_linux.c
Expand Down Expand Up @@ -340,14 +345,16 @@ if(LINUX)
src/detection/users/users_linux.c
src/detection/wifi/wifi_linux.c
src/detection/wmtheme/wmtheme_linux.c
src/util/platform/FFPlatform_unix.c
)
elseif(ANDROID)
list(APPEND LIBFASTFETCH_SRC
src/common/networking_linux.c
src/common/processing_linux.c
src/detection/battery/battery_nosupport.c
src/detection/battery/battery_android.c
src/detection/bios/bios_nosupport.c
src/detection/board/board_nosupport.c
src/detection/brightness/brightness_nosupport.c
src/detection/chassis/chassis_nosupport.c
src/detection/cpu/cpu_linux.c
src/detection/cursor/cursor_nosupport.c
Expand All @@ -371,17 +378,19 @@ elseif(ANDROID)
src/detection/terminalshell/terminalshell_linux.c
src/detection/uptime/uptime_linux.c
src/detection/users/users_linux.c
src/detection/wifi/wifi_nosupport.c
src/detection/wifi/wifi_android.c
src/detection/wmtheme/wmtheme_nosupport.c
src/util/platform/FFPlatform_unix.c
)
elseif(BSD)
list(APPEND LIBFASTFETCH_SRC
src/common/networking_linux.c
src/common/processing_linux.c
src/common/sysctl.c
src/detection/battery/battery_nosupport.c
src/detection/battery/battery_bsd.c
src/detection/bios/bios_bsd.c
src/detection/board/board_nosupport.c
src/detection/brightness/brightness_nosupport.c
src/detection/chassis/chassis_nosupport.c
src/detection/cpu/cpu_bsd.c
src/detection/cpuUsage/cpuUsage_bsd.c
Expand Down Expand Up @@ -413,6 +422,7 @@ elseif(BSD)
src/detection/users/users_linux.c
src/detection/wifi/wifi_nosupport.c
src/detection/wmtheme/wmtheme_linux.c
src/util/platform/FFPlatform_unix.c
)
elseif(APPLE)
list(APPEND LIBFASTFETCH_SRC
Expand All @@ -422,6 +432,7 @@ elseif(APPLE)
src/detection/battery/battery_apple.c
src/detection/bios/bios_apple.c
src/detection/board/board_nosupport.c
src/detection/brightness/brightness_apple.c
src/detection/chassis/chassis_nosupport.c
src/detection/cpu/cpu_apple.c
src/detection/cpuUsage/cpuUsage_apple.c
Expand Down Expand Up @@ -450,6 +461,7 @@ elseif(APPLE)
src/detection/wmtheme/wmtheme_apple.m
src/util/apple/cf_helpers.c
src/util/apple/osascript.m
src/util/platform/FFPlatform_unix.c
)
elseif(WIN32)
list(APPEND LIBFASTFETCH_SRC
Expand All @@ -458,6 +470,7 @@ elseif(WIN32)
src/detection/battery/battery_windows.c
src/detection/bios/bios_windows.c
src/detection/board/board_windows.c
src/detection/brightness/brightness_windows.cpp
src/detection/chassis/chassis_nosupport.c
src/detection/cpu/cpu_windows.c
src/detection/cpuUsage/cpuUsage_windows.c
Expand All @@ -483,11 +496,10 @@ elseif(WIN32)
src/detection/wifi/wifi_windows.c
src/detection/wmtheme/wmtheme_windows.c
src/util/windows/getline.c
src/util/windows/pwd.c
src/util/windows/registry.c
src/util/windows/unicode.c
src/util/windows/utsname.c
src/util/windows/wmi.cpp
src/util/platform/FFPlatform_windows.c
)
endif()

Expand Down Expand Up @@ -626,6 +638,10 @@ ff_lib_enable(LIBCJSON
"libcjson"
"CJson"
)
ff_lib_enable(LIBNM
"libnm"
"libnm"
)
ff_lib_enable(FREETYPE
"freetype2"
"FreeType2"
Expand All @@ -638,7 +654,6 @@ if(ENABLE_THREADS)
endif()
endif()


if(ENABLE_BUFFER)
target_compile_definitions(libfastfetch PRIVATE FF_ENABLE_BUFFER)
endif()
Expand All @@ -652,6 +667,7 @@ if(APPLE)
PRIVATE "-framework Cocoa"
PRIVATE "-framework CoreWLAN"
PRIVATE "-weak_framework MediaRemote -F /System/Library/PrivateFrameworks"
PRIVATE "-weak_framework DisplayServices -F /System/Library/PrivateFrameworks"
)
elseif(WIN32)
target_compile_definitions(libfastfetch PRIVATE -D_WIN32_WINNT=0x0601)
Expand Down Expand Up @@ -712,6 +728,11 @@ target_link_libraries(flashfetch
PRIVATE libfastfetch
)

if(ENABLE_BUFFER) # FF_ENABLE_BUFFER is used in fastfetch.c
target_compile_definitions(fastfetch PRIVATE FF_ENABLE_BUFFER)
target_compile_definitions(flashfetch PRIVATE FF_ENABLE_BUFFER)
endif()

if(WIN32)
set(TARGET_NAME fastfetch)
target_sources(fastfetch
Expand Down
Loading