Skip to content

Commit

Permalink
macOS Xcode Project Updates to XCFrameworks C++17 - Bleeding Edge (#7889
Browse files Browse the repository at this point in the history
)

* Xcode Project Updates to XCFrameworks C++17 - Bleeding Edge

* macOS GitHub Actions Latest Libs

* GitHub Actions

* macOS just one download latest libs

* Fixes #7781

* Apothecary on Bleeding

* macOS addon ofxSVG

* GitHub Actions - macOS disabled makefile until dupe fix

* GitHub Actions

* GitHub Actions macOS makefiles on

* Download Libs macos

* macos download all targets

* macOS template against super mega xcframework

* Compiler scripts for macOS / Actions

* GitHub Actions - macOS disabled makefile until dupe fix

* GitHub Actions

* iOS Bleeding Latest

* iOS curl disabled for moment

* iOS Download Libs / Actions and scripts for other platforms

* Fix ofxAccelerometer / url off for tvOS

* Xcode Pbxproj to XML script - XML is required for PG to work for these projects. Added script as we keep forgetting

* Xcode Project to XML iOS / macOS

* tvOS Update Bleeding

* Xcode Xchemas

* Revert "Xcode Project to XML iOS / macOS"

This reverts commit bcdb4db.

* Fix download / addons

* iOS Project Update Link to Mega

* Actions ios to libs macos download

* tvos

* tvOS Code - Add temp url loader

* tvOS Project Working

* Fix ofURLFileLoader

* tvOS Schema

* tvOS Fix

* OpenAL Disabled for Sims

* tvOS Actions +

* Project Changes iPhone to iOS. openFrameworksLib to OSX+OFLib

* macOS Super Mega Framework Project all Targets

* Major Preprocessor Defines for Ability to Scope out platform and features

* Create Package Nightly Fixes for macOS

* iOS Compiling - More Define Fixes

* tvOS Compiling - fixed defines

* Define Updates

* Obj-C Fixing

* Cairo Include Fix

* macOS Nightly package

* macos project changes

* Revert "macos project changes"

This reverts commit 4a54492.

* Mega Project Changes

* Mega Project Assets

* macOS ci

* Video Grabber / Player updates

* macOS fixes for openFrameworks core project

* AV macOS Foundation Fixes

* Add missing core frameworks

* osx project fix up

* Workflow macOS XCFrameworks

* VS Fix Cairo Include Path

* tvOS and iOS Fixes

* VS Fix Cairo

* Defines for OF_RTAUDIO_6 / #define OF_RTAUDIO

* projectGenerator tip

* iOS / tvOS / OSX project updates - frameworks linked

* update create_package

* mk curl

* remove script
  • Loading branch information
danoli3 committed Jun 26, 2024
1 parent 90efc05 commit 51012f4
Show file tree
Hide file tree
Showing 171 changed files with 8,471 additions and 3,592 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/actions/build-ios-tvos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
strategy:
matrix:
cfg:
- {target: ios, libs: ios}
#- {target: tvos, libs: ios} #broken currently maybe better to just remove
- {target: ios, libs: macos}
- {target: tvos, libs: macos}
env:
TARGET: ${{matrix.cfg.target}}
steps:
Expand All @@ -38,11 +38,11 @@ jobs:
key: ${{ matrix.cfg.target }}-${{ matrix.cfg.libs }}

- name: Download libs
run: ./scripts/${{matrix.cfg.libs}}/download_libs.sh
run: ./scripts/macos/download_latest_libs.sh
- name: install
run: ./scripts/ci/$TARGET/install.sh
- name: Build
run: ./scripts/ci/$TARGET/build.sh;

env:
DEVELOPER_DIR: "/Applications/Xcode_15.2.app/Contents/Developer"
DEVELOPER_DIR: "/Applications/Xcode.app/Contents/Developer"
12 changes: 4 additions & 8 deletions .github/workflows/actions/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ env:

