bashi@chromium.org | 8d71e04 | 2012-05-07 08:45:16 +0000 | [diff] [blame] | 1 | How to build (using scons, on Linux): |
yusukes@chromium.org | d257d18 | 2009-11-04 04:56:32 +0000 | [diff] [blame] | 2 | |
| 3 | $ cd ots/test/ |
| 4 | $ sudo apt-get install scons g++ libfreetype6-dev |
| 5 | $ scons |
bashi@chromium.org | 54651a6 | 2011-02-18 09:05:42 +0000 | [diff] [blame] | 6 | |
bashi@chromium.org | 8d71e04 | 2012-05-07 08:45:16 +0000 | [diff] [blame] | 7 | How to build (using gyp): |
bashi@chromium.org | 54651a6 | 2011-02-18 09:05:42 +0000 | [diff] [blame] | 8 | |
bashi@chromium.org | 8d71e04 | 2012-05-07 08:45:16 +0000 | [diff] [blame] | 9 | (Note: test programs which require gtest can't build with gyp for now) |
bashi@chromium.org | 54651a6 | 2011-02-18 09:05:42 +0000 | [diff] [blame] | 10 | |
bashi@chromium.org | 8d71e04 | 2012-05-07 08:45:16 +0000 | [diff] [blame] | 11 | 1. If you are building OTS on Windows, download zlib from |
ksakamoto@chromium.org | 123cae8 | 2013-04-02 01:43:21 +0000 | [diff] [blame] | 12 | http://www.zlib.net/ and put them in third_party/zlib. |
bashi@chromium.org | 54651a6 | 2011-02-18 09:05:42 +0000 | [diff] [blame] | 13 | |
bashi@chromium.org | 8d71e04 | 2012-05-07 08:45:16 +0000 | [diff] [blame] | 14 | 2. Run gyp_ots |
bashi@chromium.org | 54651a6 | 2011-02-18 09:05:42 +0000 | [diff] [blame] | 15 | |
bashi@chromium.org | 8d71e04 | 2012-05-07 08:45:16 +0000 | [diff] [blame] | 16 | $ ./gyp_ots |
bashi@chromium.org | 54651a6 | 2011-02-18 09:05:42 +0000 | [diff] [blame] | 17 | |
bashi@chromium.org | 8d71e04 | 2012-05-07 08:45:16 +0000 | [diff] [blame] | 18 | This will fetch gyp and generate build files. By default, following |
| 19 | files will be generated: |
| 20 | - MSVS solution file on Windows |
| 21 | - Xcode project file on Mac |
| 22 | - Makefile on Linux |
bashi@chromium.org | 54651a6 | 2011-02-18 09:05:42 +0000 | [diff] [blame] | 23 | |
bashi@chromium.org | 8d71e04 | 2012-05-07 08:45:16 +0000 | [diff] [blame] | 24 | If you want to generate Makefile on Mac, you can use -f option: |
| 25 | |
| 26 | $ ./gyp_ots -f make |
| 27 | |
| 28 | 3. Build OTS |
| 29 | |
| 30 | Using MSVS: |
| 31 | Open ots-standalone.sln and build targets. |
| 32 | |
| 33 | Using Xcode: |
| 34 | $ xcodebuild -target ots-standalone.xcodeproj -target all |
| 35 | |
| 36 | Using Makefile: |
| 37 | $ make |