Example #1
0
        protected virtual IBundleFileManifest Build(IBundleBuildConfig config, IBundleGroup group, BundlePackRule rule)
        {
            var data = new BundleBuildData
            {
                TopDirectoryPath = config.TargetDirPath,
                Identifier       = group.Identifier,
                ABName           = config.GetBundleName(group.Identifier),
                Assets           = group.Assets,
                Labels           = rule.Labels,
            };

            data.CalcAddress();
            return(data);
        }
Example #2
0
 public IList <IBundleFileManifest> GetBundleList(IBundleBuildConfig config, IList <IBundleGroup> groups, BundlePackRule rule)
 {
     return(groups.Select(group => Build(config, group, rule)).ToArray());
 }