mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-01 19:49:11 +08:00
19 lines
585 B
Python
19 lines
585 B
Python
import os
|
|
import platform
|
|
|
|
env=DefaultEnvironment().Clone()
|
|
LIB_DIR=os.environ['LIB_DIR'];
|
|
BIN_DIR=os.environ['BIN_DIR'];
|
|
|
|
env.Library(os.path.join(LIB_DIR, 'gpinyin'), Glob('src/*.cpp'))
|
|
|
|
if 'TARGET_ARCH' in os.environ and os.environ['TARGET_ARCH'] == 'arm':
|
|
pass;
|
|
else:
|
|
env1=DefaultEnvironment().Clone()
|
|
env1['CCFLAGS'] = '-D___BUILD_MODEL___ ' + env['CCFLAGS'];
|
|
if not 'BUILD_TOOLS' in os.environ or os.environ['BUILD_TOOLS'] == str(True) :
|
|
env1.Program(os.path.join(BIN_DIR, 'gpinyingen'), ['tools/gpinyin_gen.cpp']
|
|
+ Glob('tools/src/*.cpp'), LIBS=['gpinyin'])
|
|
|