tools/builder/Package.cs
author David Anderson <dvander@alliedmods.net>
Sat Jan 27 03:10:31 2007 +0000 (2007-01-27)
changeset 388 4c346c316a49
child 403 fe1c5a3a4ba2
permissions -rw-r--r--
added build tool
     1 using System;
     2 
     3 namespace builder
     4 {
     5 	public class Library
     6 	{
     7 		public Library()
     8 		{
     9 			PlatformExt = false;
    10 			ProjectFile = null;
    11 			IsExecutable = false;
    12 			ReleaseBuild = "Release";
    13 		}
    14 		public string Name;			/* Name of binary */
    15 		public string LocalPath;	/* Local path to library build scripts */
    16 		public string ReleaseBuild;	/* Release build name */
    17 		public string Destination;	/* Final relative path */
    18 		public bool PlatformExt;	/* Extra platform extension */
    19 		public string ProjectFile;	/* Project file, NULL for standard */
    20 		public bool IsExecutable;	/* If this is an EXE instead of a DLL */
    21 		//string DebugBuild;		/* Debug build name */
    22 	};
    23 
    24 	public abstract class Package
    25 	{
    26 		/**
    27 		 * Must return the base package folder.
    28 		 */
    29 		public abstract string GetBaseFolder();
    30 
    31 		/** 
    32 		 * Must return the list of folders to create.
    33 		 */
    34 		public abstract string [] GetFolders();
    35 
    36 		/**
    37 		 * Called when file to file copies must be performed
    38 		 */
    39 		public abstract void OnCopyFiles();
    40 
    41 		/**
    42 		 * Called when dir to dir copies must be performed
    43 		 */
    44 		public abstract void OnCopyFolders(ABuilder builder);
    45 
    46 		/**
    47 		 * Called to build libraries
    48 		 */
    49 		public abstract Library [] GetLibraries();
    50 	}
    51 }