compile only a singe objcpp file

This commit is contained in:
altalk23 2023-02-09 13:25:23 +03:00
parent c2221ea0af
commit 688b8c4ac9
2 changed files with 18 additions and 2 deletions
loader

View file

@ -35,8 +35,7 @@ file(GLOB SOURCES CONFIGURE_DEPENDS
# Obj-c sources
file(GLOB OBJC_SOURCES
src/platform/ios/*.mm
src/platform/mac/*.mm
src/platform/Objcpp.mm
)
set_source_files_properties(${OBJC_SOURCES} PROPERTIES SKIP_PRECOMPILE_HEADERS ON)

View file

@ -0,0 +1,17 @@
// Only a single objc++ file is used because since pch doesnt work, each file adds a lot to the compile times
#include <Geode/DefaultInclude.hpp>
USE_GEODE_NAMESPACE();
#if defined(GEODE_IS_MACOS)
#include "mac/crashlog.mm"
#include "mac/FileWatcher.mm"
#include "mac/util.mm"
#elif defined(GEODE_IS_IOS)
#include "ios/FileWatcher.mm"
#include "ios/util.mm"
#endif