Notice that the second entry didn't actually get stripped? Is this intentional or is there something I'm missing?
And how does one go about effectively referencing libraries where some can't be stand-alone, such as LDB, but yet rely on/require others that can be? For example, LDB requires LS and CBH, which can be stand-alone, yet LDB can't be stand-alone. LDBIcon can be stand-alone yet requires LDB.
I also noticed LDB, LS and CH don't get stripped on the no-libs version. I'm assuming that's intentional. >.<
Edit: I ended up just using embeds.xml. Screw it. :P
the separation is in the long run better for you. Use embeds.xml and have the packager comment out its contents. We have 2 years almost of that system working. It also helps people who disembed by hand too
The problem is that I have to load LibStub and CBH (which can be disembedded) before LibDataBroker (which can't be disembedded) and I can't load LibDBIcon until I've loaded LibDataBroker.
I get what you're saying about using the packager to strip out the embeds.xml file, but that still doesn't help the problem I just mentioned.
I'm also running into a problem where DewDropLib loads after my add-on (when disembedding). By default, it has LoD enabled, but I tried disabling it and it still doesn't load before the add-on. Adding a LoadAddOn() line helps it, but I shouldn't have to do that. Currently, I'm just hard-embedding Dewdrop and AceLibrary (which DD requires). WTB: Dewdrop3. :P
Actually, I just remembered that LS and CBH get included regardless, so that pretty much nullifies that problem. That's what I get for playing with add-ons after an out-patient surgery. :p
But for the record, both of those libraries come with ToC files, hence my concern.
I guess I'll just keep LS, CBH and LDB all in the ToC directly and leave the rest in the embeds with the strip tag. Though that'll probably bother those few who disembed even those. Oh well. You can't please everyone. >.<
Edit: Hmm, for DewdropLib, I guess I should just force a load before calling it, eh (since it loads after my add-on)?
Remember that the packager does two things to create the no-lib package :
- it totally ignores all externals (either .pkgmeta and svn:externals),
- it expands the #@no-lib-strip@ #@end-no-lib-strip@ macros in TOC.
These two operations are independent.
LS, CBH and QTip are probably missing because you include them with .pkgmeta instead of "physically" copying them into your repository.