blob: e731ce8f881a7d2e527d201c39a650475d3338b9 [file] [log] [blame]
bashi@chromium.org8d71e042012-05-07 08:45:16 +00001How to build (using scons, on Linux):
yusukes@chromium.orgd257d182009-11-04 04:56:32 +00002
3 $ cd ots/test/
4 $ sudo apt-get install scons g++ libfreetype6-dev
5 $ scons
bashi@chromium.org54651a62011-02-18 09:05:42 +00006
bashi@chromium.org8d71e042012-05-07 08:45:16 +00007How to build (using gyp):
bashi@chromium.org54651a62011-02-18 09:05:42 +00008
bashi@chromium.org8d71e042012-05-07 08:45:16 +00009 (Note: test programs which require gtest can't build with gyp for now)
bashi@chromium.org54651a62011-02-18 09:05:42 +000010
bashi@chromium.org8d71e042012-05-07 08:45:16 +000011 1. If you are building OTS on Windows, download zlib from
ksakamoto@chromium.org123cae82013-04-02 01:43:21 +000012 http://www.zlib.net/ and put them in third_party/zlib.
bashi@chromium.org54651a62011-02-18 09:05:42 +000013
bashi@chromium.org8d71e042012-05-07 08:45:16 +000014 2. Run gyp_ots
bashi@chromium.org54651a62011-02-18 09:05:42 +000015
bashi@chromium.org8d71e042012-05-07 08:45:16 +000016 $ ./gyp_ots
bashi@chromium.org54651a62011-02-18 09:05:42 +000017
bashi@chromium.org8d71e042012-05-07 08:45:16 +000018 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.org54651a62011-02-18 09:05:42 +000023
bashi@chromium.org8d71e042012-05-07 08:45:16 +000024 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