Commit Graph

90 Commits (4345201e0ea70ee8e3adf6c03e906ecf28e1bf75)

Author SHA1 Message Date
NiLuJe 77314e48c4
kodev: Make the directory finding code work as intended (probably?) (#6935)
It was blowing up when it found multiple matches.

* Pick the most recent one in case of multiples
3 years ago
Martín Fernández 1adea4a497 Add macOS target
Co-authored-by: Jason Benwell <jbenwell@hotmail.com>
4 years ago
Frans de Jonge 8a61e70fad
[fix] Bring kodev cov command in line with kodev test (#6341) 4 years ago
NiLuJe 12e54a17b3
Get rid of the old PB TC (#5860) 4 years ago
Martín Fernández 67627ce2d9
Remarkable port (#5828)
Touchscreen is mirrored in X & Y and has a different resolution from the eink panel.

Uses systemd for time/date/suspend/poweroff/reboot
Two systemd units for platform integration. button-listen is a very
simple launcher.
to-do: add support for wifi by implementing  a wpa supplicant dbus client.

Authored-by: Thomas Spurden <tcrs@users.noreply.github.com>
4 years ago
Frans de Jonge 668eee97fa
[CI] Add curly braces check (#5809)
Update shellcheck and shfmt to the latest version.

Fixes <https://github.com/koreader/koreader/issues/5152>.

Btw, you can apply shellcheck suggestions with a command like:

```
shellcheck --include=SC2250 -f diff *.sh | git apply
```
4 years ago
yparitcher 0f896765c3 transifex -> weblate fixes (#5722) 4 years ago
Frans de Jonge afd277901a
[fix] Prevent double library loads (#5607)
As per @NiLuJe's suggestions from <https://github.com/koreader/koreader/pull/5598#issuecomment-554767891>.

I'm not super happy with this but being able to easily run the emulator is the most important thing.
5 years ago
Frans de Jonge c7079c80be
[fix] kodev: Allow nightly build to succeed (#5507)
Translations live in a submodule since <https://github.com/koreader/koreader/pull/5506>,
and without initialized submodules `kodev release` will therefore fail.

The specifics need a fair bit more attention once Weblate has been set up, but this should
suffice for the nightly/stable build to succeed.
5 years ago
Martín Fernández 4910dbc6d2 android: migrate from lzma to zip file 5 years ago
B YI 53b77e3ae4 [shell] Avoid hard-coded path (#5197)
Although the current hard-coded paths work on debian, they may fail on many other distros. Other distros may pack koreader based on the released deb file. I personally have problem using current script on nixos, as it does not use the paths `/bin/bash` and `/usr/lib/`.
5 years ago
Martín Fernández 64cc7e0827 [Android] update ndk/sdk paths on demand, bump sdk tools.. (#5103) 5 years ago
Frans de Jonge 5690998124
kodev: pass correct --lpath for base test (#4973) 5 years ago
Frans de Jonge 27ddd6f313
[spec] Better insulation (#4972)
Some combination of Travis and/or older Busted necessitated insufficient insulation.

Follow-up to https://github.com/koreader/koreader/pull/4970

Space condensing carried over; reset at the start of readertoc.
5 years ago
Frans de Jonge e869041632
[chore] kodev: make kodev test consistent with build & run (#4969) 5 years ago
Qingping Hou 11a38b33f1 kodev: stop test command if build failed 5 years ago
Qingping Hou e29c2275ef add check command to kodev 5 years ago
Martín Fernández ae0861eda8 [Android] Set flavor at build time 5 years ago
Frans de Jonge 48af47109f
[Android] kodev run android: show all errors (#4569)
It will introduce some minor noise, but too much stuff is simply not seen otherwise, for example:

*:E
```
02-09 12:45:53.359  2580  2609 E IconLoader: Unexpected null component name or activity info: ComponentInfo{org.koreader.launcher/org.koreader.launcher.MainActivity}, null
```

*:F
```
--------- beginning of system
--------- beginning of main
--------- beginning of crash
02-09 12:47:31.275  4985  5003 F libc    : /home/frans/src/kobo/koreader/base/thirdparty/filemq/build/i686-linux-android-debug/filemq-prefix/src/filemq/src/fmq_client.c:170: fmq_client_set_resync: assertion "self" failed
02-09 12:47:31.275  4985  5003 F libc    : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 5003 (Thread-37), pid 4985 (reader.launcher)
02-09 12:47:31.512  5085  5085 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-09 12:47:31.512  5085  5085 F DEBUG   : Build fingerprint: 'Android/sdk_phone_x86_64/generic_x86_64:9/PSR1.180720.012/4923214:userdebug/test-keys'
02-09 12:47:31.512  5085  5085 F DEBUG   : Revision: '0'
02-09 12:47:31.513  5085  5085 F DEBUG   : ABI: 'x86'
02-09 12:47:31.513  5085  5085 F DEBUG   : pid: 4985, tid: 5003, name: Thread-37  >>> org.koreader.launcher <<<
02-09 12:47:31.513  5085  5085 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
02-09 12:47:31.513  5085  5085 F DEBUG   : Abort message: '/home/frans/src/kobo/koreader/base/thirdparty/filemq/build/i686-linux-android-debug/filemq-prefix/src/filemq/src/fmq_client.c:170: fmq_client_set_resync: assertion "self" failed'
02-09 12:47:31.513  5085  5085 F DEBUG   :     eax 00000000  ebx 00001379  ecx 0000138b  edx 00000006
02-09 12:47:31.513  5085  5085 F DEBUG   :     edi 00000000  esi 00000000
02-09 12:47:31.513  5085  5085 F DEBUG   :     ebp 33167a17  esp de3e9528  eip f70d8b59
02-09 12:47:31.515  5085  5085 F DEBUG   : 
02-09 12:47:31.515  5085  5085 F DEBUG   : backtrace:
02-09 12:47:31.515  5085  5085 F DEBUG   :     #00 pc 00000b59  [vdso:f70d8000] (__kernel_vsyscall+9)
02-09 12:47:31.515  5085  5085 F DEBUG   :     #01 pc 0001fc08  /system/lib/libc.so (syscall+40)
02-09 12:47:31.515  5085  5085 F DEBUG   :     #02 pc 000321f3  /system/lib/libc.so (abort+115)
02-09 12:47:31.515  5085  5085 F DEBUG   :     #03 pc 00032681  /system/lib/libc.so (__assert2+49)
02-09 12:47:31.515  5085  5085 F DEBUG   :     #04 pc 000046b0  /data/data/org.koreader.launcher/files/libs/libfmq.so.1
02-09 12:47:31.515  5085  5085 F DEBUG   :     #05 pc 00008e54  /data/app/org.koreader.launcher-u3tYrWEK7wgvoJGvd1pTrA==/lib/x86/libluajit.so
02-09 12:47:31.515  5085  5085 F DEBUG   :     #06 pc 00056a61  /data/app/org.koreader.launcher-u3tYrWEK7wgvoJGvd1pTrA==/lib/x86/libluajit.so
02-09 12:47:31.515  5085  5085 F DEBUG   :     #07 pc 0006ed92  /data/app/org.koreader.launcher-u3tYrWEK7wgvoJGvd1pTrA==/lib/x86/libluajit.so
02-09 12:47:31.515  5085  5085 F DEBUG   :     #08 pc 00006fc9  /data/app/org.koreader.launcher-u3tYrWEK7wgvoJGvd1pTrA==/lib/x86/libluajit.so
02-09 12:47:31.515  5085  5085 F DEBUG   :     #09 pc 00061f73  /data/app/org.koreader.launcher-u3tYrWEK7wgvoJGvd1pTrA==/lib/x86/libluajit.so
02-09 12:47:31.515  5085  5085 F DEBUG   :     #10 pc 00006fc9  /data/app/org.koreader.launcher-u3tYrWEK7wgvoJGvd1pTrA==/lib/x86/libluajit.so
02-09 12:47:31.515  5085  5085 F DEBUG   :     #11 pc 00061f73  /data/app/org.koreader.launcher-u3tYrWEK7wgvoJGvd1pTrA==/lib/x86/libluajit.so
02-09 12:47:31.515  5085  5085 F DEBUG   :     #12 pc 00006fc9  /data/app/org.koreader.launcher-u3tYrWEK7wgvoJGvd1pTrA==/lib/x86/libluajit.so
02-09 12:47:31.515  5085  5085 F DEBUG   :     #13 pc 0001c470  /data/app/org.koreader.launcher-u3tYrWEK7wgvoJGvd1pTrA==/lib/x86/libluajit.so (lua_pcall+80)
02-09 12:47:31.515  5085  5085 F DEBUG   :     #14 pc 0000571a  /data/app/org.koreader.launcher-u3tYrWEK7wgvoJGvd1pTrA==/lib/x86/libluajit.so (android_main+458)
02-09 12:47:31.515  5085  5085 F DEBUG   :     #15 pc 00070a38  /data/app/org.koreader.launcher-u3tYrWEK7wgvoJGvd1pTrA==/lib/x86/libluajit.so
02-09 12:47:31.515  5085  5085 F DEBUG   :     #16 pc 0009cce5  /system/lib/libc.so (__pthread_start(void*)+53)
02-09 12:47:31.515  5085  5085 F DEBUG   :     #17 pc 00033c1b  /system/lib/libc.so (__start_thread+75)
```
5 years ago
Frans de Jonge 32bbf17003
[Android] Update logcat command for kodev run android (#4516)
This filters out useless messages using the "intended" way (without
grep).
5 years ago
Martín Fernández 6de5927dc2 [build] Add support for Debian packages (#4434)
* Add support for Debian packages

* SDL: add device probe
5 years ago
Frans de Jonge fb1c3606d7
[fix, build] kodev: test for PB TC in $PATH (#4344)
Includes and depends on base bump with:

* [build, fix] Support PocketBook TC in path https://github.com/koreader/koreader-base/pull/765
6 years ago
Frans de Jonge 349485e240
[fix] Minor kodev shellscript issues (#4302)
Use `-z` instead of `! -n`.

See https://github.com/koalaman/shellcheck/wiki/SC2236
6 years ago
Martín Fernández 1e69fae7bc [feat] Add support for BQ/Fnac devices (#4294)
Adds support for devices found in https://blog.bq.com/es/bq-ereaders-developers-program/. Tested on BQ Cervantes 4 (last BQ device from 2017).

It adds a new touch input event handler (discussed in #4275) which should work on other single touch devices (ie: Kobo Touch, Mini, Glo, Aura HD) but wasn't tested.

Includes base bump with: [feat] Add BQ/Fnac device support (https://github.com/koreader/koreader-base/pull/745)
6 years ago
Frans de Jonge d1298ff8e5
[feat] Smaller version on annotated tag (#4295) 6 years ago
Qingping Hou e869b40625 fix(kodev): match clean command debug flag with build command 6 years ago
Matias N 94d8f2d397 Sony PRSTUX support (#4198)
* Sony PRSTUX support
6 years ago
NiLuJe e2a0929c51
Better KOA2 support (#4037)
* Better KOA2 support
    * Fix FL
    * Add physical pageturn keys
    * Add accelerometer support
* Possibly better NaturalLight handling on the Clara
* Fix WiFi module name used in some(?) Mk7 Kobos
* A bunch of kodev fixes
6 years ago
onde2rock c6c740d1da [build] Remove kindle5 target (#3902) 6 years ago
onde2rock 2e094f97c9 [chore] Remove kindle4 from legacy target (#3879)
Same hardware/software as kindle5, see https://github.com/koreader/koreader-base/pull/640#issuecomment-379886833
6 years ago
Frans de Jonge ab712f1a29
[feat] Build AppImage (#3850)
References #1417.
6 years ago
Frans de Jonge fb6dbf0428
[fix] kodev update $VERSION for `run android` (#3801)
As in 16061370f4, leftover from #3723.

Also replaced a few non-standard `which` by `command -v` as per new shellcheck rule.
See https://github.com/koalaman/shellcheck/wiki/SC2230
6 years ago
Frans de Jonge 430796ff30
[fix] kodev: add back KODEBUG_SUFFIX for kodev run android (#3719) 6 years ago
poire-z 6df0824474 kodev: two small fixes (#3575)
- kodev-run: fix use of $args
- kodev-build: build the emulator in debug mode, for consistency
with kodev-run
- kodev build: add --debug / --no-debug options
6 years ago
Frans de Jonge 3e19ff81ce
[fix] kodev: grep filter debug/no-debug dir (#3506)
Fixes https://github.com/koreader/koreader/issues/3504.
7 years ago
Frans de Jonge d3a8338c76 kodev: added setup_env to run android
Otherwise it didn't pick up on the -debug suffix.
7 years ago
Frans de Jonge 9000ed1bd3
[build] Add -debug suffix to KODEBUG builds (#3439) 7 years ago
Frans de Jonge 97aee14adf kodev: add assert_ret_zero after make android-ndk (#3438)
Fixes #3408.
7 years ago
Frans de Jonge 9f24b04362 kodev: add debug flags (#3379)
* `--gdb=X`
* `--valgrind=X`
7 years ago
Frans de Jonge b4bb32254a kodev: Add $ANDROID_ARCH to enable x86 build (#3353)
You'll still have to call it with `ANDROID_ARCH=x86 ./kodev build/release/run android`.

Don't forget to `./mk-luajit.sh clean` in luajit-launcher when changing architectures.

* Bump android-luajit-launcher
  This includes the fix for Android 8. Fixes #3126.
* Bump base
7 years ago
Frans de Jonge a394e644b5 Add gettext_spec stub (#3343) 7 years ago
Frans de Jonge 7eefff284d [fix] kodev: default NDKABI=14 if not set for NDK 15 standalone toolkit 7 years ago
Frans de Jonge 59cfde8558 kodev: add run android convenience shortcut (#3297) 7 years ago
Frans de Jonge 3a9651702f kodev: run with catchsegv by default (#3283)
See https://github.com/koreader/koreader/issues/2878#issuecomment-326796777

Also fix `./kodev run -h` as alias for `--help` as it's always overwritten by `-h` in the sense of the much more important `--screen-height`.
7 years ago
Frans de Jonge 4360837e3b [Android] Update to NDK 15 (#3233)
Also improve SDK installation for ease of setting up development system.

This also puts in place most of the missing pieces to finish the intent in #3064.
7 years ago
Frans de Jonge 24948e9c4f kodev: add --graph option for rudimentary memory use tracking (#3209)
Usage:
`./kodev run --graph`
7 years ago
Frans de Jonge e566a7ffc6 kodev: add hidpi shortcut and dpi argument (#3208)
* [doc] also generate base ffi doc
* kodev: add hidpi shortcut and dpi argument
* Bump base
7 years ago
Marcin Mielniczuk 128d60a6d3 Fall back to ANDROID_NDK if NDK not set (#3064)
* Fall back to ANDROID_NDK if NDK not set
7 years ago
Hzj_jie 30378eb2a8 Add restart koreader function and ensure FlushSettings event can be delivered to all widgets (#2772) 7 years ago
Qingping Hou b33c9268d2 build(fix): fail release command by default if make po failed 7 years ago