mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
add image related building script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1267 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
#include <rtthread.h>
|
||||
#include <rtgui/rtgui.h>
|
||||
|
||||
#ifdef RTGUI_USING_JPEG
|
||||
#ifdef RTGUI_IMAGE_JPEG
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "jpeg/jpeglib.h"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <rtthread.h>
|
||||
#include <rtgui/rtgui_system.h>
|
||||
|
||||
#ifdef RTGUI_USING_PNG
|
||||
#ifdef RTGUI_IMAGE_PNG
|
||||
#include "libpng/png.h"
|
||||
#include <rtgui/image_png.h>
|
||||
|
||||
|
||||
38
components/rtgui/common/jpeg/SConscript
Normal file
38
components/rtgui/common/jpeg/SConscript
Normal file
@@ -0,0 +1,38 @@
|
||||
Import('RTT_ROOT')
|
||||
Import('rtconfig')
|
||||
from building import *
|
||||
|
||||
src = Split('''
|
||||
jaricom.c
|
||||
jcomapi.c
|
||||
jutils.c
|
||||
jerror.c
|
||||
jmemmgr.c
|
||||
jdapimin.c
|
||||
jdapistd.c
|
||||
jdarith.c
|
||||
jdtrans.c
|
||||
jdatasrc.c
|
||||
jdmaster.c
|
||||
jdinput.c
|
||||
jdmarker.c
|
||||
jdhuff.c
|
||||
jdmainct.c
|
||||
jdcoefct.c
|
||||
jdpostct.c
|
||||
jddctmgr.c
|
||||
jidctfst.c
|
||||
jidctflt.c
|
||||
jidctint.c
|
||||
jdsample.c
|
||||
jdcolor.c
|
||||
jquant1.c
|
||||
jquant2.c
|
||||
jdmerge.c
|
||||
jmemnobs.c
|
||||
''')
|
||||
CPPPATH = [RTT_ROOT + '/components/rtgui/common/jpeg']
|
||||
|
||||
group = DefineGroup('jpeg', src, depend = ['RTGUI_IMAGE_JPEG'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
28
components/rtgui/common/libpng/SConscript
Normal file
28
components/rtgui/common/libpng/SConscript
Normal file
@@ -0,0 +1,28 @@
|
||||
Import('RTT_ROOT')
|
||||
Import('rtconfig')
|
||||
from building import *
|
||||
|
||||
src = Split('''
|
||||
png.c
|
||||
pngerror.c
|
||||
pnggccrd.c
|
||||
pngget.c
|
||||
pngmem.c
|
||||
pngpread.c
|
||||
pngread.c
|
||||
pngrio.c
|
||||
pngrtran.c
|
||||
pngrutil.c
|
||||
pngset.c
|
||||
pngtrans.c
|
||||
pngvcrd.c
|
||||
pngwio.c
|
||||
pngwrite.c
|
||||
pngwtran.c
|
||||
pngwutil.c
|
||||
''')
|
||||
CPPPATH = [RTT_ROOT + '/components/rtgui/common/libpng']
|
||||
|
||||
group = DefineGroup('libpng', src, depend = ['RTGUI_IMAGE_PNG'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
23
components/rtgui/common/libz/SConscript
Normal file
23
components/rtgui/common/libz/SConscript
Normal file
@@ -0,0 +1,23 @@
|
||||
Import('RTT_ROOT')
|
||||
Import('rtconfig')
|
||||
from building import *
|
||||
|
||||
src = Split('''
|
||||
adler32.c
|
||||
compress.c
|
||||
crc32.c
|
||||
deflate.c
|
||||
gzio.c
|
||||
infback.c
|
||||
inffast.c
|
||||
inflate.c
|
||||
inftrees.c
|
||||
trees.c
|
||||
uncompr.c
|
||||
zutil.c
|
||||
''')
|
||||
CPPPATH = [RTT_ROOT + '/components/rtgui/common/libz']
|
||||
|
||||
group = DefineGroup('libz', src, depend = ['RTGUI_IMAGE_PNG'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
Reference in New Issue
Block a user