awtk/tools/image_resize/SConscript

24 lines
527 B
Python
Raw Normal View History

2018-07-10 15:59:21 +08:00
import os
import sys
2018-08-15 17:33:55 +08:00
import platform
OS_NAME=platform.system()
2018-07-10 15:59:21 +08:00
env=DefaultEnvironment().Clone()
BIN_DIR=os.environ['BIN_DIR'];
LIB_DIR=os.environ['LIB_DIR'];
2018-08-15 17:33:55 +08:00
if OS_NAME == 'Darwin':
env['LIBS'] = ['m'];
elif OS_NAME == 'Linux':
env['LIBS'] = ['m'];
env['LINKFLAGS'] = env['OS_SUBSYSTEM_CONSOLE'] + env['LINKFLAGS'];
2018-08-15 17:33:55 +08:00
2018-07-10 15:59:21 +08:00
env.Program(os.path.join(BIN_DIR, 'image_resize'), ["resize.c"])
env.Program(os.path.join(BIN_DIR, 'image_info'), ["info.c"])
2018-11-14 14:28:26 +08:00
env.Program(os.path.join(BIN_DIR, 'image_to_rgb565'), ["to_rgb565.c"])
2018-07-10 15:59:21 +08:00