5 public class PkgCore : Package
11 public override string GetBaseFolder()
13 return "base/addons/sourcemod";
16 public override void GetCompressBases(ref string path, ref string folder)
22 public override string GetPackageName()
24 return "sourcemod-core";
28 * Must return the list of folders to create.
30 public override string [] GetFolders()
32 string [] folders = new string[8];
35 folders[1] = "plugins/disabled";
36 folders[2] = "configs/gamedata";
37 folders[3] = "translations";
39 folders[5] = "extensions";
40 folders[6] = "scripting/include";
47 * Called when file to file copies must be performed
49 public override void OnCopyFiles(ABuilder builder)
54 * Called when dir to dir copies must be performed
56 public override void OnCopyFolders(ABuilder builder)
58 builder.CopyFolder(this, "configs", "configs", null);
59 builder.CopyFolder(this, "configs/gamedata", "configs/gamedata", null);
61 string [] plugin_omits = new string[1];
62 plugin_omits[0] = "spcomp.exe";
64 string [] include_omits = new string[1];
65 include_omits[0] = "version.tpl";
67 builder.CopyFolder(this, "plugins", "scripting", plugin_omits);
68 builder.CopyFolder(this, "plugins/include", "scripting/include", include_omits);
69 builder.CopyFolder(this, "translations", "translations", null);
70 builder.CopyFolder(this, "public/licenses", null, null);
74 * Called to build libraries
76 public override Library [] GetLibraries()
78 Library [] libs = new Library[5];
80 for (int i=0; i<libs.Length; i++)
82 libs[i] = new Library();
85 libs[0].Destination = "bin";
86 libs[0].LocalPath = "core";
87 libs[0].Name = "sourcemod_mm";
88 libs[0].PlatformExt = true;
90 libs[1].Destination = "bin";
91 libs[1].LocalPath = "sourcepawn/jit/x86";
92 libs[1].Name = "sourcepawn.jit.x86";
93 libs[1].ProjectFile = "jit-x86";
95 libs[2].Destination = "scripting";
96 libs[2].LocalPath = "sourcepawn/compiler";
97 libs[2].Name = "spcomp";
98 libs[2].IsExecutable = true;
100 libs[3].Destination = "extensions";
101 libs[3].LocalPath = "extensions/geoip";
102 libs[3].Name = "geoip.ext";
103 libs[3].ProjectFile = "geoip";
105 libs[4].Destination = "extensions";
106 libs[4].LocalPath = "extensions/threader";
107 libs[4].Name = "threader.ext";
108 libs[4].ProjectFile = "threader";