예제 #1
0
        internal void Resolve()
        {
            if (_resolved)
            {
                return;
            }

            Resolver resolver = new Resolver();

            resolver.SetParameter("solution", this);
            resolver.Resolve(this);

            if (PerforceRootPath != null)
            {
                Util.ResolvePath(SharpmakeCsPath, ref _perforceRootPath);
            }

            foreach (Solution.Configuration conf in Configurations)
            {
                conf.Resolve(resolver);
            }

            foreach (var extraItemKey in ExtraItems.Keys.ToList())
            {
                Strings values = new Strings(ExtraItems[extraItemKey]);
                foreach (string value in values)
                {
                    string newValue = resolver.Resolve(value);
                    values.UpdateValue(value, newValue);
                }
                ExtraItems[extraItemKey] = values;
            }

            _resolved = true;
        }
예제 #2
0
            internal void Resolve(Resolver resolver)
            {
                resolver.SetParameter("conf", this);
                resolver.SetParameter("target", Target);
                resolver.Resolve(this);
                resolver.RemoveParameter("conf");
                resolver.RemoveParameter("target");

                Util.ResolvePath(Solution.SharpmakeCsPath, ref SolutionPath);
                if (Solution.IsFileNameToLower)
                {
                    SolutionFileName = SolutionFileName.ToLower();
                }
            }
예제 #3
0
        internal void Resolve()
        {
            if (_resolved)
            {
                return;
            }

            Resolver resolver = new Resolver();

            resolver.SetParameter("solution", this);
            resolver.Resolve(this);

            if (PerforceRootPath != null)
            {
                Util.ResolvePath(SharpmakeCsPath, ref _perforceRootPath);
            }

            foreach (Solution.Configuration conf in Configurations)
            {
                conf.Resolve(resolver);
            }

            _resolved = true;
        }