Do not use shell syntax in gyp (part 2)
This is a groundwork for Ninja migration on Linux. No user-visible behavioral changes are expected with this CL.
'$' is reserved for Ninja internal use. We shouldn't rely on it in gyp layer.
With this CL, a conditional action regarding symbol removal is handled in a python script rather than the gyp (and therefore Ninja) layer.
BUG=mozc:222
TEST=compile and unittest
git-svn-id: https://mozc.googlecode.com/svn/trunk@221 a6090854-d499-a067-5803-1114d4e51264
Yohei Yukawa
9 years ago
45 | 45 |
'--toolchain_root=<(nacl_sdk_root)/toolchain/linux_x86_pnacl',
|
46 | 46 |
'--input=<(RULE_INPUT_PATH)',
|
47 | 47 |
'--output_base=<(PRODUCT_DIR)/<(RULE_INPUT_ROOT)',
|
48 | |
# Strips the binaries in Release build.
|
49 | |
'$(if $(filter Release,<(CONFIGURATION_NAME)),--strip,)',
|
|
48 |
'--configuration=<(CONFIGURATION_NAME)',
|
50 | 49 |
],
|
51 | 50 |
},
|
52 | 51 |
],
|
53 | |
}⏎
|
|
52 |
}
|
34 | 34 |
nexefile_x86_32.nexe and nexefile_x86_64.nexe.
|
35 | 35 |
|
36 | 36 |
python pnacl_translate.py --command=/path/to/toolchain/linux_x86_pnacl \
|
37 | |
--input=/path/to/pexefile --output_base=/path/to/nexefile --strip
|
|
37 |
--input=/path/to/pexefile --output_base=/path/to/nexefile \
|
|
38 |
--configuration=Release
|
38 | 39 |
"""
|
39 | 40 |
|
40 | 41 |
import optparse
|
|
99 | 100 |
help='input pexe file')
|
100 | 101 |
parser.add_option('--output_base', dest='output_base',
|
101 | 102 |
help='output base path')
|
102 | |
parser.add_option('--strip', action='store_true', dest='strip',
|
103 | |
default=False, help='strip the binary')
|
|
103 |
parser.add_option('--configuration', dest='configuration',
|
|
104 |
help='build configuration')
|
104 | 105 |
(options, _) = parser.parse_args()
|
105 | 106 |
|
106 | 107 |
if not options.toolchain_root:
|
|
115 | 116 |
print >> sys.stderr, 'Error: output_base is not set.'
|
116 | 117 |
sys.exit(1)
|
117 | 118 |
|
118 | |
if options.strip:
|
|
119 |
if options.configuration == 'Release':
|
119 | 120 |
return StripAndTranslate(options.toolchain_root,
|
120 | 121 |
options.input,
|
121 | 122 |
options.output_base)
|
0 | 0 |
MAJOR=1
|
1 | 1 |
MINOR=15
|
2 | |
BUILD=1800
|
|
2 |
BUILD=1801
|
3 | 3 |
REVISION=102
|
4 | 4 |
# ANDROID_VERSION_CODE should be the number of update times.
|
5 | 5 |
# It must at least increase when the build updates.
|
6 | |
ANDROID_VERSION_CODE=1800
|
|
6 |
ANDROID_VERSION_CODE=1801
|
7 | 7 |
# NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
|
8 | 8 |
# downloaded by NaCl Mozc.
|
9 | 9 |
NACL_DICTIONARY_VERSION=4
|