Codebase list mozc / 06d179a
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
6 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
8383 - if [ $TARGET_PLATFORM == Linux ]; then python build_mozc.py runtests -c Release; fi
8484 - if [ $TARGET_PLATFORM == NaCl ]; then python build_mozc.py gyp --target_platform=NaCl --nacl_sdk_root=`pwd`/third_party/nacl_sdk/pepper_49; fi
8585 - 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
8787 - if [ $TARGET_PLATFORM == Mac ]; then python build_mozc.py build -c Release mac/mac.gyp:GoogleJapaneseInput mac/mac.gyp:gen_launchd_confs; fi
8888 - if [ $TARGET_PLATFORM == Mac ]; then python build_mozc.py runtests -c Release; fi
8989
22
33 # System Requirements
44
5 We only support OS X 10.7 or later intel only.
5 Only 64-bit macOS 10.9 and later versions are supported.
66
77 # Software Requirements
88
3030
3131 ```
3232 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
3434 ```
3535
3636 You can customize the SDK version and target OS version here. Then, build Mozc.app and necessary files:
4848 To build GUI tools, you need to specify --qtdir instead of --noqt.
4949
5050 ```
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
5252 ```
5353
5454 In the above case, `~/myqt` should contain Qt's sources, headers and libraries built from `configure` and `make`.
6868
6969 def BuildBreakpad(outdir):
7070 projdir = os.path.join(outdir, 'src/client/mac/Breakpad.xcodeproj')
71 Xcodebuild(projdir, 'Breakpad', 'i386', outdir)
71 Xcodebuild(projdir, 'Breakpad', 'x86_64', outdir)
7272
7373
7474 def BuildDumpSyms(outdir):
2929
3030 MAJOR=2
3131 MINOR=19
32 BUILD=2644
32 BUILD=2645
3333 REVISION=102
3434 # This version represents the version of Mozc IME engine (converter, predictor,
3535 # etc.). This version info is included both in the Mozc server and in the Mozc
4646
4747 # Versioning stuff for Mac.
4848 'mac_sdk%': '10.9',
49 'mac_deployment_target%': '10.7',
49 'mac_deployment_target%': '10.9',
5050
5151
5252 # 'conditions' is put inside of 'variables' so that we can use
383383 'conditions': [
384384 ['target_platform=="Mac"', {
385385 'xcode_settings': {
386 'ARCHS': ['x86_64'],
386387 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
387388 },
388389 }],
389390 ],
390391 'xcode_settings': {
391 'ARCHS': ['i386'],
392392 'SDKROOT': 'macosx<(mac_sdk)',
393393 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
394394 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # No -fvisibility=hidden
5353 'postbuild_name': 'dump symbols',
5454 'action': [
5555 'python', '../build_tools/redirect.py',
56 '${BUILT_PRODUCTS_DIR}/<(product_name)_i386.breakpad',
56 '${BUILT_PRODUCTS_DIR}/<(product_name)_x86_64.breakpad',
5757 '<(mac_breakpad_tools_dir)/dump_syms',
58 '-a', 'i386',
58 '-a', 'x86_64',
5959 '${BUILT_PRODUCTS_DIR}/<(product_name).app/Contents/MacOS/<(product_name)',
6060 ],
6161 },