summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormemchr <118117622+memchr@users.noreply.github.com>2023-09-04 17:56:02 +0000
committerGitHub <noreply@github.com>2023-09-04 19:56:02 +0200
commit8e9f010ee0bae1989279925e8f214bb18c36ba2e (patch)
tree99d691d44e79f22cc3df7b8c44bd6b8bb24073be /src
parent4eecb8bffc829ab2222b4acea1942ef8ee7b8904 (diff)
build: use PCH to reduce compile time (#3095)
Diffstat (limited to 'src')
-rw-r--r--src/meson.build1
-rw-r--r--src/pch/pch.hpp29
2 files changed, 30 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build
index 8430f597..2065c6f5 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -4,6 +4,7 @@ src = globber.stdout().strip().split('\n')
executable('Hyprland', src,
cpp_args: ['-DWLR_USE_UNSTABLE'],
link_args: '-rdynamic',
+ cpp_pch: 'pch/pch.hpp',
dependencies: [
server_protos,
dependency('wayland-server'),
diff --git a/src/pch/pch.hpp b/src/pch/pch.hpp
new file mode 100644
index 00000000..9d6c3065
--- /dev/null
+++ b/src/pch/pch.hpp
@@ -0,0 +1,29 @@
+#include "Compositor.hpp"
+
+#include <algorithm>
+#include <any>
+#include <array>
+#include <chrono>
+#include <concepts>
+#include <deque>
+#include <filesystem>
+#include <fstream>
+#include <functional>
+#include <iomanip>
+#include <iostream>
+#include <iterator>
+#include <list>
+#include <map>
+#include <memory>
+#include <mutex>
+#include <optional>
+#include <random>
+#include <ranges>
+#include <regex>
+#include <set>
+#include <sstream>
+#include <string>
+#include <thread>
+#include <tuple>
+#include <unordered_map>
+#include <vector>