Skip to content

ADDON_DATA doesn't work with wild card like * and ? #287

Open

Description

@2bbb

Env:

  • macOS 10.15.7 Catalina
  • oF 0.11.2 release
    • PG: bundled version
  • Xcode 12.4

In the document of addon_config.mk says:

	# some addons need resources to be copied to the bin/data folder of the project
	# specify here any files that need to be copied, you can use wildcards like * and ?
	# ADDON_DATA = 

https://github.com/openframeworks/ofxAddonTemplate/blob/9f50770fa93f0a1d81acfb01536ddb275cef1f06/addon_config.mk#L67-L69

I try to use this like

ADDON_DATA = MyAddonData/*

in addon_config.mk.

But the result is [warning] addon data file does not exist, skipping: MyAddonData/*.
and remove * then it works.

And I edit the code with print debug to show addon.data on baseProject::addAddon, then /path/to/addon/MyAddonData/* was printed. (this value is used to filesystem::exists(path))

Is this behavior my misuse? or bug?

Activity

  1. artificiel commented on Feb 7, 2023

    @artificiel
    Contributor

    I confirm the behaviour: ADDON_DATA = "addon_data/* does not behave as the documentation suggests it should, and it takes a while to figure it out.

    += operator works with ADDON_DATA, so it's possible to specify multiple things. changing the documentation to remove references to the wildcard feature would fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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