mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
19 lines
486 B
Python
19 lines
486 B
Python
import os
|
|
import platform
|
|
|
|
OS_NAME=platform.system()
|
|
BIN_DIR=os.environ['BIN_DIR'];
|
|
LIB_DIR=os.environ['LIB_DIR'];
|
|
|
|
sources=Glob('cairo/*.c')
|
|
|
|
env=DefaultEnvironment().Clone()
|
|
|
|
if (OS_NAME == 'Darwin' or OS_NAME == 'Linux'):
|
|
env['CCFLAGS'] = ' -Wno-unused-variable -Wno-enum-conversion ' + env['CCFLAGS']
|
|
|
|
env.Library(os.path.join(LIB_DIR, 'cairo'), sources)
|
|
|
|
# env['LIBS'] = ['cairo', 'pixman'] + env['LIBS']
|
|
# env.Program(os.path.join(BIN_DIR, 'cairo_stars'), ['demos/stars.c']);
|