Skip to content

Commit 7308fb7

Browse files
committed
Fixes to xkbcomp invocation
1 parent 5ae2822 commit 7308fb7

File tree

9 files changed

+26
-10
lines changed

9 files changed

+26
-10
lines changed

android/build.sh

+8
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ env CFLAGS="-isystem$BUILDDIR -include strings.h" \
316316
$BUILDDIR/setCrossEnvironment.sh \
317317
./configure \
318318
--host=arm-linux-androideabi \
319+
--prefix=$TARGET_DIR/usr \
319320
|| exit 1
320321

321322
cp -f `which libtool` ./
@@ -353,6 +354,7 @@ LDFLAGS="-L$BUILDDIR" \
353354
$BUILDDIR/setCrossEnvironment.sh \
354355
./configure \
355356
--host=arm-linux-androideabi \
357+
--prefix=$TARGET_DIR/usr \
356358
|| exit 1
357359

358360
cp -f `which libtool` ./
@@ -388,6 +390,7 @@ LDFLAGS="-L$BUILDDIR" \
388390
$BUILDDIR/setCrossEnvironment.sh \
389391
./configure \
390392
--host=arm-linux-androideabi \
393+
--prefix=$TARGET_DIR/usr \
391394
|| exit 1
392395

393396
cp -f `which libtool` ./
@@ -421,6 +424,7 @@ LDFLAGS="-L$BUILDDIR" \
421424
$BUILDDIR/setCrossEnvironment.sh \
422425
./configure \
423426
--host=arm-linux-androideabi \
427+
--prefix=$TARGET_DIR/usr \
424428
|| exit 1
425429

426430
cp -f `which libtool` ./
@@ -466,6 +470,7 @@ LDFLAGS="-L$BUILDDIR" \
466470
$BUILDDIR/setCrossEnvironment.sh \
467471
./configure \
468472
--host=arm-linux-androideabi \
473+
--prefix=$TARGET_DIR/usr \
469474
|| exit 1
470475

471476
cp -f `which libtool` ./
@@ -516,6 +521,7 @@ $BUILDDIR/setCrossEnvironment.sh \
516521
LIBS="-lXau -lXdmcp -landroid_support" \
517522
./configure \
518523
--host=arm-linux-androideabi \
524+
--prefix=$TARGET_DIR/usr \
519525
|| exit 1
520526

521527
cp -f `which libtool` ./
@@ -556,6 +562,7 @@ LIBS="-lxcb -lXau -lXdmcp -landroid_support" \
556562
$BUILDDIR/setCrossEnvironment.sh \
557563
./configure \
558564
--host=arm-linux-androideabi \
565+
--prefix=$TARGET_DIR/usr \
559566
|| exit 1
560567

561568
cp -f `which libtool` ./
@@ -592,6 +599,7 @@ LIBS="-lxcb -lXau -lXdmcp -landroid_support -lX11" \
592599
$BUILDDIR/setCrossEnvironment.sh \
593600
./configure \
594601
--host=arm-linux-androideabi \
602+
--prefix=$TARGET_DIR/usr \
595603
|| exit 1
596604

597605
cp -f `which libtool` ./

configure-xsdl.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
env SDL=yes CFLAGS="-O0 -g" \
2+
env SDL=yes CFLAGS="-O0 -g -DDEBUG" \
33
./configure --prefix=`pwd`/data/usr \
44
--enable-debug \
55
--disable-xorg --disable-dmx --disable-xvfb --disable-xnest --disable-xquartz --disable-xwin \

data/archive.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
tar cvfz data-1.tgz usr tmp

data/data-1.tgz

102 Bytes
Binary file not shown.

data/usr/bin/xkbcomp

0 Bytes
Binary file not shown.

include/os.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ extern _X_EXPORT void OsReleaseSignals (void);
306306

307307
extern _X_EXPORT void OsAbort (void) _X_NORETURN;
308308

309-
#if !defined(WIN32)
309+
#if !defined(WIN32) && !defined(__ANDROID__)
310310
extern _X_EXPORT int System(char *);
311311
extern _X_EXPORT pointer Popen(char *, char *);
312312
extern _X_EXPORT int Pclose(pointer);

os/utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ OsAbort (void)
12301230
abort();
12311231
}
12321232

1233-
#if !defined(WIN32)
1233+
#if !defined(WIN32) && !defined(__ANDROID__)
12341234
/*
12351235
* "safer" versions of system(3), popen(3) and pclose(3) which give up
12361236
* all privs before running a command.

start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
./Xsdl :1111 -screen 640x480x24 # -mouse mouse -keybd keyboard
3+
./Xsdl :1111 -screen 640x480x24 -mouse mouse -keybd keyboard

xkb/ddxLoad.c

+11-6
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
5757
#define XKM_OUTPUT_DIR "compiled/"
5858
#endif
5959

60-
#define PRE_ERROR_MSG "\"The XKEYBOARD keymap compiler (xkbcomp) reports:\""
61-
#define ERROR_PREFIX "\"> \""
62-
#define POST_ERROR_MSG1 "\"Errors from xkbcomp are not fatal to the X server\""
63-
#define POST_ERROR_MSG2 "\"End of messages from xkbcomp\""
60+
#define PRE_ERROR_MSG "xkbcomp:"
61+
#define ERROR_PREFIX "---"
62+
#define POST_ERROR_MSG1 "======="
6463

6564
#if defined(WIN32)
6665
#define PATHSEPARATOR "\\"
@@ -223,8 +222,8 @@ XkbDDXCompileKeymapByNames( XkbDescPtr xkb,
223222
}
224223

225224
if (asprintf(&buf,
226-
"\"%s%sxkbcomp\" -w %d %s -xkm \"%s\" "
227-
"-em1 %s -emp %s -eml %s \"%s%s.xkm\"",
225+
"%s%sxkbcomp -w %d %s -xkm %s "
226+
"-em1 %s -emp %s -eml %s %s%s.xkm",
228227
xkbbindir, xkbbindirsep,
229228
((xkbDebugFlags < 2) ? 1 :
230229
((xkbDebugFlags > 10) ? 10 : (int) xkbDebugFlags)),
@@ -250,7 +249,13 @@ XkbDDXCompileKeymapByNames( XkbDescPtr xkb,
250249
#ifdef DEBUG
251250
if (xkbDebugFlags) {
252251
ErrorF("[xkb] XkbDDXCompileKeymapByNames compiling keymap:\n");
252+
#ifdef __ANDROID__
253+
//FILE * dbg = fopen("/sdcard/xkb-input.txt", "wb");
254+
//XkbWriteXKBKeymapForNames(dbg,names,xkb,want,need);
255+
//fclose(dbg);
256+
#else
253257
XkbWriteXKBKeymapForNames(stderr,names,xkb,want,need);
258+
#endif
254259
}
255260
#endif
256261
XkbWriteXKBKeymapForNames(out,names,xkb,want,need);

0 commit comments

Comments
 (0)