maemo/%.o: maemo/%.c
USE_PLUGIN_LIB = 1
LDFLAGS += $(shell pkg-config --libs hildon-1 libpulse)
-EXTRA_CFLAGS += $(shell pkg-config --cflags hildon-1) -DHAVE_TSLIB
-#EXTRA_CFLAGS += -DMAEMO -DMAEMO_CHANGES -march=armv7-a -O3 -mtune=cortex-a8 -mfpu=neon -funsafe-math-optimizations \
-# -mstructure-size-boundary=32 -falign-functions=32 -falign-loops
-CFLAGS += $(EXTRA_CFLAGS)
+CFLAGS += $(shell pkg-config --cflags hildon-1) -DHAVE_TSLIB
CFLAGS += `pkg-config --cflags glib-2.0 libosso dbus-1 hildon-fm-2`
LDFLAGS += `pkg-config --libs glib-2.0 libosso dbus-1 hildon-fm-2`
endif
need_sdl="yes"
;;
maemo)
- maemo_cflags=`pkg-config --cflags hildon-1`
- maemo_ldlibs=`pkg-config --libs hildon-1`
- CFLAGS="$CFLAGS -DMAEMO -DMAEMO_CHANGES $maemo_cflags"
- MAIN_LDLIBS="$MAIN_LDLIBS $maemo_ldlibs"
+ CFLAGS="$CFLAGS -DMAEMO -DMAEMO_CHANGES"
;;
libretro)
CFLAGS="$CFLAGS -fPIC"
in_keystate = actions[IN_BINDTYPE_PLAYER12];
}
#else /* MAEMO */
-#include <gtk/gtk.h>
-static void update_input(void)
-{
- extern int g_maemo_opts;
- extern int maemo_x11_update_keys();
- if (g_maemo_opts&8)
- maemo_x11_update_keys();
- else{
- /* process GTK+ events */
- while (gtk_events_pending())
- gtk_main_iteration();
- }
-}
+extern void update_input(void);
#endif
void pl_update_gun(int *xn, int *yn, int *xres, int *yres, int *in)
}
}
+ return pl_vout_buf;
+}
+
+// for frontend/plugin_lib.c
+void update_input(void)
+{
if (g_maemo_opts & 8)
maemo_x11_update_keys();
- else{
- //process GTK+ events
- while (gtk_events_pending())
- gtk_main_iteration();
+ else {
+ /* process GTK+ events */
+ while (gtk_events_pending())
+ gtk_main_iteration();
}
-
- return pl_vout_buf;
}
int omap_enable_layer(int enabled)