Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 77 lines (55 sloc) 1.726 kb
446beeb @thughes Add cmake build support.
thughes authored
1 cmake_minimum_required(VERSION 2.6)
2 project(node)
3
4 #
5 # options
6 #
7
1b6b090 @nikhilm Use CMake's standard way to find Python.
nikhilm authored
8 find_package(PythonInterp 2 REQUIRED)
9
446beeb @thughes Add cmake build support.
thughes authored
10 option(SHARED_V8 "use system shared V8 library")
11 option(SHARED_LIBEV "use system shared libev library")
12 option(SHARED_CARES "use system shared c-ares library")
13 option(V8_SNAPSHOT "turn on snapshot when building stock v8")
14
15
16 # cmake policies to get rid of some warnings
ea29cb4 @DanielG cmake cleanup
DanielG authored
17 cmake_policy(SET CMP0009 NEW) # GLOB_RECURSE should no follow symlinks
446beeb @thughes Add cmake build support.
thughes authored
18
19 # generic cmake configuration
20 include("cmake/configure.cmake")
21
22 # find and configure libs
23 include("cmake/libs.cmake")
24
25 # setup node build targets
26 include("cmake/node_build.cmake")
27
28 # setup v8 build targets
29 include("cmake/v8_build.cmake")
30
31 # docs
ea29cb4 @DanielG cmake cleanup
DanielG authored
32 ## might want to move this to doc/CMakeLists.txt
446beeb @thughes Add cmake build support.
thughes authored
33 include("cmake/docs.cmake")
34
35 # tests
ea29cb4 @DanielG cmake cleanup
DanielG authored
36 enable_testing()
14e6b07 @thughes cmake: Add cdash support.
thughes authored
37 include(CTest)
ea29cb4 @DanielG cmake cleanup
DanielG authored
38 add_subdirectory("test/")
446beeb @thughes Add cmake build support.
thughes authored
39
40 # package
41 include("cmake/package.cmake")
42
43
44 #
45 # Final build configuration output
46 #
47
48 message("** Build Summary **")
49 message(" Version: ${node_version_string}")
50 message(" Prefix: ${PREFIX}")
51 message(" Build Type: ${CMAKE_BUILD_TYPE}")
52 message(" Architecture: ${CMAKE_SYSTEM_PROCESSOR}")
53
54 if(SHARED_V8)
55 message(" V8: ${V8_LIBRARY_PATH}")
56 #else()
57 #message(" V8 jobs: ${parallel_jobs}")
58 endif()
59
60 if(SHARED_libev)
61 message(" libev: ${LIBEV_LIBRARY}")
62 endif()
63
64 if(SHARED_CARES)
65 message(" libc-ares: ${LIBCARES_LIBRARY}")
66 endif()
67
68 message(" RT library: ${RT}")
69 message(" DL library: ${DL}")
70
71 if(${OPENSSL_FOUND} MATCHES TRUE)
ea29cb4 @DanielG cmake cleanup
DanielG authored
72 message(" OpenSSL: ${OPENSSL_LIBRARIES}")
446beeb @thughes Add cmake build support.
thughes authored
73 endif()
74
75 # message(" CCFLAGS: ${CCFLAGS}")
76 # message(" CPPFLAGS: ${CPPFLAGS}")
Something went wrong with that request. Please try again.