Example #1
0
        /// <summary>
        /// ビルド実行
        /// </summary>
        public void Build(BuildTarget buildTarget)
        {
            var data = m_platformList.FirstOrDefault(c => c.buildTarget == buildTarget);

            if (data == null)
            {
                throw new Exception($"{buildTarget}が{nameof(m_platformList)}に設定されていません");
            }
            Debug.Log($"[{nameof(ChipstarPipeline)}] Start");
            try
            {
                for (var i = 0; i < m_buildFlowList.Length; i++)
                {
                    var flow = m_buildFlowList[i];
                    using (var scope = StopWatchScope.Create(flow.name))
                    {
                        flow.Build(data.platform, data.buildTarget);
                    }
                }
            }
            catch (Exception e)
            {
                Debug.LogException(e);
            }
            finally
            {
                Debug.Log($"[{nameof(ChipstarPipeline)}] Finish");
            }
        }
Example #2
0
 public static void Start(string tag)
 {
     if (m_table.ContainsKey(tag))
     {
         m_table[tag]?.Dispose();
         m_table[tag] = null;
     }
     m_table[tag] = StopWatchScope.Create(tag);
 }