Skip to content

Instantly share code, notes, and snippets.

@10sr
Last active January 8, 2020 09:00
Show Gist options
  • Save 10sr/f5719ec8c2e42eb12fcb51b9a33d1505 to your computer and use it in GitHub Desktop.
Save 10sr/f5719ec8c2e42eb12fcb51b9a33d1505 to your computer and use it in GitHub Desktop.
Patch to build mozc_emacs_helper to use GoogleJapaneseInput on Mac.
Can be applied to https://github.com/google/mozc afb03dd.
Modified from https://gist.github.com/koshian/044eaf7a03027ed37a83
- http://koshian.hatenablog.com/entry/2016/02/19/134015
diff --git a/src/build_mozc.py b/src/build_mozc.py
old mode 100644
new mode 100755
index 46fa082..e90a395
--- a/src/build_mozc.py
+++ b/src/build_mozc.py
@@ -167,6 +167,8 @@ def GetGypFileNames(options):
# Include subdirectory of win32 and breakpad for Windows
if options.target_platform == 'Windows':
gyp_file_names.extend(glob.glob('%s/win32/*/*.gyp' % SRC_DIR))
+ elif options.target_platform == 'Mac':
+ gyp_file_names.extend(glob.glob('%s/unix/emacs/*.gyp' % SRC_DIR))
elif options.target_platform == 'Linux':
gyp_file_names.extend(glob.glob('%s/unix/*/*.gyp' % SRC_DIR))
# Add ibus.gyp if ibus version is >=1.4.1.
diff --git a/src/mac/mac.gyp b/src/mac/mac.gyp
index 9cf0cf4..5b77810 100644
--- a/src/mac/mac.gyp
+++ b/src/mac/mac.gyp
@@ -585,7 +585,6 @@
['branding=="GoogleJapaneseInput"', {
'dependencies': [
'DevConfirmPane',
- 'codesign_client',
],
}],
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment