[RTL]
[reactos.git] / reactos / tools / sysgen / SysGen.BuildEngine / Backends / Mingw / ModuleHandlers / MingwWin32OCXModuleHandler.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 using SysGen.RBuild.Framework;
6
7 namespace SysGen.BuildEngine.Backends
8 {
9 public class MingwWin32OCXModuleHandler : MingwRBuildModuleHandler
10 {
11 public MingwWin32OCXModuleHandler(RBuildModule module)
12 : base(module)
13 {
14 }
15
16 protected override bool CanCompile(RBuildSourceFile file)
17 {
18 return (file.IsHeader ||file.IsC || file.IsWindResource || file.IsCPP || file.IsWineBuild);
19 }
20
21 protected override void WriteFileBuildInstructions(SourceFile sourceFile)
22 {
23 if (sourceFile.File.IsHeader)
24 {
25 WritePCH(sourceFile);
26 }
27
28 if (sourceFile.File.IsC)
29 {
30 WriteCCompiler(sourceFile);
31 }
32
33 if (sourceFile.File.IsWindResource)
34 {
35 WriteWindResCompiler(sourceFile);
36 }
37
38 if (sourceFile.File.IsCPP)
39 {
40 WriteCPPCompiler(sourceFile);
41 }
42
43 if (sourceFile.File.IsWineBuild)
44 {
45 WriteWineBuild(sourceFile);
46 }
47 }
48
49 protected override string SubSystem
50 {
51 get { return "native"; }
52 }
53 }
54 }