openframeworks / openframeworks/projectGenerator
`ADDON_DATA` doesn't work with wild card like * and ?
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 90
- Forks
- 79
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 5
Description
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 =
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with addon_config.mk and trace the baseProject::addAddon path where addon data is checked with filesystem::exists(path). Compare the documented wildcard behavior with the reported MyAddonData/* case, then verify that matching data is accepted and copied as expected.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100