-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add a tentative implementation for custom plugin PCH with clang
This is a workaround for mesonbuild/meson#4350 This does not work with all C++ compilers and is "use at own risk", therefore disabled by default. Can be enabled by passing `-Dcustom_pch=true` to meson. When disabled, it should not affect anything. Speeds up compilation by at least 20% in local tests (48s vs 38s).
- Loading branch information
Showing
29 changed files
with
110 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
blur_base = shared_library('wayfire-blur-base', | ||
['blur-base.cpp', 'box.cpp', 'gaussian.cpp', 'kawase.cpp', 'bokeh.cpp'], | ||
include_directories: [wayfire_api_inc, wayfire_conf_inc], | ||
dependencies: [wlroots, pixman, wfconfig], | ||
dependencies: [wlroots, pixman, wfconfig, plugin_pch_dep], | ||
cpp_args: plugin_pch_args, | ||
override_options: ['b_lundef=false'], | ||
install: true) | ||
install_headers(['blur.hpp'], subdir: 'wayfire/plugins/blur') | ||
|
||
blur = shared_module('blur', ['blur.cpp'], | ||
link_with: blur_base, | ||
include_directories: [wayfire_api_inc, wayfire_conf_inc], | ||
dependencies: [wlroots, pixman, wfconfig], | ||
dependencies: [wlroots, pixman, wfconfig, plugin_pch_dep], | ||
cpp_args: plugin_pch_args, | ||
install: true, install_dir: join_paths(get_option('libdir'), 'wayfire')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
animiate = shared_module('cube', | ||
['cube.cpp', 'cubemap.cpp', 'skydome.cpp', 'simple-background.cpp'], | ||
include_directories: [wayfire_api_inc, wayfire_conf_inc, plugins_common_inc, ipc_include_dirs], | ||
dependencies: [wlroots, pixman, wfconfig, json], | ||
dependencies: [wlroots, pixman, wfconfig, json, plugin_pch_dep], | ||
cpp_args: plugin_pch_args, | ||
install: true, | ||
install_dir: join_paths(get_option('libdir'), 'wayfire')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <wayland-server.h> | ||
#include <glm/glm.hpp> | ||
|
||
#include <string> | ||
#include <vector> | ||
#include <utility> | ||
#include <memory> | ||
#include <functional> | ||
#include <algorithm> | ||
#include <sstream> | ||
#include <map> | ||
#include <cmath> | ||
#include <cstddef> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
window_rules = shared_module('window-rules', | ||
['window-rules.cpp', 'view-action-interface.cpp'], | ||
include_directories: [wayfire_api_inc, wayfire_conf_inc, grid_inc, plugins_common_inc], | ||
dependencies: [wlroots, pixman, wfconfig, wfutils], | ||
dependencies: [wlroots, pixman, wfconfig, wfutils, plugin_pch_dep], | ||
cpp_args: plugin_pch_args, | ||
install: true, | ||
install_dir: join_paths(get_option('libdir'), 'wayfire') | ||
) | ||
install_dir: join_paths(get_option('libdir'), 'wayfire')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#pragma once | ||
|
||
#ifndef WLR_USE_UNSTABLE | ||
#define WLR_USE_UNSTABLE | ||
#define WLR_USE_UNSTABLE 1 | ||
#endif | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#pragma once | ||
|
||
#include "wayfire/signal-provider.hpp" | ||
#include <wayfire/plugin.hpp> | ||
#include <wayfire/core.hpp> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters