-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
61 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
enable_testing() | ||
|
||
add_subdirectory(abieos) | ||
add_subdirectory(clio) | ||
|
||
if(DEFINED IS_WASM) | ||
add_subdirectory(eosiolib) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,7 @@ | ||
add_library( clio INTERFACE ) | ||
target_link_libraries( clio INTERFACE rapidjson ) | ||
target_include_directories( clio INTERFACE include ${Boost_INCLUDE_DIRS} ) | ||
enable_testing() | ||
|
||
target_sources( clio INTERFACE | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/fpconv.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/powers.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/compress.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/error.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/reflect.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/schema.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/translator.hpp | ||
add_library(clio INTERFACE) | ||
target_link_libraries(clio INTERFACE rapidjson) | ||
target_include_directories(clio INTERFACE include ${Boost_INCLUDE_DIRS}) | ||
|
||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/stream.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/to_key.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/tuple.hpp | ||
|
||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/flatbuf.hpp | ||
|
||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/to_json.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/to_json/map.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/to_json/varint.hpp | ||
|
||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/json/any.hpp | ||
|
||
|
||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/to_bin.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/to_bin/map.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/to_bin/set.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/to_bin/list.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/to_bin/deque.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/to_bin/varint.hpp | ||
|
||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/from_bin.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/from_json.hpp | ||
|
||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/varint.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/from_bin/varint.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/from_json/varint.hpp | ||
|
||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/bytes.hpp | ||
|
||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/bytes/from_json.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/bytes/to_json.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/bytes/to_bin.hpp | ||
|
||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/from_protobuf.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/to_protobuf.hpp | ||
|
||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/protobuf/any.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/protobuf/json.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/protobuf/query.hpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/include/clio/protobuf/schema.hpp | ||
) | ||
add_subdirectory(tests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
if(DEFINED IS_NATIVE) | ||
find_package(Threads REQUIRED) | ||
add_executable(clio-tests | ||
clio_tests.cpp | ||
flat_views.cpp | ||
benchmark.cpp | ||
crypto.cpp | ||
) | ||
target_link_libraries(clio-tests clio clcrypto fc catch2-portable Threads::Threads) | ||
endif() | ||
enable_testing() | ||
|
||
add_executable(test-clio | ||
clio_tests.cpp | ||
flat_views.cpp | ||
benchmark.cpp | ||
) | ||
target_link_libraries(test-clio clio catch2) | ||
set_target_properties(test-clio PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${ROOT_BINARY_DIR}) | ||
|
||
if(DEFINED IS_WASM) | ||
add_executable(clio-tests | ||
clio_tests.cpp | ||
flat_views.cpp | ||
benchmark.cpp | ||
) | ||
target_link_libraries(clio-tests clio catch2-portable boost) | ||
target_link_libraries(test-clio basic-polyfill boost) | ||
endif() | ||
|
||
set_target_properties(clio-tests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${ROOT_BINARY_DIR}) | ||
|
||
native_and_wasm_test(clio-tests) | ||
native_and_wasm_test(test-clio) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <stdint.h> | ||
#include <string.h> | ||
|
||
extern "C" void prints(const char* cstr) | ||
{ | ||
[[clang::import_name("prints_l")]] void prints_l(const char*, uint32_t); | ||
prints_l(cstr, strlen(cstr)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters