Switch Mac build to 64-bit build
Only macOS 10.9 and later versions are supported. It's safe to assume
that 64-bit executables are always supported.
This also closes #187.
BUG=#187
TEST=
REF_BUG=31891161
REF_CL=136792255,137777801,138353269
REF_TIME=2016-10-21T12:10:55+09:00
REF_TIME_RAW=1477019455 +0900
Hiroyuki Komatsu
7 years ago
83 | 83 |
- if [ $TARGET_PLATFORM == Linux ]; then python build_mozc.py runtests -c Release; fi
|
84 | 84 |
- if [ $TARGET_PLATFORM == NaCl ]; then python build_mozc.py gyp --target_platform=NaCl --nacl_sdk_root=`pwd`/third_party/nacl_sdk/pepper_49; fi
|
85 | 85 |
- if [ $TARGET_PLATFORM == NaCl ]; then python build_mozc.py build -c Release package; fi
|
86 | |
- if [ $TARGET_PLATFORM == Mac ]; then GYP_DEFINES="mac_sdk=10.9 mac_deployment_target=10.8" python build_mozc.py gyp --noqt; fi
|
|
86 |
- if [ $TARGET_PLATFORM == Mac ]; then GYP_DEFINES="mac_sdk=10.9 mac_deployment_target=10.9" python build_mozc.py gyp --noqt; fi
|
87 | 87 |
- if [ $TARGET_PLATFORM == Mac ]; then python build_mozc.py build -c Release mac/mac.gyp:GoogleJapaneseInput mac/mac.gyp:gen_launchd_confs; fi
|
88 | 88 |
- if [ $TARGET_PLATFORM == Mac ]; then python build_mozc.py runtests -c Release; fi
|
89 | 89 |
|
2 | 2 |
|
3 | 3 |
# System Requirements
|
4 | 4 |
|
5 | |
We only support OS X 10.7 or later intel only.
|
|
5 |
Only 64-bit macOS 10.9 and later versions are supported.
|
6 | 6 |
|
7 | 7 |
# Software Requirements
|
8 | 8 |
|
|
30 | 30 |
|
31 | 31 |
```
|
32 | 32 |
cd ~/work/mozc/src
|
33 | |
GYP_DEFINES="mac_sdk=10.7 mac_deployment_target=10.7" python build_mozc.py gyp --noqt
|
|
33 |
GYP_DEFINES="mac_sdk=10.9 mac_deployment_target=10.9" python build_mozc.py gyp --noqt
|
34 | 34 |
```
|
35 | 35 |
|
36 | 36 |
You can customize the SDK version and target OS version here. Then, build Mozc.app and necessary files:
|
|
48 | 48 |
To build GUI tools, you need to specify --qtdir instead of --noqt.
|
49 | 49 |
|
50 | 50 |
```
|
51 | |
GYP_DEFINES="mac_sdk=10.7 mac_deployment_target=10.7" python build_mozc.py gyp --qtdir ~/myqt
|
|
51 |
GYP_DEFINES="mac_sdk=10.9 mac_deployment_target=10.9" python build_mozc.py gyp --qtdir ~/myqt
|
52 | 52 |
```
|
53 | 53 |
|
54 | 54 |
In the above case, `~/myqt` should contain Qt's sources, headers and libraries built from `configure` and `make`.
|
68 | 68 |
|
69 | 69 |
def BuildBreakpad(outdir):
|
70 | 70 |
projdir = os.path.join(outdir, 'src/client/mac/Breakpad.xcodeproj')
|
71 | |
Xcodebuild(projdir, 'Breakpad', 'i386', outdir)
|
|
71 |
Xcodebuild(projdir, 'Breakpad', 'x86_64', outdir)
|
72 | 72 |
|
73 | 73 |
|
74 | 74 |
def BuildDumpSyms(outdir):
|
29 | 29 |
|
30 | 30 |
MAJOR=2
|
31 | 31 |
MINOR=19
|
32 | |
BUILD=2644
|
|
32 |
BUILD=2645
|
33 | 33 |
REVISION=102
|
34 | 34 |
# This version represents the version of Mozc IME engine (converter, predictor,
|
35 | 35 |
# etc.). This version info is included both in the Mozc server and in the Mozc
|
46 | 46 |
|
47 | 47 |
# Versioning stuff for Mac.
|
48 | 48 |
'mac_sdk%': '10.9',
|
49 | |
'mac_deployment_target%': '10.7',
|
|
49 |
'mac_deployment_target%': '10.9',
|
50 | 50 |
|
51 | 51 |
|
52 | 52 |
# 'conditions' is put inside of 'variables' so that we can use
|
|
383 | 383 |
'conditions': [
|
384 | 384 |
['target_platform=="Mac"', {
|
385 | 385 |
'xcode_settings': {
|
|
386 |
'ARCHS': ['x86_64'],
|
386 | 387 |
'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
|
387 | 388 |
},
|
388 | 389 |
}],
|
389 | 390 |
],
|
390 | 391 |
'xcode_settings': {
|
391 | |
'ARCHS': ['i386'],
|
392 | 392 |
'SDKROOT': 'macosx<(mac_sdk)',
|
393 | 393 |
'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
|
394 | 394 |
'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # No -fvisibility=hidden
|
53 | 53 |
'postbuild_name': 'dump symbols',
|
54 | 54 |
'action': [
|
55 | 55 |
'python', '../build_tools/redirect.py',
|
56 | |
'${BUILT_PRODUCTS_DIR}/<(product_name)_i386.breakpad',
|
|
56 |
'${BUILT_PRODUCTS_DIR}/<(product_name)_x86_64.breakpad',
|
57 | 57 |
'<(mac_breakpad_tools_dir)/dump_syms',
|
58 | |
'-a', 'i386',
|
|
58 |
'-a', 'x86_64',
|
59 | 59 |
'${BUILT_PRODUCTS_DIR}/<(product_name).app/Contents/MacOS/<(product_name)',
|
60 | 60 |
],
|
61 | 61 |
},
|