Пример #1
0
        ExtendSource <DependentModule>(
            CModuleContainer <ObjectFile> affectedSource)
            where DependentModule : CModuleContainer <ObjectFile>, new()
        {
            var dependent = Bam.Core.Graph.Instance.FindReferencedModule <DependentModule>();

            if (null == dependent)
            {
                return;
            }

            // as the referenced container of source is to be shoehorned into
            // this module, make sure that the external container isn't built standalone
            // note that the referenced container will float to the top of the dependency
            // graph, but just won't do anything
            foreach (var child in dependent.Children)
            {
                var childAsObjectFile = child as ObjectFileBase;
                if (null == childAsObjectFile)
                {
                    continue;
                }
                childAsObjectFile.PerformCompilation = false;
            }

            affectedSource.ExtendWith(dependent);
            affectedSource.UsePublicPatchesPrivately(dependent);
        }
Пример #2
0
        ExtendSource <DependentModule>(
            CModuleContainer <ObjectFile> affectedSource)
            where DependentModule : CModuleContainer <ObjectFile>, new()
        {
            var dependent = Bam.Core.Graph.Instance.FindReferencedModule <DependentModule>();

            if (null == dependent)
            {
                return;
            }
            affectedSource.ExtendWith(dependent);
            affectedSource.UsePublicPatchesPrivately(dependent);
        }