OLD | NEW |
1 Building the Full SDK | 1 Building the Full SDK |
2 ===================== | 2 ===================== |
3 | 3 |
4 *Linux users*: Before you run build_sdk.py (below), you must run:: | 4 *Linux users*: Before you run build_sdk.py (below), you must run:: |
5 | 5 |
6 GYP_DEFINES=target_arch=arm gclient runhooks | 6 GYP_DEFINES=target_arch=arm gclient runhooks |
7 | 7 |
8 This will install some ARM-specific tools that are necessary to build the SDK. | 8 This will install some ARM-specific tools that are necessary to build the SDK. |
9 | 9 |
10 *Everyone else*: | 10 *Everyone else*: |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 You can then rebuild the example by running Make:: | 77 You can then rebuild the example by running Make:: |
78 | 78 |
79 cd $CHROME_ROOT/out/pepper_XX | 79 cd $CHROME_ROOT/out/pepper_XX |
80 cd examples/api/graphics_2d # e.g. to rebuild the Graphics2D example. | 80 cd examples/api/graphics_2d # e.g. to rebuild the Graphics2D example. |
81 make -j8 | 81 make -j8 |
82 | 82 |
83 You can build a specific toolchain/configuration combination:: | 83 You can build a specific toolchain/configuration combination:: |
84 | 84 |
85 make TOOLCHAIN=newlib CONFIG=Debug -j8 | 85 make TOOLCHAIN=newlib CONFIG=Debug -j8 |
86 | 86 |
87 The valid toolchains are: `newlib`, `glibc`, `clang-newlib`, `pnacl` and | 87 The valid toolchains are: `newlib`, `glibc`, `clang-newlib` and `pnacl`. |
88 `bionic`. The valid configurations are: `Debug` and `Release`. | 88 The valid configurations are: `Debug` and `Release`. |
89 | 89 |
90 To run the example:: | 90 To run the example:: |
91 | 91 |
92 # Run the default configuration | 92 # Run the default configuration |
93 make run | 93 make run |
94 | 94 |
95 # Run the newlib/Debug configuration | 95 # Run the newlib/Debug configuration |
96 make TOOLCHAIN=newlib CONFIG=Debug -j8 | 96 make TOOLCHAIN=newlib CONFIG=Debug -j8 |
97 | 97 |
98 This will try to find Chrome and launch it. You can specify this manually via | 98 This will try to find Chrome and launch it. You can specify this manually via |
(...skipping 11 matching lines...) Expand all Loading... |
110 cannot be built this way. | 110 cannot be built this way. |
111 | 111 |
112 To build the standalone configuration:: | 112 To build the standalone configuration:: |
113 | 113 |
114 cd tests/nacl_io_test | 114 cd tests/nacl_io_test |
115 make STANDALONE=1 TOOLCHAIN=newlib -j8 | 115 make STANDALONE=1 TOOLCHAIN=newlib -j8 |
116 | 116 |
117 To run the standalone tests, you must specify an architecture explicitly:: | 117 To run the standalone tests, you must specify an architecture explicitly:: |
118 | 118 |
119 make STANDALONE=1 TOOLCHAIN=newlib NACL_ARCH=x86_64 -j8 run | 119 make STANDALONE=1 TOOLCHAIN=newlib NACL_ARCH=x86_64 -j8 run |
OLD | NEW |