From ba9c0b87cd67ae1e123aa8935a32d04ca3be79f5 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Wed, 9 Mar 2011 08:01:59 +0000 Subject: [PATCH] add pixman library. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1320 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/external/pixman/SConscript | 55 +++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 components/external/pixman/SConscript diff --git a/components/external/pixman/SConscript b/components/external/pixman/SConscript new file mode 100644 index 0000000000..c2a17369f0 --- /dev/null +++ b/components/external/pixman/SConscript @@ -0,0 +1,55 @@ +Import('RTT_ROOT') +Import('rtconfig') + +from building import * +import os + +PIXMAN_VERSION = '0.21.6' +PIXMAN_PATH = 'pixman-' + PIXMAN_VERSION + +if GetDepend('RT_USING_CAIRO') and not os.path.exists(PIXMAN_PATH): + print '================ERROR============================' + print 'Please get pixman dist and put them under pixman folder' + print '=================================================' + exit(0) + +# core source files +src = Split(''' +pixman-access-accessors.c +pixman-access.c +pixman-arm-neon.c +pixman-arm-simd.c +pixman-bits-image.c +pixman-combine32.c +pixman-combine64.c +pixman-conical-gradient.c +pixman-cpu.c +pixman-edge-accessors.c +pixman-edge.c +pixman-fast-path.c +pixman-general.c +pixman-gradient-walker.c +pixman-image.c +pixman-implementation.c +pixman-linear-gradient.c +pixman-matrix.c +pixman-mmx.c +pixman-radial-gradient.c +pixman-region16.c +pixman-region32.c +pixman-solid-fill.c +pixman-timer.c +pixman-trap.c +pixman-utils.c +pixman.c +''') + +for item in range(len(src)): + src[item] = PIXMAN_PATH + '/pixman/' + src[item] + +CPPDEFINES = ['HAVE_PTHREAD_SETSPECIFIC', 'PACKAGE'] +CPPPATH = [RTT_ROOT + '/components/external/pixman/' + PIXMAN_PATH + '/pixman'] + +group = DefineGroup('pixman', src, depend = ['RT_USING_CAIRO'], CPPDEFINES = CPPDEFINES, CPPPATH = CPPPATH) + +Return('group')