コード例 #1
0
ファイル: UEBuildTarget.cs プロジェクト: mymei/UE4
        /** Creates the receipt for the target */
        private void PrepareReceipt(IUEToolChain ToolChain)
        {
            Receipt = new BuildReceipt();

            // Add the target properties
            Receipt.SetProperty("TargetName", TargetName);
            Receipt.SetProperty("Platform", Platform.ToString());
            Receipt.SetProperty("Configuration", Configuration.ToString());
            Receipt.SetProperty("Precompile", bPrecompile.ToString());

            // Merge all the binary receipts into this
            foreach(UEBuildBinary Binary in AppBinaries)
            {
                BuildReceipt BinaryReceipt = Binary.MakeReceipt(ToolChain);
                if(Binary.Config.Type == UEBuildBinaryType.StaticLibrary)
                {
                    BinaryReceipt.RuntimeDependencies.Clear();
                }
                Receipt.Merge(BinaryReceipt);
            }

            // Convert all the paths to use variables for the engine and project root
            Receipt.InsertStandardPathVariables(BuildConfiguration.RelativeEnginePath, ProjectDirectory);
        }