projectGenerator icon indicating copy to clipboard operation
projectGenerator copied to clipboard

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

Open 2bbb opened this issue 3 years ago • 1 comments

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?

2bbb avatar Mar 09 '22 10:03 2bbb

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.

artificiel avatar Feb 07 '23 17:02 artificiel