Skip to content

OF modular - Lite when needed #7000

@dimitre

Description

@dimitre

Meant for some users only. This was planned other times before and I'm proposing something simple.
Motivation: we can reduce compiling time when not using the entire project. A smaller binary can be a faster submission to app store too.

related discussion:
https://forum.openframeworks.cc/t/bundling-osx-app-without-glut-and-without-fmodex-nasty/23503/4

my first suggestion is we can use a variable in Project.xcconfig to have fmod enabled as default, like:

OF_USE_LIB_FMOD = YES

So I can edit the second build phases script and put an if inside (already tested)

if [ "$OF_USE_LIB_FMOD" == "YES" ] ; then
echo "\033[32;1;4mUsing libfmod\033[0m"
rsync -aved "$OF_PATH/libs/fmod/lib/osx/libfmod.dylib" "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/";
else
echo "\033[31;1;4mNot using libfmod\033[0m"
fi

this way we can stop including certain libraries if desired
related ideas:

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