-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Special use cases (Xcode) – Add .app, custom build phase, Objective-C++ sources #171
Comments
plus commands you want to run.
I'm going to close this but feel free to keep posting if you find any problem with the proposed solutions |
Thanks for the reply. Sadly I couldn't get
My current
Thanks again! |
mmh ok that's strange. thinking about it i believe the after rule might only work with makefiles but was never ported to work on the PG. about the rest. both objective c sources and wildcards with all the options should be working so not sure what' might be going on, i'll take a look when i have a moment |
I did a bit of digging in the source, here some notes to possibly make it easier for you:
As far as I can tell |
ah yes, you probably need to exclude the files as source first so they are then recognized as objc sources. the PG should be doing this automatically but it doesn't yet |
I couldn't get the exclusion to work. When I try to exclude a file with
The only other thing I found where I could exclude something is |
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
:I would like to add an
.app
bundle to the Xcode project and also add it to theCopy Files
Build Phase with theFrameworks
directory as destination. It's exactly what happens when you add a Framework toADDON_FRAMEWORKS
. Sadly I it doesn't work when I add the .app bundle withADDON_FRAMEWORKS
.I would like to add a custom
Run Script
build phase.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
asObjective-C++
source file. I've already tiredADDON_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.
The text was updated successfully, but these errors were encountered: