From 51e4eca7ddc4f34bb24bcabedb4da1bde8717289 Mon Sep 17 00:00:00 2001 From: Tau Date: Fri, 23 Nov 2018 18:17:02 -0500 Subject: [PATCH] Add MSVC PCH support --- board/meson.build | 5 ++++- cardhook/meson.build | 5 ++++- chunihook/meson.build | 5 ++++- jvs/meson.build | 5 ++++- minihook/meson.build | 5 ++++- nu/meson.build | 5 ++++- precompiled.c | 1 + util/meson.build | 5 ++++- 8 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 precompiled.c diff --git a/board/meson.build b/board/meson.build index 6d1754b..b20dcdc 100644 --- a/board/meson.build +++ b/board/meson.build @@ -2,7 +2,10 @@ board_lib = static_library( 'board', include_directories : inc, implicit_include_directories : false, - c_pch : '../precompiled.h', + c_pch : [ + '../precompiled.c', + '../precompiled.h', + ], dependencies : [ capnhook.get_variable('hook_dep'), ], diff --git a/cardhook/meson.build b/cardhook/meson.build index 78b996f..717dbd0 100644 --- a/cardhook/meson.build +++ b/cardhook/meson.build @@ -3,7 +3,10 @@ shared_library( name_prefix : '', include_directories: inc, implicit_include_directories : false, - c_pch : '../precompiled.h', + c_pch : [ + '../precompiled.c', + '../precompiled.h', + ], dependencies : [ capnhook.get_variable('hook_dep'), capnhook.get_variable('hooklib_dep'), diff --git a/chunihook/meson.build b/chunihook/meson.build index 667cf04..a643f21 100644 --- a/chunihook/meson.build +++ b/chunihook/meson.build @@ -3,7 +3,10 @@ shared_library( name_prefix : '', include_directories : inc, implicit_include_directories : false, - c_pch : '../precompiled.h', + c_pch : [ + '../precompiled.c', + '../precompiled.h', + ], dependencies : [ capnhook.get_variable('hook_dep'), capnhook.get_variable('hooklib_dep'), diff --git a/jvs/meson.build b/jvs/meson.build index 49737a0..fd18494 100644 --- a/jvs/meson.build +++ b/jvs/meson.build @@ -2,7 +2,10 @@ jvs_lib = static_library( 'jvs', include_directories : inc, implicit_include_directories : false, - c_pch : '../precompiled.h', + c_pch : [ + '../precompiled.c', + '../precompiled.h', + ], dependencies : [ capnhook.get_variable('hook_dep'), ], diff --git a/minihook/meson.build b/minihook/meson.build index 1acf998..6972271 100644 --- a/minihook/meson.build +++ b/minihook/meson.build @@ -3,7 +3,10 @@ shared_library( name_prefix : '', include_directories: inc, implicit_include_directories : false, - c_pch : '../precompiled.h', + c_pch : [ + '../precompiled.c', + '../precompiled.h', + ], dependencies : [ capnhook.get_variable('hook_dep'), ], diff --git a/nu/meson.build b/nu/meson.build index c49261c..c82912f 100644 --- a/nu/meson.build +++ b/nu/meson.build @@ -2,7 +2,10 @@ nu_lib = static_library( 'nu', include_directories : inc, implicit_include_directories : false, - c_pch : '../precompiled.h', + c_pch : [ + '../precompiled.c', + '../precompiled.h', + ], dependencies : [ capnhook.get_variable('hook_dep'), capnhook.get_variable('hooklib_dep'), diff --git a/precompiled.c b/precompiled.c new file mode 100644 index 0000000..c08ca1f --- /dev/null +++ b/precompiled.c @@ -0,0 +1 @@ +#include "precompiled.h" \ No newline at end of file diff --git a/util/meson.build b/util/meson.build index 455c6a3..b579f82 100644 --- a/util/meson.build +++ b/util/meson.build @@ -2,7 +2,10 @@ util_lib = static_library( 'util', include_directories : inc, implicit_include_directories : false, - c_pch : '../precompiled.h', + c_pch : [ + '../precompiled.c', + '../precompiled.h', + ], dependencies : [ capnhook.get_variable('hook_dep'), ],