Compare commits
80 Commits
2a071d319b
...
df38bcf775
Author | SHA1 | Date | |
---|---|---|---|
df38bcf775 | |||
1c52f9e37e | |||
6e152ae37c | |||
8d66435568 | |||
d883f4cc71 | |||
62945cceb3 | |||
580f0a0c59 | |||
253e35e1e4 | |||
cf56921c4e | |||
a3ec0942f8 | |||
efd500ca3c | |||
13892fcd0e | |||
1d638c9170 | |||
83363e6383 | |||
272145ace2 | |||
4c54bc42b9 | |||
7d922352ea | |||
7f6db9d39f | |||
7cefdd496f | |||
e9530f450e | |||
dda22c2cd5 | |||
7aff9c3475 | |||
a14edb72e9 | |||
267a9a561b | |||
441c89f654 | |||
14ded260a0 | |||
8b334e9c91 | |||
fd17b4e504 | |||
d182bcef3b | |||
329fc9b88f | |||
711d73f481 | |||
df340c13ed | |||
8e986a6040 | |||
131debe985 | |||
b312c022ae | |||
4078c8845c | |||
333efdc70f | |||
5e88608286 | |||
ca90e9df83 | |||
419147beec | |||
b85d1d74a4 | |||
d35e733c6e | |||
e6f9e53229 | |||
2986f6cda0 | |||
c4ebf2ccd5 | |||
a785dc9670 | |||
2b7d455471 | |||
0ec0685714 | |||
733451cf2a | |||
369f94f5ab | |||
7b94a03e8c | |||
8b66a3f074 | |||
f273151447 | |||
a95867dbee | |||
5298d802bb | |||
af3cb3aaba | |||
0f62ef26f5 | |||
3c7b57bba9 | |||
98bbea72d2 | |||
df5b7ad71a | |||
6785d3a9ed | |||
1944f9f17d | |||
4dbdc849d9 | |||
db6dff4216 | |||
8aa232d32e | |||
6e9109df4c | |||
987eae5661 | |||
9b7dd630e3 | |||
c87d684154 | |||
23eb4cca38 | |||
4337038819 | |||
012a57b357 | |||
3c0e48a429 | |||
5885d1aa69 | |||
931fc441f6 | |||
9e0c9dd6d8 | |||
2733ead30f | |||
0b0d64124b | |||
a54230bddb | |||
8a3241d5c4 |
@ -70,6 +70,16 @@ include_directories (${PROJECT_BINARY_DIR})
|
||||
add_executable (${PROJECT_NAME} ${PROJECT_NAME}.c http-parser/http_parser.c)
|
||||
target_link_libraries (${PROJECT_NAME} ${project_libraries})
|
||||
|
||||
# Development tools
|
||||
find_package (LibMagic)
|
||||
if (LIBMAGIC_FOUND)
|
||||
include_directories (${LIBMAGIC_INCLUDE_DIRS})
|
||||
add_executable (json-rpc-test-server
|
||||
json-rpc-test-server.c http-parser/http_parser.c)
|
||||
target_link_libraries (json-rpc-test-server
|
||||
${project_libraries} ${LIBMAGIC_LIBRARIES})
|
||||
endif ()
|
||||
|
||||
# The files to be installed
|
||||
include (GNUInstallDirs)
|
||||
install (TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
||||
Copyright (c) 2014 - 2016, Přemysl Janouch <p@janouch.name>
|
||||
Copyright (c) 2014 - 2018, Přemysl Janouch <p@janouch.name>
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
@ -67,6 +67,12 @@ Note that for versions of CMake before 2.8.9, you need to prefix `cpack` with
|
||||
|
||||
Run the program with `--help` to obtain usage information.
|
||||
|
||||
Test server
|
||||
-----------
|
||||
If you install development packages for libmagic, an included test server will
|
||||
be built but not installed which provides a trivial JSON-RPC 2.0 service with
|
||||
FastCGI, SCGI, and WebSocket interfaces. It responds to the `ping` method.
|
||||
|
||||
Contributing and Support
|
||||
------------------------
|
||||
Use https://git.janouch.name/p/json-rpc-shell to report bugs, request features,
|
||||
|
10
cmake/FindLibMagic.cmake
Normal file
10
cmake/FindLibMagic.cmake
Normal file
@ -0,0 +1,10 @@
|
||||
# Public Domain
|
||||
|
||||
find_library (LIBMAGIC_LIBRARIES magic)
|
||||
find_path (LIBMAGIC_INCLUDE_DIRS magic.h)
|
||||
|
||||
include (FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args (LibMagic DEFAULT_MSG
|
||||
LIBMAGIC_LIBRARIES LIBMAGIC_INCLUDE_DIRS)
|
||||
|
||||
mark_as_advanced (LIBMAGIC_LIBRARIES LIBMAGIC_INCLUDE_DIRS)
|
2928
json-rpc-test-server.c
Normal file
2928
json-rpc-test-server.c
Normal file
File diff suppressed because it is too large
Load Diff
2
liberty
2
liberty
@ -1 +1 @@
|
||||
Subproject commit bb30c7d86ef7b165c5e00cc8e0ad2e3e85b9e617
|
||||
Subproject commit bca7167d037d857448cb18243425d7c61de3bdd5
|
Loading…
x
Reference in New Issue
Block a user