Repository navigation
Addon and project after compile scripts (picks up #217) - #658
Merged
danoli3 merged 2 commits intoOct 10, 2026
Merged
Conversation
…project has been compiled. Only for xcode so far. Ported from openframeworks#217 to commandLine/src.
…--postbuild + Advanced GUI field
danoli3
force-pushed
the
addon-after-compile-script
branch
from
October 10, 2026 07:07
15804ec to
a762fb9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Picks up #217 by @roymacdonald - his commit is ported as-is (authored by him, paths moved from
ofxProjectGenerator/srctocommandLine/src), with a follow-up commit on top. Supersedes #217.Summary
ADDON_AFTER_COMPILE_SCRIPTinaddon_config.mk(from Feature post compile script xcode #217): a script that runs after the project compiles, per platform section like the other addon keys.+=adds lines"; "- works for both a shell run script and a cmd post-build eventPBXShellScriptBuildPhase("Run Script - After Compile"). Before, every script reused one fixed phase id, so a second addon overwrote the first and the id was added tobuildPhasestwiceaddAfterRulewas a no-op - scripts are now appended to the existing per-platformPostBuildEventCommand(after the dllxcopy), so x64 / ARM64 / ARM64EC, Debug and Release all run them-P/--postbuild "<script>"on the CLI, and an Advanced Post-build script field in the GUI next to Custom defines (9 locales)PROJECT_AFTER_OSXinconfig.makenow keeps everything after the first=- it split on every=, soecho A=Bbecameecho ANotes
CMakeLists.txttoo, where the same scripts map toadd_custom_command(TARGET ... POST_BUILD ...)Test plan
osx:two-line script incl.FOO=1,vs:one line) plus-P 'echo project-level':xcodebuild -listopens the projectecho vs-after+echo project-levelappended after thexcopyin all three platformPostBuildEvents; theosx:script isn't usedPROJECT_AFTER_OSX = echo A=B C=D-> run scriptecho A=B C=D