Skip to content

Special use cases (Xcode) – Add .app, custom build phase, Objective-C++ sources #171

@michaelbaisch

Description

@michaelbaisch

Hello everybody,

I'm working on an addon with some special use cases for the PG. Right now I'm working on macOS (Xcode) side, and I would like to know if I can do the following in the addon_config.mk:

  1. I would like to add an .app bundle to the Xcode project and also add it to the Copy Files Build Phase with the Frameworks directory as destination. It's exactly what happens when you add a Framework to ADDON_FRAMEWORKS. Sadly I it doesn't work when I add the .app bundle with ADDON_FRAMEWORKS.

  2. I would like to add a custom Run Script build phase.

  3. The addon uses sources which contain C++ and Objective-C code. In Xcode you have to declare the source file as Objective-C++ to compile correctly. Is there a way to tell the PG to declare a .cpp as Objective-C++ source file. I've already tired ADDON_OBJC_SOURCES which didn't work. (Changing the extension might lead to problems on the VS side of things)

If PG isn't able to do those things does anybody have a quick idea how to simply automate those steps, preferably without running another script?

Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions