remove 5gb wasted space by removing precompiled headers

This commit is contained in:
2024-12-19 14:00:05 -05:00
parent e09bf6571e
commit 748b3557ee
67 changed files with 65 additions and 32 deletions

20
.vscode/settings.json vendored
View File

@ -14,6 +14,24 @@
"platform.h": "c",
"procaddr.h": "c",
"table.h": "c",
"serial.h": "c"
"serial.h": "c",
"stdarg.h": "c",
"iphlpapi.h": "c",
"iptypes.h": "c",
"netenv.h": "c",
"nusec.h": "c",
"vfs.h": "c",
"ws2ipdef.h": "c",
"winternl.h": "c",
"wincrypt.h": "c",
"assert.h": "c",
"stdint.h": "c",
"limits.h": "c",
"stdlib.h": "c",
"config.h": "c",
"mu3-dll.h": "c",
"io4.h": "c",
"dvd.h": "c",
"uart.h": "c"
},
}

View File

@ -3,7 +3,6 @@ aimeio_lib = static_library(
name_prefix : '',
include_directories: inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
link_with : [
util_lib,
],

View File

@ -1,6 +1,7 @@
#include <windows.h>
#include <devioctl.h>
#include <ntdddisk.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>

View File

@ -2,7 +2,6 @@ amex_lib = static_library(
'amex',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
],

View File

@ -16,6 +16,7 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include "board/io3.h"

View File

@ -3,6 +3,7 @@
#include <windows.h>
#include <stdint.h>
#include <stdbool.h>
enum {
/* System buttons in button[0] */

View File

@ -2,7 +2,6 @@ board_lib = static_library(
'board',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
],

View File

@ -4,7 +4,6 @@ shared_library(
include_directories : inc,
implicit_include_directories : false,
vs_module_defs : 'carolhook.def',
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
capnhook.get_variable('hooklib_dep'),

View File

@ -3,7 +3,6 @@ carolio_lib = static_library(
name_prefix : '',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
sources : [
'carolio.c',
'carolio.h',

View File

@ -3,6 +3,7 @@
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include "amex/amex.h"
#include "amex/config.h"

View File

@ -4,7 +4,6 @@ shared_library(
include_directories : inc,
implicit_include_directories : false,
vs_module_defs : 'chunihook.def',
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
capnhook.get_variable('hooklib_dep'),

View File

@ -3,6 +3,7 @@
#include <process.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "chuniio/chuniio.h"
#include "chuniio/config.h"

View File

@ -1,5 +1,6 @@
#include <windows.h>
#include <stdlib.h>
#include <assert.h>
#include <stddef.h>
#include <stdio.h>

View File

@ -3,7 +3,6 @@ chuniio_lib = static_library(
name_prefix : '',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
sources : [
'chuniio.c',
'chuniio.h',

View File

@ -1,6 +1,7 @@
#include <windows.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "cxbhook/led.h"
#include "cxbhook/cxb-dll.h"

View File

@ -4,7 +4,6 @@ shared_library(
include_directories : inc,
implicit_include_directories : false,
vs_module_defs : 'cxbhook.def',
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
capnhook.get_variable('hooklib_dep'),

View File

@ -3,6 +3,7 @@
#include <windows.h>
#include <stdbool.h>
#include <stdint.h>
#include <limits.h>
struct network_config {
bool enable;

View File

@ -2,6 +2,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <winuser.h>
#include <stdlib.h>
#include "cxbhook/revio.h"
#include "cxbhook/cxb-dll.h"

View File

@ -3,7 +3,6 @@ cxbio_lib = static_library(
name_prefix : '',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
sources : [
'cxbio.c',
'cxbio.h',

View File

@ -4,7 +4,6 @@ shared_library(
include_directories : inc,
implicit_include_directories : false,
vs_module_defs : 'divahook.def',
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
capnhook.get_variable('hooklib_dep'),

View File

@ -3,7 +3,6 @@ divaio_lib = static_library(
name_prefix : '',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
sources : [
'divaio.c',
'divaio.h',

View File

@ -2,7 +2,6 @@ gfxhook_lib = static_library(
'gfxhook',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
dxguid_lib,

View File

@ -1,5 +1,6 @@
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include "board/config.h"

View File

@ -1,6 +1,7 @@
#include <windows.h>
#include <stdbool.h>
#include <stdint.h>
#include <assert.h>
#include "hook/iohook.h"

View File

@ -4,7 +4,6 @@ shared_library(
include_directories : inc,
implicit_include_directories : false,
vs_module_defs : 'hkbhook.def',
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
capnhook.get_variable('hooklib_dep'),

View File

@ -1,6 +1,7 @@
#include <stdbool.h>
#include <windows.h>
#include <stdlib.h>
#include "hook/table.h"
#include "hook/iohook.h"

View File

@ -3,7 +3,6 @@ hkbio_lib = static_library(
name_prefix : '',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
sources : [
'hkbio.c',
'hkbio.h',

View File

@ -1,5 +1,5 @@
#include <windows.h>
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>

View File

@ -1,5 +1,5 @@
#include <windows.h>
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>

View File

@ -2,7 +2,6 @@ hooklib_lib = static_library(
'hooklib',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
],

View File

@ -1,5 +1,6 @@
#include <windows.h>
#include <assert.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>

View File

@ -1,6 +1,8 @@
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include "iccard/aime.h"
#include "iccard/mifare.h"

View File

@ -2,7 +2,6 @@ iccard_lib = static_library(
'iccard',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
],

View File

@ -1,5 +1,6 @@
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include "amex/amex.h"
#include "amex/config.h"

View File

@ -4,7 +4,6 @@ shared_library(
include_directories : inc,
implicit_include_directories : false,
vs_module_defs : 'idzhook.def',
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
capnhook.get_variable('hooklib_dep'),

View File

@ -4,6 +4,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "idzhook/config.h"
#include "idzhook/zinput.h"

View File

@ -4,6 +4,7 @@
#include <stddef.h>
#include <stdint.h>
#include <wchar.h>
#include <assert.h>
#include "idzio/backend.h"
#include "idzio/config.h"

View File

@ -3,7 +3,6 @@ idzio_lib = static_library(
name_prefix : '',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
dinput8_lib,
dxguid_lib,

View File

@ -2,7 +2,6 @@ jvs_lib = static_library(
'jvs',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
],

View File

@ -1,5 +1,6 @@
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include "board/config.h"

View File

@ -1,5 +1,7 @@
#include <windows.h>
#include <stdbool.h>
#include <stdlib.h>
#include <assert.h>
#include "hooklib/reg.h"
#include "hooklib/uart.h"

View File

@ -4,7 +4,6 @@ shared_library(
include_directories : inc,
implicit_include_directories : false,
vs_module_defs : 'mai2hook.def',
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
capnhook.get_variable('hooklib_dep'),

View File

@ -1,6 +1,8 @@
#include <windows.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include "hooklib/reg.h"
#include "hooklib/uart.h"

View File

@ -1,6 +1,7 @@
#include <stdbool.h>
#include <windows.h>
#include <stdlib.h>
#include "hook/table.h"
#include "hook/iohook.h"

View File

@ -3,6 +3,7 @@
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include "mai2io/config.h"

View File

@ -3,7 +3,6 @@ mai2io_lib = static_library(
name_prefix : '',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
xinput_lib,
],

View File

@ -1,5 +1,6 @@
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include "board/config.h"

View File

@ -1,4 +1,5 @@
#include <windows.h>
#include <stdlib.h>
#include "board/io4.h"
#include "board/sg-reader.h"

View File

@ -4,6 +4,7 @@
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
#include "mercuryhook/elisabeth.h"
#include "mercuryhook/mercury-dll.h"

View File

@ -4,7 +4,6 @@ shared_library(
include_directories : inc,
implicit_include_directories : false,
vs_module_defs : 'mercuryhook.def',
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
capnhook.get_variable('hooklib_dep'),

View File

@ -3,6 +3,7 @@
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include "mercuryio/config.h"

View File

@ -3,6 +3,7 @@
#include <limits.h>
#include <stdint.h>
#include <process.h>
#include <stdlib.h>
#include "mercuryio/mercuryio.h"
#include "mercuryio/config.h"

View File

@ -3,7 +3,6 @@ mercuryio_lib = static_library(
name_prefix : '',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
sources : [
'mercuryio.c',
'mercuryio.h',

View File

@ -3,7 +3,6 @@ shared_library(
name_prefix : '',
include_directories: inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
],

View File

@ -1,5 +1,6 @@
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include "board/config.h"

View File

@ -4,7 +4,6 @@ shared_library(
include_directories : inc,
implicit_include_directories : false,
vs_module_defs : 'mu3hook.def',
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
capnhook.get_variable('hooklib_dep'),

View File

@ -1,6 +1,7 @@
#include <stdbool.h>
#include <windows.h>
#include <stdlib.h>
#include "hook/table.h"

View File

@ -3,7 +3,6 @@ mu3io_lib = static_library(
name_prefix : '',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
xinput_lib,
],

View File

@ -3,6 +3,7 @@
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include "mu3io/mu3io.h"

View File

@ -1,5 +1,5 @@
#include <windows.h>
#include <stdlib.h>
#include <assert.h>
#include <stdint.h>

View File

@ -2,6 +2,7 @@
#include <windows.h>
#include <stdbool.h>
#include <stdint.h>
#pragma pack(push,1)
struct epay_config {

View File

@ -2,7 +2,6 @@ platform_lib = static_library(
'platform',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
shlwapi_lib,

View File

@ -1,6 +1,7 @@
#pragma once
#include <windows.h>
#include <stdbool.h>
struct misc_config {
bool enable;

View File

@ -1,10 +1,16 @@
#include <winsock2.h>
#include <windows.h>
#include <wincrypt.h>
#include <iphlpapi.h>
#include <iptypes.h>
#include <winternl.h>
#include <assert.h>
#include <icmpapi.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>

View File

@ -2,6 +2,7 @@
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <winioctl.h>
#include "hook/iohook.h"

View File

@ -1,4 +1,5 @@
#include <windows.h>
#include <stdlib.h>
#include <stdbool.h>

View File

@ -2,7 +2,6 @@ util_lib = static_library(
'util',
include_directories : inc,
implicit_include_directories : false,
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
],