Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add lunajson #1801

Merged
merged 2 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ declare_project(thirdparty/luasec DEPENDS luajit openssl)
# luasocket
declare_project(thirdparty/luasocket DEPENDS luajit)

# lunajson
declare_project(thirdparty/lunajson)

# lunasvg
declare_project(thirdparty/lunasvg EXCLUDE_FROM_ALL)

Expand Down
17 changes: 17 additions & 0 deletions thirdparty/lunajson/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Build in source tree.
set(BINARY_DIR ${SOURCE_DIR})

append_install_commands(INSTALL_CMD src/lunajson.lua DESTINATION common)
append_tree_install_commands(INSTALL_CMD src/lunajson common/lunajson)

ko_write_gitclone_script(
GIT_CLONE_SCRIPT_FILENAME
https://github.com/grafi-tt/lunajson
3d10600874527d71519b33ecbb314eb93ccd1df6
${SOURCE_DIR}
)

external_project(
DOWNLOAD_COMMAND ${CMAKE_COMMAND} -P ${GIT_CLONE_SCRIPT_FILENAME}
INSTALL_COMMAND ${INSTALL_CMD}
)
pazos marked this conversation as resolved.
Show resolved Hide resolved
Loading