// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Collections.Generic;
using Cake.Core.IO;
using Cake.Core.Tooling;

namespace Cake.Common.Tools.WiX
{
    /// <summary>
    /// Contains settings used by the <see cref="LightRunner"/>.
    /// </summary>
    public sealed class LightSettings : ToolSettings
    {
        /// <summary>
        /// Gets or sets the defined WiX variables.
        /// </summary>
        public IDictionary<string, string> Defines { get; set; } =
            // “Variable names are case-sensitive.” http://wixtoolset.org/documentation/manual/v3/overview/preprocessor.html#custom-variables-define
            new Dictionary<string, string>(StringComparer.Ordinal);

        /// <summary>
        /// Gets or sets the WiX extensions to use.
        /// </summary>
        public IEnumerable<string> Extensions { get; set; }

        /// <summary>
        /// Gets or sets raw command line arguments to pass through to the linker.
        /// </summary>
        public string RawArguments { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether to show the logo information.
        /// </summary>
        public bool NoLogo { get; set; }

        /// <summary>
        /// Gets or sets the path to the output file (i.e. the resulting MSI package).
        /// </summary>
        public FilePath OutputFile { get; set; }
    }
}