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
#include <iostream> | |
#include <iomanip> | |
#include <map> | |
#include <vector> | |
#include <string> | |
//#define BOOST_SPIRIT_DEBUG | |
/* Required */ | |
#define BOOST_SPIRIT_USE_PHOENIX_V3 | |
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
/* | |
* CXXFLAGS += -std=c++17 | |
* CXXFLAGS += $(shell pkg-config --cflags catch2 fmt glibmm-2.4) | |
* LDFLAGS += $(shell pkg-config --libs catch2 fmt glibmm-2.4) | |
*/ | |
#define CATCH_CONFIG_MAIN | |
#define FMT_USE_INTERNAL | |
#include <catch2/catch.hpp> | |
#include <fmt/format.h> |
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
CXXFLAGS += -std=c++17 | |
CXXFLAGS += -Wall -Wextra -pedantic | |
CXXFLAGS += $(shell pkg-config --cflags wayland-client) | |
CFLAGS += $(shell pkg-config --cflags wayland-client) | |
LDFLAGS += $(shell pkg-config --libs wayland-client) | |
SCANNER = $(shell pkg-config --variable=wayland_scanner wayland-scanner) | |
PROTOCOLS_DIR = $(shell pkg-config --variable=pkgdatadir wayland-protocols) | |
XDG_OUTPUT_PROTO = $(PROTOCOLS_DIR)/unstable/xdg-output/xdg-output-unstable-v1.xml |
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
// const char *key_names [] = { | |
// `sed -En 's/^#.*XKB_KEY_(\w*).*/"\1",/p' /usr/include/xkbcommon/xkbcommon-keysyms.h |sort -u` | |
// }; | |
// | |
// g++ $(pkg-config --libs --cflags xkbcommon) generator.cpp | |
#include <cstdio> | |
#include <cstdlib> | |
#include <xkbcommon/xkbcommon.h> |