mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-24 11:15:58 +01:00
Meson: init in all plugins and fix include paths
This commit is contained in:
parent
daab9e07e5
commit
c6b1928fac
9 changed files with 88 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
#include "borderDeco.hpp"
|
#include "borderDeco.hpp"
|
||||||
|
|
||||||
#include <src/Compositor.hpp>
|
#include <hyprland/src/Compositor.hpp>
|
||||||
#include <src/Window.hpp>
|
#include <hyprland/src/Window.hpp>
|
||||||
|
|
||||||
#include "globals.hpp"
|
#include "globals.hpp"
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#define WLR_USE_UNSTABLE
|
#define WLR_USE_UNSTABLE
|
||||||
|
|
||||||
#include <src/render/decorations/IHyprWindowDecoration.hpp>
|
#include <hyprland/src/render/decorations/IHyprWindowDecoration.hpp>
|
||||||
|
|
||||||
class CBordersPlusPlus : public IHyprWindowDecoration {
|
class CBordersPlusPlus : public IHyprWindowDecoration {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <src/plugins/PluginAPI.hpp>
|
#include <hyprland/src/plugins/PluginAPI.hpp>
|
||||||
|
|
||||||
inline HANDLE PHANDLE = nullptr;
|
inline HANDLE PHANDLE = nullptr;
|
|
@ -3,9 +3,9 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <any>
|
#include <any>
|
||||||
#include <src/Compositor.hpp>
|
#include <hyprland/src/Compositor.hpp>
|
||||||
#include <src/Window.hpp>
|
#include <hyprland/src/Window.hpp>
|
||||||
#include <src/config/ConfigManager.hpp>
|
#include <hyprland/src/config/ConfigManager.hpp>
|
||||||
|
|
||||||
#include "borderDeco.hpp"
|
#include "borderDeco.hpp"
|
||||||
#include "globals.hpp"
|
#include "globals.hpp"
|
||||||
|
|
25
borders-plus-plus/meson.build
Normal file
25
borders-plus-plus/meson.build
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
project('borders-plus-plus', 'cpp',
|
||||||
|
version: '0.1',
|
||||||
|
default_options: ['buildtype=release'],
|
||||||
|
)
|
||||||
|
|
||||||
|
cpp_compiler = meson.get_compiler('cpp')
|
||||||
|
if cpp_compiler.has_argument('-std=c++23')
|
||||||
|
add_global_arguments('-std=c++23', language: 'cpp')
|
||||||
|
elif cpp_compiler.has_argument('-std=c++2b')
|
||||||
|
add_global_arguments('-std=c++2b', language: 'cpp')
|
||||||
|
else
|
||||||
|
error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.version() + ') with required C++ standard (C++23)')
|
||||||
|
endif
|
||||||
|
|
||||||
|
globber = run_command('find', '.', '-name', '*.cpp', check: true)
|
||||||
|
src = globber.stdout().strip().split('\n')
|
||||||
|
|
||||||
|
shared_module(meson.project_name(), src,
|
||||||
|
dependencies: [
|
||||||
|
dependency('hyprland'),
|
||||||
|
dependency('pixman-1'),
|
||||||
|
dependency('libdrm'),
|
||||||
|
],
|
||||||
|
install: true,
|
||||||
|
)
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <src/plugins/PluginAPI.hpp>
|
#include <hyprland/src/plugins/PluginAPI.hpp>
|
||||||
|
|
||||||
inline HANDLE PHANDLE = nullptr;
|
inline HANDLE PHANDLE = nullptr;
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <src/Compositor.hpp>
|
#include <hyprland/src/Compositor.hpp>
|
||||||
#include <src/Window.hpp>
|
#include <hyprland/src/Window.hpp>
|
||||||
#include <src/config/ConfigManager.hpp>
|
#include <hyprland/src/config/ConfigManager.hpp>
|
||||||
|
|
||||||
#include "globals.hpp"
|
#include "globals.hpp"
|
||||||
|
|
||||||
|
|
25
csgo-vulkan-fix/meson.build
Normal file
25
csgo-vulkan-fix/meson.build
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
project('csgo-vulkan-fix', 'cpp',
|
||||||
|
version: '0.1',
|
||||||
|
default_options: ['buildtype=release'],
|
||||||
|
)
|
||||||
|
|
||||||
|
cpp_compiler = meson.get_compiler('cpp')
|
||||||
|
if cpp_compiler.has_argument('-std=c++23')
|
||||||
|
add_global_arguments('-std=c++23', language: 'cpp')
|
||||||
|
elif cpp_compiler.has_argument('-std=c++2b')
|
||||||
|
add_global_arguments('-std=c++2b', language: 'cpp')
|
||||||
|
else
|
||||||
|
error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.version() + ') with required C++ standard (C++23)')
|
||||||
|
endif
|
||||||
|
|
||||||
|
globber = run_command('find', '.', '-name', '*.cpp', check: true)
|
||||||
|
src = globber.stdout().strip().split('\n')
|
||||||
|
|
||||||
|
shared_module(meson.project_name(), src,
|
||||||
|
dependencies: [
|
||||||
|
dependency('hyprland'),
|
||||||
|
dependency('pixman-1'),
|
||||||
|
dependency('libdrm'),
|
||||||
|
],
|
||||||
|
install: true,
|
||||||
|
)
|
27
hyprbars/meson.build
Normal file
27
hyprbars/meson.build
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
project('hyprbars', 'cpp',
|
||||||
|
version: '0.1',
|
||||||
|
default_options: ['buildtype=release'],
|
||||||
|
)
|
||||||
|
|
||||||
|
cpp_compiler = meson.get_compiler('cpp')
|
||||||
|
if cpp_compiler.has_argument('-std=c++23')
|
||||||
|
add_global_arguments('-std=c++23', language: 'cpp')
|
||||||
|
elif cpp_compiler.has_argument('-std=c++2b')
|
||||||
|
add_global_arguments('-std=c++2b', language: 'cpp')
|
||||||
|
else
|
||||||
|
error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.version() + ') with required C++ standard (C++23)')
|
||||||
|
endif
|
||||||
|
|
||||||
|
globber = run_command('find', '.', '-name', '*.cpp', check: true)
|
||||||
|
src = globber.stdout().strip().split('\n')
|
||||||
|
|
||||||
|
hyprland = dependency('hyprland')
|
||||||
|
|
||||||
|
shared_module(meson.project_name(), src,
|
||||||
|
dependencies: [
|
||||||
|
dependency('hyprland'),
|
||||||
|
dependency('pixman-1'),
|
||||||
|
dependency('libdrm'),
|
||||||
|
],
|
||||||
|
install: true,
|
||||||
|
)
|
Loading…
Reference in a new issue