summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian "sp1rit"​ <sp1ritCS@protonmail.com>2022-06-13 19:09:52 +0200
committerFlorian "sp1rit"​ <sp1ritCS@protonmail.com>2022-06-16 23:30:30 +0200
commitb3ef1fcc545250b66ae356c4d26e47cbab230b11 (patch)
tree1f451ead37c5f90acc13be10c951985bd60267cf /src
parentfd0112425f165aff786bcfec8c610114324c37a1 (diff)
replaced source list with globber script
See: - https://mesonbuild.com/FAQ.html#why-cant-i-specify-target-files-with-a-wildcard - https://github.com/vaxerski/Hyprland/pull/205#issuecomment-1154158918
Diffstat (limited to 'src')
-rw-r--r--src/meson.build45
1 files changed, 2 insertions, 43 deletions
diff --git a/src/meson.build b/src/meson.build
index 6a351b9b..87aadbd7 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -1,46 +1,5 @@
-src = [
- 'config/ConfigManager.cpp',
- 'debug/HyprCtl.cpp',
- 'debug/HyprDebugOverlay.cpp',
- 'debug/Log.cpp',
- 'events/Devices.cpp',
- 'events/Layers.cpp',
- 'events/Misc.cpp',
- 'events/Monitors.cpp',
- 'events/Popups.cpp',
- 'events/Windows.cpp',
- 'helpers/Color.cpp',
- 'helpers/Vector2D.cpp',
- 'helpers/WLListener.cpp',
- 'helpers/AnimatedVariable.cpp',
- 'helpers/BezierCurve.cpp',
- 'helpers/MiscFunctions.cpp',
- 'helpers/SubsurfaceTree.cpp',
- 'helpers/WLClasses.cpp',
- 'helpers/Workspace.cpp',
- 'hyprerror/HyprError.cpp',
- 'layout/DwindleLayout.cpp',
- 'managers/LayoutManager.cpp',
- 'managers/ThreadManager.cpp',
- 'managers/AnimationManager.cpp',
- 'managers/EventManager.cpp',
- 'managers/KeybindManager.cpp',
- 'managers/XWaylandManager.cpp',
- 'managers/input/InputManager.cpp',
- 'managers/input/Tablets.cpp',
- 'render/Shader.cpp',
- 'render/Texture.cpp',
- 'render/Framebuffer.cpp',
- 'render/OpenGL.cpp',
- 'render/Renderer.cpp',
- 'render/decorations/CHyprGroupBarDecoration.cpp',
- 'render/decorations/IHyprWindowDecoration.cpp',
- 'wlrunstable/wlr_ext_workspace_v1.cpp',
- 'Compositor.cpp',
- 'Window.cpp',
- 'init/initHelpers.cpp',
- 'main.cpp'
-]
+globber = run_command('find', '-name', '*.cpp', check: true)
+src = globber.stdout().strip().split('\n')
wlroots = subproject('wlroots', default_options: ['examples=false'])
have_xwlr = wlroots.get_variable('features').get('xwayland')