1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-11-23 00:33:44 +00:00

Import houdini lib.

Will replace curl dependency soon.
This commit is contained in:
King_DuckZ 2017-04-25 18:56:41 +01:00
parent 1c894cbef5
commit c75c23fa36
5 changed files with 27 additions and 0 deletions

3
.gitmodules vendored
View file

@ -7,3 +7,6 @@
[submodule "lib/mstch"]
path = lib/mstch
url = https://github.com/KingDuckZ/mstch.git
[submodule "lib/houdini/houdini"]
path = lib/houdini/houdini
url = https://github.com/vmg/houdini.git

View file

@ -6,4 +6,5 @@ set(TAWASHI_SOURCE_ROOT "${CMAKE_CURRENT_SOURCE_DIR}")
add_subdirectory(lib/incredis)
add_subdirectory(lib/mstch)
add_subdirectory(lib/houdini)
add_subdirectory(src)

View file

@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
project(houdini C)
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wextra -Wno-missing-field-initializers")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wall -Wextra -Wno-missing-field-initializers")
add_library(${PROJECT_NAME} STATIC
houdini/buffer.c
houdini/houdini_href_e.c
houdini/houdini_html_e.c
houdini/houdini_html_u.c
houdini/houdini_js_e.c
houdini/houdini_js_u.c
houdini/houdini_uri_e.c
houdini/houdini_uri_u.c
houdini/houdini_xml_e.c
)
target_include_directories(${PROJECT_NAME}
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/houdini
)

1
lib/houdini/houdini Submodule

@ -0,0 +1 @@
Subproject commit 59727b85553b70d468743076219e620d6c0d3cad

View file

@ -52,6 +52,7 @@ target_link_libraries(${PROJECT_NAME}
PRIVATE ${CURL_LIBRARIES}
PRIVATE ${SourceHighlight_LIBRARIES}
PRIVATE mstch
PRIVATE houdini
)
target_compile_definitions(${PROJECT_NAME}
PRIVATE BOOST_SPIRIT_USE_PHOENIX_V3=1