build cross-compiled version. edje on ipaq's :)
SVN revision: 7126
This commit is contained in:
parent
ca61ad785b
commit
426a67340f
|
@ -32,5 +32,6 @@ dist-hook:
|
|||
|
||||
bin_SCRIPTS = edje-config
|
||||
|
||||
EXTRA_DIST = README AUTHORS COPYING COPYING-PLAIN edje.spec edje.c.in gendoc Doxyfile edje_docs.tar.gz
|
||||
EXTRA_DIST = README AUTHORS COPYING COPYING-PLAIN edje.spec edje.c.in gendoc Doxyfile edje_docs.tar.gz \
|
||||
make_cross_compile_arm.sh
|
||||
|
||||
|
|
|
@ -0,0 +1,72 @@
|
|||
#!/bin/sh
|
||||
|
||||
make clean distclean
|
||||
./configure
|
||||
|
||||
CC="/skiff/local/bin/arm-linux-gcc"
|
||||
ST="/skiff/local/bin/arm-linux-strip"
|
||||
CFLAGS="-O2"
|
||||
|
||||
rm -rf "build"
|
||||
mkdir "build"
|
||||
DST=`pwd`"/build";
|
||||
|
||||
mkdir $DST"/lib";
|
||||
mkdir $DST"/bin";
|
||||
mkdir $DST"/include";
|
||||
mkdir $DST"/share";
|
||||
mkdir $DST"/share/edje";
|
||||
|
||||
pushd src
|
||||
|
||||
pushd lib
|
||||
LIB="edje"
|
||||
$CC \
|
||||
*.c \
|
||||
-DEDJE_FB_ONLY \
|
||||
$CFLAGS \
|
||||
-I. \
|
||||
-I../.. \
|
||||
-I/skiff/local/include \
|
||||
-shared -fPIC -DPIC \
|
||||
-Wl,-soname -Wl,"lib"$LIB".so.0" \
|
||||
-o "lib"$LIB".so.0.0.1"
|
||||
$ST -g "lib"$LIB".so.0.0.1"
|
||||
rm -f "lib"$LIB".so"
|
||||
ln -s "lib"$LIB".so.0.0.1" "lib"$LIB".so"
|
||||
rm -f "lib"$LIB".so.0"
|
||||
ln -s "lib"$LIB".so.0.0.1" "lib"$LIB".so.0"
|
||||
rm -f "lib"$LIB".so.0.0"
|
||||
ln -s "lib"$LIB".so.0.0.1" "lib"$LIB".so.0.0"
|
||||
cp -a "lib"$LIB".so"* $DST"/lib";
|
||||
cp -a Edje.h $DST"/include";
|
||||
popd
|
||||
|
||||
pushd bin
|
||||
BIN="edje"
|
||||
$CC edje_main.c \
|
||||
-DEDJE_FB_ONLY \
|
||||
-I../.. -I../lib \
|
||||
-I. \
|
||||
-I/skiff/local/include \
|
||||
-L. -L../lib \
|
||||
-L/skiff/local/lib \
|
||||
-ledje \
|
||||
-lecore -lecore_evas -lecore_fb -lecore_ipc -lecore_con -lecore_job \
|
||||
-levas -leet -ljpeg -lpng -lfreetype -lm -lz \
|
||||
-o $BIN
|
||||
$ST $BIN
|
||||
cp -a $BIN $DST"/bin";
|
||||
popd
|
||||
popd
|
||||
|
||||
mkdir $DST"/share/edje/data"
|
||||
cp -ar data/test data/e_logo.eet $DST"/share/edje/data"
|
||||
|
||||
PD=`pwd`
|
||||
pushd "build"
|
||||
tar zcvf $PD"/data.tar.gz" *
|
||||
pushd "/skiff/local"
|
||||
sudo tar zxvf $PD"/data.tar.gz"
|
||||
popd
|
||||
popd
|
|
@ -3,7 +3,11 @@
|
|||
|
||||
#include <Evas.h>
|
||||
#include <Ecore.h>
|
||||
#ifndef EDJE_FB_ONLY
|
||||
#include <Ecore_X.h>
|
||||
#else
|
||||
#include <Ecore_Fb.h>
|
||||
#endif
|
||||
#include <Ecore_Evas.h>
|
||||
/* ... only for testing */
|
||||
#include <Eet.h>
|
||||
|
|
|
@ -46,24 +46,11 @@ main_start(int argc, char **argv)
|
|||
ecore_app_args_set(argc, (const char **)argv);
|
||||
ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, main_signal_exit, NULL);
|
||||
if (!ecore_evas_init()) return -1;
|
||||
#if 0
|
||||
if ((argc > 1) && (!strcmp(argv[1], "-fb")))
|
||||
ecore_evas = ecore_evas_fb_new(NULL, 0, 240, 320);
|
||||
else if ((argc > 1) && (!strcmp(argv[1], "-x")))
|
||||
ecore_evas = ecore_evas_software_x11_new(NULL, 0, 0, 0, 240, 320);
|
||||
else if ((argc > 1) && (!strcmp(argv[1], "-h")))
|
||||
{
|
||||
printf("%s -x Run in X (default)\n"
|
||||
"%s -fb Run in the Framebuffer\n"
|
||||
"%s -h Display this help\n",
|
||||
argv[0], argv[0], argv[0]);
|
||||
ecore_evas_shutdown();
|
||||
ecore_shutdown();
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
ecore_evas = ecore_evas_software_x11_new(NULL, 0, 0, 0, 240, 320);
|
||||
#ifndef EDJE_FB_ONLY
|
||||
ecore_evas = ecore_evas_software_x11_new(NULL, 0, 0, 0, 240, 320);
|
||||
#else
|
||||
ecore_evas = ecore_evas_fb_new(NULL, 0, 240, 320);
|
||||
#endif
|
||||
if (!ecore_evas) return -1;
|
||||
ecore_evas_callback_delete_request_set(ecore_evas, main_delete_request);
|
||||
ecore_evas_callback_resize_set(ecore_evas, main_resize);
|
||||
|
|
|
@ -25,7 +25,12 @@ extern "C" {
|
|||
void edje_object_part_geometry_get (Evas_Object *o, const char *part, double *x, double *y, double *w, double *h);
|
||||
void edje_object_part_text_set (Evas_Object *o, const char *part, const char *text);
|
||||
const char *edje_object_part_text_get (Evas_Object *o, const char *part);
|
||||
|
||||
|
||||
#if 0
|
||||
void edje_object_color_class_set (Evas_Object *o, const char *color_class, int r, int g, int b, int a);
|
||||
void edje_object_text_class_set (Evas_Object *o, const char *text_class, const char *font, double size);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -41,6 +41,7 @@ _edje_mouse_down_cb(void *data, Evas * e, Evas_Object * obj, void *event_info)
|
|||
ed = data;
|
||||
rp = evas_object_data_get(obj, "real_part");
|
||||
if (!rp) return;
|
||||
#ifndef EDJE_FB_ONLY
|
||||
if (ecore_event_current_type_get() == ECORE_X_EVENT_MOUSE_BUTTON_DOWN)
|
||||
{
|
||||
Ecore_X_Event_Mouse_Button_Down *evx;
|
||||
|
@ -59,6 +60,7 @@ _edje_mouse_down_cb(void *data, Evas * e, Evas_Object * obj, void *event_info)
|
|||
snprintf(buf, sizeof(buf), "mouse,down,%i", ev->button);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
snprintf(buf, sizeof(buf), "mouse,down,%i", ev->button);
|
||||
if (rp->clicked_button == 0)
|
||||
{
|
||||
|
|
|
@ -5,7 +5,11 @@
|
|||
|
||||
#include <Evas.h>
|
||||
#include <Ecore.h>
|
||||
#ifndef EDJE_FB_ONLY
|
||||
#include <Ecore_X.h>
|
||||
#else
|
||||
#include <Ecore_Fb.h>
|
||||
#endif
|
||||
#include <Eet.h>
|
||||
|
||||
#include <math.h>
|
||||
|
@ -33,8 +37,10 @@
|
|||
*
|
||||
* externally sourced images need to be supported in edje_cc and edje
|
||||
*
|
||||
* need to detect relative part loops
|
||||
* need to detect rel1_to part loops
|
||||
* need to detect rel2_to part loops
|
||||
* need to detect clip_to part loops
|
||||
* need to detect confine_to part loops
|
||||
*
|
||||
* edje_cc should be able to force lossy, lossless, min and max quality and compression of encoded images
|
||||
* edje_cc needs to prune out unused images
|
||||
|
|
Loading…
Reference in New Issue