litehtml/cci.20211028

litehtml is the lightweight HTML rendering engine with CSS2/CSS3 support.
Recipe info
2023-10-04

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
litehtml/cci.20211028

Using litehtml

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
litehtml/cci.20211028
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("litehtml/cci.20211028")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): litehtml
  • CMake target name(s): litehtml
  • gumbo => gumbo
    litehtml_litehtml => litehtml
    
  • pkg-config file name(s): litehtml.pc
  • gumbo => litehtml-gumbo.pc
    litehtml_litehtml => litehtml-litehtml_litehtml.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(litehtml REQUIRED)
# ...
target_link_libraries(YOUR_TARGET litehtml)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the litehtml homepage listed above:

#include "gumbo/attribute.h"
#include "gumbo/char_ref.h"
#include "gumbo/error.h"
#include "gumbo/gumbo.h"
#include "gumbo/insertion_mode.h"
#include "gumbo/parser.h"
#include "gumbo/string_buffer.h"
#include "gumbo/string_piece.h"
#include "gumbo/tag_enum.h"
#include "gumbo/tag_gperf.h"
#include "gumbo/tag_sizes.h"
#include "gumbo/tag_strings.h"
#include "gumbo/token_type.h"
#include "gumbo/tokenizer.h"
#include "gumbo/tokenizer_states.h"
#include "gumbo/utf8.h"
#include "gumbo/util.h"
#include "gumbo/vector.h"
#include "litehtml/attributes.h"
#include "litehtml/background.h"
#include "litehtml/borders.h"
#include "litehtml/box.h"
#include "litehtml/codepoint.h"
#include "litehtml/context.h"
#include "litehtml/css_length.h"
#include "litehtml/css_margins.h"
#include "litehtml/css_offsets.h"
#include "litehtml/css_position.h"
#include "litehtml/css_selector.h"
#include "litehtml/document.h"
#include "litehtml/el_anchor.h"
#include "litehtml/el_base.h"
#include "litehtml/el_before_after.h"
#include "litehtml/el_body.h"
#include "litehtml/el_break.h"
#include "litehtml/el_cdata.h"
#include "litehtml/el_comment.h"
#include "litehtml/el_div.h"
#include "litehtml/el_font.h"
#include "litehtml/el_image.h"
#include "litehtml/el_link.h"
#include "litehtml/el_para.h"
#include "litehtml/el_script.h"
#include "litehtml/el_space.h"
#include "litehtml/el_style.h"
#include "litehtml/el_table.h"
#include "litehtml/el_td.h"
#include "litehtml/el_text.h"
#include "litehtml/el_title.h"
#include "litehtml/el_tr.h"
#include "litehtml/element.h"
#include "litehtml/html.h"
#include "litehtml/html_tag.h"
#include "litehtml/iterators.h"
#include "litehtml/litehtml.h"
#include "litehtml/media_query.h"
#include "litehtml/num_cvt.h"
#include "litehtml/os_types.h"
#include "litehtml/style.h"
#include "litehtml/stylesheet.h"
#include "litehtml/table.h"
#include "litehtml/tstring_view.h"
#include "litehtml/types.h"
#include "litehtml/url.h"
#include "litehtml/url_path.h"
#include "litehtml/utf8_strings.h"
#include "litehtml/web_color.h"