Skip to content

Commit

Permalink
Merge pull request #22 from HarlonWang/feature/sub_module_quickjs
Browse files Browse the repository at this point in the history
refactor: submodule for quickjs library
  • Loading branch information
HarlonWang authored Sep 30, 2022
2 parents fd9e5c9 + 4ff8815 commit a66caad
Show file tree
Hide file tree
Showing 23 changed files with 37 additions and 74,685 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "native/quickjs"]
path = native/quickjs
url = https://github.com/HarlonWang/quickjs.git
29 changes: 29 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
set(QUICKJS_PATH "../../../native/quickjs")

file(STRINGS "${QUICKJS_PATH}/VERSION" CONFIG_VERSION)

add_definitions(-DCONFIG_VERSION=\"${CONFIG_VERSION}\")
add_definitions(-DCONFIG_BIGNUM)

file(GLOB wrapper_src
"../../../native/cpp/*.cpp"
"../../../native/cpp/*.h"
)

file(GLOB quickjs_src
"${QUICKJS_PATH}/cutils.c"
"${QUICKJS_PATH}/cutils.h"
"${QUICKJS_PATH}/libbf.c"
"${QUICKJS_PATH}/libbf.h"
"${QUICKJS_PATH}/libregexp-opcode.h"
"${QUICKJS_PATH}/libregexp.c"
"${QUICKJS_PATH}/libregexp.h"
"${QUICKJS_PATH}/libunicode-table.h"
"${QUICKJS_PATH}/libunicode.c"
"${QUICKJS_PATH}/libunicode.h"
"${QUICKJS_PATH}/list.h"
"${QUICKJS_PATH}/quickjs-atom.h"
"${QUICKJS_PATH}/quickjs-opcode.h"
"${QUICKJS_PATH}/quickjs.c"
"${QUICKJS_PATH}/quickjs.h"
)
1 change: 0 additions & 1 deletion native/cpp/quickjs/VERSION

This file was deleted.

Loading

0 comments on commit a66caad

Please sign in to comment.