jobs:
build-macos:
runs-on: macos-13
runs-on: macos-14
strategy:
matrix:
cfg:
- {target: osx, opt: "xcode"}
- {target: osx, opt: "makefiles"}
- {target: macos, opt: "xcode"}
- {target: macos, opt: "makefiles"}
steps:
- uses: actions/checkout@v4
- name: ccache
Expand All @@ -37,13 +37,9 @@ jobs:
key: ${{ matrix.cfg.target }}-${{ matrix.cfg.opt }}
# key: ${{ matrix.msystem }}


- name: Download libs
# continue-on-error: true
run: ./scripts/${{ matrix.cfg.target }}/download_libs.sh
# - name: rm-dev
# run: sudo rm -rf /Library/Developer

run: ./scripts/${{ matrix.cfg.target }}/download_latest_libs.sh
# this step is not needed here because the script is empty
# - name: install
# run: ./scripts/ci/$TARGET/install.sh
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/of.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ jobs:
strategy:
matrix:
cfg:
- {target: ios, libs: ios}
#- {target: tvos, libs: ios} #broken currently maybe better to just remove
- {target: ios, libs: macos}
- {target: tvos, libs: macos}
env:
TARGET: ${{matrix.cfg.target}}
steps:
Expand All @@ -188,7 +188,7 @@ jobs:
key: ${{ matrix.cfg.target }}-${{ matrix.cfg.libs }}

- name: Download libs
run: ./scripts/${{matrix.cfg.libs}}/download_libs.sh
run: ./scripts/${{matrix.cfg.libs}}/download_latest_libs.sh
- name: install
run: ./scripts/ci/$TARGET/install.sh
- name: Build
Expand Down Expand Up @@ -260,7 +260,7 @@ jobs:


- name: Download libs
run: ./scripts/${{ matrix.cfg.target }}/download_libs.sh
run: ./scripts/${{ matrix.cfg.target }}/download_latest_libs.sh

- name: Build
run:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,6 @@ examples/**/config.make
libs/openFrameworksCompiled/project/vs/.vs/
scripts/templates/vs/.vs/
**/.vs/
libs/openFrameworksCompiled/project/osx/openFrameworksLib.xcodeproj/xcshareddata
scripts/templates/ios/bin
libs/openFrameworksCompiled/project/tvOS/tvOS+OFLib.xcodeproj/xcshareddata
1 change: 1 addition & 0 deletions addons/ofxAccelerometer/src/ofxAccelerometer.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "ofTypes.h"
#include "ofPoint.h"
#include "ofEvents.h"
#include "ofMathConstants.h"

typedef void (*ofxAccelCB)(ofPoint&); // typedef for accelerometer callback

Expand Down
4 changes: 2 additions & 2 deletions addons/ofxSvg/addon_config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ common:
# ADDON_LIBS_EXCLUDE =

osx:
ADDON_LIBS = libs/svgtiny/lib/osx/svgtiny.a
ADDON_LIBS += libs/libxml2/lib/osx/xml2.a
# ADDON_LIBS = libs/svgtiny/lib/osx/svgtiny.a
# ADDON_LIBS += libs/libxml2/lib/osx/xml2.a

ios:
ADDON_LIBS = libs/svgtiny/lib/ios/svgtiny.a
Expand Down
4 changes: 3 additions & 1 deletion addons/ofxiOS/src/app/ofAppiOSWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
* ***********************************************************************/

