mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-05 17:59:58 +08:00
initical commit
This commit is contained in:
2
3rd-party/Makefile.am
vendored
Normal file
2
3rd-party/Makefile.am
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
SUBDIRS = scripteasy
|
||||
|
||||
11
3rd-party/scripteasy/Makefile.am
vendored
Normal file
11
3rd-party/scripteasy/Makefile.am
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
datadir=$(prefix)/lib
|
||||
|
||||
|
||||
if MGFONT_SEF
|
||||
|
||||
data_DATA=libscripteasy.so
|
||||
EXTRA_DIST = ${data_DATA} test/sample.c test/dejavu_sans_ttf.h \
|
||||
test/font_table.c test/fzxhgb_yh_ttf.h test/Makefile
|
||||
|
||||
endif
|
||||
|
||||
BIN
3rd-party/scripteasy/libscripteasy.so
vendored
Normal file
BIN
3rd-party/scripteasy/libscripteasy.so
vendored
Normal file
Binary file not shown.
25
3rd-party/scripteasy/test/Makefile
vendored
Normal file
25
3rd-party/scripteasy/test/Makefile
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
all:sample
|
||||
|
||||
C = gcc
|
||||
#CC = arm-linux-gcc
|
||||
|
||||
LD = gcc
|
||||
#LD = arm-linux-gcc
|
||||
|
||||
MINIGUI_COMMON = /home/houhh/smb/Target/pc-rel-3
|
||||
LIBS = -lminigui_ths -lscripteasy -ljpeg -lz -lpng -lpthread
|
||||
|
||||
LDFLAGS = -L$(MINIGUI_COMMON)/lib -ldl
|
||||
CFLAGS = -g -Wall -I$(MINIGUI_COMMON)/include
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -c -o $a $<
|
||||
|
||||
sample:sample.c $(MINIGUI_COMMON)
|
||||
$(CC) sample.c font_table.c $(CFLAGS) -Wall -g -o sample $(LDFLAGS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f sample
|
||||
|
||||
|
||||
|
||||
50793
3rd-party/scripteasy/test/dejavu_sans_ttf.h
vendored
Normal file
50793
3rd-party/scripteasy/test/dejavu_sans_ttf.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
230
3rd-party/scripteasy/test/font_table.c
vendored
Normal file
230
3rd-party/scripteasy/test/font_table.c
vendored
Normal file
@@ -0,0 +1,230 @@
|
||||
|
||||
/*
|
||||
* Copyright (C) 2000-2007 Beijing Komoxo Inc.
|
||||
* All rights reserved.
|
||||
*/
|
||||
|
||||
#include "se_minigui.h"
|
||||
#include "stdio.h"
|
||||
#include "string.h"
|
||||
|
||||
#include "kmx_latin1_ttf.h"
|
||||
#include "fzxh_gb2312_ttf.h"
|
||||
#include "fzxh_gb18030_1_ttf_stub.h"
|
||||
#include "fzxh_gb18030_2_ttf_stub.h"
|
||||
|
||||
#define ASSERT(a)
|
||||
|
||||
#ifdef SE_FONT_DYNAMIC_LOADING_SUPPORT
|
||||
#define MAX_PATH 256
|
||||
#define MAX_LOGICAL_FONT_SIZE 16 /* Physical font count per logical font */
|
||||
#endif
|
||||
|
||||
#define MAX_LOGICAL_TABLE_SIZE 256
|
||||
|
||||
/* Script Easy font description data definition */
|
||||
|
||||
static void* font_table[] =
|
||||
{
|
||||
(void*) &kmx_latin1_ttf, 0,
|
||||
(void*) &fzxh_gb2312_ttf, 0,
|
||||
(void*) &fzxh_gb18030_1_ttf, 0,
|
||||
(void*) &fzxh_gb18030_2_ttf, 0,
|
||||
|
||||
0
|
||||
};
|
||||
|
||||
#define FONT_TABLE_SIZE ((sizeof(font_table) / sizeof(void*) - 1) / 2)
|
||||
|
||||
static unsigned char logical_font_table_config[][MAX_LOGICAL_FONT_SIZE] =
|
||||
{
|
||||
{4, 0, 1, 2, 3}
|
||||
};
|
||||
#define LOGICAL_FONT_TABLE_SIZE (sizeof(logical_font_table_config) / (MAX_LOGICAL_FONT_SIZE * sizeof(unsigned char)))
|
||||
#define DEFAULT_LOGICAL_FONT_INDEX 0
|
||||
|
||||
static unsigned char logical_font_table[MAX_LOGICAL_TABLE_SIZE];
|
||||
|
||||
static unsigned int logical_font_table_index_map[LOGICAL_FONT_TABLE_SIZE];
|
||||
|
||||
#ifdef SE_FONT_DYNAMIC_LOADING_SUPPORT
|
||||
static const
|
||||
struct {
|
||||
const char *font_name;
|
||||
int logical_font_index;
|
||||
}
|
||||
font_name_config[] =
|
||||
{
|
||||
{0, 0},
|
||||
{0, 0},
|
||||
{"fzxh_gb18030_1_ttf.le", 0},
|
||||
{"fzxh_gb18030_2_ttf.le", 0},
|
||||
};
|
||||
#endif /* #ifdef SE_FONT_DYNAMIC_LOADING_SUPPORT */
|
||||
|
||||
static const se_font_name_map font_name_map[] = {
|
||||
/* iso8859-1 */
|
||||
{"ttf-fzxh-rrncnn-0-0-iso8859-1", 0},
|
||||
/* GB2312 */
|
||||
{"ttf-fzxh-rrncnn-0-0-GB2312", 0},
|
||||
/* utf-8 */
|
||||
{"ttf-fzxh-rrncnn-0-0-utf-8", 0},
|
||||
};
|
||||
|
||||
#define FONT_NAME_MAP_SIZE (sizeof(font_name_map) / sizeof(se_font_name_map))
|
||||
|
||||
const se_font_description se_font_desc = {
|
||||
FONT_TABLE_SIZE,
|
||||
FONT_NAME_MAP_SIZE,
|
||||
(const se_font_name_map*)font_name_map,
|
||||
(const void **)font_table,
|
||||
logical_font_table
|
||||
};
|
||||
|
||||
/* The following is the scripteasy mem pool definition */
|
||||
|
||||
#define SE_MEM_POOL_SIZE (64 * 1024)
|
||||
#define SE_CACHE_MEM_POOL_SIZE (256 * 1024)
|
||||
|
||||
int se_minigui_mem_pool[SE_MEM_POOL_SIZE];
|
||||
int se_minigui_mem_pool_size = SE_MEM_POOL_SIZE * sizeof(int);
|
||||
int se_minigui_cache_mem_pool[SE_CACHE_MEM_POOL_SIZE];
|
||||
int se_minigui_cache_mem_pool_size = SE_CACHE_MEM_POOL_SIZE * sizeof(int);
|
||||
|
||||
|
||||
/* The Following is for initializing font */
|
||||
|
||||
#ifdef SE_FONT_DYNAMIC_LOADING_SUPPORT
|
||||
static const char * se_minigui_get_font_dir(void)
|
||||
{
|
||||
/* TO BE CUSTOMIZED */
|
||||
static char font_dir[MAX_PATH + 1] = "/usr/minigui/se_new/minigui/src/fonts/";
|
||||
|
||||
return font_dir;
|
||||
}
|
||||
|
||||
static FILE* se_minigui_open_font_file(const char *name)
|
||||
{
|
||||
static char path[MAX_PATH + 1];
|
||||
const char *font_dir;
|
||||
FILE *handle = 0;
|
||||
|
||||
font_dir = se_minigui_get_font_dir();
|
||||
|
||||
if(!font_dir)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
strcpy(path, font_dir);
|
||||
strcat(path, name);
|
||||
|
||||
handle = fopen(path, "rb");
|
||||
|
||||
return handle;
|
||||
}
|
||||
|
||||
unsigned int se_minigui_read_font(
|
||||
void* name,
|
||||
void* buffer,
|
||||
unsigned int offset,
|
||||
unsigned int size)
|
||||
{
|
||||
FILE* handle = (FILE*) name;
|
||||
unsigned int read = 0;
|
||||
int result = 0;
|
||||
|
||||
if(!handle)
|
||||
return 0;
|
||||
|
||||
fseek(handle, offset, SEEK_SET);
|
||||
printf("In se_minigui_read_font...\n");
|
||||
return fread(buffer, 1, size, handle);
|
||||
}
|
||||
|
||||
#endif /* #ifdef SE_FONT_DYNAMIC_LOADING_SUPPORT */
|
||||
|
||||
static int append_logical_font(int pos, const unsigned char *logical_font)
|
||||
{
|
||||
memcpy (logical_font_table + pos, logical_font, logical_font[0] + 1);
|
||||
return logical_font[0] + 1;
|
||||
}
|
||||
|
||||
static void build_logical_font_table (void)
|
||||
{
|
||||
unsigned int i = 0;
|
||||
int pos = 0;
|
||||
for (; i < LOGICAL_FONT_TABLE_SIZE; ++i)
|
||||
{
|
||||
pos += append_logical_font (pos, logical_font_table_config[logical_font_table_index_map[i]]);
|
||||
}
|
||||
|
||||
logical_font_table[pos] = (unsigned char) 0;
|
||||
}
|
||||
|
||||
static void init_logical_font_map(void)
|
||||
{
|
||||
unsigned int i = 0;
|
||||
|
||||
for (; i < LOGICAL_FONT_TABLE_SIZE; ++i)
|
||||
{
|
||||
logical_font_table_index_map[i] = i;
|
||||
}
|
||||
}
|
||||
|
||||
void se_minigui_destroy_fonts(void)
|
||||
{
|
||||
#ifdef SE_FONT_DYNAMIC_LOADING_SUPPORT
|
||||
int i = 0;
|
||||
for(; i < FONT_TABLE_SIZE; ++i)
|
||||
{
|
||||
if(font_table[i * 2 + 1])
|
||||
{
|
||||
fclose((FILE*) font_table[i * 2 + 1]);
|
||||
font_table[i * 2 + 1] = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void se_minigui_init_fonts(void)
|
||||
{
|
||||
int i = 0;
|
||||
int pos = 0;
|
||||
|
||||
ASSERT (DEFAULT_LOGICAL_FONT_INDEX >= 0 &&
|
||||
DEFAULT_LOGICAL_FONT_INDEX < LOGICAL_FONT_TABLE_SIZE);
|
||||
|
||||
se_minigui_destroy_fonts();
|
||||
|
||||
init_logical_font_map();
|
||||
|
||||
#ifdef SE_FONT_DYNAMIC_LOADING_SUPPORT
|
||||
for(; i < FONT_TABLE_SIZE; ++i)
|
||||
{
|
||||
if(font_name_config[i].font_name)
|
||||
{
|
||||
FILE* handle;
|
||||
|
||||
handle = se_minigui_open_font_file(font_name_config[i].font_name);
|
||||
|
||||
ASSERT (font_table[i * 2 + 1] == 0);
|
||||
|
||||
if (handle)
|
||||
{
|
||||
font_table[i * 2 + 1] = (void*)handle;
|
||||
}
|
||||
else
|
||||
{
|
||||
ASSERT (font_name_config[i].logical_font_index >= 0 &&
|
||||
font_name_config[i].logical_font_index < LOGICAL_FONT_TABLE_SIZE);
|
||||
ASSERT (logical_font_table_index_map[font_name_config[i].logical_font_index] == font_name_config[i].logical_font_index);
|
||||
|
||||
logical_font_table_index_map[font_name_config[i].logical_font_index] = DEFAULT_LOGICAL_FONT_INDEX;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
build_logical_font_table();
|
||||
}
|
||||
BIN
3rd-party/scripteasy/test/fzxh_gb18030_1_ttf.le
vendored
Normal file
BIN
3rd-party/scripteasy/test/fzxh_gb18030_1_ttf.le
vendored
Normal file
Binary file not shown.
23189
3rd-party/scripteasy/test/fzxh_gb18030_1_ttf_stub.h
vendored
Normal file
23189
3rd-party/scripteasy/test/fzxh_gb18030_1_ttf_stub.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
3rd-party/scripteasy/test/fzxh_gb18030_2_ttf.le
vendored
Normal file
BIN
3rd-party/scripteasy/test/fzxh_gb18030_2_ttf.le
vendored
Normal file
Binary file not shown.
7221
3rd-party/scripteasy/test/fzxh_gb18030_2_ttf_stub.h
vendored
Normal file
7221
3rd-party/scripteasy/test/fzxh_gb18030_2_ttf_stub.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
99451
3rd-party/scripteasy/test/fzxh_gb2312_ttf.h
vendored
Normal file
99451
3rd-party/scripteasy/test/fzxh_gb2312_ttf.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
99017
3rd-party/scripteasy/test/fzxhgb_yh_ttf.h
vendored
Normal file
99017
3rd-party/scripteasy/test/fzxhgb_yh_ttf.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
10509
3rd-party/scripteasy/test/kmx_latin1_ttf.h
vendored
Normal file
10509
3rd-party/scripteasy/test/kmx_latin1_ttf.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
235
3rd-party/scripteasy/test/sample.c
vendored
Normal file
235
3rd-party/scripteasy/test/sample.c
vendored
Normal file
@@ -0,0 +1,235 @@
|
||||
/*
|
||||
** $Id: sample.c,v 1.38 2009-01-15 07:56:45 houhuihua Exp $
|
||||
**
|
||||
** sample.c: Sample program for komoxo scripteasy font.
|
||||
**
|
||||
** Copyright (C) 2008 ~ 2009 Feynman Software.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <minigui/common.h>
|
||||
#include <minigui/minigui.h>
|
||||
#include <minigui/gdi.h>
|
||||
#include <minigui/window.h>
|
||||
|
||||
static char welcome_text [10240];
|
||||
static char msg_text [5120];
|
||||
static RECT welcome_rc = {20, 100, 600, 400};
|
||||
static RECT msg_rc = {10, 100, 600, 400};
|
||||
|
||||
static const char* syskey = "";
|
||||
|
||||
static int last_key = -1;
|
||||
static int last_key_count = 0;
|
||||
|
||||
static void make_welcome_text (void)
|
||||
{
|
||||
const char* sys_charset = GetSysCharset (TRUE);
|
||||
const char* format;
|
||||
|
||||
if (sys_charset == NULL)
|
||||
sys_charset = GetSysCharset (FALSE);
|
||||
|
||||
SetRect (&welcome_rc, 10, 20, g_rcScr.right - 10, g_rcScr.bottom / 1.5 - 10);
|
||||
SetRect (&msg_rc, 10, welcome_rc.bottom + 10, g_rcScr.right - 10, g_rcScr.bottom - 20);
|
||||
|
||||
if (strcmp (sys_charset, FONT_CHARSET_GB2312_0) == 0
|
||||
|| strcmp (sys_charset, FONT_CHARSET_GBK) == 0) {
|
||||
format = "昨天,市工商局局长张志宽在市工商局工作会上透露,本市工商系统今年将推出一系列促进经济发展、保护消费者权益的监管措施。其中,将会把B2B交易平台中的网店、专业门户网站和综合门户网站中的经营主体纳入监控,重点监控网上传销、无照经营、售假和网上欺诈等4种行为。张志宽说,2008年网上违法情况主要表现在虚假宣传、网上欺诈、销售假冒产品等。针对这些违法行为,今年本市将把B2B交易平台上的网店、专业门户网站和综合门户网站中的经营主体信息,全部纳入监控。其中,网上传销、无照经营、销售假冒伪劣商品和网上欺诈等4种行为,将成为打击的重点,工商将研究推出新的监管手段。据了解,目前国务院已经将网上交易监管交由国家工重点打击无照经营商总局负责,工商总局正在研究监管意见。本市工商局将根据工商总局的监管意见,相应地完善监管制度。\
|
||||
\nA proprietary protocol VOIP system built using Peer-to-peer (P2P) techniques.Free for non commercial use when using softphones (PC to PC).Offers toll access to PSTN via SkypeOut and SkypeIn.\nFrom the company that created KaZaA Licenses the Global IP Sound VoiceEngine suite of codecs and related software including their wideband codecs (double the width of regular pstn.) If you find yourself asking, 'why does Skype sound so good?', the answer is primarily this wideband ability.";
|
||||
}
|
||||
else if (strcmp (sys_charset, FONT_CHARSET_BIG5) == 0) {
|
||||
format = "欢迎来到 MiniGUI 的世界! 如果您能看到该文本, 则说明 MiniGUI Version %d.%d.%d 可在该硬件上运行!";
|
||||
}
|
||||
else {
|
||||
format = "Welcome to the world of MiniGUI. \nIf you can see this text, MiniGUI Version %d.%d.%d can run on this hardware board.";
|
||||
}
|
||||
|
||||
format = "昨天,市工商局局长张志宽在市工商局工作会上透露,本市工商系统今年将推出一系列促进经济发展、保护消费者权益的监管措施。其中,将会把B2B交易平台中的网店、专业门户网站和综合门户网站中的经营主体纳入监控,重点监控网上传销、无照经营、售假和网上欺诈等4种行为。张志宽说,2008年网上违法情况主要表现在虚假宣传、网上欺诈、销售假冒产品等。针对这些违法行为,今年本市将把B2B交易平台上的网店、专业门户网站和综合门户网站中的经营主体信息,全部纳入监控。其中,网上传销、无照经营、销售假冒伪劣商品和网上欺诈等4种行为,将成为打击的重点,工商将研究推出新的监管手段。据了解,目前国务院已经将网上交易监管交由国家工重点打击无照经营商总局负责,工商总局正在研究监管意见。本市工商局将根据工商总局的监管意见,相应地完善监管制度。\
|
||||
\nA proprietary protocol VOIP system built using Peer-to-peer (P2P) techniques.Free for non commercial use when using softphones (PC to PC).Offers toll access to PSTN via SkypeOut and SkypeIn.\nFrom the company that created KaZaA Licenses the Global IP Sound VoiceEngine suite of codecs and related software including their wideband codecs (double the width of regular pstn.) If you find yourself asking, 'why does Skype sound so good?', the answer is primarily this wideband ability.";
|
||||
sprintf (welcome_text, format, MINIGUI_MAJOR_VERSION, MINIGUI_MINOR_VERSION, MINIGUI_MICRO_VERSION);
|
||||
|
||||
strcpy (msg_text, "No message so far, \nThis is Only a test.");
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
static void dump_logfont(PLOGFONT logfont)
|
||||
{
|
||||
if(logfont->sbc_devfont)
|
||||
{
|
||||
printf("sbc_devfont: (0x%08x %s)\n", (int)logfont->sbc_devfont, logfont->sbc_devfont->name);
|
||||
}
|
||||
if(logfont->mbc_devfont)
|
||||
{
|
||||
printf("mbc_devfont: (0x%08x %s)\n", (int)logfont->mbc_devfont, logfont->mbc_devfont->name);
|
||||
}
|
||||
printf("font_size: %d\n", logfont->size);
|
||||
printf("font_type: %s\tfamily: %s\tcharset: %s\t style: 0x%08x\n", logfont->type,
|
||||
logfont->family, logfont->charset, (int)logfont->style);
|
||||
}
|
||||
#endif
|
||||
|
||||
//#define UTF_8 1
|
||||
|
||||
const char* utf8 = "\xe8\xbf\x99\xe6\x98\xaf\x55\x54\x46\x2d\x38\xe7\x9a\x84\xe6\xb5\x8b\xe8\xaf\x95\x0";
|
||||
static int HelloWinProc(HWND hWnd, int message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
HDC hdc;
|
||||
|
||||
syskey = "";
|
||||
|
||||
switch (message) {
|
||||
case MSG_CREATE:
|
||||
make_welcome_text ();
|
||||
SetTimer (hWnd, 100, 100);
|
||||
break;
|
||||
|
||||
case MSG_TIMER:
|
||||
sprintf (msg_text, "Timer expired, current tick count: %ul.",
|
||||
GetTickCount ());
|
||||
//InvalidateRect (hWnd, &msg_rc, TRUE);
|
||||
InvalidateRect (hWnd, NULL, TRUE);
|
||||
break;
|
||||
|
||||
case MSG_LBUTTONDOWN:
|
||||
strcpy (msg_text, "The left button pressed.");
|
||||
InvalidateRect (hWnd, &msg_rc, TRUE);
|
||||
break;
|
||||
|
||||
case MSG_LBUTTONUP:
|
||||
strcpy (msg_text, "The left button released.");
|
||||
InvalidateRect (hWnd, &msg_rc, TRUE);
|
||||
break;
|
||||
|
||||
case MSG_RBUTTONDOWN:
|
||||
strcpy (msg_text, "The right button pressed.");
|
||||
InvalidateRect (hWnd, &msg_rc, TRUE);
|
||||
break;
|
||||
|
||||
case MSG_RBUTTONUP:
|
||||
strcpy (msg_text, "The right button released.");
|
||||
InvalidateRect (hWnd, &msg_rc, TRUE);
|
||||
break;
|
||||
|
||||
case MSG_PAINT:
|
||||
{
|
||||
PLOGFONT logfont;
|
||||
PLOGFONT bklogfont;
|
||||
#ifdef UTF_8
|
||||
logfont = CreateLogFont("sef",
|
||||
"fzxhgb_yh",
|
||||
"UTF-8",
|
||||
FONT_WEIGHT_BOOK,
|
||||
FONT_SLANT_ROMAN,
|
||||
0,
|
||||
0,
|
||||
FONT_UNDERLINE_NONE,
|
||||
FONT_STRUCKOUT_NONE,
|
||||
16, 0);
|
||||
#else
|
||||
logfont = CreateLogFont("sef",
|
||||
"fzxhgb_yh",
|
||||
"GB2312",
|
||||
FONT_WEIGHT_BOOK,
|
||||
FONT_SLANT_ROMAN,
|
||||
0,
|
||||
0,
|
||||
FONT_UNDERLINE_NONE,
|
||||
FONT_STRUCKOUT_NONE,
|
||||
16, 0);
|
||||
#endif
|
||||
|
||||
hdc = BeginPaint (hWnd);
|
||||
bklogfont = SelectFont(hdc, logfont);
|
||||
SetBkColor(hdc, COLOR_blue);
|
||||
#ifdef UTF_8
|
||||
DrawText (hdc, utf8, -1, &welcome_rc, DT_LEFT | DT_WORDBREAK);
|
||||
#else
|
||||
DrawText (hdc, welcome_text, -1, &welcome_rc, DT_LEFT | DT_WORDBREAK);
|
||||
#endif
|
||||
DrawText (hdc, msg_text, -1, &msg_rc, DT_LEFT | DT_WORDBREAK);
|
||||
SelectFont(hdc, bklogfont);
|
||||
EndPaint (hWnd, hdc);
|
||||
DestroyLogFont(logfont);
|
||||
return 0;
|
||||
}
|
||||
case MSG_SYSKEYDOWN:
|
||||
syskey = "sys";
|
||||
case MSG_KEYDOWN:
|
||||
if(last_key == wParam)
|
||||
last_key_count++;
|
||||
else
|
||||
{
|
||||
last_key = wParam;
|
||||
last_key_count = 1;
|
||||
}
|
||||
sprintf (msg_text, "The %d %skey pressed %d times",
|
||||
wParam, syskey, last_key_count);
|
||||
InvalidateRect (hWnd, &msg_rc, TRUE);
|
||||
return 0;
|
||||
|
||||
case MSG_KEYUP:
|
||||
sprintf (msg_text, "The %d key released", wParam);
|
||||
InvalidateRect (hWnd, &msg_rc, TRUE);
|
||||
return 0;
|
||||
|
||||
case MSG_CLOSE:
|
||||
KillTimer (hWnd, 100);
|
||||
DestroyMainWindow (hWnd);
|
||||
PostQuitMessage (hWnd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return DefaultMainWinProc(hWnd, message, wParam, lParam);
|
||||
}
|
||||
|
||||
int MiniGUIMain (int argc, const char* argv[])
|
||||
{
|
||||
MSG Msg;
|
||||
HWND hMainWnd;
|
||||
MAINWINCREATE CreateInfo;
|
||||
|
||||
#ifdef _MGRM_PROCESSES
|
||||
JoinLayer(NAME_DEF_LAYER , "helloworld" , 0 , 0);
|
||||
#endif
|
||||
|
||||
CreateInfo.dwStyle = WS_VISIBLE | WS_BORDER | WS_CAPTION;
|
||||
CreateInfo.dwExStyle = WS_EX_NONE;
|
||||
CreateInfo.spCaption = "Hello, world!";
|
||||
CreateInfo.hMenu = 0;
|
||||
CreateInfo.hCursor = GetSystemCursor(0);
|
||||
CreateInfo.hIcon = 0;
|
||||
CreateInfo.MainWindowProc = HelloWinProc;
|
||||
CreateInfo.lx = 0;
|
||||
CreateInfo.ty = 0;
|
||||
CreateInfo.rx = g_rcScr.right;
|
||||
CreateInfo.by = g_rcScr.bottom;
|
||||
CreateInfo.iBkColor = COLOR_lightwhite;
|
||||
CreateInfo.dwAddData = 0;
|
||||
CreateInfo.hHosting = HWND_DESKTOP;
|
||||
|
||||
hMainWnd = CreateMainWindow (&CreateInfo);
|
||||
|
||||
if (hMainWnd == HWND_INVALID)
|
||||
return -1;
|
||||
|
||||
ShowWindow(hMainWnd, SW_SHOWNORMAL);
|
||||
|
||||
while (GetMessage(&Msg, hMainWnd)) {
|
||||
TranslateMessage(&Msg);
|
||||
DispatchMessage(&Msg);
|
||||
}
|
||||
|
||||
MainWindowThreadCleanup (hMainWnd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef _LITE_VERSION
|
||||
#include <minigui/dti.c>
|
||||
#endif
|
||||
|
||||
|
||||
341
3rd-party/scripteasy/test/se_minigui.h
vendored
Normal file
341
3rd-party/scripteasy/test/se_minigui.h
vendored
Normal file
@@ -0,0 +1,341 @@
|
||||
|
||||
/*
|
||||
* Copyright (C) 2000-2007 Beijing Komoxo Inc.
|
||||
* All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef SE_MINIGUI_H
|
||||
#define SE_MINIGUI_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"{
|
||||
#endif
|
||||
|
||||
#define SE_FONT_DYNAMIC_LOADING_SUPPORT
|
||||
#define SE_PALETTE_AUTO_ADJUST
|
||||
|
||||
/* Script Easy integration API with minigui */
|
||||
|
||||
#ifndef SE_EXPORT
|
||||
#define SE_EXPORT extern
|
||||
#endif
|
||||
|
||||
typedef int sestatus;
|
||||
typedef unsigned short seunichar16;
|
||||
|
||||
/*{{ status_code_definition {{*/
|
||||
|
||||
#define SE_STATUS_OK 0
|
||||
|
||||
#define SE_STATUS_VISIBLE 1
|
||||
#define SE_STATUS_INVISIBLE 2
|
||||
#define SE_STATUS_OUTSIDE 3
|
||||
#define SE_STATUS_NO_TEXT 4
|
||||
#define SE_STATUS_OUT_OF_START 5
|
||||
#define SE_STATUS_OUT_OF_END 6
|
||||
|
||||
#define SE_STATUS_INVALID_PARAMETER -1
|
||||
#define SE_STATUS_INVALID_DEVICE_CONTEXT -2
|
||||
#define SE_STATUS_TEXT_ILL_FORMED -3
|
||||
#define SE_STATUS_MARKUP_ILL_FORMED -4
|
||||
#define SE_STATUS_TEXT_TOO_LONG -5
|
||||
#define SE_STATUS_NO_FONT -6
|
||||
#define SE_STATUS_NOT_INITIALIZED -7
|
||||
|
||||
/*}} status_code_definition }}*/
|
||||
|
||||
typedef unsigned int (*SeFontAccessFunc)(
|
||||
void* name,
|
||||
void* buffer,
|
||||
unsigned int offset,
|
||||
unsigned int size);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int language;
|
||||
const void* language_data;
|
||||
const void* font_table;
|
||||
const void* logical_font_table;
|
||||
SeFontAccessFunc font_access_callback;
|
||||
void* mem_pool;
|
||||
int mem_pool_size;
|
||||
void* cache_mem_pool;
|
||||
int cache_mem_pool_size;
|
||||
} SeInitInfo;
|
||||
|
||||
sestatus se_minigui_initialize(const SeInitInfo* init_info);
|
||||
sestatus se_minigui_cleanup(void);
|
||||
sestatus se_minigui_set_chip_param(void* chip_param);
|
||||
sestatus se_minigui_set_cache(void* cache_mem_pool, int cache_mem_pool_size);
|
||||
|
||||
/*{{ SeLogFont_constants {{*/
|
||||
#define SE_LOGFONT_BOLD 0x01
|
||||
#define SE_LOGFONT_ITALIC 0x02
|
||||
#define SE_LOGFONT_UNDERLINE 0x04
|
||||
#define SE_LOGFONT_STRIKETHROUGH 0x08
|
||||
#define SE_LOGFONT_PREFERRED 0x10
|
||||
#define SE_LOGFONT_MONO 0x20
|
||||
/*}} SeLogFont_constants }}*/
|
||||
|
||||
/*{{ SeLogFont_type {{*/
|
||||
typedef struct
|
||||
{
|
||||
unsigned short size;
|
||||
unsigned char attr;
|
||||
unsigned char id;
|
||||
} SeLogFont;
|
||||
/*}} SeLogFont_type }}*/
|
||||
|
||||
int se_minigui_get_char_width (SeLogFont *logfont, seunichar16 wc);
|
||||
|
||||
int se_minigui_get_font_ascent (SeLogFont *logfont);
|
||||
|
||||
int se_minigui_get_font_descent (SeLogFont *logfont);
|
||||
|
||||
const void *se_minigui_get_char_pixmap(
|
||||
const SeLogFont *logfont,
|
||||
const seunichar16 wc,
|
||||
int *pitch);
|
||||
|
||||
int se_minigui_get_char_bbox(
|
||||
SeLogFont *logfont,
|
||||
seunichar16 wc,
|
||||
int *px,
|
||||
int *py,
|
||||
int *pwidth,
|
||||
int *pheight);
|
||||
|
||||
void se_minigui_get_char_advance(
|
||||
SeLogFont *logfont,
|
||||
seunichar16 wc,
|
||||
int *px,
|
||||
int *py);
|
||||
|
||||
/*{{ language_code_constants {{*/
|
||||
#define SE_LANG_AA 0 /* Afar */
|
||||
#define SE_LANG_AB 1 /* Abkhazia */
|
||||
#define SE_LANG_AF 2 /* Afrikaans */
|
||||
#define SE_LANG_AM 3 /* Amharic */
|
||||
#define SE_LANG_AR 4 /* Arabic */
|
||||
#define SE_LANG_AS 5 /* Assamese */
|
||||
#define SE_LANG_AST 6 /* Asturian */
|
||||
#define SE_LANG_AVA 7 /* Avaric */
|
||||
#define SE_LANG_AY 8 /* Aymara */
|
||||
#define SE_LANG_AZ 9 /* Azerbaijani */
|
||||
#define SE_LANG_AZ_IR 10 /* Azerbaijani in Iran */
|
||||
#define SE_LANG_BA 11 /* Bashkir */
|
||||
#define SE_LANG_BAM 12 /* Bambara */
|
||||
#define SE_LANG_BE 13 /* Byelorussian */
|
||||
#define SE_LANG_BG 14 /* Bulgarian */
|
||||
#define SE_LANG_BH 15 /* Bihari (Devanagari script) */
|
||||
#define SE_LANG_BHO 16 /* Bhojpuri (Devanagari script) */
|
||||
#define SE_LANG_BI 17 /* Bislama */
|
||||
#define SE_LANG_BIN 18 /* Edo or Bini */
|
||||
#define SE_LANG_BN 19 /* Bengali (Bengali script) */
|
||||
#define SE_LANG_BO 20 /* Tibetan */
|
||||
#define SE_LANG_BR 21 /* Breton */
|
||||
#define SE_LANG_BS 22 /* Bosnian */
|
||||
#define SE_LANG_BUA 23 /* Buriat (Buryat) */
|
||||
#define SE_LANG_CA 24 /* Catalan */
|
||||
#define SE_LANG_CE 25 /* Chechen */
|
||||
#define SE_LANG_CH 26 /* Chamorro */
|
||||
#define SE_LANG_CHM 27 /* Mari (Lower & Upper Cheremis) */
|
||||
#define SE_LANG_CHR 28 /* Cherokee */
|
||||
#define SE_LANG_CO 29 /* Corsican */
|
||||
#define SE_LANG_CS 30 /* Czech */
|
||||
#define SE_LANG_CU 31 /* Old Church Slavonic */
|
||||
#define SE_LANG_CV 32 /* Chuvash */
|
||||
#define SE_LANG_CY 33 /* Welsh */
|
||||
#define SE_LANG_DA 34 /* Danish */
|
||||
#define SE_LANG_DE 35 /* German */
|
||||
#define SE_LANG_DZ 36 /* Dzongkha */
|
||||
#define SE_LANG_EL 37 /* Greek */
|
||||
#define SE_LANG_EN 38 /* English */
|
||||
#define SE_LANG_EO 39 /* Esperanto */
|
||||
#define SE_LANG_ES 40 /* Spanish */
|
||||
#define SE_LANG_ET 41 /* Estonian */
|
||||
#define SE_LANG_EU 42 /* Basque */
|
||||
#define SE_LANG_FA 43 /* Persian */
|
||||
#define SE_LANG_FI 44 /* Finnish */
|
||||
#define SE_LANG_FJ 45 /* Fijian */
|
||||
#define SE_LANG_FO 46 /* Faroese */
|
||||
#define SE_LANG_FR 47 /* French */
|
||||
#define SE_LANG_FUL 48 /* Fulah (Fula) */
|
||||
#define SE_LANG_FUR 49 /* Friulian */
|
||||
#define SE_LANG_FY 50 /* Frisian */
|
||||
#define SE_LANG_GA 51 /* Irish */
|
||||
#define SE_LANG_GD 52 /* Scots Gaelic */
|
||||
#define SE_LANG_GEZ 53 /* Ethiopic (Geez) */
|
||||
#define SE_LANG_GL 54 /* Galician */
|
||||
#define SE_LANG_GN 55 /* Guarani */
|
||||
#define SE_LANG_GU 56 /* Gujarati */
|
||||
#define SE_LANG_GV 57 /* Manx Gaelic */
|
||||
#define SE_LANG_HA 58 /* Hausa */
|
||||
#define SE_LANG_HAW 59 /* Hawaiian */
|
||||
#define SE_LANG_HE 60 /* Hebrew */
|
||||
#define SE_LANG_HI 61 /* Hindi (Devanagari script) */
|
||||
#define SE_LANG_HO 62 /* Hiri Motu */
|
||||
#define SE_LANG_HR 63 /* Croatian */
|
||||
#define SE_LANG_HU 64 /* Hungarian */
|
||||
#define SE_LANG_HY 65 /* Armenian */
|
||||
#define SE_LANG_IA 66 /* Interlingua */
|
||||
#define SE_LANG_IBO 67 /* Igbo (Ibo) */
|
||||
#define SE_LANG_ID 68 /* Indonesian */
|
||||
#define SE_LANG_IE 69 /* Interlingue */
|
||||
#define SE_LANG_IK 70 /* Inupiaq (Inupiak, Eskimo) */
|
||||
#define SE_LANG_IO 71 /* Ido */
|
||||
#define SE_LANG_IS 72 /* Icelandic */
|
||||
#define SE_LANG_IT 73 /* Italian */
|
||||
#define SE_LANG_IU 74 /* Inuktitut */
|
||||
#define SE_LANG_JA 75 /* Japaness */
|
||||
#define SE_LANG_KA 76 /* Georgian */
|
||||
#define SE_LANG_KAA 77 /* Kara-Kalpak (Karakalpak) */
|
||||
#define SE_LANG_KI 78 /* Kikuyu */
|
||||
#define SE_LANG_KK 79 /* Kazakh */
|
||||
#define SE_LANG_KL 80 /* Greenlandic */
|
||||
#define SE_LANG_KM 81 /* Khmer */
|
||||
#define SE_LANG_KN 82 /* Kannada */
|
||||
#define SE_LANG_KO 83 /* Korean */
|
||||
#define SE_LANG_KOK 84 /* Kokani (Devanagari script) */
|
||||
#define SE_LANG_KS 85 /* Kashmiri (Devanagari script) */
|
||||
#define SE_LANG_KU 86 /* Kurdish */
|
||||
#define SE_LANG_KU_IR 87 /* Kurdish in Iran */
|
||||
#define SE_LANG_KUM 88 /* Kumyk */
|
||||
#define SE_LANG_KV 89 /* Komi (Komi-Permyak/Komi-Siryan) */
|
||||
#define SE_LANG_KW 90 /* Cornish */
|
||||
#define SE_LANG_KY 91 /* Kirgiz */
|
||||
#define SE_LANG_LA 92 /* Latin */
|
||||
#define SE_LANG_LB 93 /* Luxembourgish (Letzeburgesch) */
|
||||
#define SE_LANG_LEZ 94 /* Lezghian (Lezgian) */
|
||||
#define SE_LANG_LN 95 /* Lingala */
|
||||
#define SE_LANG_LO 96 /* Lao */
|
||||
#define SE_LANG_LT 97 /* Lithuanian */
|
||||
#define SE_LANG_LV 98 /* Latvian */
|
||||
#define SE_LANG_MG 99 /* Malagasy */
|
||||
#define SE_LANG_MH 100 /* Marshallese */
|
||||
#define SE_LANG_MI 101 /* Maori */
|
||||
#define SE_LANG_MK 102 /* Macedonian */
|
||||
#define SE_LANG_ML 103 /* Malayalam */
|
||||
#define SE_LANG_MN 104 /* Mongolian */
|
||||
#define SE_LANG_MO 105 /* Moldavian */
|
||||
#define SE_LANG_MR 106 /* Marathi (Devanagari script) */
|
||||
#define SE_LANG_MT 107 /* Maltese */
|
||||
#define SE_LANG_MY 108 /* Burmese (Myanmar) */
|
||||
#define SE_LANG_NB 109 /* Norwegian Bokmal */
|
||||
#define SE_LANG_NDS 110 /* Low Saxon */
|
||||
#define SE_LANG_NE 111 /* Nepali (Devanagari script) */
|
||||
#define SE_LANG_NL 112 /* Dutch */
|
||||
#define SE_LANG_NN 113 /* Norwegian Nynorsk */
|
||||
#define SE_LANG_NO 114 /* Norwegian */
|
||||
#define SE_LANG_NY 115 /* Chichewa */
|
||||
#define SE_LANG_OC 116 /* Occitan */
|
||||
#define SE_LANG_OM 117 /* Oromo or Galla */
|
||||
#define SE_LANG_OR 118 /* Oriya */
|
||||
#define SE_LANG_OS 119 /* Ossetic */
|
||||
#define SE_LANG_PA 120 /* Punjabi (Gurumukhi script) */
|
||||
#define SE_LANG_PL 121 /* Polish */
|
||||
#define SE_LANG_PS_AF 122 /* Pashto in Afghanistan */
|
||||
#define SE_LANG_PS_PK 123 /* Pashto in Pakistan */
|
||||
#define SE_LANG_PT 124 /* Portuguese */
|
||||
#define SE_LANG_RM 125 /* Rhaeto-Romance */
|
||||
#define SE_LANG_RO 126 /* Romanian */
|
||||
#define SE_LANG_RU 127 /* Russian */
|
||||
#define SE_LANG_SA 128 /* Sanskrit (Devanagari script) */
|
||||
#define SE_LANG_SAH 129 /* Yakut */
|
||||
#define SE_LANG_SCO 130 /* Scots */
|
||||
#define SE_LANG_SE 131 /* North Sami */
|
||||
#define SE_LANG_SEL 132 /* Selkup (Ostyak-Samoyed) */
|
||||
#define SE_LANG_SH 133 /* Serbo-Croatian */
|
||||
#define SE_LANG_SI 134 /* Sinhala (Sinhalese) */
|
||||
#define SE_LANG_SK 135 /* Slovak */
|
||||
#define SE_LANG_SL 136 /* Slovenian */
|
||||
#define SE_LANG_SM 137 /* Samoan */
|
||||
#define SE_LANG_SMA 138 /* South Sami */
|
||||
#define SE_LANG_SMJ 139 /* Lule Sami */
|
||||
#define SE_LANG_SMN 140 /* Inari Sami */
|
||||
#define SE_LANG_SMS 141 /* Skolt Sami */
|
||||
#define SE_LANG_SO 142 /* Somali */
|
||||
#define SE_LANG_SQ 143 /* Albanian */
|
||||
#define SE_LANG_SR 144 /* Serbian */
|
||||
#define SE_LANG_SV 145 /* Swedish */
|
||||
#define SE_LANG_SW 146 /* Swahili */
|
||||
#define SE_LANG_SYR 147 /* Syriac */
|
||||
#define SE_LANG_TA 148 /* Tamil */
|
||||
#define SE_LANG_TE 149 /* Telugu */
|
||||
#define SE_LANG_TG 150 /* Tajik */
|
||||
#define SE_LANG_TH 151 /* Thai */
|
||||
#define SE_LANG_TI_ER 152 /* Eritrean Tigrinya */
|
||||
#define SE_LANG_TI_ET 153 /* Ethiopian Tigrinya */
|
||||
#define SE_LANG_TIG 154 /* Tigre */
|
||||
#define SE_LANG_TK 155 /* Turkmen */
|
||||
#define SE_LANG_TL 156 /* Tagalog */
|
||||
#define SE_LANG_TN 157 /* Tswana */
|
||||
#define SE_LANG_TO 158 /* Tonga */
|
||||
#define SE_LANG_TR 159 /* Turkish */
|
||||
#define SE_LANG_TS 160 /* Tsonga */
|
||||
#define SE_LANG_TT 161 /* Tatar */
|
||||
#define SE_LANG_TW 162 /* Twi */
|
||||
#define SE_LANG_TYV 163 /* Tuvinian */
|
||||
#define SE_LANG_UG 164 /* Uighur */
|
||||
#define SE_LANG_UK 165 /* Ukrainian */
|
||||
#define SE_LANG_UR 166 /* Urdu */
|
||||
#define SE_LANG_UZ 167 /* Uzbek */
|
||||
#define SE_LANG_VEN 168 /* Venda */
|
||||
#define SE_LANG_VI 169 /* Vietnamese */
|
||||
#define SE_LANG_VO 170 /* Volapuk */
|
||||
#define SE_LANG_VOT 171 /* Votic */
|
||||
#define SE_LANG_WA 172 /* Walloon */
|
||||
#define SE_LANG_WEN 173 /* Sorbian */
|
||||
#define SE_LANG_WO 174 /* Wolof */
|
||||
#define SE_LANG_XH 175 /* Xhosa */
|
||||
#define SE_LANG_YAP 176 /* Yapese */
|
||||
#define SE_LANG_YI 177 /* Yiddish */
|
||||
#define SE_LANG_YO 178 /* Yoruba */
|
||||
#define SE_LANG_ZH_CN 179 /* Chinese (simplified) */
|
||||
#define SE_LANG_ZH_HK 180 /* Chinese (Hong Kong) */
|
||||
#define SE_LANG_ZH_MO 181 /* Chinese (Macau) */
|
||||
#define SE_LANG_ZH_SG 182 /* Chinese (Singapore) */
|
||||
#define SE_LANG_ZH_TW 183 /* Chinese (traditional) */
|
||||
#define SE_LANG_ZU 184 /* Zulu */
|
||||
/*}} language_code_constants }}*/
|
||||
|
||||
|
||||
/* Script Easy font description type definition */
|
||||
|
||||
typedef struct{
|
||||
const char *font_name;
|
||||
const int font_id;
|
||||
} se_font_name_map;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int font_table_size;
|
||||
int font_name_map_size;
|
||||
const se_font_name_map *name_map;
|
||||
const void **font_table;
|
||||
const unsigned char *logical_font_table;
|
||||
} se_font_description;
|
||||
|
||||
extern const se_font_description se_font_desc;
|
||||
extern int se_minigui_mem_pool[];
|
||||
extern int se_minigui_mem_pool_size;
|
||||
extern int se_minigui_cache_mem_pool[];
|
||||
extern int se_minigui_cache_mem_pool_size;
|
||||
|
||||
|
||||
void se_minigui_init_fonts(void);
|
||||
void se_minigui_destroy_fonts(void);
|
||||
#ifdef SE_FONT_DYNAMIC_LOADING_SUPPORT
|
||||
unsigned int se_minigui_read_font(
|
||||
void* name,
|
||||
void* buffer,
|
||||
unsigned int offset,
|
||||
unsigned int size);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SE_MINIGUI_H */
|
||||
|
||||
685
CMakeLists.txt
Normal file
685
CMakeLists.txt
Normal file
File diff suppressed because it is too large
Load Diff
193
ChangeLog.old
Normal file
193
ChangeLog.old
Normal file
@@ -0,0 +1,193 @@
|
||||
ver 0.3.06
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 2000/07/27
|
||||
WHERE : BluePoint (Beijing) R&D Center.
|
||||
WHAT : Some enhancements in font support and ime input method.
|
||||
WHAT : Add functions to support text parse.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.3.04
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 2000/07/14
|
||||
WHERE : BluePoint (Beijing) R&D Center.
|
||||
WHAT : Logical fonts support.
|
||||
WHAT : TextOut, TextOutEx, TabbedTextOut, TabbedTextOutEx, DrawText.
|
||||
WHAT : Add `fontest' demo.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.3.02
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 2000/07/06
|
||||
WHERE : BluePoint (Beijing) R&D Center.
|
||||
WHAT : New charset support module.
|
||||
WHAT : default dti.c can be included into your source.
|
||||
WHAT : Interfaces of LoadBitmap, LoadIcon has changed.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.3.00
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 2000/06/26
|
||||
WHERE : BluePoint (Beijing) R&D Center.
|
||||
WHAT : Graphics abstract layer and input abstract layer.
|
||||
WHAT : New font support module.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.32
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 2000/04/22
|
||||
WHERE : Beijing
|
||||
WHAT : Merge EEOS support.
|
||||
WHAT : Remove old shared libraries when installing.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.31
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 2000/04/19
|
||||
WHERE : Beijing
|
||||
WHAT : Merge multiple font support.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.30
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 2000/04/11
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Add a new section in MiniGUI.cfg
|
||||
WHAT : Add a new compile time macro called PREDEFMODE
|
||||
WHAT : Enhance some buttons
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.28
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 2000/02/22
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Add MSG_ACTIVEMENU message
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.27
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 2000/1/23
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Fix some bugs in RectVisible and PtVisible
|
||||
HWAT : Fix bugs in Listbox control
|
||||
WHAT : Fix bugs in Button control
|
||||
WAHT : Capbility of Listbox enhanced -- add thumb dragging
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.26
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/12/14
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Fixes some bugs in input methods.
|
||||
WHAT : Configure utility of svgalib.
|
||||
WHAT : Installation path change to /usr/local/lib
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.24
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/11/14
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Some features added to listbox control.
|
||||
WHAT : Add one configurable parameter to control the position of
|
||||
WHAT : background picture.
|
||||
WHAT : Add SuspendGUI and ResumeGUI functions.
|
||||
WHAT : Add MB_CANCELASBACK style for MessageBox.
|
||||
WHAT : Add 'mywins' library.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.22
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/10/31
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Bug in SetCursorPos fixed.
|
||||
WHAT : Add a hot-key Ctrl+Esc to ative the start menu.
|
||||
WHAT : Bug in DrawText fixed.
|
||||
WHAT : Bugs in progressbar control fixed.
|
||||
WHAT : Rearragment some code.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.21
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/10/19
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Additional data support of listbox control.
|
||||
WHAT : Add ExitGUISafely function.
|
||||
WHAT : Makefile bugs fixed.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.20
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/10/14
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Rewrite make files, which can be used to install or uninstall MiniGUI.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.12
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/10/12
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Optimize the refresh of windows when changing z-order and scrolling.
|
||||
WHAT : Bugs in DrawText function has been fixed.
|
||||
WHAT : Add a special key handler. MiniGUI Applications can be terminated
|
||||
WHAT : when pressing Ctrl+Alt+Backspase key, like X Window.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.10
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/10/10
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Add function ChangCaretSize. Can be used to change caret's size on
|
||||
WHAT : the fly.
|
||||
WHAT : Add function GetPrivateCDC to retrive the private client DC.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.08
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/10/05
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Add timer thread for no affecting some system call such as
|
||||
WHAT : select() and vm86() (When use VESA driver).
|
||||
WHAT : Some code moved from interval timer signal handler to desktop.
|
||||
WHAT : Add a flag (DONT_SWITCH_VT) to function vga_translatekeys of svgalib.
|
||||
WHAT : This flag can be used to disable VT switch.
|
||||
WHAT : Add SetWindowCursor function.
|
||||
WHAT : Add GetOriginalTermIO function to support Virtual Console on MiniGUI.
|
||||
WHAT : Add WS_EX_USEPRIVATECDC extended style to support private client DC.
|
||||
WHAT : For controls, use class style CS_OWNDC.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.06
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/9/29
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Remove collector thread, and Timer module move to desktop thread.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.04
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/9/22
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Fix bugs.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.03
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/9/21
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : Add PostTerminateGUI function.
|
||||
WHAT : Add a flag in the Makefile to exclude GIF & JPG support.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.02
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/9/20
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : csvgalib 1.3.0 to 1.4.0, add ChangeLog and TODO files.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
ver 0.2.00
|
||||
------------------------------------------------------------------------------
|
||||
WHEN : 1999/9/19
|
||||
WHERE : Tsinghua Univ.
|
||||
WHAT : dlgtest demo program.
|
||||
WHO : Wei Yongming.
|
||||
|
||||
273
Doxyfile
Normal file
273
Doxyfile
Normal file
@@ -0,0 +1,273 @@
|
||||
# Doxyfile 1.4.2
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Project related configuration options
|
||||
#---------------------------------------------------------------------------
|
||||
PROJECT_NAME = "MiniGUI V3.0.2 API Reference"
|
||||
PROJECT_NUMBER =
|
||||
OUTPUT_DIRECTORY = doc
|
||||
CREATE_SUBDIRS = NO
|
||||
OUTPUT_LANGUAGE = English
|
||||
USE_WINDOWS_ENCODING = NO
|
||||
BRIEF_MEMBER_DESC = YES
|
||||
REPEAT_BRIEF = YES
|
||||
ABBREVIATE_BRIEF = "The $name class" \
|
||||
"The $name widget" \
|
||||
"The $name file" \
|
||||
is \
|
||||
provides \
|
||||
specifies \
|
||||
contains \
|
||||
represents \
|
||||
a \
|
||||
an \
|
||||
the
|
||||
ALWAYS_DETAILED_SEC = YES
|
||||
INLINE_INHERITED_MEMB = NO
|
||||
FULL_PATH_NAMES = NO
|
||||
STRIP_FROM_PATH =
|
||||
STRIP_FROM_INC_PATH =
|
||||
SHORT_NAMES = NO
|
||||
JAVADOC_AUTOBRIEF = NO
|
||||
MULTILINE_CPP_IS_BRIEF = NO
|
||||
DETAILS_AT_TOP = NO
|
||||
INHERIT_DOCS = YES
|
||||
DISTRIBUTE_GROUP_DOC = NO
|
||||
TAB_SIZE = 8
|
||||
ALIASES =
|
||||
OPTIMIZE_OUTPUT_FOR_C = YES
|
||||
OPTIMIZE_OUTPUT_JAVA = NO
|
||||
SUBGROUPING = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# Build related configuration options
|
||||
#---------------------------------------------------------------------------
|
||||
EXTRACT_ALL = NO
|
||||
EXTRACT_PRIVATE = NO
|
||||
EXTRACT_STATIC = YES
|
||||
EXTRACT_LOCAL_CLASSES = YES
|
||||
EXTRACT_LOCAL_METHODS = NO
|
||||
HIDE_UNDOC_MEMBERS = YES
|
||||
HIDE_UNDOC_CLASSES = YES
|
||||
HIDE_FRIEND_COMPOUNDS = NO
|
||||
HIDE_IN_BODY_DOCS = NO
|
||||
INTERNAL_DOCS = NO
|
||||
CASE_SENSE_NAMES = YES
|
||||
HIDE_SCOPE_NAMES = YES
|
||||
SHOW_INCLUDE_FILES = YES
|
||||
INLINE_INFO = YES
|
||||
SORT_MEMBER_DOCS = YES
|
||||
SORT_BRIEF_DOCS = NO
|
||||
SORT_BY_SCOPE_NAME = NO
|
||||
GENERATE_TODOLIST = YES
|
||||
GENERATE_TESTLIST = YES
|
||||
GENERATE_BUGLIST = YES
|
||||
GENERATE_DEPRECATEDLIST= YES
|
||||
ENABLED_SECTIONS =
|
||||
MAX_INITIALIZER_LINES = 30
|
||||
SHOW_USED_FILES = YES
|
||||
SHOW_DIRECTORIES = YES
|
||||
FILE_VERSION_FILTER =
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to warning and progress messages
|
||||
#---------------------------------------------------------------------------
|
||||
QUIET = NO
|
||||
WARNINGS = YES
|
||||
WARN_IF_UNDOCUMENTED = YES
|
||||
WARN_IF_DOC_ERROR = YES
|
||||
WARN_NO_PARAMDOC = NO
|
||||
WARN_FORMAT = "$file:$line: $text"
|
||||
WARN_LOGFILE =
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the input files
|
||||
#---------------------------------------------------------------------------
|
||||
INPUT = ./include
|
||||
FILE_PATTERNS = *.h
|
||||
RECURSIVE = YES
|
||||
EXCLUDE = YES
|
||||
EXCLUDE_SYMLINKS = NO
|
||||
EXCLUDE_PATTERNS = vcongui.h own_*.h psos.h psos_*.h threadx_*.h ucos2_*.h nucleus_*.h vxworks_*.h ose_*.h win32_*.h
|
||||
EXAMPLE_PATH = ./examples
|
||||
EXAMPLE_PATTERNS = *.c
|
||||
EXAMPLE_RECURSIVE = NO
|
||||
IMAGE_PATH =
|
||||
INPUT_FILTER =
|
||||
FILTER_PATTERNS =
|
||||
FILTER_SOURCE_FILES = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to source browsing
|
||||
#---------------------------------------------------------------------------
|
||||
SOURCE_BROWSER = YES
|
||||
INLINE_SOURCES = NO
|
||||
STRIP_CODE_COMMENTS = YES
|
||||
REFERENCED_BY_RELATION = YES
|
||||
REFERENCES_RELATION = YES
|
||||
VERBATIM_HEADERS = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the alphabetical class index
|
||||
#---------------------------------------------------------------------------
|
||||
ALPHABETICAL_INDEX = YES
|
||||
COLS_IN_ALPHA_INDEX = 5
|
||||
IGNORE_PREFIX =
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the HTML output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_HTML = YES
|
||||
HTML_OUTPUT = MiniGUI-API-REF-E.html
|
||||
HTML_FILE_EXTENSION = .html
|
||||
HTML_HEADER =
|
||||
HTML_FOOTER =
|
||||
HTML_STYLESHEET =
|
||||
HTML_ALIGN_MEMBERS = NO
|
||||
GENERATE_HTMLHELP = YES
|
||||
CHM_FILE = MiniGUI-API-REF-V2.0.4-E.chm
|
||||
HHC_LOCATION =
|
||||
GENERATE_CHI = YES
|
||||
BINARY_TOC = YES
|
||||
TOC_EXPAND = YES
|
||||
DISABLE_INDEX = NO
|
||||
ENUM_VALUES_PER_LINE = 4
|
||||
GENERATE_TREEVIEW = NO
|
||||
TREEVIEW_WIDTH = 250
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the LaTeX output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_LATEX = YES
|
||||
LATEX_OUTPUT = latex
|
||||
LATEX_CMD_NAME = latex
|
||||
MAKEINDEX_CMD_NAME = makeindex
|
||||
COMPACT_LATEX = NO
|
||||
PAPER_TYPE = a4wide
|
||||
EXTRA_PACKAGES =
|
||||
LATEX_HEADER =
|
||||
PDF_HYPERLINKS = YES
|
||||
USE_PDFLATEX = YES
|
||||
LATEX_BATCHMODE = YES
|
||||
LATEX_HIDE_INDICES = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the RTF output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_RTF = YES
|
||||
RTF_OUTPUT = rtf
|
||||
COMPACT_RTF = YES
|
||||
RTF_HYPERLINKS = YES
|
||||
RTF_STYLESHEET_FILE =
|
||||
RTF_EXTENSIONS_FILE =
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the man page output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_MAN = YES
|
||||
MAN_OUTPUT = man
|
||||
MAN_EXTENSION = .3
|
||||
MAN_LINKS = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the XML output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_XML = NO
|
||||
XML_OUTPUT = xml
|
||||
XML_SCHEMA =
|
||||
XML_DTD =
|
||||
XML_PROGRAMLISTING = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options for the AutoGen Definitions output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_AUTOGEN_DEF = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the Perl module output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_PERLMOD = NO
|
||||
PERLMOD_LATEX = NO
|
||||
PERLMOD_PRETTY = YES
|
||||
PERLMOD_MAKEVAR_PREFIX =
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the preprocessor
|
||||
#---------------------------------------------------------------------------
|
||||
ENABLE_PREPROCESSING = YES
|
||||
MACRO_EXPANSION = YES
|
||||
EXPAND_ONLY_PREDEF = YES
|
||||
SEARCH_INCLUDES = NO
|
||||
INCLUDE_PATH =
|
||||
INCLUDE_FILE_PATTERNS =
|
||||
PREDEFINED = _MGRM_PROCESSES \
|
||||
__GNUC__ \
|
||||
__LITTLE_ENDIAN__ \
|
||||
MINIGUI_MAJOR_VERSION \
|
||||
MINIGUI_MICRO_VERSION \
|
||||
MINIGUI_MINOR_VERSION \
|
||||
HAVE_SYS_TYPES_H \
|
||||
_MGHAVE_FIXED_MATH \
|
||||
_MGHAVE_MENU \
|
||||
_MGHAVE_CLIPBOARD \
|
||||
_MGHAVE_ADV_2DAPI \
|
||||
_MGHAVE_MOUSECALIBRATE \
|
||||
_MGMISC_ABOUTDLG \
|
||||
_MGMISC_SAVESCREEN \
|
||||
_MGMISC_SAVEBITMAP \
|
||||
_MGHAVE_CURSOR \
|
||||
_MGCHARSET_UNICODE \
|
||||
_MGCTRL_STATIC \
|
||||
_MGCTRL_SIMEDIT \
|
||||
_MGCTRL_SLEDIT \
|
||||
_MGCTRL_BIDISLEDIT \
|
||||
_MGCTRL_MLEDIT \
|
||||
_MGCTRL_PROGRESSBAR \
|
||||
_MGCTRL_LISTBOX \
|
||||
_MGCTRL_PROPSHEET \
|
||||
_MGCTRL_COMBOBOX \
|
||||
_MGCTRL_TOOLBAR \
|
||||
_MGCTRL_NEWTOOLBAR \
|
||||
_MGCTRL_MENUBUTTON \
|
||||
_MGCTRL_SCROLLVIEW \
|
||||
_MGCTRL_SCROLLBAR \
|
||||
_MGCTRL_TEXTEDIT \
|
||||
_MGCTRL_TRACKBAR \
|
||||
_MGCTRL_TREEVIEW \
|
||||
_MGCTRL_MONTHCAL \
|
||||
_MGCTRL_SPINBOX \
|
||||
_MGCTRL_COOLBAR \
|
||||
_MGCTRL_LISTVIEW \
|
||||
_MGCTRL_ICONVIEW \
|
||||
_MGCTRL_GRIDVIEW \
|
||||
_MGCTRL_BUTTON \
|
||||
_MGCTRL_ANIMATION \
|
||||
_MGFONT_FT2 \
|
||||
_MGFONT_BMPF
|
||||
EXPAND_AS_DEFINED = MGUI_HAS_64BIT_TYPE
|
||||
SKIP_FUNCTION_MACROS = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration::additions related to external references
|
||||
#---------------------------------------------------------------------------
|
||||
TAGFILES =
|
||||
GENERATE_TAGFILE =
|
||||
ALLEXTERNALS = NO
|
||||
EXTERNAL_GROUPS = YES
|
||||
PERL_PATH = /usr/bin/perl
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the dot tool
|
||||
#---------------------------------------------------------------------------
|
||||
CLASS_DIAGRAMS = NO
|
||||
HIDE_UNDOC_RELATIONS = YES
|
||||
HAVE_DOT = NO
|
||||
CLASS_GRAPH = YES
|
||||
COLLABORATION_GRAPH = YES
|
||||
GROUP_GRAPHS = YES
|
||||
UML_LOOK = NO
|
||||
TEMPLATE_RELATIONS = NO
|
||||
INCLUDE_GRAPH = YES
|
||||
INCLUDED_BY_GRAPH = YES
|
||||
CALL_GRAPH = NO
|
||||
GRAPHICAL_HIERARCHY = YES
|
||||
DIRECTORY_GRAPH = YES
|
||||
DOT_IMAGE_FORMAT = png
|
||||
DOT_PATH =
|
||||
DOTFILE_DIRS =
|
||||
MAX_DOT_GRAPH_WIDTH = 1024
|
||||
MAX_DOT_GRAPH_HEIGHT = 1024
|
||||
MAX_DOT_GRAPH_DEPTH = 1000
|
||||
DOT_TRANSPARENT = NO
|
||||
DOT_MULTI_TARGETS = NO
|
||||
GENERATE_LEGEND = YES
|
||||
DOT_CLEANUP = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration::additions related to the search engine
|
||||
#---------------------------------------------------------------------------
|
||||
SEARCHENGINE = NO
|
||||
51
GNUmakefile
Normal file
51
GNUmakefile
Normal file
@@ -0,0 +1,51 @@
|
||||
MAJOR_VERSION = 3
|
||||
MINOR_VERSION = 2
|
||||
MICRO_VERSION = 1
|
||||
EXTRAVERSION =
|
||||
|
||||
MINIGUI_RELEASE=$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)$(EXTRAVERSION)
|
||||
|
||||
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
|
||||
else if [ -x /bin/bash ]; then echo /bin/bash; \
|
||||
else echo sh; fi ; fi)
|
||||
TOPDIR := $(shell /bin/pwd)
|
||||
|
||||
HPATH = $(TOPDIR)/include
|
||||
|
||||
HOSTCC = gcc
|
||||
HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
|
||||
|
||||
#
|
||||
# Include the make variables (CC, etc...)
|
||||
#
|
||||
|
||||
MAKEFILES = $(TOPDIR)/.config
|
||||
PERL = perl
|
||||
AWK = gawk
|
||||
|
||||
export MAJOR_VERSION MINOR_VERSION MICRO_VERSION EXTRAVERSION MINIGUI_RELEASE \
|
||||
CONFIG_SHELL TOPDIR HPATH HOSTCC HOSTCFLAGS \
|
||||
CPP AR NM STRIP OBJCOPY OBJDUMP MAKE MAKEFILES PERL AWK
|
||||
|
||||
-include Makefile
|
||||
|
||||
.PHONY: doit menuconfig defconfig
|
||||
|
||||
doit:
|
||||
@echo "You may need to run configure script to build Makefile."
|
||||
|
||||
menuconfig:
|
||||
$(MAKE) -C scripts/lxdialog -f makefile.lx all
|
||||
$(CONFIG_SHELL) scripts/Menuconfig configs/config.in
|
||||
|
||||
defconfig:
|
||||
@cp configs/defconfig .defconfig
|
||||
$(MAKE) -C scripts/lxdialog -f makefile.lx all
|
||||
$(CONFIG_SHELL) scripts/Menuconfig configs/config.in
|
||||
@rm .defconfig
|
||||
|
||||
nognu:
|
||||
$(MAKE) -f makefile.ng
|
||||
|
||||
cleanall:
|
||||
$(MAKE) -f makefile.ng clean
|
||||
185
INSTALL
Normal file
185
INSTALL
Normal file
@@ -0,0 +1,185 @@
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
These are generic installation instructions.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, a file
|
||||
`config.cache' that saves the results of its tests to speed up
|
||||
reconfiguring, and a file `config.log' containing compiler output
|
||||
(useful mainly for debugging `configure').
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If at some point `config.cache'
|
||||
contains results you don't want to keep, you may remove or edit it.
|
||||
|
||||
The file `configure.in' is used to create `configure' by a program
|
||||
called `autoconf'. You only need `configure.in' if you want to change
|
||||
it or regenerate `configure' using a newer version of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system. If you're
|
||||
using `csh' on an old version of System V, you might need to type
|
||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||
`configure' itself.
|
||||
|
||||
Running `configure' takes awhile. While running, it prints some
|
||||
messages telling which features it is checking for.
|
||||
|
||||
You can also type 'make menuconfig' to get a graphics configuration
|
||||
interface.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Optionally, type `make check' to run any self-tests that come with
|
||||
the package.
|
||||
|
||||
4. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
|
||||
5. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'. To also remove the
|
||||
files that `configure' created (so you can compile the package for
|
||||
a different kind of computer), type `make distclean'. There is
|
||||
also a `make maintainer-clean' target, but that is intended mainly
|
||||
for the package's developers. If you use it, you may have to get
|
||||
all sorts of other programs in order to regenerate files that came
|
||||
with the distribution.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that
|
||||
the `configure' script does not know about. You can give `configure'
|
||||
initial values for variables by setting them in the environment. Using
|
||||
a Bourne-compatible shell, you can do that on the command line like
|
||||
this:
|
||||
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
|
||||
|
||||
Or on systems that have the `env' program, you can do it like this:
|
||||
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you must use a version of `make' that
|
||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
If you have to use a `make' that does not supports the `VPATH'
|
||||
variable, you have to compile the package for one architecture at a time
|
||||
in the source code directory. After you have installed the package for
|
||||
one architecture, use `make distclean' before reconfiguring for another
|
||||
architecture.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' will install the package's files in
|
||||
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
||||
installation prefix other than `/usr/local' by giving `configure' the
|
||||
option `--prefix=PATH'.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
give `configure' the option `--exec-prefix=PATH', the package will use
|
||||
PATH as the prefix for installing programs and libraries.
|
||||
Documentation and other data files will still use the regular prefix.
|
||||
|
||||
In addition, if you use an unusual directory layout you can give
|
||||
options like `--bindir=PATH' to specify different values for particular
|
||||
kinds of files. Run `configure --help' for a list of the directories
|
||||
you can set and what kinds of files go in them.
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' can not figure out
|
||||
automatically, but needs to determine by the type of host the package
|
||||
will run on. Usually `configure' can figure that out, but if it prints
|
||||
a message saying it can not guess the host type, give it the
|
||||
`--host=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name with three fields:
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the host type.
|
||||
|
||||
If you are building compiler tools for cross-compiling, you can also
|
||||
use the `--target=TYPE' option to select the type of system they will
|
||||
produce code for and the `--build=TYPE' option to select the type of
|
||||
system on which you are compiling the package.
|
||||
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share,
|
||||
you can create a site shell script called `config.site' that gives
|
||||
default values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
A warning: not all `configure' scripts look for a site script.
|
||||
|
||||
Operation Controls
|
||||
==================
|
||||
|
||||
`configure' recognizes the following options to control how it
|
||||
operates.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Use and save the results of the tests in FILE instead of
|
||||
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
|
||||
debugging `configure'.
|
||||
|
||||
`--help'
|
||||
Print a summary of the options to `configure', and exit.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made. To
|
||||
suppress all normal output, redirect it to `/dev/null' (any error
|
||||
messages will still be shown).
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`--version'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options.
|
||||
133
LICENSE.POLICY
Normal file
133
LICENSE.POLICY
Normal file
@@ -0,0 +1,133 @@
|
||||
Licensing Policy for GPL'd MiniGUI versions
|
||||
|
||||
By now, FMSoft releases some MiniGUI versions under
|
||||
GPL license. This is the licensing policy for the GPL'd MiniGUI
|
||||
versions.
|
||||
|
||||
In Brief
|
||||
========
|
||||
|
||||
This is our licensing policy in brief: Our software is 100% GPL,
|
||||
and if yours is also 100% GPL, then you never have to pay us
|
||||
for the licences. In all other instances, you are better served
|
||||
by our commercial licence. Read the details below!
|
||||
|
||||
|
||||
Licensing
|
||||
========
|
||||
|
||||
MiniGUI software is licensed under the GPL license. The formal terms
|
||||
of the GPL license can be found in the GNU General Public License
|
||||
section of the MiniGUI User Manual, or the file named "COPYING".
|
||||
|
||||
MiniGUI is also available under commercial non-GPL license. For pricing
|
||||
and ordering information, visit our web page:
|
||||
|
||||
http://www.minigui.com/product/index.shtml
|
||||
|
||||
|
||||
1. Free use for those who are 100% GPL
|
||||
|
||||
If your application is licensed under GPL, you are free and welcome
|
||||
to ship any GPL software of FMSoft with your application. By "application"
|
||||
we mean any type of software application, system, tool or utility.
|
||||
For doing this, you do not need a separate signed agreement with FMSoft,
|
||||
because the GPL text is sufficient. But we do recommend you to be in touch
|
||||
with us as there usually are good opportunities for partnership and
|
||||
co-marketing.
|
||||
|
||||
2. Free use for those who never copy, modify or distribute
|
||||
|
||||
As long as you never distribute (internally or externally) the MiniGUI
|
||||
in any way, you are free to use it for powering your application,
|
||||
irrespective of whether your application is under GPL license or not.
|
||||
|
||||
More specifically:
|
||||
|
||||
* Modifying - You are allowed to modify MiniGUI source code any way
|
||||
you like. If you distribute the modified version, all
|
||||
changes, all interface code and all code that connects
|
||||
directly or indirectly to the interface code fall under GPL.
|
||||
|
||||
* Copying - You are allowed to copy MiniGUI binaries and source code,
|
||||
but when you do so, the copies will fall under the GPL.
|
||||
|
||||
|
||||
3. Commercial use for everyone else
|
||||
|
||||
If your application is not licensed under GPL and you intend to distribute
|
||||
MiniGUI software (be that internally or externally), you must first obtain
|
||||
a commercial license to the MiniGUI software in question.
|
||||
|
||||
More specifically:
|
||||
|
||||
a) If you link MiniGUI in your non-GPL application, you need a commercial
|
||||
licence for the MiniGUI library. Using MiniGUI with non-GPL operating
|
||||
systems (proprietary OSes, like VxWorks, ThreadX, uC/OS-II) falls into
|
||||
this situation. Linking MiniGUI with your non-GPL application and
|
||||
proprietary libarires also falls into this situation.
|
||||
|
||||
b) If you use MiniGUI library within your organisation and you don't want
|
||||
to risk it falling under the GPL license, you are welcome to purchase
|
||||
a commercial license.
|
||||
|
||||
c) Many users opt for the commercial licence simply because under it
|
||||
FMSoft takes responsibility for its products. Under the GPL licence,
|
||||
there are no warranties or representations from the
|
||||
developer (i.e. from FMSoft).
|
||||
|
||||
|
||||
4. Exceptions and free commercial licences
|
||||
|
||||
If you represent a non-profit organisation or an academic institution, we
|
||||
recommend you to put your own application under GPL. Thereby you are free to
|
||||
use MiniGUI software free of charge under the GPL licence. (We also believe
|
||||
that if you have strong reasons not to go GPL, you also have the monetary
|
||||
means to purchase commercial licences.)
|
||||
|
||||
If you are a private individual you are free to use MiniGUI software for
|
||||
your personal applications, as long as you do not distribute them.
|
||||
|
||||
Please note that even if you ship a free demo version of your own application,
|
||||
the above rules apply.
|
||||
|
||||
|
||||
5. Finally, what is the recommendation?
|
||||
|
||||
To all commercial organisations we do recommend the commercial licence.
|
||||
Not only does this free you from the far-reaching requirements of
|
||||
the GPL licence, it also gives you a licence letter from FMSoft where
|
||||
we assume responsibility for our product. The GPL licence is an "as is"
|
||||
licence with no warranties whatsoever.
|
||||
|
||||
To all GPL/Open Source enthusiasts we do recommend our products under
|
||||
the GPL licence. We believe that FMSoft is the world's one of the most
|
||||
important company that offers all its software under the GPL licence.
|
||||
So help yourself to the MiniGUI and feel the freedom of free software!
|
||||
|
||||
To anyone in doubt, we recommend the commercial licence. It is never wrong.
|
||||
Thanks to our cost-effective way of producing software, we are able to
|
||||
sell our commercial licences at prices well under the industry average,
|
||||
and this is without compromising our own profitability.
|
||||
|
||||
|
||||
Older Versions
|
||||
==============
|
||||
|
||||
Note that older versions of the MiniGUI are using the lesser GPL license
|
||||
(LGPL). See the documentation for the specific version for more
|
||||
information.
|
||||
|
||||
|
||||
When in doubt
|
||||
=============
|
||||
|
||||
If you have any questions on MiniGUI licensing, feel free to contact us:
|
||||
|
||||
mailto: sales@minigui.com
|
||||
|
||||
|
||||
GPL = Gnu General Public License, http://www.gnu.org/copyleft/gpl.html
|
||||
LGPL = GNU General Public License, http://www.gnu.org/copyleft/lgpl.html
|
||||
FMSoft = Beijing FMSoft Technologies Co., Ltd., http://www.minigui.com
|
||||
|
||||
180
LICENSE.POLICY.zh
Normal file
180
LICENSE.POLICY.zh
Normal file
@@ -0,0 +1,180 @@
|
||||
|
||||
MiniGUI GPL 版 本 的 授 权 策 略
|
||||
|
||||
目前,飞漫软件遵循 GPL 授权条款发布某些 MiniGUI 版本。本文档描述
|
||||
用户使用这些 GPL 版本时应该遵循的授权策略。
|
||||
|
||||
简介
|
||||
====
|
||||
|
||||
简而言之,飞漫软件针对 MiniGUI 的授权策略是:MiniGUI 是 100% 按照 GPL 条款
|
||||
发布的自由软件,如果您能 100% 遵守 GPL 许可证条款,则无需支付任何授权费用。
|
||||
在其他任何情况下,都需要获得我们的商业授权。
|
||||
|
||||
老版本 MiniGUI(1.3.0 版本之前)遵循 LGPL 条款发布,因为嵌入式系统无法
|
||||
保障用户获得修改 MiniGUI 函数库并进行调试的自由,从而无法确保 LGPL 在
|
||||
嵌入式产品中的实施,因此,如果要在嵌入式产品中使用老版本的 MiniGUI, 也必须
|
||||
首先购买商业授权。
|
||||
|
||||
|
||||
授权详解
|
||||
========
|
||||
|
||||
自 MiniGUI V1.3.0 起,我们遵循 GNU General Public License 许可证(简称 GPL)
|
||||
发布 MiniGUI。该条款的原文可见和 MiniGUI 源代码一同发布的 COPYING 文件。
|
||||
相比早期版本使用的 LGPL(GNU Lesser General Public License)许可证,
|
||||
GPL 所定义的条款要严格的多,更能有效维护自由软件的权益,避免自由软件成为
|
||||
专有系统的一部分。有关 GPL 许可证的解释及适用,可参阅 GNU 官方网站上的
|
||||
相关网页:
|
||||
|
||||
http://www.gnu.org/licenses/licenses.html
|
||||
|
||||
同时,我们为无法或者不愿 100% 遵循 GPL 条款使用 MiniGUI 的用户提供商业授权。
|
||||
具体价格及购买方法,请访问:
|
||||
|
||||
http://www.minigui.com/product/cindex.shtml
|
||||
|
||||
|
||||
1. 如果您 100% 遵循 GPL,无需获得商业授权
|
||||
|
||||
如果您使用 MiniGUI 的应用程序以 GPL 发布,则无需获得我们的商业授权。
|
||||
我们非常欢迎任何人在遵循 GPL 条款的基础上复制、修改和发布 MiniGUI。
|
||||
在这种情况下,您无需获得飞漫软件的任何形式的(包括口头或书面)使用授权,
|
||||
因为 GPL 条款本身就足够确保您的权益。但需要注意的是,飞漫软件不对这种
|
||||
形式下的使用提供任何形式的担保或技术支持。
|
||||
|
||||
|
||||
2. 如果您从不复制、修改和发布 MiniGUI,无需获得商业授权
|
||||
|
||||
只要您从不复制、修改和发布 MiniGUI,则您可以在您的应用程序中使用 MiniGUI,而无需
|
||||
获得商业授权。举个例子,您在完成一篇学位论文,并因此在您的程序中使用了 MiniGUI,
|
||||
您的程序仅仅用来说明您论文中试验的可行性或者结果,而且您没有修改 MiniGUI,并且
|
||||
该程序不以任何方式被复制和发布,则您无需获得商业授权。飞漫软件也不对这种形式下的
|
||||
使用提供任何担保。
|
||||
|
||||
但需要特别指出:
|
||||
|
||||
* 修改。我们欢迎您对 MiniGUI 进行任意的修改。如果你发布该修改版本,则您
|
||||
对 MiniGUI 所做的任何修改、所有的接口代码以及直接和间接地与接口相关联的
|
||||
代码将遵循 GPL 许可证。
|
||||
|
||||
* 复制。我们允许您复制 MiniGUI 二进制代码和/或源代码,但一旦这么做了,所有的
|
||||
副本应遵循 GPL 许可证。
|
||||
|
||||
|
||||
3. 其他情况均需获得商业授权
|
||||
|
||||
如果您使用 MiniGUI 的应用程序并不以 GPL 条款发布,却打算在内部或外部发布
|
||||
使用 MiniGUI 的应用程序或者函数库,则您必须首先获得飞漫软件的商业授权。
|
||||
|
||||
特别是:
|
||||
|
||||
* 如果您使用的嵌入式操作系统不采用 GPL 授权条款(比如 uC/OS-II、ThreadX、
|
||||
VxWorks 等操作系统),则必须购买 MiniGUI 商业授权。
|
||||
|
||||
* 您的非 GPL 应用程序连接了 MiniGUI,不管静态还是动态连接,您需要为每一个
|
||||
MiniGUI 函数库副本购买商业授权。尤其在您使用传统嵌入式操作系统时,操作
|
||||
系统、函数库、MiniGUI 和您的应用程序需要编译链接成完整的可执行映像,这时,
|
||||
必须购买 MiniGUI 商业授权。
|
||||
|
||||
* 如果您在自己的单位使用 MiniGUI 函数库,但又不希望将其置于 GPL 许可证
|
||||
之下,则需要购买商业授权。
|
||||
|
||||
* 当然,更多的人购买 MiniGUI 的商业授权,其目的非常简单,他们希望获得
|
||||
来自飞漫软件的技术支持和软件质量担保。
|
||||
|
||||
|
||||
4. 建议
|
||||
|
||||
对商业用户,我们建议购买 MiniGUI 的商业授权。这不仅仅能帮助您避免为满足 GPL
|
||||
条款而付出太多的硬件和软件开发费用,从而保护自己专有系统的商业利益,也可以从
|
||||
飞漫软件获得质量担保——GPL 软件不含任何形式的、间接或直接的担保。
|
||||
|
||||
对自由软件社区的用户,或者经费不足的科研院校,我们建议您在开发基于 MiniGUI 的
|
||||
应用程序时,采用 GPL 或者其他的开放源码许可证条款。这样,能在最大程度上满足
|
||||
GPL 许可证条款,您也不必购买 MiniGUI 的商业授权。
|
||||
|
||||
如果您不知道自己的产品能否 100% 满足 LGPL 条款,则建议您选择商业授权,因为对
|
||||
飞漫软件来讲,我们会保护商业客户的利益,并通过优秀的技术支持和产品担保来确保
|
||||
您的产品能够顺利开发并良好运行。
|
||||
|
||||
|
||||
老的版本
|
||||
========
|
||||
|
||||
在版本 1.3.0 之前,MiniGUI 使用 LGPL 条款发布。这种条款为非自由软件使用自由
|
||||
函数库而提供了非常宽松的条件。但是,LGPL 条款仍然为复制、修改和发布 LGPL 软件
|
||||
定义了一些约束性的条款,以避免 LGPL 软件变成专有系统事实上的一部分,或者
|
||||
通过一些技术障碍来阻止用户获得 LGPL 条款定义的自由。这些条款包括以下几个方面:
|
||||
|
||||
* 对 MiniGUI 本身的复制、修改和发布行为,均应在确保 MiniGUI 仍然为函数库、
|
||||
仍然遵循 LGPL 或者 GPL 许可证的前提下进行。
|
||||
|
||||
* 使用 MiniGUI 必然要生成可执行文件。根据 LGPL 条款的定义,该可执行文件
|
||||
是 MiniGUI 的“衍生作品”,并且应该按照 LGPL 许可证之第 6 条发布该可
|
||||
执行文件。该条款的核心思想是,确保用户知悉在该“衍生作品”中使用了
|
||||
遵循 LGPL 条款发布的 MiniGUI 函数库,用户因此将得到修改 MiniGUI 的权利;
|
||||
在用户修改了 MiniGUI 函数库的情况下,只要修改后的版本和原先的版本在接口
|
||||
上是兼容的,则应确保用户仍能够生成“衍生作品”(静态连接的情况),或者
|
||||
“衍生作品”仍然能够正常工作(动态连接的情况)。因此,“衍生作品”的发布
|
||||
必须以确保用户获得上述自由为前提和条件。
|
||||
|
||||
飞漫软件认为,MiniGUI 在大多数嵌入式系统中的应用,会因为某些技术上的障碍而不可
|
||||
避免地阻碍用户获得上述自由:
|
||||
|
||||
* 某些嵌入式系统根本不存在任何硬件上的条件或机制(比如程序上载接口),以
|
||||
帮助用户运行和调试修改后的 MiniGUI 函数库。
|
||||
|
||||
* 某些嵌入式系统采用了其他非开放源码的专有操作系统,用户根本无法免费获得
|
||||
用于编译、连接和调试修改后 MiniGUI 函数库的工具。
|
||||
|
||||
* 某些嵌入式系统,因为专利或技术保密等原因,禁止用户对程序采用反向工程和
|
||||
反汇编,从而禁止用户调试修改后的 MiniGUI 函数库。
|
||||
|
||||
如果您剥夺了用户获得修改 MiniGUI 的权利,即使您遵循了 LGPL 许可证的其他条款发布
|
||||
了修改后的 MiniGUI 源代码,则仍不属于 100% 遵循 LGPL 条款。这时,您需要获得飞漫
|
||||
的商业授权。那么,嵌入式系统需要完成哪些工作才算 100% 遵循 LGPL 条款呢?
|
||||
|
||||
* 确保按照 LGPL 条款复制、修改和发布 MiniGUI 函数库本身。
|
||||
|
||||
* 如果您采用静态连接方式生成使用 MiniGUI 函数库的可执行程序,则应确保提供
|
||||
用于生成最终可执行程序的全部目标代码和/或源代码。
|
||||
|
||||
* 如果您采用动态连接方式使用 MiniGUI 函数库,则应确保在达到接口兼容性的情况
|
||||
下,使用 MiniGUI 函数库的可执行程序仍然能够正常工作。
|
||||
|
||||
* 您必须允许用户对您的程序进行反向工程,以便用户调试修改后的 MiniGUI 函数库。
|
||||
|
||||
* 如果您采用了非开放源码的专有嵌入式操作系统,则请确保和您的产品一同提供用于
|
||||
编译、连接和调试程序的工具,或者您的用户可免费获得这些工具。
|
||||
|
||||
* 您的产品还应该在硬件和软件上提供替换原先 MiniGUI 函数库和/或使用 MiniGUI
|
||||
的可执行程序的机制和条件,以便用户在您的嵌入式产品中调试和运行修改之后
|
||||
的 MiniGUI 函数库。
|
||||
|
||||
* 其他为确保用户具有修改 MiniGUI 函数库的自由而应该提供的法律许可及软硬件条件。
|
||||
|
||||
|
||||
因此,我们认为在嵌入式系统中使用老版本 MiniGUI,也必须购买商业授权。
|
||||
|
||||
|
||||
MiniGUI 商业授权
|
||||
================
|
||||
|
||||
有关 MiniGUI 产品及商业授权的方式及价格,请访问
|
||||
|
||||
http://www.minigui.com/
|
||||
|
||||
|
||||
如有疑问
|
||||
========
|
||||
|
||||
如果您对上述授权策略有任何疑问,请联系我们:
|
||||
|
||||
mailto: sales@minigui.com
|
||||
|
||||
|
||||
GPL = GNU General Public License, http://www.gnu.org/copyleft/gpl.html
|
||||
LGPL = GNU General Public License, http://www.gnu.org/copyleft/lgpl.html
|
||||
FMSoft = Beijing FMSoft Technologies Co., Ltd., http://www.minigui.com
|
||||
|
||||
28
Makefile.am
Normal file
28
Makefile.am
Normal file
@@ -0,0 +1,28 @@
|
||||
AUTOMAKE_OPTIONS=foreign
|
||||
|
||||
SUBDIRS = src 3rd-party include rtos etc m4 cmake build
|
||||
|
||||
EXTRA_DIST = \
|
||||
GNUmakefile makefile.ng makefile.msvc rules.make \
|
||||
Version README INSTALL \
|
||||
LICENSE.POLICY LICENSE.POLICY.zh
|
||||
minigui.pc.in
|
||||
|
||||
# The directory where the include files will be installed
|
||||
libminiguiincludedir = $(includedir)/minigui
|
||||
|
||||
# Which header files to install
|
||||
libminiguiinclude_HEADERS = mgconfig.h
|
||||
|
||||
docs:
|
||||
doxygen Doxyfile
|
||||
|
||||
dist-nolicense: dist
|
||||
./clean_license.sh $(DIST_ARCHIVES)
|
||||
|
||||
dist:
|
||||
distcheck-nolicense:dist-nolicense distcheck
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = minigui.pc
|
||||
|
||||
272
README.md
Normal file
272
README.md
Normal file
@@ -0,0 +1,272 @@
|
||||
# MiniGUI
|
||||
|
||||
A mature cross-platform windowing system and GUI system for IoT devices.
|
||||
|
||||
|
||||
## TABLE OF CONTENTS
|
||||
|
||||
1. Introduction
|
||||
2. The runtime modes of MiniGUI
|
||||
3. New features of this version
|
||||
4. History
|
||||
5. About the authors
|
||||
6. If you have a problem
|
||||
7. A little FAQ
|
||||
8. Copying
|
||||
|
||||
|
||||
## INTRODUCTION
|
||||
|
||||
MiniGUI is a mature cross-platform windowing system and GUI (Graphics
|
||||
User Interface) support system for real-time embedded systems. This
|
||||
is version 3.2 released by FMSoft (http://www.minigui.com).
|
||||
|
||||
MiniGUI aims to provide a fast, stable, full-featured, and cross-platform
|
||||
windowing and GUI support system, which is especially fit for
|
||||
real-time embedded systems based-on Linux/uClinux, eCos, and other
|
||||
tranditional RTOSes, such as VxWorks, ThreadX, Nucleus, pSOS, uC/OS-II,
|
||||
and OSE.
|
||||
|
||||
This is the MiniGUI core source tarball, which provides windowing
|
||||
and graphics interfaces as well as a lot of standard controls.
|
||||
|
||||
Besides MiniGUI core, FMSoft also provides some components
|
||||
for the developers to develop application much easier:
|
||||
|
||||
* mGi: An input method component for MiniGUI. This component provides
|
||||
some typical input methods (such as softkey, hand-writing, and predict
|
||||
text input for mobile phone) for MiniGUI applications.
|
||||
|
||||
* mGp: A printing component for MiniGUI. By using mGp, you can print
|
||||
out the graphics created by MiniGUI application to general-purpose priters.
|
||||
|
||||
* mG3d: A simple three-dimension component for MiniGUI. This component
|
||||
provides a simple 3D API for application. You can use mG3d to create
|
||||
3D UI.
|
||||
|
||||
* mGUtils: A MiniGUI component which contains miscellaneous utilities
|
||||
like ColorSelectionDialogBox, FileOpenDialogBox, and so on.
|
||||
|
||||
* mGPlus: A MiniGUI component which provides support for advanced graphics
|
||||
functions like path, gradient, anti-aliase stretch, and color combination.
|
||||
|
||||
MiniGUI also is a free software project. In December 1998, the initiator of
|
||||
FMSoft, Wei Yongming, began to develop MiniGUI under the GNU General Public
|
||||
License (GPL). In September 2002, the core developers of
|
||||
MiniGUI founded FMSoft and started the commercial marketing with
|
||||
the free software. By now, FMSoft still continues to release MiniGUI
|
||||
as a free software project.
|
||||
|
||||
You can download the source of GPL'd MiniGUI versions from the site:
|
||||
|
||||
http://www.minigui.org
|
||||
|
||||
|
||||
## THE RUNTIME MODES OF MINIGUI
|
||||
|
||||
You can configure and compile MiniGUI as one of three runtime modes:
|
||||
|
||||
* `MiniGUI-Threads': A program running on MiniGUI-Threads can create
|
||||
multiple cascaded windows in different threads, and all the windows
|
||||
belong to a single process. MiniGUI-Threads is fit for some real-time
|
||||
systems on Linux/uClinux, eCos, uC/OS-II, VxWorks, pSOS, ThreadX,
|
||||
and OSE.
|
||||
|
||||
* `MiniGUI-Processes': A program running on MiniGUI-Processes is
|
||||
an independent process, which can also create multiple windows.
|
||||
MiniGUI-Processes is fit for some complex embedded systems, such as
|
||||
PDAs, Thin-Clients or STBs. This mode is only useful for full-featured
|
||||
UNIX-like operating systems, like Linux.
|
||||
|
||||
* `MiniGUI-Standalone': A single process version of MiniGUI. This mode
|
||||
is useful for some systems which lack of PThread support, like some
|
||||
buggy uClinux systems.
|
||||
|
||||
The original MiniGUI (version 1.0) run in MiniGUI-Threads mode.
|
||||
It is based on POSIX-compliant thread library. And this thread-based
|
||||
architecture of MiniGUI is very fit for most traditional embedded
|
||||
operating systems, such as eCos, uC/OS-II, and VxWorks. However,
|
||||
if you use embedded Linux, the architecture like X Window will have
|
||||
better stability and scalability, because of the independent memory
|
||||
address space of every process.
|
||||
|
||||
Since version 2.0, we provides a new runtime mode called MiniGUI-Processes.
|
||||
You can use MiniGUI-Processes to run more than one MiniGUI-based
|
||||
program in the form of UNIX process at the same time. MiniGUI-Processes
|
||||
is a full-featured multi-process version of original MiniGUI -- You
|
||||
can run a program based on MiniGUI-Processes from a program called
|
||||
'mginit'. Just like X Window, the former process is called a client,
|
||||
and the latter the server.
|
||||
|
||||
Clients connect to the server via UNIX domain socket, and the server
|
||||
receives and responses requests from clients. The server provides shared
|
||||
resources for clients, manage window objects, and sends mouse
|
||||
(or touch screen) and keyboard events to the active top-most client.
|
||||
If a client exits or dies for some reasons, it will not damage other
|
||||
clients and the server.
|
||||
|
||||
|
||||
## NEW FEATURES OF THIS VERSION
|
||||
|
||||
For more information, please refer to ReleaesNotes-3.2.x.pdf file in
|
||||
the product CD-ROM (in the 'docs/' directory).
|
||||
|
||||
|
||||
## HISTORY
|
||||
|
||||
About ten years have pasted since MiniGUI was initially created at
|
||||
the end of 1998, and now it becomes much reliable and stable.
|
||||
During the past years, many remarkable changes have taken place in
|
||||
the MiniGUI project.
|
||||
|
||||
At the original, the version 0.2.xx was based on SVGALib and PThread
|
||||
(LinuxThreads). Then the version 0.3.xx had many enhanced features
|
||||
including Graphics Abstract Layer (GAL), Input Abstract Layer (IAL),
|
||||
and the support for multiple charsets and multiple fonts.
|
||||
|
||||
In version 1.0.00, we designed MiniGUI-Lite, which was more fit for
|
||||
some complex embedded systems, such as PDAs, Thin-Clients, or STBs.
|
||||
MiniGUI-Lite made the embedded systems more stable and efficient.
|
||||
The version 1.0.00 provided the native fbcon engine based on Linux
|
||||
FrameBuffer device directly as well.
|
||||
|
||||
In the development of version 1.1.00, we re-wrote the GAL and GDI
|
||||
interfaces, and provided some advanced video features, such as raster
|
||||
operation, transparent blitting, alpha blending, and video hardware
|
||||
acceleration. We also provided some important GDI functions, such as
|
||||
Ellipse, Arc, Polygon, and FloodFill.
|
||||
|
||||
In the development of version 1.6.0, we added advanced 2D graphics
|
||||
functions to MiniGUI. It provides the abstract logical pen and brush
|
||||
objects, and can be used to render advanced graphics objects.
|
||||
|
||||
In the development of version 2.0.x, we developed MiniGUI-Processes.
|
||||
|
||||
In the development of version 3.0.x, we introduced Look & Feel Renderer,
|
||||
BIDI text support, No-rectagular window, double-buffer window, and
|
||||
other main featuers.
|
||||
|
||||
In the development of version 3.2.x, we enhanced MiniGUI to support Gtk+
|
||||
v2.16.x smoothly.
|
||||
|
||||
A brief history description of the developement progress lay below:
|
||||
|
||||
0) 1994 ~ 1996: MiniGUI DOS version.
|
||||
1) Dec, 1998: Began to write.
|
||||
2) Apr, 1999: The skeleton of MiniGUI, windowing sub-system
|
||||
and basic graphics device interfaces.
|
||||
3) May, 1999: Timer, menu, and the sekleton of control sub-system.
|
||||
4) Jun, 1999: Chinese input method (by Kang Xiaoning).
|
||||
5) July, 1999: GIF and JPG loading support (by LI Zhuo).
|
||||
6) Aug, 1999: Some standard controls (Portion by Zhao Jianghua).
|
||||
7) Sep, 1999: Dialog boxes and message boxes.
|
||||
8) Sep, 1999: Snapshot of screen or window.
|
||||
9) Jan., 2000: VCOnGUI (Virtual Console on MiniGUI) version 0.2.02.
|
||||
10) Mar., 2000: Linux distribution installer based-on MiniGUI for
|
||||
HappyLinux 1.0.
|
||||
11) Jun., 2000: Began to develop version 1.0.xx.
|
||||
12) Sep., 2000: MiniGUI version 0.3.06 released.
|
||||
13) Oct., 2000: MiniGUI version 0.9.00 released.
|
||||
14) Nov., 2000: MiniGUI version 0.9.96 released.
|
||||
15) Jan., 2001: MiniGUI version 0.9.98 released. You can build
|
||||
MiniGUI-Lite from this version.
|
||||
16) Jan., 2001: MiniGUI version 1.0.00Beta1 released.
|
||||
17) Feb., 2001: MiniGUI version 1.0.00Pre1 released.
|
||||
18) Apr., 2001: MiniGUI version 1.0.00 released (2001/04/16).
|
||||
18) Sep., 2001: MiniGUI version 1.1.0Pre1 released (2001/09/12).
|
||||
19) Sep., 2001: MiniGUI version 1.0.9 released (2001/09/17),
|
||||
this will be the last version of
|
||||
source branch 1.0.x.
|
||||
20) Oct., 2001: MiniGUI version 1.1.0Pre4 released (2001/10/22).
|
||||
This version have new GAL and GDI interfaces.
|
||||
21) Mar., 2002: MiniGUI official version 1.1.0 released
|
||||
(2002/03/08).
|
||||
MiniGUI API Reference documentation
|
||||
version 0.9 released.
|
||||
22) Mar., 2002: MiniGUI API Reference documentation
|
||||
version 1.0 released.
|
||||
23) Apr., 2002: MiniGUI the new stable version 1.2.0 released
|
||||
(2002/04/11).
|
||||
24) Sep., 2002: The main developers of MiniGUI founded a
|
||||
new software corporation: Beijing FMSoft
|
||||
Technology Co., Ltd.. And the development and
|
||||
maintenance of MiniGUI changes from
|
||||
loosely-knit team to business organization.
|
||||
25) Mar., 2003: MiniGUI official version 1.2.5 released
|
||||
(2003/03/23).
|
||||
25) May., 2003: MiniGUI official version 1.2.6 released
|
||||
(2003/05/18).
|
||||
26) Sep., 2003: MiniGUI official version 1.3.1 released
|
||||
(2003/09/11).
|
||||
27) Jan., 2004: MiniGUI official version 1.5.1 released
|
||||
(2004/01/18).
|
||||
28) Feb., 2004: MiniGUI tested on eCos and uC/OS-II.
|
||||
29) Jun., 2004: MiniGUI tested on VxWorks.
|
||||
30) Jan., 2005: MiniGUI tested on ThreadX and pSOS.
|
||||
31) Feb., 2005: MiniGUI official version 1.6.1 released.
|
||||
32) Aug., 2005: MiniGUI beta version 2.0.0 released.
|
||||
33) Sep., 2005: MiniGUI official version 1.6.8 released.
|
||||
34) Oct., 2005: MiniGUI official version 2.0.2 released.
|
||||
35) Jun., 2006: MiniGUI provides support for OSE.
|
||||
36) Jul., 2006: MiniGUI official version 2.0.3/1.6.9 released.
|
||||
37) Nov., 2007: MiniGUI official version 2.0.4/1.6.10 released.
|
||||
38) Apr., 2009: MiniGUI official version 3.0.2 released.
|
||||
39) Oct., 2009: MiniGUI official version 3.0.4 released.
|
||||
40) Jan., 2010: MiniGUI official version 3.0.6 released.
|
||||
41) May., 2010: MiniGUI official version 3.0.8 released.
|
||||
42) May., 2010: MiniGUI official version 3.2.0 released.
|
||||
43) Oct., 2010: MiniGUI official version 3.0.10 released.
|
||||
|
||||
|
||||
## ABOUT THE AUTHORS
|
||||
|
||||
The original author of MiniGUI is Wei Yongming, and now MiniGUI is
|
||||
maintained by FMSoft. For more information, please browse
|
||||
our home page:
|
||||
|
||||
http://www.minigui.com
|
||||
|
||||
The GPL'd versions and dependent libraries of MiniGUI can be found at:
|
||||
|
||||
http://www.minigui.org
|
||||
|
||||
|
||||
## IF YOU HAVE A PROBLEM
|
||||
|
||||
If you have any technical problem, advice or comment, please send
|
||||
messages to consult@minigui.com.
|
||||
|
||||
If you are interested in the commercial MiniGUI products and licensing,
|
||||
please write to sales@minigui.com.
|
||||
|
||||
|
||||
## A LITTLE FAQ
|
||||
|
||||
Q: Is GPL'd MiniGUI free for commercial use?
|
||||
|
||||
A: Simply no. FMSoft release some versions of MiniGUI under
|
||||
GPL license. It is free for those who are 100% GPL and those who
|
||||
never copy, modify and distribute MiniGUI. But if you want to use
|
||||
these GPL'd versions for commerce, you should get the commercial
|
||||
license from FMSoft first.
|
||||
|
||||
Q: Which operating system does MiniGUI support?
|
||||
|
||||
A: MiniGUI can run on Linux/uClinux, uC/OS-II, eCos, ThreadX, pSOS,
|
||||
VxWorks, ThreadX, OSE, and even Win32. Any other real-time OSes can
|
||||
be supported theoretically.
|
||||
|
||||
Q: Which architecture does MiniGUI support?
|
||||
|
||||
A: Intel x86, ARM (ARM7/AMR9/StrongARM/xScale), PowerPC, MIPS,
|
||||
DragonBall, ColdFire, Blackfin, and so on.
|
||||
|
||||
Q: Does MiniGUI offer the support for grey LCD with 4bpp (bits per pixel)?
|
||||
|
||||
A: Yes, it offers. It even offers the support for 1bpp and 2bpp LCD.
|
||||
|
||||
|
||||
8. COPYING
|
||||
|
||||
Copyright (C) 2002~2017, Beijing FMSoft Technologies Co., Ltd.
|
||||
|
||||
9
Version
Normal file
9
Version
Normal file
@@ -0,0 +1,9 @@
|
||||
Version 3.2.1 (the developing version of the official version 3.2)
|
||||
|
||||
This release needs the following resource packages:
|
||||
|
||||
* minigui-res-3.0.10.tar.gz
|
||||
|
||||
The latest samples package is:
|
||||
|
||||
* mg-samples-3.0.10.tar.gz
|
||||
7
autogen.sh
Executable file
7
autogen.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat m4/*.m4 > acinclude.m4
|
||||
aclocal
|
||||
autoheader
|
||||
automake --add-missing --copy
|
||||
autoconf
|
||||
4
build/Defs-mgext.win32
Normal file
4
build/Defs-mgext.win32
Normal file
@@ -0,0 +1,4 @@
|
||||
# Defs-mgext.win32 : Global defines for mgext library Win32 builds.
|
||||
#
|
||||
|
||||
COMPILE_MGEXTLIB=1
|
||||
35
build/Defs.win32
Normal file
35
build/Defs.win32
Normal file
@@ -0,0 +1,35 @@
|
||||
# Defs.win32 : Global defines for Win32 builds.
|
||||
#
|
||||
# This file is included by makefiles for both GNU Make (for cygwin/gcc
|
||||
# or mingw/gcc builds), and NMAKE (for MSVC builds).
|
||||
#
|
||||
# Please note that there are two (or three) ways to build the MiniGUI
|
||||
# libraries on Win32: Either using the same
|
||||
# auto*/configure mechanism to generate makefiles as on Unix, and
|
||||
# libtool to handle DLL creation. This currently only works for gcc,
|
||||
# and even then it is hellish to set up to work 100% correctly. For
|
||||
# people using that, this file is totally irrelevant.
|
||||
#
|
||||
# Or, use hand-written makefiles, either for MSVC (these are called
|
||||
# makefile.msvc), or for gcc (makefile.mingw).
|
||||
|
||||
|
||||
GLOBAL_DEFS_INCLUDED=1
|
||||
|
||||
######################################################################
|
||||
# The version macros define what versions of libraries to use.
|
||||
|
||||
MINIGUI_VER = 1.6
|
||||
MGEXT_VER = $(MINIGUI_VER)
|
||||
|
||||
MINIGUILIB = libminigui-$(MINIGUI_VER)
|
||||
MGEXTLIB = libmgext-$(MGEXT_VER)
|
||||
|
||||
FREETYPE2_VER = 1.0
|
||||
|
||||
######################################################################
|
||||
# path defines
|
||||
|
||||
|
||||
######################################################################
|
||||
|
||||
94
build/Makefile.am
Normal file
94
build/Makefile.am
Normal file
@@ -0,0 +1,94 @@
|
||||
EXTRA_DIST = \
|
||||
buildlib-min \
|
||||
buildlib-demo-pc \
|
||||
buildlib-7202-fft \
|
||||
buildlib-lubbock \
|
||||
buildlib-cbe \
|
||||
buildlib-ebook \
|
||||
buildlib-handheld \
|
||||
buildlib-helio \
|
||||
buildlib-hh2410r3-palm2 \
|
||||
buildlib-hh2440 \
|
||||
buildlib-linux-ep7312-skyeye \
|
||||
buildlib-linux-figueroa \
|
||||
buildlib-hhcf5249-pc \
|
||||
buildlib-ipaq \
|
||||
buildlib-flat \
|
||||
buildlib-pb1100 \
|
||||
buildlib-pc-agere \
|
||||
buildlib-pc-kiosk \
|
||||
buildlib-pc-palm2 \
|
||||
buildlib-ppc \
|
||||
buildlib-smdk2410 \
|
||||
buildlib-spc \
|
||||
buildlib-svpxx \
|
||||
buildlib-utpmc-pc \
|
||||
buildlib-vga16 \
|
||||
buildlib-vr4181 \
|
||||
buildlib-win32-wvfb \
|
||||
buildlib-xscale \
|
||||
buildlib-uclinux-khtstb \
|
||||
buildlib-uclinux-hhdrez328 \
|
||||
buildlib-uclinux-44b0 \
|
||||
buildlib-uclinux-44b0-uptech-newgal \
|
||||
buildlib-uclinux-coldfire \
|
||||
buildlib-uclinux-coldfire-5307 \
|
||||
buildlib-uclinux-hhcf5249-bf533 \
|
||||
buildlib-uclinux-hhcf5249-r3 \
|
||||
buildlib-uclinux-m68k-elf \
|
||||
buildlib-uclinux-rm9200 \
|
||||
buildlib-uclinux-utpmc \
|
||||
buildlib-uclinux-xcopilot \
|
||||
buildlib-uclinux-c33l05 \
|
||||
buildlib-uclinux-bf537 \
|
||||
buildlib-arm7-16bpp \
|
||||
buildlib-arm7-4bpp \
|
||||
buildlib-ecos-ipaq \
|
||||
buildlib-ecos-palm2 \
|
||||
buildlib-ecos-palm2-wifi \
|
||||
buildlib-ecos-ipaq-wifi \
|
||||
buildlib-ecos-default \
|
||||
buildlib-ucos2-skyeye \
|
||||
config-ucosii-s3c2410-16.h \
|
||||
config-ucosii-s3c2410-1.h \
|
||||
config-ucosii-s3c44b0x.h \
|
||||
config-vxworks-vxsim.h \
|
||||
config-vxworks-ppc.h \
|
||||
config-vxworks-wifi.h \
|
||||
config-vxworks-i386.h \
|
||||
config-nucleus-null.h \
|
||||
config-nucleus-mnt.h \
|
||||
config-nucleus-monaco.h \
|
||||
config-threadx-vfanvil.h \
|
||||
config-threadx-null.h \
|
||||
config-win32.h \
|
||||
config-mgdemo-win.h \
|
||||
config-psos-standalone.h \
|
||||
config-psos-threads.h \
|
||||
config-ose-mx21.h \
|
||||
rules-s3c2410.ucosii \
|
||||
rules-s3c44b0x.ucosii \
|
||||
rules-skyeye.ucosii \
|
||||
rules-simnt.vxworks \
|
||||
rules-wifi.vxworks \
|
||||
rules-mnt.nucleus \
|
||||
rules-default.psos \
|
||||
rules.swlinux \
|
||||
rules-pc.win32 \
|
||||
rules-pc.vxworks \
|
||||
rules-ppc.vxworks \
|
||||
rules.msvc \
|
||||
rules-mx21.ose \
|
||||
minigui_ads_prj_threadx.tar.gz \
|
||||
minigui_ads_prj_nucleus.tar.gz \
|
||||
minigui_ads_prj_ucos2.tar.gz \
|
||||
pthreadVC1.dll \
|
||||
pthreadVC1.lib \
|
||||
dirent.dll \
|
||||
dirent.lib \
|
||||
Defs.win32 \
|
||||
Defs-mgext.win32 \
|
||||
makedefs.msvc \
|
||||
minigui-win32.dsp \
|
||||
minigui-win32.dsw
|
||||
|
||||
47
build/buildlib-7202-fft
Executable file
47
build/buildlib-7202-fft
Executable file
@@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the m68k-elf-tools already.
|
||||
# 2. Your uClinux distribution has been installed into the directory of '/opt/uClinux/uClinux-dist'.
|
||||
# 3. You configured the uClinux to use uClibc, and have configured uClibc to support pthread.
|
||||
# 4. You have made the uClinux distribution.
|
||||
# 5. You have made a symbol link of "uClibc" to the correct uClibc directory.
|
||||
#
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CC=arm-linux-gcc \
|
||||
#CFLAGS="-O2 -g -I/usr/local/arm-linux/arm-linux/include" \
|
||||
#LDFLAGS="-L/usr/local/arm-linux/arm-linux/lib" \
|
||||
./configure --prefix=/usr/local/arm-linux/arm-linux \
|
||||
--build=i386-linux \
|
||||
--host=arm-linux \
|
||||
--target=arm-linux \
|
||||
--with-osname=linux \
|
||||
--enable-procs \
|
||||
--enable-standalone \
|
||||
--enable-micemoveable \
|
||||
--enable-cursor \
|
||||
--enable-incoreres \
|
||||
--with-style=flat \
|
||||
--disable-videoqvfb \
|
||||
--enable-micemoveable \
|
||||
--disable-fft7202ial \
|
||||
--enable-nativeial \
|
||||
--disable-qvfbial \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--enable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--disable-savescreen
|
||||
49
build/buildlib-arm7-16bpp
Executable file
49
build/buildlib-arm7-16bpp
Executable file
@@ -0,0 +1,49 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the m68k-elf-tools already.
|
||||
# 2. Your uClinux distribution has been installed into the directory of '/opt/uClinux/uClinux-dist'.
|
||||
# 3. You configured the uClinux to use uClibc, and have configured uClibc to support pthread.
|
||||
# 4. You have made the uClinux distribution.
|
||||
# 5. You have made a symbol link of "uClibc" to the correct uClibc directory.
|
||||
#
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CC=arm-linux-gcc \
|
||||
#CFLAGS="-O2 -g -I/usr/local/arm-linux/arm-linux/include" \
|
||||
#LDFLAGS="-L/usr/local/arm-linux/arm-linux/lib" \
|
||||
./configure --prefix=/usr/local/arm-linux/arm-linux \
|
||||
--build=i386-linux \
|
||||
--host=arm-linux \
|
||||
--target=arm-linux \
|
||||
--with-osname=linux \
|
||||
--enable-procs \
|
||||
--enable-standalone \
|
||||
--enable-incoreres \
|
||||
--with-style=flat \
|
||||
--disable-videoqvfb \
|
||||
--disable-micemoveable \
|
||||
--enable-cursor \
|
||||
--enable-rbfgb24 \
|
||||
--enable-rbf24 \
|
||||
--enable-l7200ial \
|
||||
--enable-dummyial \
|
||||
--disable-nativeial \
|
||||
--disable-qvfbial \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--disable-savescreen
|
||||
50
build/buildlib-arm7-4bpp
Executable file
50
build/buildlib-arm7-4bpp
Executable file
@@ -0,0 +1,50 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the m68k-elf-tools already.
|
||||
# 2. Your uClinux distribution has been installed into the directory of '/opt/uClinux/uClinux-dist'.
|
||||
# 3. You configured the uClinux to use uClibc, and have configured uClibc to support pthread.
|
||||
# 4. You have made the uClinux distribution.
|
||||
# 5. You have made a symbol link of "uClibc" to the correct uClibc directory.
|
||||
#
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CC=arm-linux-gcc \
|
||||
#CFLAGS="-O2 -g -I/usr/local/arm-linux/arm-linux/include" \
|
||||
#LDFLAGS="-L/usr/local/arm-linux/arm-linux/lib" \
|
||||
./configure --prefix=/usr/local/arm-linux/arm-linux \
|
||||
--build=i386-linux \
|
||||
--host=arm-linux \
|
||||
--target=arm-linux \
|
||||
--with-osname=linux \
|
||||
--enable-procs \
|
||||
--enable-incoreres \
|
||||
--with-style=flat \
|
||||
--with-target=fbcon \
|
||||
--enable-videoshadow \
|
||||
--disable-videofbcon \
|
||||
--disable-videoqvfb \
|
||||
--disable-micemoveable \
|
||||
--enable-cursor \
|
||||
--enable-l7200ial \
|
||||
--enable-dummyial \
|
||||
--disable-nativeial \
|
||||
--disable-qvfbial \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--disable-savescreen \
|
||||
--enable-tinyscreen
|
||||
37
build/buildlib-cbe
Executable file
37
build/buildlib-cbe
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CC=armv4l-unknown-linux-gcc \
|
||||
./configure --prefix=/opt/host/armv4l/armv4l-unknown-linux \
|
||||
--build=i386-linux \
|
||||
--host=arm-unknown-linux \
|
||||
--target=arm-unknown-linux \
|
||||
--disable-debug \
|
||||
--disable-static \
|
||||
--enable-procs \
|
||||
--with-style=flat \
|
||||
--enable-videofbcon \
|
||||
--disable-videoqvfb \
|
||||
--disable-videodummy \
|
||||
--enable-ucb1x00ial \
|
||||
--disable-nativeial \
|
||||
--disable-pcxsupport \
|
||||
--disable-lbmsupport \
|
||||
--disable-tgasupport \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-micemoveable \
|
||||
--disable-cursor \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312pinyin \
|
||||
--disable-savebitmap \
|
||||
--disable-savescreen \
|
||||
--disable-aboutdlg \
|
||||
--disable-ext-fullgif \
|
||||
--disable-dblclk
|
||||
18
build/buildlib-demo-pc
Executable file
18
build/buildlib-demo-pc
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
./configure \
|
||||
--enable-incoreres \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--disable-savescreen
|
||||
35
build/buildlib-dm270
Executable file
35
build/buildlib-dm270
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
rm -f config.cache config.status
|
||||
CC=arm-elf-gcc \
|
||||
CFLAGS="-Os -D__uClinux__ -mcpu=arm7tdmi -fno-exceptions -fno-rtti -nostartfiles -fno-builtin " \
|
||||
LDFLAGS="-Wl,-elf2flt" \
|
||||
./configure --prefix=/usr/local/arm-elf \
|
||||
--build=i686-linux \
|
||||
--host=arm-elf-linux \
|
||||
--target=arm-elf-linux \
|
||||
--with-osname=uclinux \
|
||||
--disable-procs \
|
||||
--disable-shared \
|
||||
--enable-incoreres \
|
||||
--disable-cursor \
|
||||
--enable-dm270ial \
|
||||
--enable-dummyial \
|
||||
--disable-qvfbial \
|
||||
--disable-vbfsupport \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--enable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--enable-extskin \
|
||||
--disable-adv2dapi \
|
||||
--enable-tinyscreen \
|
||||
--disable-savescreen
|
||||
31
build/buildlib-dm320
Executable file
31
build/buildlib-dm320
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
rm -f config.cache config.status
|
||||
CC=arm-linux-gcc \
|
||||
./configure --prefix=/opt/styleflying/arm-linux \
|
||||
--build=i686-linux \
|
||||
--host=arm-linux-linux \
|
||||
--target=arm-linux-linux \
|
||||
--disable-procs \
|
||||
--enable-incoreres \
|
||||
--disable-cursor \
|
||||
--enable-dm270ial \
|
||||
--enable-dummyial \
|
||||
--disable-qvfbial \
|
||||
--disable-vbfsupport \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--enable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--enable-extskin \
|
||||
--disable-adv2dapi \
|
||||
--enable-tinyscreen \
|
||||
--disable-savescreen
|
||||
14
build/buildlib-dumpbmp
Executable file
14
build/buildlib-dumpbmp
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
CFLAGS=-D__CYGWIN__ \
|
||||
./configure \
|
||||
--enable-videodummy \
|
||||
--disable-videoqvfb \
|
||||
--enable-dummyial \
|
||||
--disable-nativeial \
|
||||
--disable-qvfbial \
|
||||
--disable-libvcongui \
|
||||
--enable-incoreres \
|
||||
--disable-pngsupport \
|
||||
--disable-jpgsupport \
|
||||
--disable-ttfsupport
|
||||
35
build/buildlib-ebook
Executable file
35
build/buildlib-ebook
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CC=armv4l-unknown-linux-gcc \
|
||||
./configure --prefix=/opt/host/armv4l/armv4l-unknown-linux \
|
||||
--build=i386-linux \
|
||||
--host=arm-unknown-linux \
|
||||
--target=arm-unknown-linux \
|
||||
--disable-debug \
|
||||
--disable-static \
|
||||
--enable-procs \
|
||||
--enable-dummyial \
|
||||
--enable-ucb1x00ial \
|
||||
--disable-pcxsupport \
|
||||
--disable-lbmsupport \
|
||||
--disable-tgasupport \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-micemoveable \
|
||||
--disable-cursor \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312pinyin \
|
||||
--disable-savebitmap \
|
||||
--disable-savescreen \
|
||||
--disable-aboutdlg \
|
||||
--disable-ext-fullgif \
|
||||
--with-style=flat \
|
||||
--disable-dblclk
|
||||
|
||||
63
build/buildlib-ecos-default
Executable file
63
build/buildlib-ecos-default
Executable file
@@ -0,0 +1,63 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the GNU arm-elf-tools already.
|
||||
# 2. You have set ECOS_RESPOSITORY and PATH correctly.
|
||||
# 3. Modify the following variable for your cross-compilation environment.
|
||||
|
||||
ECOS_DIR=/opt/ipaq_ecos/install
|
||||
|
||||
ECOS_GLOBAL_CFLAGS="-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -finit-priority"
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CC=arm-elf-gcc \
|
||||
CFLAGS="-I${ECOS_DIR}/include -D__ECOS__ -D__NOUNIX__ -DUNIX=1 -mcpu=arm9 -Wall -g" \
|
||||
LDFLAGS="-nostdlib" \
|
||||
./configure --prefix=${ECOS_DIR} \
|
||||
--build=i386-linux \
|
||||
--host=arm-elf-linux \
|
||||
--target=arm-elf-linux \
|
||||
--with-osname=ecos \
|
||||
--with-style=fashion \
|
||||
--disable-shared \
|
||||
--disable-procs \
|
||||
--disable-standalone \
|
||||
--enable-incoreres \
|
||||
--enable-rbfgb12 \
|
||||
--enable-rbfgb16 \
|
||||
--disable-rbfgb24 \
|
||||
--enable-rbf16 \
|
||||
--disable-rbf24 \
|
||||
--enable-fonthelv \
|
||||
--disable-videofbcon \
|
||||
--disable-videoqvfb \
|
||||
--enable-videodummy \
|
||||
--disable-videocommlcd \
|
||||
--disable-micemoveable \
|
||||
--disable-cursor \
|
||||
--disable-textmode \
|
||||
--disable-palm2ial \
|
||||
--enable-dummyial \
|
||||
--disable-nativeial \
|
||||
--disable-qvfbial \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--disable-gbsupport \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--disable-savescreen \
|
||||
--enable-tinyscreen \
|
||||
--disable-libvcongui
|
||||
|
||||
57
build/buildlib-ecos-ipaq
Executable file
57
build/buildlib-ecos-ipaq
Executable file
@@ -0,0 +1,57 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the GNU arm-elf-tools already.
|
||||
# 2. You have set ECOS_RESPOSITORY and PATH correctly.
|
||||
# 3. Modify the following variable for your cross-compilation environment.
|
||||
|
||||
ECOS_DIR=/tmp/ipaq_ecos/install
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CC=arm-elf-gcc \
|
||||
CFLAGS="-I${ECOS_DIR}/include -mcpu=strongarm -Wall -O2" \
|
||||
LDFLAGS='-nostdlib' \
|
||||
./configure --prefix=${ECOS_DIR} \
|
||||
--build=i386-linux \
|
||||
--host=arm-elf-linux \
|
||||
--target=arm-elf-linux \
|
||||
--with-osname=ecos \
|
||||
--disable-shared \
|
||||
--disable-procs \
|
||||
--disable-standalone \
|
||||
--enable-incoreres \
|
||||
--enable-rbfgb12 \
|
||||
--enable-rbf24 \
|
||||
--with-style=flat \
|
||||
--disable-videofbcon \
|
||||
--disable-videoqvfb \
|
||||
--enable-videodummy \
|
||||
--enable-videocommlcd \
|
||||
--disable-micemoveable \
|
||||
--disable-cursor \
|
||||
--disable-textmode \
|
||||
--enable-ipaqial \
|
||||
--enable-dummyial \
|
||||
--disable-nativeial \
|
||||
--disable-qvfbial \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--enable-gbsupport \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--disable-savescreen \
|
||||
--enable-tinyscreen \
|
||||
--disable-libvcongui
|
||||
|
||||
61
build/buildlib-ecos-ipaq-wifi
Executable file
61
build/buildlib-ecos-ipaq-wifi
Executable file
@@ -0,0 +1,61 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the GNU arm-elf-tools already.
|
||||
# 2. You have set ECOS_RESPOSITORY and PATH correctly.
|
||||
# 3. Modify the following variable for your cross-compilation environment.
|
||||
|
||||
ECOS_DIR=/tmp/ipaq_ecos/install
|
||||
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CC=arm-elf-gcc \
|
||||
CFLAGS="-I${ECOS_DIR}/include -mcpu=strongarm -Wall -O2" \
|
||||
LDFLAGS="-nostdlib" \
|
||||
./configure --prefix=${ECOS_DIR} \
|
||||
--build=i386-linux \
|
||||
--host=arm-elf-linux \
|
||||
--target=arm-elf-linux \
|
||||
--with-osname=ecos \
|
||||
--disable-shared \
|
||||
--disable-procs \
|
||||
--disable-standalone \
|
||||
--enable-incoreres \
|
||||
--disable-videofbcon \
|
||||
--disable-videoqvfb \
|
||||
--enable-videodummy \
|
||||
--enable-videocommlcd \
|
||||
--disable-micemoveable \
|
||||
--disable-cursor \
|
||||
--with-style=fashion \
|
||||
--disable-textmode \
|
||||
--enable-ipaqial \
|
||||
--enable-dummyial \
|
||||
--disable-nativeial \
|
||||
--disable-qvfbial \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--enable-gbsupport \
|
||||
--enable-shiftjissupport \
|
||||
--enable-rbfkj12 \
|
||||
--enable-rbfkj14 \
|
||||
--enable-rbfkj16 \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--disable-savescreen \
|
||||
--enable-tinyscreen \
|
||||
--disable-libvcongui \
|
||||
--disable-extctrltreeview
|
||||
|
||||
60
build/buildlib-ecos-linux
Executable file
60
build/buildlib-ecos-linux
Executable file
@@ -0,0 +1,60 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# This is a configure script for eCos Linux synthetic.
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the GNU gcc already.
|
||||
# 2. You have set ECOS_RESPOSITORY and PATH correctly.
|
||||
# 3. Modify the following variable for your building environment.
|
||||
|
||||
ECOS_DIR=/opt/ecoscvs/linux_install
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CFLAGS="-I${ECOS_DIR}/include -finline-limit=7000 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -g -O2 -ffunction-sections -fdata-sections -fno-exceptions " \
|
||||
LDFLAGS=" -g -nostdlib -Wl,--gc-sections -Wl,-static -L${ECOS_DIR}/lib -Ttarget.ld" \
|
||||
./configure --prefix=${ECOS_DIR} \
|
||||
--build=i386-linux \
|
||||
--host=i386-elf-linux \
|
||||
--target=i386-elf-linux \
|
||||
--with-osname=ecos \
|
||||
--with-style=fashion \
|
||||
--disable-shared \
|
||||
--disable-procs \
|
||||
--disable-standalone \
|
||||
--enable-incoreres \
|
||||
--disable-videofbcon \
|
||||
--enable-videoqvfb \
|
||||
--enable-videodummy \
|
||||
--disable-videoshadow \
|
||||
--disable-micemoveable \
|
||||
--disable-clipboard \
|
||||
--disable-textmode \
|
||||
--enable-dummyial \
|
||||
--disable-nativeial \
|
||||
--enable-qvfbial \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--disable-savebitmap \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--disable-savescreen \
|
||||
--disable-libvcongui \
|
||||
--disable-cursor \
|
||||
--enable-adv2dapi \
|
||||
--enable-miniguientry \
|
||||
--enable-mousecalibrate \
|
||||
--enable-ipaqial \
|
||||
--enable-qpfsupport \
|
||||
--enable-gbsupport \
|
||||
--enable-unicodesupport \
|
||||
--enable-gbksupport \
|
||||
--enable-big5support \
|
||||
--enable-tinyscreen \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-nativems3 \
|
||||
--disable-nativems \
|
||||
--disable-nativeegpm
|
||||
73
build/buildlib-ecos-mv6600
Executable file
73
build/buildlib-ecos-mv6600
Executable file
@@ -0,0 +1,73 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the arm-elf-tools already.
|
||||
# 2. Your uClinux distribution has been installed into the directory of '/opt/em85xx/'.
|
||||
#
|
||||
|
||||
rm config.cache config.status -f
|
||||
#项目名称
|
||||
PRO_NAME=mowei
|
||||
|
||||
#编译链前缀
|
||||
CC_PREFIX_='sde-'
|
||||
CC_PREFIX='sde'
|
||||
|
||||
#指定minigui的安装目录
|
||||
PREFIX=/home/hejia/work/$PRO_NAME/build
|
||||
|
||||
#定义交叉编译链的路径
|
||||
CROSSTOOLPATH=/home/hejia/work/$PRO_NAME/crosstool/bin
|
||||
export PATH=$CROSSTOOLPATH:$PATH
|
||||
#export PATH
|
||||
|
||||
#gcc的编译参数(按照实际情况修改)及编译minigui的配置参数
|
||||
BUILD=i686-pc-cygwin
|
||||
HOST=mips-unknown-elf
|
||||
TARGET=mips-unknown-elf
|
||||
|
||||
ECOS_GLOBAL_CFLAGS="-DMV_TL=\${MV_TL} -DMV_SIM=\${MV_SIM} -g -mips32 -EL -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -ffunction-sections -fdata-sections -fno-exceptions -G0"
|
||||
ECOS_GLOBAL_LDFLAGS="-EL -msoft-float -g -nostdlib -Wl,--gc-sections -Wl,-static"
|
||||
|
||||
STRIP=${CC_PREFIX_}strip \
|
||||
RANLIB=${CC_PREFIX_}ranlib \
|
||||
LD=${CC_PREFIX_}rd \
|
||||
AS=${CC_PREFIX_}ls \
|
||||
AR=${CC_PREFIX_}ar \
|
||||
CXX=${CC_PREFIX_}g++ \
|
||||
CC=${CC_PREFIX_}gcc \
|
||||
CFLAGS="-I$CROSSTOOLPATH/../$CC_PREFIX/include -I${PREFIX}/include ${ECOS_GLOBAL_CFLAGS}" \
|
||||
CXXFLAGS="-I$CROSSTOOLPATH/../$CC_PREFIX/include -I${PREFIX}/include ${ECOS_GLOBAL_CFLAGS}" \
|
||||
LDFLAGS="-L$CROSSTOOLPATH/../$CC_PREFIX/lib -L${PREFIX}/lib -nostartfiles -nostdlib -L${PREFIX}/lib ${ECOS_GLOBAL_LDFLAGS} " \
|
||||
./configure --prefix=${PREFIX} \
|
||||
--build=$BUILD \
|
||||
--host=$HOST \
|
||||
--target=$TARGET \
|
||||
--enable-miniguientry \
|
||||
--with-osname=ecos \
|
||||
--disable-procs \
|
||||
--disable-standalone \
|
||||
--enable-incoreres \
|
||||
--disable-shared \
|
||||
--disable-libvcongui \
|
||||
--disable-cursor \
|
||||
--enable-adv2dapi \
|
||||
--enable-videocommlcd \
|
||||
--enable-videoshadow \
|
||||
--enable-ipaqial \
|
||||
--enable-qpfsupport \
|
||||
--enable-gbsupport \
|
||||
--enable-unicodesupport \
|
||||
--enable-gbksupport \
|
||||
--enable-big5support \
|
||||
--enable-consoleial=no \
|
||||
--disable-qvfbial \
|
||||
--enable-videoqvfb=no \
|
||||
--disable-pcxvfb \
|
||||
--enable-autoial \
|
||||
--disable-videofbcon
|
||||
|
||||
echo DONE;
|
||||
|
||||
64
build/buildlib-ecos-palm2
Executable file
64
build/buildlib-ecos-palm2
Executable file
@@ -0,0 +1,64 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the GNU arm-elf-tools already.
|
||||
# 2. You have set ECOS_RESPOSITORY and PATH correctly.
|
||||
# 3. Modify the following variable for your cross-compilation environment.
|
||||
|
||||
ECOS_DIR=/home/gui
|
||||
|
||||
ECOS_GLOBAL_CFLAGS="-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -finit-priority"
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CC=arm-elf-gcc \
|
||||
CFLAGS="-I${ECOS_DIR}/include -D__ECOS__ -D__NOUNIX__ -DUNIX=1 -mcpu=arm9 -Wall -g" \
|
||||
LDFLAGS="-nostdlib" \
|
||||
./configure --prefix=${ECOS_DIR} \
|
||||
--build=i386-linux \
|
||||
--host=arm-elf-linux \
|
||||
--target=arm-elf-linux \
|
||||
--with-osname=ecos \
|
||||
--disable-shared \
|
||||
--disable-procs \
|
||||
--disable-standalone \
|
||||
--enable-incoreres \
|
||||
--enable-rbfgb12 \
|
||||
--enable-rbfgb16 \
|
||||
--enable-rbfgb24 \
|
||||
--enable-rbf16 \
|
||||
--enable-rbf24 \
|
||||
--enable-fonthelv \
|
||||
--with-style=fashion \
|
||||
--disable-videofbcon \
|
||||
--disable-videoqvfb \
|
||||
--enable-videodummy \
|
||||
--enable-videocommlcd \
|
||||
--disable-micemoveable \
|
||||
--disable-cursor \
|
||||
--disable-textmode \
|
||||
--enable-palm2ial \
|
||||
--enable-dummyial \
|
||||
--disable-nativeial \
|
||||
--disable-qvfbial \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--disable-gbsupport \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--disable-savescreen \
|
||||
--enable-tinyscreen \
|
||||
--disable-libvcongui \
|
||||
--disable-extctrltreeview
|
||||
|
||||
62
build/buildlib-ecos-palm2-wifi
Executable file
62
build/buildlib-ecos-palm2-wifi
Executable file
@@ -0,0 +1,62 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the GNU arm-elf-tools already.
|
||||
# 2. You have set ECOS_RESPOSITORY and PATH correctly.
|
||||
# 3. Modify the following variable for your cross-compilation environment.
|
||||
|
||||
ECOS_DIR=/opt/eCos-wnc/install
|
||||
|
||||
ECOS_GLOBAL_CFLAGS="-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -finit-priority"
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CC=arm-elf-gcc \
|
||||
CFLAGS="-I${ECOS_DIR}/include -D__ECOS__ -D__NOUNIX__ -DUNIX=1 -mcpu=arm9 -Wall -g" \
|
||||
LDFLAGS="-nostdlib" \
|
||||
./configure --prefix=${ECOS_DIR} \
|
||||
--build=i386-linux \
|
||||
--host=arm-elf-linux \
|
||||
--target=arm-elf-linux \
|
||||
--with-osname=ecos \
|
||||
--disable-shared \
|
||||
--disable-procs \
|
||||
--disable-standalone \
|
||||
--enable-incoreres \
|
||||
--disable-videofbcon \
|
||||
--disable-videoqvfb \
|
||||
--enable-videodummy \
|
||||
--enable-videocommlcd \
|
||||
--disable-micemoveable \
|
||||
--disable-cursor \
|
||||
--with-style=fashion \
|
||||
--disable-textmode \
|
||||
--enable-palm2ial \
|
||||
--enable-dummyial \
|
||||
--disable-nativeial \
|
||||
--disable-qvfbial \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--disable-gbsupport \
|
||||
--enable-shiftjissupport \
|
||||
--enable-rbfkj12 \
|
||||
--enable-rbfkj14 \
|
||||
--enable-rbfkj16 \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--disable-savescreen \
|
||||
--enable-tinyscreen \
|
||||
--disable-libvcongui \
|
||||
--disable-extctrltreeview
|
||||
|
||||
63
build/buildlib-ecos-qiji-wifi
Executable file
63
build/buildlib-ecos-qiji-wifi
Executable file
@@ -0,0 +1,63 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the GNU arm-elf-tools already.
|
||||
# 2. You have set ECOS_RESPOSITORY and PATH correctly.
|
||||
# 3. Modify the following variable for your cross-compilation environment.
|
||||
|
||||
ECOS_DIR=/opt/ecos/voip_install
|
||||
|
||||
ECOS_GLOBAL_CFLAGS="-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -finit-priority"
|
||||
|
||||
rm config.cache config.status -f
|
||||
|
||||
CC=arm-elf-gcc \
|
||||
CFLAGS="-I${ECOS_DIR}/include -D__ECOS__ -D__NOUNIX__ -DUNIX=1 -mcpu=arm9 -Wall -g" \
|
||||
LDFLAGS="-nostdlib" \
|
||||
./configure --prefix=${ECOS_DIR} \
|
||||
--build=i386-linux \
|
||||
--host=arm-elf-linux \
|
||||
--target=arm-elf-linux \
|
||||
--with-osname=ecos \
|
||||
--disable-shared \
|
||||
--disable-procs \
|
||||
--disable-standalone \
|
||||
--enable-incoreres \
|
||||
--disable-videofbcon \
|
||||
--disable-videoqvfb \
|
||||
--enable-videodummy \
|
||||
--enable-videocommlcd \
|
||||
--disable-micemoveable \
|
||||
--disable-cursor \
|
||||
--with-style=fashion \
|
||||
--disable-textmode \
|
||||
--enable-palm2ial \
|
||||
--enable-dummyial \
|
||||
--disable-nativeial \
|
||||
--disable-qvfbial \
|
||||
--disable-qpfsupport \
|
||||
--disable-ttfsupport \
|
||||
--disable-type1support \
|
||||
--disable-latin9support \
|
||||
--disable-gbsupport \
|
||||
--enable-shiftjissupport \
|
||||
--enable-rbfkj12 \
|
||||
--enable-rbfkj14 \
|
||||
--enable-rbfkj16 \
|
||||
--disable-gbksupport \
|
||||
--disable-big5support \
|
||||
--disable-unicodesupport \
|
||||
--disable-savebitmap \
|
||||
--disable-jpgsupport \
|
||||
--disable-pngsupport \
|
||||
--disable-imegb2312 \
|
||||
--disable-imegb2312py \
|
||||
--disable-aboutdlg \
|
||||
--disable-savescreen \
|
||||
--enable-tinyscreen \
|
||||
--disable-libvcongui \
|
||||
--disable-extctrltreeview \
|
||||
--disable-extctrlgridview
|
||||
|
||||
5
build/buildlib-flat
Executable file
5
build/buildlib-flat
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
./configure \
|
||||
--disable-static \
|
||||
--with-style=flat
|
||||
21
build/buildlib-fz
Executable file
21
build/buildlib-fz
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Please make sure that the following things are OK:
|
||||
#
|
||||
# 1. You have installed the arm-elf-tools already.
|
||||
# 2. Your uClinux distribution has been installed into the directory of '/opt/em85xx/'.
|
||||
#
|
||||
|
||||
rm config.cache config.status -f
|
||||
PREFIX=/home/hejia/work/crosscp/local
|
||||
CC=arm-linux-gcc \
|
||||
CFLAGS="-I/home/hejia/work/crosscp/crosstool/arm-linux/include -I${PREFIX}/include" \
|
||||
CXXFLAGS="-I/home/hejia/work/crosscp/crosstool/arm-linux/include -I${PREFIX}/include" \
|
||||
LDFLAGS="-L/home/hejia/work/crosscp/crosstool/arm-linux/lib -L${PREFIX}/lib" \
|
||||
./configure --prefix=${PREFIX} \
|
||||
--enable-procs \
|
||||
--build=i686-linux \
|
||||
--host=arm-linux \
|
||||
--target=arm-linux \
|
||||
--enable-customial
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user