openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.94k stars 2.55k forks source link

XCode project - compiling core / escape $USER_PREPROCESSOR_DEFINITIONS #7933

Closed dimitre closed 5 months ago

dimitre commented 5 months ago

After a lot of struggle I finally found how to define multiple GCC_PREPROCESSOR_DEFINITIONS in xcconfig files. my usage is this:

USER_PREPROCESSOR_DEFINITIONS=OF_NO_FMOD=1 NANOVG_GL2_IMPLEMENTATION=1

and the issue was the project calling xcodebuild to build the OF Core the solution was to enclose everything with single quotes, so now we can use multiple parameters.