pingmantools / litehtmlsharp Goto Github PK
View Code? Open in Web Editor NEWLiteHtmlSharp is a C# cross-platform library for HTML/CSS(2/3) visualization - self contained, fast and small
License: BSD 3-Clause "New" or "Revised" License
LiteHtmlSharp is a C# cross-platform library for HTML/CSS(2/3) visualization - self contained, fast and small
License: BSD 3-Clause "New" or "Revised" License
Why not just name it litehtml.dll
and avoid all this muck?
public class LibInterop : ILibInterop
{
#if WINDOWS
const string LiteHtmlLibFile = "LiteHtmlLib.dll";
public const CharSet cs = CharSet.Unicode;
#else
const string LiteHtmlLibFile = "litehtml";
public const CharSet cs = CharSet.Ansi;
#endif
const string LiteHtmlLibFile_x64 = "x64\\LiteHtmlLib.dll";
const string LiteHtmlLibFile_x86 = "x86\\LiteHtmlLib.dll";
public const CallingConvention cc = CallingConvention.Cdecl;
readonly static Lazy<LibInterop> _instance = new Lazy<LibInterop>(() => new LibInterop());
public static LibInterop Instance => _instance.Value;
LibInterop()
{
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
{
LoadLibrary(Environment.Is64BitProcess ? LiteHtmlLibFile_x64 : LiteHtmlLibFile_x86);
}
}
I've got things working groovy on Linux with my dotnet Core 3.1 app and I'd rather not have compilation conditionals. The easiest fix would be to just name the library htmllib.dll
.
I've got it building and running via VS2019 and the WPF sample. It does not look hard to port the WPF sample to WinForms/GDI+, but if someone's already done it, that'd be trick.
If not, any advice on how to proceed that might save me some time.
The instruction in the readme.MD suggest
cd LiteHtmlLib
sh build.sh
But build.sh
is in lib_dylib
and it doesn't work, giving errors about directories not found and command line options:
c++: error: i386: No such file or directory
c++: error: i386: No such file or directory
c++: error: i386: No such file or directory
c++: error: x86_64: No such file or directory
c++: error: unrecognized command line option ‘-arch’; did you mean ‘-march=’?
c++: error: i386: No such file or directory
c++: error: x86_64: No such file or directory
...
Help please.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.