From f14ae9b3dbf3431aef3f59a89a3854ee17a7b8d4 Mon Sep 17 00:00:00 2001 From: JosePereira Date: Mon, 11 Jun 2012 21:34:59 +0100 Subject: [PATCH] updated readme --- README | 41 ++++++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/README b/README index 46198fa..3ebace8 100644 --- a/README +++ b/README @@ -1,22 +1,33 @@ -The droid-VNC-server projects consists in two parts: the daemon and GUI. +The droid-VNC-server projects consists in three main modules parts: the daemon, wrapper libs and the GUI. -GUI handles general user input, and connects to the daemon using local IPC. You can compile it using Eclipse or Ant (the latter not tested though). +- Daemon - +Provides the vnc server functionality, injects input/touch events, clipboard management, etc +Available in jni/ folder -If you wish to contribute to the project, just fork it and commit some interesting features... +- Wrapper libs - +Compiled against the AOSP so everyone can build the daemon/GUI without having to fetch +2GB files. +Currently there are 2 wrappers, gralloc and flinger. --------------- Compile C daemon ------------------- -NOTE: to compile the C daemon you must have a working AOSP source tree, and copy it to external folder. -Do something like: +Available in nativeMethods/ folder, and precompiled libs in nativeMethods/lib/ -$AOSP_SRC=/path/to/aosp -$VNC_DAEMON=/path_to_vnc/droidvncdaemon +- GUI - +GUI handles user-friendly control. +Connects to the daemon using local IPC. -cp -fr $VNC_DAEMON/droidvncdaemon $AOSP_SRC -cd $AOSP_SRC -. build/envsetup.sh -# lunch -mmm external/droidvncdaemon +-------------- Compile C daemon --------------------- +On project folder: + $ ndk-build + $ cp libs/armeabi/androidvncserver /res/raw -Thats it. You will have androidvncserver_froyo (for 2.2 down) and androidvncserver_ginger (for 2.3+) in $AOSP_SRC/out/target/product/generic/system/bin/ +-------------- Compile Wrapper libs ----------------- + $ cd + $ . build/envsetup.sh + $ lunch + $ ln -s /nativeMethods/ external/ -I think this process is quite difficult, anyone knows how to build external packages outside AOSP tree? +To build: + $ mm external/nativeMethods + + +-------------- Compile GUI------- ------------------- +Import using eclipse as a regular Android project