Skip to content

Commit

Permalink
Gumbo (ruslo#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaachier authored and ruslo committed Sep 27, 2017
1 parent 99c61b7 commit a63c675
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ hunter_config(gst_plugins_base VERSION 1.10.4)
hunter_config(gst_plugins_good VERSION 1.10.4)
hunter_config(gst_plugins_ugly VERSION 1.10.4)
hunter_config(gstreamer VERSION 1.10.4)
hunter_config(gumbo VERSION 0.10.1)
hunter_config(half VERSION 1.1.0-p1)
hunter_config(hdf5 VERSION 1.8.15-p1)
hunter_config(ice VERSION 1.0.8)
Expand Down
19 changes: 19 additions & 0 deletions cmake/projects/gumbo/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_cmake_args)
include(hunter_download)
include(hunter_pick_scheme)

hunter_add_version(
PACKAGE_NAME gumbo
VERSION "0.10.1"
URL "https://github.com/hunter-packages/gumbo-parser/archive/hunter-0.10.1.tar.gz"
SHA1 "0b060d7b67f605fc2c06a2c474fbd00ad5c48b18")

hunter_cmake_args(gumbo CMAKE_ARGS BUILD_TESTING=OFF)

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(gumbo)
hunter_download(PACKAGE_NAME gumbo)
21 changes: 21 additions & 0 deletions docs/packages/pkg/gumbo.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. spelling::

gumbo

.. index:: serialization ; gumbo

.. _pkg.gumbo:

gumbo
=====

- `Official <https://github.com/gumbo/gumbo>`__
- `Hunterized <https://github.com/hunter-packages/gumbo>`__
- `Example <https://github.com/ruslo/hunter/blob/master/examples/gumbo/CMakeLists.txt>`__
- Added by `Isaac Hier <https://github.com/isaachier>`__ (`pr-1062 <https://github.com/ruslo/hunter/pull/1062>`__)

.. code-block:: cmake
hunter_add_package(gumbo)
find_package(gumbo CONFIG REQUIRED)
target_link_libraries(... gumbo::gumbo)
1 change: 1 addition & 0 deletions docs/packages/serialize.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Serialize
* :ref:`pkg.CsvParserCPlusPlus` - C++ library for parsing text files.
* :ref:`pkg.Expat` - XML parser library in C.
* :ref:`pkg.flatbuffers` - Memory Efficient Serialization Library
* :ref:`pkg.gumbo` - An HTML5 parsing library in pure C99
* :ref:`pkg.irrXML` - simple and fast open source xml parser for C++
* :ref:`pkg.JsonSpirit` - C++ JSON Library including both a json-data-structure and parser (based on Boost.Spirit>`.
* :ref:`pkg.msgpack` - efficient binary serialization format.
Expand Down
12 changes: 12 additions & 0 deletions examples/gumbo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.1)

include("../common.cmake")

project(download-gumbo)

hunter_add_package(gumbo)

find_package(gumbo CONFIG REQUIRED)

add_executable(main main.cpp)
target_link_libraries(main gumbo::gumbo)
6 changes: 6 additions & 0 deletions examples/gumbo/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <gumbo.h>

int main()
{
return 0;
}

0 comments on commit a63c675

Please sign in to comment.