mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-03 12:37:43 +08:00
14 lines
387 B
Python
Executable File
14 lines
387 B
Python
Executable File
import os
|
|
import platform
|
|
|
|
env=DefaultEnvironment().Clone()
|
|
BIN_DIR=os.environ['BIN_DIR'];
|
|
|
|
OS_NAME = platform.system();
|
|
CROSS_COMPILE='CROSS_COMPILE' in os.environ and os.environ['CROSS_COMPILE'] == 'True'
|
|
if not CROSS_COMPILE:
|
|
LIBS=env['LIBS']
|
|
if OS_NAME != 'Windows':
|
|
LIBS = LIBS + ['readline']
|
|
env.Program(os.path.join(BIN_DIR, 'fdb'), Glob('*.cpp'), LIBS=LIBS)
|