mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-25 04:11:42 -04:00
compile only a singe objcpp file
This commit is contained in:
parent
c2221ea0af
commit
688b8c4ac9
2 changed files with 18 additions and 2 deletions
loader
|
@ -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)
|
||||
|
||||
|
|
17
loader/src/platform/Objcpp.mm
Normal file
17
loader/src/platform/Objcpp.mm
Normal 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
|
Loading…
Add table
Reference in a new issue