Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tom.hughes@palm.com>2010-11-22 19:31:40 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-11-23 00:32:49 +0300
commit446beebd79d52b24bd8d9e0a44f6378a711f32b9 (patch)
tree021d60bfdb825519ab102213c65efb5299e6a2db /CMakeLists.txt
parentb52b4196ab22227aea7afef100c4ca8e2f1b8729 (diff)
Add cmake build support.
Squashed commit of ca128f7dcd28cbcfba154c8577ed54d4aa71dd02 with contributions from Mark Constable (markc@renta.net) and Daniel Gröber (darklord@darkboxed.org).
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt71
1 files changed, 71 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 00000000000..a80796b4414
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,71 @@
+cmake_minimum_required(VERSION 2.6)
+project(node)
+
+#
+# options
+#
+
+option(SHARED_V8 "use system shared V8 library")
+option(SHARED_LIBEV "use system shared libev library")
+option(SHARED_CARES "use system shared c-ares library")
+option(V8_SNAPSHOT "turn on snapshot when building stock v8")
+
+
+# cmake policies to get rid of some warnings
+cmake_policy(SET CMP0009 NEW)
+
+# generic cmake configuration
+include("cmake/configure.cmake")
+
+# find and configure libs
+include("cmake/libs.cmake")
+
+# setup node build targets
+include("cmake/node_build.cmake")
+
+# setup v8 build targets
+include("cmake/v8_build.cmake")
+
+# docs
+include("cmake/docs.cmake")
+
+# tests
+include("cmake/tests.cmake")
+
+# package
+include("cmake/package.cmake")
+
+
+#
+# Final build configuration output
+#
+
+message("** Build Summary **")
+message(" Version: ${node_version_string}")
+message(" Prefix: ${PREFIX}")
+message(" Build Type: ${CMAKE_BUILD_TYPE}")
+message(" Architecture: ${CMAKE_SYSTEM_PROCESSOR}")
+
+if(SHARED_V8)
+message(" V8: ${V8_LIBRARY_PATH}")
+#else()
+#message(" V8 jobs: ${parallel_jobs}")
+endif()
+
+if(SHARED_libev)
+ message(" libev: ${LIBEV_LIBRARY}")
+endif()
+
+if(SHARED_CARES)
+ message(" libc-ares: ${LIBCARES_LIBRARY}")
+endif()
+
+message(" RT library: ${RT}")
+message(" DL library: ${DL}")
+
+if(${OPENSSL_FOUND} MATCHES TRUE)
+ message(" OpenSSL: Found!")
+endif()
+
+# message(" CCFLAGS: ${CCFLAGS}")
+# message(" CPPFLAGS: ${CPPFLAGS}")