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 debug tool hex_to_json #60

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

kryton
Copy link

@kryton kryton commented May 27, 2020

helps debug abi/decoding issues, as well as demonstrates how to build with 'C' api.

@kryton
Copy link
Author

kryton commented May 28, 2020

Note: This includes changes from PR #51

remove apple & abieos_static targets
@kryton
Copy link
Author

kryton commented May 28, 2020

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)
Copy link

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?

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants