Skip to content

Commit 5ae2822

Browse files
committed
Added data package
1 parent eb6eaf4 commit 5ae2822

File tree

529 files changed

+109431
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

529 files changed

+109431
-69
lines changed

README

+5-33
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,10 @@
1-
X Server
1+
X Server for Android
22

3-
The X server accepts requests from client applications to create windows,
4-
which are (normally rectangular) "virtual screens" that the client program
5-
can draw into.
3+
You need to compile this code using SDL downloaded from
64

7-
Windows are then composed on the actual screen by the X server
8-
(or by a separate composite manager) as directed by the window manager,
9-
which usually communicates with the user via graphical controls such as buttons
10-
and draggable titlebars and borders.
5+
https://github.com/pelya/commandergenius
116

12-
For a comprehensive overview of X Server and X Window System, consult the
13-
following article:
14-
http://en.wikipedia.org/wiki/X_server
7+
Compilation instructions:
158

16-
All questions regarding this software should be directed at the
17-
Xorg mailing list:
18-
19-
http://lists.freedesktop.org/mailman/listinfo/xorg
20-
21-
Please submit bug reports to the Xorg bugzilla:
22-
23-
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
24-
25-
The master development code repository can be found at:
26-
27-
git://anongit.freedesktop.org/git/xorg/xserver
28-
29-
http://cgit.freedesktop.org/xorg/xserver
30-
31-
For patch submission instructions, see:
32-
33-
http://www.x.org/wiki/Development/Documentation/SubmittingPatches
34-
35-
For more information on the git code manager, see:
36-
37-
http://wiki.x.org/wiki/GitPage
9+
https://github.com/pelya/commandergenius/tree/sdl_android/project/jni/application/xserver
3810

android/build.sh

+69-32
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -x
55
export BUILDDIR=`pwd`
66

77
NCPU=4
8+
uname -s | grep -i "linux" && NCPU=`cat /proc/cpuinfo | grep -c -i processor`
89

910
NDK=`which ndk-build`
1011
NDK=`dirname $NDK`
@@ -21,7 +22,7 @@ $BUILDDIR/setCrossEnvironment.sh \
2122
./autogen.sh --host=arm-linux-androideabi \
2223
|| exit 1
2324
cd $BUILDDIR
24-
}
25+
} || exit 1
2526

2627
# =========== fontsproto ===========
2728

@@ -33,7 +34,7 @@ $BUILDDIR/setCrossEnvironment.sh \
3334
./autogen.sh --host=arm-linux-androideabi \
3435
|| exit 1
3536
cd $BUILDDIR
36-
}
37+
} || exit 1
3738

3839
# =========== xtrans ===========
3940

@@ -54,7 +55,7 @@ $BUILDDIR/setCrossEnvironment.sh \
5455

5556
cd $BUILDDIR
5657
ln -sf ../xtrans-1.2.7 X11/Xtrans
57-
}
58+
} || exit 1
5859

5960
# =========== xextproto ===========
6061

@@ -66,7 +67,7 @@ $BUILDDIR/setCrossEnvironment.sh \
6667
./autogen.sh --host=arm-linux-androideabi \
6768
|| exit 1
6869
cd $BUILDDIR
69-
}
70+
} || exit 1
7071

7172
# =========== inputproto ===========
7273

@@ -80,7 +81,7 @@ cd $BUILDDIR
8081
for F in inputproto-2.3/*.h ; do
8182
ln -sf ../$F X11/extensions/
8283
done
83-
}
84+
} || exit 1
8485

8586
# =========== kbproto ===========
8687

@@ -94,7 +95,7 @@ cd $BUILDDIR
9495
for F in kbproto-1.0.6/*.h ; do
9596
ln -sf ../$F X11/extensions/
9697
done
97-
}
98+
} || exit 1
9899

99100
# =========== xineramaproto ===========
100101

@@ -108,7 +109,7 @@ cd $BUILDDIR
108109
for F in xineramaproto-1.2.1/*.h ; do
109110
ln -sf ../$F X11/extensions/
110111
done
111-
}
112+
} || exit 1
112113

113114
# =========== renderproto ===========
114115

@@ -122,7 +123,7 @@ cd $BUILDDIR
122123
for F in renderproto-0.11.1/*.h ; do
123124
ln -sf ../$F X11/extensions/
124125
done
125-
}
126+
} || exit 1
126127

127128
# =========== xfixesproto ===========
128129

@@ -136,7 +137,7 @@ cd $BUILDDIR
136137
for F in fixesproto-5.0/*.h ; do
137138
ln -sf ../$F X11/extensions/
138139
done
139-
}
140+
} || exit 1
140141

141142
# =========== damageproto ===========
142143

@@ -150,7 +151,7 @@ cd $BUILDDIR
150151
for F in damageproto-1.2.1/*.h ; do
151152
ln -sf ../$F X11/extensions/
152153
done
153-
}
154+
} || exit 1
154155

155156
# =========== compositeproto ===========
156157

@@ -164,7 +165,7 @@ cd $BUILDDIR
164165
for F in compositeproto-0.4.2/*.h ; do
165166
ln -sf ../$F X11/extensions/
166167
done
167-
}
168+
} || exit 1
168169

169170
# =========== bigreqsproto ===========
170171

@@ -178,7 +179,7 @@ cd $BUILDDIR
178179
for F in bigreqsproto-1.1.2/*.h ; do
179180
ln -sf ../$F X11/extensions/
180181
done
181-
}
182+
} || exit 1
182183

183184
# =========== scrnsaverproto ===========
184185

@@ -192,7 +193,7 @@ cd $BUILDDIR
192193
for F in scrnsaverproto-1.2.2/*.h ; do
193194
ln -sf ../$F X11/extensions/
194195
done
195-
}
196+
} || exit 1
196197

197198
# =========== videoproto ===========
198199

@@ -206,7 +207,7 @@ cd $BUILDDIR
206207
for F in videoproto-2.3.2/*.h ; do
207208
ln -sf ../$F X11/extensions/
208209
done
209-
}
210+
} || exit 1
210211

211212
# =========== resourceproto ===========
212213

@@ -220,7 +221,7 @@ cd $BUILDDIR
220221
for F in resourceproto-1.2.0/*.h ; do
221222
ln -sf ../$F X11/extensions/
222223
done
223-
}
224+
} || exit 1
224225

225226
# =========== xcmiscproto ===========
226227

@@ -234,7 +235,7 @@ cd $BUILDDIR
234235
for F in xcmiscproto-1.2.2/*.h ; do
235236
ln -sf ../$F X11/extensions/
236237
done
237-
}
238+
} || exit 1
238239

239240
# =========== randrproto ===========
240241

@@ -248,7 +249,7 @@ cd $BUILDDIR
248249
for F in randrproto-1.4.0/*.h ; do
249250
ln -sf ../$F X11/extensions/
250251
done
251-
}
252+
} || exit 1
252253

253254
# =========== xf86bigfontproto ===========
254255

@@ -262,7 +263,7 @@ cd $BUILDDIR
262263
for F in xf86bigfontproto-1.2.0/*.h ; do
263264
ln -sf ../$F X11/extensions/
264265
done
265-
}
266+
} || exit 1
266267

267268
# =========== recordproto ===========
268269

@@ -276,7 +277,7 @@ cd $BUILDDIR
276277
for F in recordproto-1.14.2/*.h ; do
277278
ln -sf ../$F X11/extensions/
278279
done
279-
}
280+
} || exit 1
280281

281282
# =========== libpixman-1.a ===========
282283

@@ -298,7 +299,7 @@ make -j$NCPU V=1 2>&1 || exit 1
298299

299300
cd $BUILDDIR
300301
ln -sf $BUILDDIR/pixman-0.30.2/pixman/.libs/libpixman-1.a $BUILDDIR/libpixman-1.a
301-
}
302+
} || exit 1
302303

303304
# =========== libfontenc.a ===========
304305

@@ -329,7 +330,7 @@ make -j$NCPU V=1 2>&1 || exit 1
329330
cd $BUILDDIR
330331
ln -sf ../libfontenc-1.1.2/include/X11/fonts/fontenc.h X11/fonts/
331332
ln -sf libfontenc-1.1.2/src/.libs/libfontenc.a ./
332-
}
333+
} || exit 1
333334

334335
# =========== libXfont.a ===========
335336

@@ -368,7 +369,7 @@ ln -sf libXfont-1.4.6/src/.libs/libXfont.a ./
368369
for F in libXfont-1.4.6/include/X11/fonts/* ; do
369370
ln -sf ../$F X11/fonts/
370371
done
371-
}
372+
} || exit 1
372373

373374
# =========== libXau.a ==========
374375

@@ -401,7 +402,7 @@ make -j$NCPU V=1 2>&1 || exit 1
401402
cd $BUILDDIR
402403
ln -sf libXau-1.0.8/.libs/libXau.a ./
403404
ln -sf ../libXau-1.0.8/include/X11/Xauth.h X11/
404-
}
405+
} || exit 1
405406

406407
# =========== libXdmcp.a ==========
407408

@@ -434,7 +435,7 @@ make -j$NCPU V=1 2>&1 || exit 1
434435
cd $BUILDDIR
435436
ln -sf libXdmcp-1.1.1/.libs/libXdmcp.a ./
436437
ln -sf ../libXdmcp-1.1.1/include/X11/Xdmcp.h X11/
437-
}
438+
} || exit 1
438439

439440
# =========== xcbproto ===========
440441
[ -e proto-1.8 ] || {
@@ -446,7 +447,7 @@ $BUILDDIR/setCrossEnvironment.sh \
446447
$BUILDDIR/setCrossEnvironment.sh \
447448
make -j$NCPU V=1 2>&1 || exit 1
448449
cd $BUILDDIR
449-
}
450+
} || exit 1
450451

451452
# =========== libxcb.a ==========
452453

@@ -482,7 +483,7 @@ mkdir -p xcb
482483
ln -sf ../libxcb-1.9.1/src/xcb.h xcb/
483484
ln -sf ../libxcb-1.9.1/src/xproto.h xcb/
484485
ln -sf ../libxcb-1.9.1/src/xcbext.h xcb/
485-
}
486+
} || exit 1
486487

487488
[ -e libandroid_support.a ] || {
488489
mkdir -p android_support
@@ -495,7 +496,7 @@ sh -c '$CC $CFLAGS -Drestrict=__restrict__ -ffunction-sections -fdata-sections \
495496
ar rcs ../libandroid_support.a *.o' \
496497
|| exit 1
497498
cd $BUILDDIR
498-
}
499+
} || exit 1
499500

500501
# =========== libX11.a ==========
501502

@@ -535,7 +536,7 @@ ln -sf libX11-1.6.2/src/.libs/libX11.a ./
535536
for F in libX11-1.6.2/include/X11/*.h ; do
536537
ln -sf ../$F X11
537538
done
538-
}
539+
} || exit 1
539540

540541
# =========== libxkbfile.a ==========
541542

@@ -571,7 +572,42 @@ ln -sf libxkbfile-1.0.8/src/.libs/libxkbfile.a ./
571572
for F in libxkbfile-1.0.8/include/X11/extensions/*.h ; do
572573
ln -sf ../$F X11/extensions/
573574
done
574-
}
575+
} || exit 1
576+
577+
# =========== xkbcomp binary ==========
578+
579+
[ -e xkbcomp ] || {
580+
curl http://cgit.freedesktop.org/xorg/app/xkbcomp/snapshot/xkbcomp-1.2.4.tar.gz | tar xvz || exit 1
581+
582+
cd xkbcomp-1.2.4
583+
584+
[ -e configure ] || \
585+
autoreconf -v --install \
586+
|| exit 1
587+
588+
env CFLAGS="-isystem$BUILDDIR \
589+
-include strings.h" \
590+
LDFLAGS="-L$BUILDDIR" \
591+
LIBS="-lxcb -lXau -lXdmcp -landroid_support -lX11" \
592+
$BUILDDIR/setCrossEnvironment.sh \
593+
./configure \
594+
--host=arm-linux-androideabi \
595+
|| exit 1
596+
597+
cp -f `which libtool` ./
598+
599+
$BUILDDIR/setCrossEnvironment.sh \
600+
sh -c 'ln -sf $CC gcc'
601+
602+
env PATH=`pwd`:$PATH \
603+
$BUILDDIR/setCrossEnvironment.sh \
604+
make -j$NCPU V=1 2>&1 || exit 1
605+
606+
cd $BUILDDIR
607+
cp -f xkbcomp-1.2.4/xkbcomp ./
608+
$BUILDDIR/setCrossEnvironment.sh \
609+
sh -c '$STRIP xkbcomp'
610+
} || exit 1
575611

576612
# =========== xsdl ==========
577613

@@ -582,7 +618,7 @@ ln -sf $NDK/sources/android/libportable/libs/armeabi-v7a/libportable.a $BUILDDIR
582618
[ -z "$PACKAGE_NAME" ] && PACKAGE_NAME=X.org.server
583619

584620
[ -e Makefile ] || \
585-
env CFLAGS=" \
621+
env CFLAGS=" -DDEBUG \
586622
-isystem$BUILDDIR \
587623
-include strings.h\
588624
-include linux/time.h \
@@ -595,13 +631,14 @@ LDFLAGS="-L$BUILDDIR" \
595631
LIBS="-lfontenc -lfreetype -llog" \
596632
../configure \
597633
--host=arm-linux-androideabi \
598-
--prefix=/sdcard/Android/data/$PACKAGE_NAME/files/usr \
634+
--prefix=$TARGET_DIR/usr \
635+
--with-xkb-output=$TARGET_DIR/tmp \
599636
--disable-xorg --disable-dmx --disable-xvfb --disable-xnest --disable-xquartz --disable-xwin \
600637
--disable-xephyr --disable-xfake --disable-xfbdev --disable-unit-tests --disable-tslib \
601638
--disable-shm --disable-mitshm --disable-dri --disable-dri2 --disable-glx --disable-xf86vidmode \
602639
--enable-xsdl --enable-kdrive --enable-kdrive-kbd --enable-kdrive-mouse --enable-kdrive-evdev \
603640
|| exit 1
604641

605-
{ ./setCrossEnvironment.sh make -j$NCPU V=1 2>&1 || exit 1 ; } | tee build.log
642+
./setCrossEnvironment.sh make -j$NCPU V=1 2>&1 || exit 1
606643

607644
exit 0

data/busybox

828 KB
Binary file not shown.

data/data-1.tgz

1.29 MB
Binary file not shown.

data/usr/bin/xkbcomp

1.08 MB
Binary file not shown.

0 commit comments

Comments
 (0)