From 60ad561a2650d776c9e8dd68638850562cef2721 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 6 Jan 2022 23:55:00 -0800 Subject: [PATCH] OpenMPT: Compile libraries with precompiled headers so they build faster --- Frameworks/OpenMPT.old/OpenMPT/common/stdafx.h | 3 +++ .../OpenMPT.old/libOpenMPTOld.xcodeproj/project.pbxproj | 4 ++++ Frameworks/OpenMPT/OpenMPT/common/stdafx.h | 3 +++ Frameworks/OpenMPT/libOpenMPT.xcodeproj/project.pbxproj | 4 ++++ 4 files changed, 14 insertions(+) diff --git a/Frameworks/OpenMPT.old/OpenMPT/common/stdafx.h b/Frameworks/OpenMPT.old/OpenMPT/common/stdafx.h index 0a0eb35cb..1a64f06e8 100644 --- a/Frameworks/OpenMPT.old/OpenMPT/common/stdafx.h +++ b/Frameworks/OpenMPT.old/OpenMPT/common/stdafx.h @@ -11,6 +11,7 @@ #pragma once +#ifdef __cplusplus // has to be first #include "BuildSettings.h" @@ -152,3 +153,5 @@ //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. + +#endif diff --git a/Frameworks/OpenMPT.old/libOpenMPTOld.xcodeproj/project.pbxproj b/Frameworks/OpenMPT.old/libOpenMPTOld.xcodeproj/project.pbxproj index a1f558fbb..8d030f235 100644 --- a/Frameworks/OpenMPT.old/libOpenMPTOld.xcodeproj/project.pbxproj +++ b/Frameworks/OpenMPT.old/libOpenMPTOld.xcodeproj/project.pbxproj @@ -1379,6 +1379,7 @@ GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREFIX_HEADER = OpenMPT/common/stdafx.h; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", @@ -1448,6 +1449,7 @@ ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; + GCC_PREFIX_HEADER = OpenMPT/common/stdafx.h; GCC_PREPROCESSOR_DEFINITIONS = ( "LIBOPENMPT_BUILD=1", "HAVE_CONFIG_H=1", @@ -1484,6 +1486,7 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; FRAMEWORK_VERSION = A; + GCC_PRECOMPILE_PREFIX_HEADER = YES; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "@loader_path/../Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks"; @@ -1505,6 +1508,7 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; FRAMEWORK_VERSION = A; + GCC_PRECOMPILE_PREFIX_HEADER = YES; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "@loader_path/../Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks"; diff --git a/Frameworks/OpenMPT/OpenMPT/common/stdafx.h b/Frameworks/OpenMPT/OpenMPT/common/stdafx.h index 452d34a2c..cf6645141 100644 --- a/Frameworks/OpenMPT/OpenMPT/common/stdafx.h +++ b/Frameworks/OpenMPT/OpenMPT/common/stdafx.h @@ -11,6 +11,7 @@ #pragma once +#ifdef __cplusplus // has to be first #include "openmpt/all/BuildSettings.hpp" @@ -139,3 +140,5 @@ //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. + +#endif diff --git a/Frameworks/OpenMPT/libOpenMPT.xcodeproj/project.pbxproj b/Frameworks/OpenMPT/libOpenMPT.xcodeproj/project.pbxproj index 4ff3ad539..646f7f71d 100644 --- a/Frameworks/OpenMPT/libOpenMPT.xcodeproj/project.pbxproj +++ b/Frameworks/OpenMPT/libOpenMPT.xcodeproj/project.pbxproj @@ -2223,6 +2223,8 @@ GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = OpenMPT/common/stdafx.h; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", @@ -2293,6 +2295,8 @@ ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = OpenMPT/common/stdafx.h; GCC_PREPROCESSOR_DEFINITIONS = ( "LIBOPENMPT_BUILD=1", "HAVE_CONFIG_H=1",