2018-06-23 18:17:22 +08:00
|
|
|
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'))
|
|
|
|
|
2018-06-24 12:23:51 +08:00
|
|
|
#
|
|
|
|
# env1=DefaultEnvironment().Clone()
|
|
|
|
# env1['LIBS'] = ['gpinyin_tools'] + env['LIBS'];
|
|
|
|
# env1['CCFLAGS'] = '-D___BUILD_MODEL___ ' + env['CCFLAGS'];
|
|
|
|
# env1.Library(os.path.join(LIB_DIR, 'gpinyin_tools'), Glob('src.org/*.cpp'))
|
|
|
|
#
|
|
|
|
# env1.Program(os.path.join(BIN_DIR, 'gpinyin_gen'), ['tools/gpinyin_gen.cpp'])
|
|
|
|
# env1.Program(os.path.join(BIN_DIR, 'gpinyin_test'), ['tools/gpinyin_test.cpp'])
|
2018-06-23 18:17:22 +08:00
|
|
|
|