提交 7cca94e5 编写于 作者: B bernard.xiong@gmail.com

add image related building script.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1267 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 a6d0f9b9
...@@ -18,6 +18,8 @@ common/image.c ...@@ -18,6 +18,8 @@ common/image.c
common/image_xpm.c common/image_xpm.c
common/image_hdc.c common/image_hdc.c
common/image_bmp.c common/image_bmp.c
common/image_png.c
common/image_jpg.c
common/image_container.c common/image_container.c
common/font.c common/font.c
common/font_bmp.c common/font_bmp.c
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <rtgui/image_bmp.h> #include <rtgui/image_bmp.h>
#include <rtgui/blit.h> #include <rtgui/blit.h>
#ifdef RTGUI_IMAGE_BMP
/* Compression encodings for BMP files */ /* Compression encodings for BMP files */
#ifndef BI_RGB #ifndef BI_RGB
#define BI_RGB 0 #define BI_RGB 0
...@@ -641,3 +642,4 @@ void rtgui_image_bmp_init() ...@@ -641,3 +642,4 @@ void rtgui_image_bmp_init()
/* register bmp on image system */ /* register bmp on image system */
rtgui_image_register_engine(&rtgui_image_bmp_engine); rtgui_image_register_engine(&rtgui_image_bmp_engine);
} }
#endif
#include <rtthread.h> #include <rtthread.h>
#include <rtgui/rtgui.h> #include <rtgui/rtgui.h>
#ifdef RTGUI_USING_JPEG #ifdef RTGUI_IMAGE_JPEG
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "jpeg/jpeglib.h" #include "jpeg/jpeglib.h"
......
#include <rtthread.h> #include <rtthread.h>
#include <rtgui/rtgui_system.h> #include <rtgui/rtgui_system.h>
#ifdef RTGUI_USING_PNG #ifdef RTGUI_IMAGE_PNG
#include "libpng/png.h" #include "libpng/png.h"
#include <rtgui/image_png.h> #include <rtgui/image_png.h>
......
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')
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')
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')
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
#define RTGUI_IMAGE_CONTAINER #define RTGUI_IMAGE_CONTAINER
#define RTGUI_IMAGE_XPM #define RTGUI_IMAGE_XPM
#define RTGUI_IMAGE_BMP #define RTGUI_IMAGE_BMP
// #define RTGUI_IMAGE_PNG #define RTGUI_IMAGE_PNG
// #define RTGUI_IMAGE_JPEG #define RTGUI_IMAGE_JPEG
#define RTGUI_USING_FONT12 #define RTGUI_USING_FONT12
#define RTGUI_USING_HZ_BMP #define RTGUI_USING_HZ_BMP
#define RTGUI_MEM_TRACE #define RTGUI_MEM_TRACE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册