-
Notifications
You must be signed in to change notification settings - Fork 26
/
pch.h
49 lines (39 loc) · 1.39 KB
/
pch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// pch.h: This is a precompiled header file.
// Files listed below are compiled only once, improving build performance for future builds.
// This also affects IntelliSense performance, including code completion and many code browsing features.
// However, files listed here are ALL re-compiled if any one of them is updated between builds.
// Do not add files here that you will be updating frequently as this negates the performance advantage.
#ifndef PCH_H
#define PCH_H
// add headers that you want to pre-compile here
#include "framework.h"
// wil
#ifndef _DEBUG
#define RESULT_DIAGNOSTICS_LEVEL 1
#endif
#include <wil/common.h>
#include <wil/resource.h>
#include <wil/win32_helpers.h>
#include <wil/result.h>
#include <wil/com.h>
#include <wil/filesystem.h>
// nlohmann-json
#define JSON_USE_IMPLICIT_CONVERSIONS 0
#include "nlohmann/json.hpp"
#define JSON_TO(k) j[#k] = value.k;
#define JSON_FROM(k) j.at(#k).get_to(value.k);
#define JSON_TRY_FROM(k) try { j.at(#k).get_to(value.k); } catch (...) {}
#define JSON_TRY_FROM_LOG(k) try { j.at(#k).get_to(value.k); } CATCH_LOG()
// Edge WebView2
#include "WebView2.h"
#include "WebView2EnvironmentOptions.h"
// C++/WinRT
#include <winrt/base.h>
#include <winrt/Windows.Foundation.h>
// Skyr URL
#define RANGES_DISABLE_DEPRECATED_WARNINGS 1
#pragma warning(push)
#pragma warning(disable:4244 4459)
#include "skyr/url.hpp"
#pragma warning(pop)
#endif //PCH_H