awtk/tools/fdb/SConscript
2023-05-13 18:20:52 +08:00

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)