diff --git a/components/raybri/raybri.h b/components/raybri/raybri.h index 1d857ca..902f706 100644 --- a/components/raybri/raybri.h +++ b/components/raybri/raybri.h @@ -1,10 +1,6 @@ #ifndef RAYBRI_H #define RAYBRI_H -#if defined(PLATFORM_IOS) -#include "../egl/egl.h" -#endif - void raybriInit(void); void raybriRender(int width, int height); void raybriShutdown(void); diff --git a/ogs-blue/ver-ios/project.yml b/ogs-blue/ver-ios/project.yml index 12310e8..d5e0acf 100644 --- a/ogs-blue/ver-ios/project.yml +++ b/ogs-blue/ver-ios/project.yml @@ -27,5 +27,5 @@ targets: LD_RUNPATH_SEARCH_PATHS: - "$(inherited) @executable_path/Frameworks" PRODUCT_BUNDLE_IDENTIFIER: org.opengamestudio.blue - SWIFT_OBJC_BRIDGING_HEADER: src/raybri/raybri.h + SWIFT_OBJC_BRIDGING_HEADER: src/BlueBridgingHeader.h type: application diff --git a/ogs-blue/ver-ios/src/BlueBridgingHeader.h b/ogs-blue/ver-ios/src/BlueBridgingHeader.h new file mode 100644 index 0000000..2d1fc0f --- /dev/null +++ b/ogs-blue/ver-ios/src/BlueBridgingHeader.h @@ -0,0 +1,7 @@ +#ifndef OGS_BLUE_BRIDGING_HEADER_H +#define OGS_BLUE_BRIDGING_HEADER_H + +#include "egl/egl.h" +#include "raybri/raybri.h" + +#endif // OGS_BLUE_BRIDGING_HEADER_H