mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.0 KiB
59 lines
2.0 KiB
using Cxxi.Generators; |
|
using Cxxi.Passes; |
|
|
|
namespace Cxxi |
|
{ |
|
class OpenCV : ILibrary |
|
{ |
|
public void Setup(DriverOptions options) |
|
{ |
|
options.LibraryName = "OpenCV"; |
|
options.Headers.Add("opencv.hpp"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/include/"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/include/opencv2"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/modules/core/include"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/modules/flann/include"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/modules/imgproc/include"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/modules/photo/include"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/modules/video/include"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/modules/features2d/include"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/modules/objdetect/include"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/modules/calib3d/include"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/modules/ml/include"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/modules/highgui/include"); |
|
options.IncludeDirs.Add("../../../examples/OpenCV/opencv/modules/contrib/include"); |
|
options.OutputDir = "opencv"; |
|
} |
|
|
|
public void Preprocess(Library lib) |
|
{ |
|
|
|
} |
|
|
|
public void Postprocess(Library lib) |
|
{ |
|
|
|
} |
|
|
|
public void SetupPasses(Driver driver, PassBuilder p) |
|
{ |
|
|
|
} |
|
|
|
public void GenerateStart(TextTemplate template) |
|
{ |
|
} |
|
|
|
public void GenerateAfterNamespaces(TextTemplate template) |
|
{ |
|
} |
|
|
|
static class Program |
|
{ |
|
public static void Main(string[] args) |
|
{ |
|
Driver.Run(new OpenCV()); |
|
} |
|
} |
|
} |
|
}
|
|
|