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[11];
35 folders[1] = "plugins/disabled";
36 folders[2] = "gamedata";
37 folders[3] = "configs/geoip";
38 folders[4] = "translations";
40 folders[6] = "extensions";
42 folders[8] = "scripting/include";
43 folders[9] = "scripting/admin-flatfile";
44 folders[10] = "scripting/testsuite";
50 * Called when file to file copies must be performed
52 public override void OnCopyFiles(ABuilder builder)
57 * Called when dir to dir copies must be performed
59 public override void OnCopyFolders(ABuilder builder)
61 builder.CopyFolder(this, "configs", "configs", null);
62 builder.CopyFolder(this, "configs/geoip", "configs/geoip", null);
64 string [] plugin_omits = new string[1];
65 plugin_omits[0] = "spcomp.exe";
67 string [] include_omits = new string[1];
68 include_omits[0] = "version.tpl";
70 builder.CopyFolder(this, "gamedata", "gamedata", null);
71 builder.CopyFolder(this, "plugins", "scripting", plugin_omits);
72 builder.CopyFolder(this, "plugins/include", "scripting/include", include_omits);
73 builder.CopyFolder(this, "translations", "translations", null);
74 builder.CopyFolder(this, "public/licenses", null, null);
75 builder.CopyFolder(this, "plugins/admin-flatfile", "scripting/admin-flatfile", null);
76 builder.CopyFolder(this, "plugins/testsuite", "scripting/testsuite", null);
80 * Called to build libraries
82 public override Library [] GetLibraries()
84 Library [] libs = new Library[7];
86 for (int i=0; i<libs.Length; i++)
88 libs[i] = new Library();
91 libs[0].Destination = "bin";
92 libs[0].LocalPath = "core";
93 libs[0].Name = "sourcemod_mm";
94 libs[0].PlatformExt = true;
96 libs[1].Destination = "bin";
97 libs[1].LocalPath = "sourcepawn/jit/x86";
98 libs[1].Name = "sourcepawn.jit.x86";
99 libs[1].ProjectFile = "jit-x86";
101 libs[2].Destination = "scripting";
102 libs[2].LocalPath = "sourcepawn/compiler";
103 libs[2].Name = "spcomp";
104 libs[2].IsExecutable = true;
106 libs[3].Destination = "extensions";
107 libs[3].LocalPath = "extensions/geoip";
108 libs[3].Name = "geoip.ext";
109 libs[3].ProjectFile = "geoip";
111 libs[4].Destination = "extensions";
112 libs[4].LocalPath = "extensions/bintools";
113 libs[4].Name = "bintools.ext";
114 libs[4].ProjectFile = "bintools";
116 libs[5].Destination = "extensions";
117 libs[5].LocalPath = "extensions/mysql";
118 libs[5].Name = "dbi.mysql.ext";
119 libs[5].ProjectFile = "sm_mysql";
121 libs[6].Destination = "extensions";
122 libs[6].LocalPath = "extensions/sdktools";
123 libs[6].Name = "sdktools.ext";
124 libs[6].ProjectFile = "sdktools";
130 * Called to build plugins
132 public override Plugin [] GetPlugins()
134 Plugin [] plugins = new Plugin[3];
136 plugins[0] = new Plugin("admin-flatfile", "admin-flatfile");
137 plugins[1] = new Plugin("basecommands");
138 plugins[2] = new Plugin("antiflood");