-
Notifications
You must be signed in to change notification settings - Fork 39
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 debug tool hex_to_json #60
base: master
Are you sure you want to change the base?
Conversation
Note: This includes changes from PR #51 |
remove apple & abieos_static targets
remove most of the changes in #51 |
@@ -33,7 +33,7 @@ endif() | |||
|
|||
find_package(Threads) | |||
|
|||
add_library(abieos STATIC src/abi.cpp src/crypto.cpp include/eosio/fpconv.c) | |||
add_library(abieos STATIC src/abi.cpp src/crypto.cpp include/eosio/fpconv.c src/abieos.cpp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pattern seems to be to only include src/abieos.cpp
in the executables that link to abieos
and not in abieos
.
There is also abieos_module
which may be the more appropriate target_link_library
for hex_to_json
, was that attempted and failed for some reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
having in tools/CMakeLists
target_link_libraries(hex_to_json abieos_module ${CMAKE_THREAD_LIBS_INIT})
resulted in
CMake Error at tools/CMakeLists.txt:12 (target_link_libraries):
Target "abieos_module" of type MODULE_LIBRARY may not be linked into
another target. One may link only to INTERFACE, OBJECT, STATIC or SHARED
libraries, or to executables with the ENABLE_EXPORTS property set.
helps debug abi/decoding issues, as well as demonstrates how to build with 'C' api.