OLD | NEW |
1 Build System for Native Client SDK examples | 1 Build System for Native Client SDK examples |
2 =========================================== | 2 =========================================== |
3 | 3 |
4 The examples and libraries that ship with the Native Client SDK use a | 4 The examples and libraries that ship with the Native Client SDK use a |
5 build system based on GNU Make. | 5 build system based on GNU Make. |
6 | 6 |
7 Each example or library is contained in its own directory along with a | 7 Each example or library is contained in its own directory along with a |
8 Makefile. The Makefiles are capable of building Native Client | 8 Makefile. The Makefiles are capable of building Native Client |
9 applications and libraries using any of the available toolchains as well | 9 applications and libraries using any of the available toolchains as well |
10 as building host applications with the host's toolchain. In order to | 10 as building host applications with the host's toolchain. In order to |
(...skipping 20 matching lines...) Expand all Loading... |
31 TARGET | 31 TARGET |
32 This variable holds the name of your project. Normally this is the | 32 This variable holds the name of your project. Normally this is the |
33 basename of the library or executable which is the final target. | 33 basename of the library or executable which is the final target. |
34 | 34 |
35 SOURCES | 35 SOURCES |
36 The list of sources to be built. In most cases this list is passed to | 36 The list of sources to be built. In most cases this list is passed to |
37 the compile and link macros. | 37 the compile and link macros. |
38 | 38 |
39 VALID_TOOLCHAINS | 39 VALID_TOOLCHAINS |
40 This variable can be used to control which toolchains are supported by | 40 This variable can be used to control which toolchains are supported by |
41 the project. Valid entries for this list are: newlib, glibc, pnacl, | 41 the project. Valid entries for this list are: clang-newlib, glibc, |
42 linux, mac, win. The default value is: "newlib glibc pnacl". | 42 pnacl, linux, mac, win. The default value is: "clang-newlib glibc |
| 43 pnacl". |
43 | 44 |
44 NACL_SDK_ROOT | 45 NACL_SDK_ROOT |
45 Optionally force the build system to use a certain location for the | 46 Optionally force the build system to use a certain location for the |
46 Native Client SDK. If not set within the Makefile the $NACL_SDK_ROOT | 47 Native Client SDK. If not set within the Makefile the $NACL_SDK_ROOT |
47 environment variable will by used. It is an error if this variable is | 48 environment variable will by used. It is an error if this variable is |
48 neither set within the Makefile nor in the environment. | 49 neither set within the Makefile nor in the environment. |
49 | 50 |
50 Macros / Rules | 51 Macros / Rules |
51 -------------- | 52 -------------- |
52 | 53 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 nacl_llvm.mk | 87 nacl_llvm.mk |
87 Rules for building using the llvm-based PNaCl toolchains. | 88 Rules for building using the llvm-based PNaCl toolchains. |
88 | 89 |
89 host_gcc.mk | 90 host_gcc.mk |
90 Rules for building using the linux/mac host gcc toolchain. | 91 Rules for building using the linux/mac host gcc toolchain. |
91 | 92 |
92 host_vc.mk | 93 host_vc.mk |
93 Rules for building using the windows Visual Studio toolchain. | 94 Rules for building using the windows Visual Studio toolchain. |
94 | 95 |
95 .. vim: ft=rst tw=72 | 96 .. vim: ft=rst tw=72 |
OLD | NEW |