#pragma once
#include "ofxiOSConstants.h"
#if defined(TARGET_OF_IOS)
#include <TargetConditionals.h>
#include "ofAppBaseWindow.h"
#include "ofxiOSConstants.h"
Expand Down Expand Up @@ -284,5 +286,5 @@ class ofAppiOSWindow : public ofAppBaseGLESWindow {
[[deprecated("use ofAppiOSWindow")]]
typedef ofAppiOSWindow ofAppiPhoneWindow;


#endif

4 changes: 4 additions & 0 deletions addons/ofxiOS/src/app/ofAppiOSWindow.mm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
*
* ***********************************************************************/
#include <TargetConditionals.h>
#include "ofxiOSConstants.h"
#if defined(TARGET_OF_IOS)
#include "ofAppiOSWindow.h"
#include "ofGLRenderer.h"
#include "ofGLProgrammableRenderer.h"
Expand Down Expand Up @@ -486,3 +488,5 @@
ofiOSWindowSettings & ofAppiOSWindow::getSettings() {
return settings;
}

#endif
4 changes: 4 additions & 0 deletions addons/ofxiOS/src/app/ofxiOSApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
*/

#pragma once
#include "ofxiOSConstants.h"
#if defined(TARGET_OF_IOS)

#include "ofBaseApp.h"
#include "ofxiOSAlerts.h"
Expand Down Expand Up @@ -51,3 +53,5 @@ class ofxiOSApp : public ofBaseApp, public ofxiOSAlertsListener {

[[deprecated("use ofxiOSApp")]]
typedef ofxiOSApp ofxiPhoneApp;

#endif
7 changes: 4 additions & 3 deletions addons/ofxiOS/src/core/ofxiOSAppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
* ***********************************************************************/

#pragma once

#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT)
#include <TargetConditionals.h>
#if TARGET_OS_IOS || (TARGET_OS_IPHONE && !TARGET_OS_TV)
#if defined(TARGET_OS_IOS) || (TARGET_OS_IPHONE && !TARGET_OS_TV)

#import <UIKit/UIKit.h>

Expand Down Expand Up @@ -65,4 +66,4 @@
#define ofxiPhoneAppDelegate ofxiOSAppDelegate

#endif

#endif
5 changes: 2 additions & 3 deletions addons/ofxiOS/src/core/ofxiOSAppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@
*
* ***********************************************************************/

#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT) && TARGET_OS_IOS || (TARGET_OS_IPHONE && !TARGET_OS_TV)
#import "ofxiOSAppDelegate.h"

#if TARGET_OS_IOS || (TARGET_OS_IPHONE && !TARGET_OS_TV)

#import "ofxiOSViewController.h"
#import "ofxiOSGLKViewController.h"
#import "ofxiOSExternalDisplay.h"
Expand Down
4 changes: 4 additions & 0 deletions addons/ofxiOS/src/core/ofxiOSEAGLView.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
//

#pragma once

#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT)
#include <TargetConditionals.h>
#import <UIKit/UIKit.h>
#import "EAGLView.h"
Expand Down Expand Up @@ -40,3 +43,4 @@ class ofAppiOSWindow;
@end

#define ofxiPhoneEAGLView ofxiOSEAGLView
#endif
3 changes: 3 additions & 0 deletions addons/ofxiOS/src/core/ofxiOSEAGLView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by lukasz karluk on 5/07/12.
//

#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT) && defined(TARGET_OF_IOS)
#include "ofxiOSEAGLView.h"
#include "ofxiOSApp.h"
#include "ofAppiOSWindow.h"
Expand Down Expand Up @@ -389,3 +391,4 @@ - (void)touchesCancelled:(NSSet *)touches


@end
#endif
6 changes: 4 additions & 2 deletions addons/ofxiOS/src/core/ofxiOSGLKView.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
//
// Created by Dan Rosser on 7/3/18.
//


#pragma once
#include "ofxiOSConstants.h"
#include <TargetConditionals.h>
#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT) && defined(OF_GL_KIT) && defined(TARGET_OF_IOS)
#import <UIKit/UIKit.h>
#import "EAGLKView.h"
#include <glm/glm.hpp>
Expand Down Expand Up @@ -48,3 +49,4 @@ class ofAppiOSWindow;
@end

#define ofxiPhoneEAGLView ofxiOSEAGLView
#endif
4 changes: 3 additions & 1 deletion addons/ofxiOS/src/core/ofxiOSGLKView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
//
// Created by Dan Rosser on 7/3/18.
//

#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT) && defined(OF_GL_KIT) && defined(TARGET_OF_IOS)
#include "ofxiOSGLKView.h"
#include "ofxiOSApp.h"
#include "ofAppiOSWindow.h"
Expand Down Expand Up @@ -401,3 +402,4 @@ - (UIImage*)getSnapshot {


@end
#endif
3 changes: 3 additions & 0 deletions addons/ofxiOS/src/core/ofxiOSGLKViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#pragma once

#include <TargetConditionals.h>
#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT) && defined(OF_GL_KIT)
#if TARGET_OS_IOS || (TARGET_OS_IPHONE && !TARGET_OS_TV)

#import <UIKit/UIKit.h>
Expand Down Expand Up @@ -41,3 +43,4 @@ class ofxiOSApp;


#endif /* ofxiOSGLKViewController_h */
#endif
3 changes: 3 additions & 0 deletions addons/ofxiOS/src/core/ofxiOSGLKViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//

#include <TargetConditionals.h>
#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT) && defined(OF_GL_KIT)
#if TARGET_OS_IOS || (TARGET_OS_IPHONE && !TARGET_OS_TV)

#import "ofxiOSGLKViewController.h"
Expand Down Expand Up @@ -470,3 +472,4 @@ - (void)setMSAA:(bool)value {
@end

#endif
#endif
8 changes: 6 additions & 2 deletions addons/ofxiOS/src/core/ofxiOSViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@

#include <TargetConditionals.h>
#if TARGET_OS_IOS || (TARGET_OS_IPHONE && !TARGET_OS_TV)

#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT)
#import <UIKit/UIKit.h>

#import "EAGLView.h"
#import "ofxiOSEAGLView.h"
class ofxiOSApp;
@class ofxiOSEAGLView;
@class EAGLViewDelegate;

@interface ofxiOSViewController : UIViewController

Expand All @@ -31,3 +34,4 @@ class ofxiOSApp;
#define ofxPhoneViewController ofxiOSViewController

#endif
#endif
7 changes: 5 additions & 2 deletions addons/ofxiOS/src/core/ofxiOSViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
//

#include <TargetConditionals.h>
#if TARGET_OS_IOS || (TARGET_OS_IPHONE && !TARGET_OS_TV)

#include "ofxiOSConstants.h"
#if TARGET_OS_IOS || (TARGET_OS_IPHONE && !TARGET_OS_TV) && !defined(TARGET_OF_MACOS)
#if defined(OF_UI_KIT)
#import <QuartzCore/QuartzCore.h>

#include "ofxiOSViewController.h"
#include "ofxiOSEAGLView.h"
#include "ofAppiOSWindow.h"
#import "ofxiOSExtras.h"


@interface ofxiOSViewController() <EAGLViewDelegate> {
UIInterfaceOrientation currentInterfaceOrientation;
UIInterfaceOrientation pendingInterfaceOrientation;
Expand Down Expand Up @@ -386,3 +388,4 @@ -(BOOL)prefersStatusBarHidden{
@end

#endif
#endif
1 change: 0 additions & 1 deletion addons/ofxiOS/src/events/ofxiOSAlertsListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
* ***********************************************************************/

#pragma once

#include <string>

/****** protocol, delegate, interface, whatever you want to call it ******/
Expand Down
6 changes: 4 additions & 2 deletions addons/ofxiOS/src/gl/EAGLKView.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// Created by Dan Rosser on 7/3/18.
//


#pragma once

#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT) && defined(OF_GL_KIT)
#import <UIKit/UIKit.h>
#import <GLKit/GLKit.h>
#import "ESRenderer.h"
Expand Down Expand Up @@ -71,3 +71,5 @@
- (void)notifyResized;

@end

#endif
7 changes: 4 additions & 3 deletions addons/ofxiOS/src/gl/EAGLKView.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
//
// Created by Dan Rosser on 7/3/18.
//

#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT) && defined(OF_GL_KIT)
#include <TargetConditionals.h>

#import "EAGLKView.h"

#import "ES1Renderer.h"
#import "ES2Renderer.h"

Expand Down Expand Up @@ -183,3 +182,5 @@ - (void) notifyResized {


@end

#endif
5 changes: 4 additions & 1 deletion addons/ofxiOS/src/gl/EAGLView.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
* ***********************************************************************/

#pragma once

#include "ofxiOSConstants.h"
#if defined(OF_UI_KIT) && defined(OF_GL_KIT)
#import <UIKit/UIKit.h>
#import "ESRenderer.h"

Expand Down Expand Up @@ -108,3 +109,5 @@
- (void)notifyResized;

@end

#endif
Loading

0 comments on commit 51012f4

Please sign in to comment.