Unsupport BuildToolsMain in build_mozc.py except for Windows
Since r214, 2-pass build can be enabled only in Windows build. Hence BuildToolsMain needs to support Windows only.
This is just a clean-up for build rule. No behavior change is intended.
BUG=Issue mozc:223
TEST=compile
git-svn-id: https://mozc.googlecode.com/svn/trunk@371 a6090854-d499-a067-5803-1114d4e51264
diff --git a/src/build_mozc.py b/src/build_mozc.py
index 19efcec..62291e7 100644
--- a/src/build_mozc.py
+++ b/src/build_mozc.py
@@ -986,22 +986,16 @@
def BuildToolsMain(options, unused_args, original_directory_name):
"""The main function for 'build_tools' command."""
+ if not IsWindows():
+ logging.info('build_tools is deprecated on this platform.')
+ return
+
build_tools_dir = os.path.join(GetRelPath(os.getcwd(),
original_directory_name),
SRC_DIR, 'build_tools')
- # Build targets in this order.
- if IsWindows():
- build_tools_targets = [
- 'out_win/%s:build_tools' % options.configuration,
- ]
- else:
- gyp_files = [
- os.path.join(build_tools_dir, 'build_tools.gyp')
- ]
- build_tools_targets = []
- for gyp_file in gyp_files:
- (target, _) = os.path.splitext(os.path.basename(gyp_file))
- build_tools_targets += ['%s:%s' % (gyp_file, target)]
+ build_tools_targets = [
+ 'out_win/%s:build_tools' % options.configuration,
+ ]
for build_tools_target in build_tools_targets:
BuildMain(options, [build_tools_target], original_directory_name)
diff --git a/src/mozc_version_template.txt b/src/mozc_version_template.txt
index 5180b31..d566fea 100644
--- a/src/mozc_version_template.txt
+++ b/src/mozc_version_template.txt
@@ -1,6 +1,6 @@
MAJOR=1
MINOR=15
-BUILD=1914
+BUILD=1915
REVISION=102
# NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
# downloaded by NaCl Mozc.