Merge lp:~marcustomlinson/unity-js-scopes/build-fixes into lp:unity-js-scopes

Proposed by Marcus Tomlinson
Status: Merged
Merged at revision: 12
Proposed branch: lp:~marcustomlinson/unity-js-scopes/build-fixes
Merge into: lp:unity-js-scopes
Diff against target: 96 lines (+13/-17)
4 files modified
.bzrignore (+3/-0)
CMakeLists.txt (+5/-8)
src/bindings/CMakeLists.txt (+1/-3)
src/launcher/CMakeLists.txt (+4/-6)
To merge this branch: bzr merge lp:~marcustomlinson/unity-js-scopes/build-fixes
Reviewer Review Type Date Requested Status
WebApps Pending
Review via email: mp+263015@code.launchpad.net

Commit message

* Add .bzrignore.
* Depend on iojs and v8 from deps/ rather than system installed versions.
* Fixed install by making ADDON_BINARY_FILES relative to CMAKE_CURRENT_BINARY_DIR.
* Fixed "Error: No such module: contextify" iojs runtime error by using "--whole-archive" when linking iojs.
* Fixed iojs link order.

Description of the change

* Add .bzrignore.
* Depend on iojs and v8 from deps/ rather than system installed versions.
* Fixed install by making ADDON_BINARY_FILES relative to CMAKE_CURRENT_BINARY_DIR.
* Fixed "Error: No such module: contextify" iojs runtime error by using "--whole-archive" when linking iojs.
* Fixed iojs link order.

To post a comment you must log in.
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Hey Alex, I had trouble getting things building and running on my machine. I had to make these changes to get it going.

First issue I had was unity-js-scopes-launcher not recognising the scope.ini argument from the ScopeRunner entry in the example. Then I got "Error: No such module: contextify" when node::Start() was hit.

These changes fixed the above issues I was having, but now I'm still having an issue getting the scope running via unity-scope-tool. I'm calling "unity-scope-tool './examples/simple/simple.ini'", but the scope seems to just hang on startup. Running "unity-js-scopes-launcher './examples/simple/simple.ini'", just gives me the node terminal (">"). I looks like the simple.js script is either not even running, or is failing and no error message is being shown.

Sorry for rambling, I hope I'm making sense here.

I'm not proposing that these changes are all sane :p Please have a look through them and let me know if I'm doing anything stupid / if you have any better solutions.

11. By Marcus Tomlinson

Whoops, link order fixed

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Hmmm, seems I may have jumped the gun here. Sorry. I see that the "simple" scope is calling some functions that don't actually exist in the bindings.

Is this project still WIP? Or do you have some other uncommitted changes hanging around?

Let me know if I can help.

12. By Marcus Tomlinson

Merged trunk

13. By Marcus Tomlinson

Revert launcher changes

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Alex, could you please have a look at this. The aim here is to have unity-ja-scopes link against the iojs and v8 from deps/ rather than searching for system installed versions.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file '.bzrignore'
--- .bzrignore 1970-01-01 00:00:00 +0000
+++ .bzrignore 2015-07-09 06:54:48 +0000
@@ -0,0 +1,3 @@
1./deps/io.js
2./deps/v8-cpp
3./CMakeLists.txt.user
04
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2015-06-19 20:38:02 +0000
+++ CMakeLists.txt 2015-07-09 06:54:48 +0000
@@ -37,18 +37,15 @@
37 message(FATAL_ERROR "Retriving deps failed")37 message(FATAL_ERROR "Retriving deps failed")
38endif()38endif()
3939
40set(CMAKE_MODULE_PATH
41 ${CMAKE_MODULE_PATH}
42 ${CMAKE_CURRENT_SOURCE_DIR}/deps/v8-cpp/cmake
43 )
44
45find_package(Node REQUIRED)
46
47include_directories(40include_directories(
48 ${NODE_INCLUDE_DIRS}41 ${CMAKE_CURRENT_SOURCE_DIR}/deps/io.js/deps/v8/include
42 ${CMAKE_CURRENT_SOURCE_DIR}/deps/io.js/src
49 ${CMAKE_CURRENT_SOURCE_DIR}/deps/v8-cpp/src43 ${CMAKE_CURRENT_SOURCE_DIR}/deps/v8-cpp/src
50 ${CMAKE_CURRENT_SOURCE_DIR}/src44 ${CMAKE_CURRENT_SOURCE_DIR}/src
51 )45 )
46link_directories(
47 ${CMAKE_CURRENT_SOURCE_DIR}/deps/io.js/out/Release
48 )
5249
53add_custom_target(50add_custom_target(
54 deps51 deps
5552
=== modified file 'src/bindings/CMakeLists.txt'
--- src/bindings/CMakeLists.txt 2015-06-23 19:47:08 +0000
+++ src/bindings/CMakeLists.txt 2015-07-09 06:54:48 +0000
@@ -36,7 +36,6 @@
36 )36 )
3737
38link_directories(38link_directories(
39 ${NODE_DEPS_LIB_DIRS}
40 ${SCOPE_LIB_DIRS}39 ${SCOPE_LIB_DIRS}
41 )40 )
4241
@@ -64,7 +63,6 @@
64 )63 )
6564
66include_directories(65include_directories(
67 "${CMAKE_SOURCE_DIR}/include"
68 ${Boost_INCLUDE_DIRS}66 ${Boost_INCLUDE_DIRS}
69 ${SCOPE_INCLUDE_DIRS}67 ${SCOPE_INCLUDE_DIRS}
70 )68 )
@@ -90,7 +88,7 @@
90 )88 )
9189
92set(ADDON_BINARY_FILES90set(ADDON_BINARY_FILES
93 ${SCOPE_NODEJS_ADDON_BIN_NAME}.node91 ${CMAKE_CURRENT_BINARY_DIR}/${SCOPE_NODEJS_ADDON_BIN_NAME}.node
94 )92 )
9593
96install(DIRECTORY .94install(DIRECTORY .
9795
=== modified file 'src/launcher/CMakeLists.txt'
--- src/launcher/CMakeLists.txt 2015-06-19 20:38:02 +0000
+++ src/launcher/CMakeLists.txt 2015-07-09 06:54:48 +0000
@@ -35,9 +35,7 @@
35)35)
3636
37link_directories(37link_directories(
38 ${NODE_DEPS_LIB_DIRS}
39 ${Boost_LIB_DIRS}38 ${Boost_LIB_DIRS}
40 ${CMAKE_CURRENT_SOURCE_DIR}/../../deps/io.js/out/Release
41)39)
4240
43set(EXECUTABLE_NAME unity-js-scopes-launcher)41set(EXECUTABLE_NAME unity-js-scopes-launcher)
@@ -61,13 +59,13 @@
61target_link_libraries(59target_link_libraries(
62 ${EXECUTABLE_NAME}60 ${EXECUTABLE_NAME}
6361
62 -Wl,--whole-archive iojs -Wl,--no-whole-archive
63 uv
64 cares64 cares
65 http_parser
66 iojs
67 openssl65 openssl
68 uv
69 zlib66 zlib
70 67 http_parser
68
71 v8_base69 v8_base
72 v8_libbase70 v8_libbase
73 v8_libplatform71 v8_libplatform

Subscribers

People subscribed via source and target branches

to all changes: