Browse Source

making everything work with new eth_add_resources

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
b8ab4a0d5d
  1. 6
      libjsconsole/CMakeLists.txt
  2. 6
      libjsengine/CMakeLists.txt
  3. 1
      libjsengine/JSResources.cmake
  4. 1
      libjsengine/JSV8Printer.cpp

6
libjsconsole/CMakeLists.txt

@ -18,10 +18,10 @@ set(EXECUTABLE jsconsole)
file(GLOB HEADERS "*.h")
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
include(EthUtils)
eth_add_resources(${EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/JSResources.cmake")
eth_add_resources("${CMAKE_CURRENT_SOURCE_DIR}/JSResources.cmake" JSRES)
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS} ${JSRES})
target_link_libraries(${EXECUTABLE} jsengine)
target_link_libraries(${EXECUTABLE} devcore)

6
libjsengine/CMakeLists.txt

@ -17,10 +17,10 @@ set(EXECUTABLE jsengine)
file(GLOB HEADERS "*.h")
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
include(EthUtils)
eth_add_resources(${EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/JSResources.cmake")
eth_add_resources("${CMAKE_CURRENT_SOURCE_DIR}/JSResources.cmake" "JSRES")
message(STATUS "HERE!!! ${JSRES}")
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS} ${JSRES})
# macos brew version of v8 needs to be compiled with libstdc++
# it also needs to be dynamic library

1
libjsengine/JSResources.cmake

@ -4,4 +4,3 @@ set(pretty_print "${CMAKE_CURRENT_LIST_DIR}/PrettyPrint.js")
set(ETH_RESOURCE_NAME "JSEngineResources")
set(ETH_RESOURCE_LOCATION "${CMAKE_CURRENT_BINARY_DIR}")
set(ETH_RESOURCES "pretty_print")

1
libjsengine/JSV8Printer.cpp

@ -5,6 +5,7 @@
#include <string>
#include "JSV8Printer.h"
#include "libjsengine/JSEngineResources.hpp"
#include "libjsengine/t.h"
using namespace std;
using namespace dev;

Loading…
Cancel
Save