diff --git a/BUILDING.md b/BUILDING.md index 565e23f..7d27250 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -2,4 +2,12 @@ Not recommended. Windows sucks! -`cmake .. -DCMAKE_BUILD_TYPE=Debug -G Ninja --preset windows-msvc-x64` \ No newline at end of file +`cmake .. -DCMAKE_BUILD_TYPE=Debug -G Ninja --preset windows-msvc-x64` + +# Linux Builds + +Install dependencies: + +`sudo apt install -y libsfml-dev libudev-dev libopenal-dev libvorbis-dev libflac-dev libxrandr-dev libxcursor-dev libfreetype-dev` + +And maybe also libfreetype6 and libfreetype6-dev, not sure... diff --git a/include/app_finder.cpp b/include/app_finder.cpp index 883059b..55ce5e4 100644 --- a/include/app_finder.cpp +++ b/include/app_finder.cpp @@ -184,9 +184,9 @@ std::optional aa::get_focused_minecraft() #include #include -inline ApplicationInfo aa::get_focused_application() { return osx::get_current_application(); } +ApplicationInfo aa::get_focused_application() { return osx::get_current_application(); } -inline std::optional aa::get_focused_minecraft() +std::optional aa::get_focused_minecraft() { const auto& logger = get_logger("get_focused_minecraft"); @@ -373,6 +373,21 @@ inline std::optional aa::get_focused_minecraft() #elif __linux__ // Linux specific code for getting the current application details. +ApplicationInfo aa::get_focused_application() { + ApplicationInfo ret{}; + ret.name = "UNIMPLEMENTED"; + ret.exec = "UNIMPLEMENTED"; + ret.pid = 0; + return ret; +} + +std::optional aa::get_focused_minecraft() +{ + const auto& logger = get_logger("get_focused_minecraft"); + + const auto s = get_focused_application(); + return {}; +} #else #error "Unsupported OS? D:" #endif diff --git a/include/logging.hpp b/include/logging.hpp index 16ec197..15d3e78 100644 --- a/include/logging.hpp +++ b/include/logging.hpp @@ -12,6 +12,7 @@ #include #include #include +#include namespace aa { @@ -208,4 +209,4 @@ void error(Ts&&... ts) get_logger("root").error(std::forward(ts)...); } } // namespace log -} // namespace aa \ No newline at end of file +} // namespace aa