openframeworks / openframeworks/projectGenerator

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

Open
#287 1 comment 0 reactions 0 assignees View on GitHub

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 = 

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.