Skip to content
This repository
Newer
Older
100644 77 lines (52 sloc) 2.172 kb
a530c23d » thughes
2010-11-23 cmake: Add wrapper Makefile and README.
1 Instructions for building with cmake
2
3 Make sure you have cmake:
4 Ubuntu/Debian: sudo apt-get install cmake
5 Mac: http://www.cmake.org/files/v2.8/cmake-2.8.3-Darwin-universal.dmg
6 Other platforms: http://www.cmake.org/cmake/resources/software.html
7
8 To build:
9
10 make -f Makefile.cmake
11 make -f Makefile.cmake install
12
13 To run the tests:
14
15 make -f Makefile.cmake test
16
17 To build the documentation:
18
19 make -f Makefile.cmake doc
20
21 To read the documentation:
22
23 man doc/node.1
24
25 To build distro packages (tgz, deb, rpm, PackageMaker):
26
27 make -f Makefile.cmake package
28
14e6b07f » thughes
2010-11-23 cmake: Add cdash support.
29 To submit test results (see http://my.cdash.org/index.php?project=node):
30
31 make -f Makefile.cmake cdash
32
b46f10a1 » thughes
2010-11-24 cmake: Add coverage support.
33 To submit coverage test results:
34
35 make -f Makefile.cmake cdash-cov
36
cf1811a6 » thughes
2010-11-24 cmake: Add valgrind support.
37 To submit valgrind test results:
38
39 make -f Makefile.cmake cdash-mem
40
ae8262a1 » thughes
2010-12-08 cmake: Add toolchain file for cross-compiling.
41 Cross-compiling:
42 An example toolchain file for the CodeSourcery ARM toolchain is included in
43 the cmake directory: codesourcery-arm-toolchain.cmake.
44
45 Install the CodeSourcery toolchain, set the path to the toolchain in
46 cmake/codesourcery-arm-toolchain.cmake, and uncomment the TOOLCHAIN_FILE
47 variable in Makefile.cmake to use it.
48
49 If you are using cmake directly, just add the flag
50 "-DCMAKE_TOOLCHAIN_FILE=/path/to/toolchain-file" when
51 running cmake.
52
a530c23d » thughes
2010-11-23 cmake: Add wrapper Makefile and README.
53 Using cmake directly:
54 cd ~/your-node-source-dir
55 mkdir name-of-build-dir (can be anything)
56 cd name-of-build-dir
57 cmake ..
58
59 At this point you have generated a set of Makefiles and can use the standard
60 make commands (make, make install, etc.). The Makefile.cmake file is just a
61 wrapper around these commands; take a look at it for more details.
62
14e6b07f » thughes
2010-11-23 cmake: Add cdash support.
63 Other build targets:
64 make Experimental
65 make Nightly
cf1811a6 » thughes
2010-11-24 cmake: Add valgrind support.
66 make NightlyMemoryCheck
14e6b07f » thughes
2010-11-23 cmake: Add cdash support.
67 make Continuous
68
a530c23d » thughes
2010-11-23 cmake: Add wrapper Makefile and README.
69 Additional options:
70 In the CMakeLists.txt, you'll see things like
71 option(SHARED_V8, ...). If you want to enable any of those options you can
72 pass "-DOPTION=True" when running cmake (e.g., cmake -DSHARED_V8=True).
73
74 See http://nodejs.org/ for more information. For help and discussion
75 subscribe to the mailing list by visiting
76 http://groups.google.com/group/nodejs or by sending an email to
77 nodejs+subscribe@googlegroups.com.
Something went wrong with that request. Please try again.