Skip to content

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

@2bbb

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?

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