Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Implementation of RFC 102: Styleitem Javascript with v8 engine
- Loading branch information
Alan Boudreault
committed
Sep 26, 2013
1 parent
a51a359
commit a966c1c
Showing
11 changed files
with
550 additions
and
40 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# - Find V8 | ||
# | ||
# V8_INCLUDE - Where to find v8.h | ||
# V8_LIBS - List of libraries when using V8. | ||
# V8_FOUND - True if V8 found. | ||
|
||
get_filename_component(module_file_path ${CMAKE_CURRENT_LIST_FILE} PATH) | ||
|
||
# Look for the header file. | ||
find_path(V8_INCLUDE NAMES v8.h PATHS $ENV{V8_ROOT}/include /opt/local/include /usr/local/include /usr/include DOC "Path in which the file v8.h is located." ) | ||
mark_as_advanced(V8_INCLUDE) | ||
|
||
# Look for the library. | ||
# Does this work on UNIX systems? (LINUX) | ||
find_library(V8_LIBS NAMES v8 PATHS /usr/lib $ENV{V8_ROOT}/lib DOC "Path to v8 library." ) | ||
mark_as_advanced(V8_LIBS) | ||
|
||
# Copy the results to the output variables. | ||
if (V8_INCLUDE AND V8_LIBS) | ||
message(STATUS "Found v8 in ${V8_INCLUDE} ${V8_LIBS}") | ||
set(V8_FOUND 1) | ||
include(CheckCXXSourceCompiles) | ||
set(CMAKE_REQUIRED_LIBRARIES ${V8_LIBS} pthread) | ||
set(CMAKE_REQUIRED_INCLUDES ${V8_INCLUDE}) | ||
|
||
check_cxx_source_compiles(" | ||
#include <v8.h> | ||
int main() | ||
{ | ||
v8::Persistent<v8::Context> ctx; | ||
ctx.Dispose(0); | ||
return 0; | ||
}" | ||
V8_DISPOSE_HAS_ISOLATE) | ||
else () | ||
set(V8_FOUND 0) | ||
endif () | ||
|
||
# Report the results. | ||
if (NOT V8_FOUND) | ||
set(V8_DIR_MESSAGE "V8 was not found. Make sure V8_LIBS and V8_INCLUDE are set.") | ||
if (V8_FIND_REQUIRED) | ||
message(FATAL_ERROR "${V8_DIR_MESSAGE}") | ||
elseif (NOT V8_FIND_QUIETLY) | ||
message(STATUS "${V8_DIR_MESSAGE}") | ||
endif () | ||
endif () |
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
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 |
---|---|---|
|
@@ -5896,6 +5896,8 @@ int initMap(mapObj *map) | |
|
||
msInitQuery(&(map->query)); | ||
|
||
map->v8context = NULL; | ||
|
||
return(0); | ||
} | ||
|
||
|
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
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
Oops, something went wrong.