Commit Graph

28 Commits (adbf3be6ec40872574684688f470e6bf0acb91a8)

Author SHA1 Message Date
Benoit Pierre 342fc850ad make: add `RWRAP` parameters to all emulator `run` rules
Useful to run those command under a debugger, valgrind, or rlwrap.
4 weeks ago
Benoit Pierre 6e7ccf2320
android: add custom `adb logcat` formatter (#12385)
- standalone: no other dependencies than Python (>= 3.7) and adb
  (Android >= 4.3 [Jelly Bean])
- filter KOReader's traces, and other processes chatter about KOReader
  (e.g. mentions of its application ID or PID)
- show time, PID, TID (when different), tag, priority, and message
- only parse the log (don't rely on `adb shell` commands)
- can be used as a filter, including on its own (uncolored) output
- we can simplify instructions to users when asking for detailed logs

Why not use pidcat?
- project is unmaintained
- does not support Python 3 (need at least one extra patch)
- mangle long lines by wrapping them, even when not outputting to a terminal,
  which is a big no-no, IMHO (as it break searching, copy pasting, etc…)
4 weeks ago
Benoit Pierre 4ba106a6a3 android: improve update rule
Remove old in-tree build artifacts that could conflict (`assets/libs` & `assets/module`).
1 month ago
Benoit Pierre 9107147742 android: tweak APK name
Use `ANDROID_NAME` for last part so setting it as an environment
variable to something like `dev` allows for a stable APK name
across different revisions.
1 month ago
Benoit Pierre 9aeb0f394b android: silence unnecessary verbose update step 1 month ago
Benoit Pierre 93c7ceccd9 make: tweak emulator `test` rules
So `make --assume-old=all` can be used for both `testbase` & `testfront`.
1 month ago
Benoit Pierre b5c4ccc5b3 make: fix emulator `coverage` rule
- use same busted launch script as for tests
- build & install necessary test data so it can be run from scratch
1 month ago
Benoit Pierre 050c7a96ac make: add `run` rule for android targets 1 month ago
Benoit Pierre 387a9de305 make: add `run` rules for emulator targets 1 month ago
Benoit Pierre 59b533a83d make: move emulator specific rules to a dedicated file 1 month ago
Benoit Pierre de2a9d54f1 make: reword comment 1 month ago
Benoit Pierre 5fe0d4a4a2 make: fix missing android APK asset
Missing `module/version.txt` would trigger a "new install" on every launch.
1 month ago
Benoit Pierre bd4a651fbf make: improve android update
- out-of-tree luajit-launcher build: no leftovers after `make clean`
- use the luajit library compiled by base: no point wasting time
  building a second (different, possibly incompatible) version
1 month ago
Benoit Pierre 13cc21b769
make: fix android update sdcv (#12275)
Need the real stuff, not a symlink.
2 months ago
Benoit Pierre 4855a8695d make: minor cleanups 2 months ago
Benoit Pierre 14f105707d make: always symlink, even for release builds (faster) 2 months ago
Benoit Pierre d83647d76e make: simplify symlink installs
Since we mandate coreutils on macOS too, we can simplify calls to `ln`.
2 months ago
Benoit Pierre 040e033edb make: move android variables where they belong 2 months ago
Marek Veselý ab2f545075
Add kindlehf target (#11986)
for kindles after fw 5.16.3

* Add kindlehf mk file
* Update kodev to support kindlehf
* Update OTAManager logic to support kindlehf
3 months ago
Benoit Pierre 5a465f413b tweaks for new build system
- forward unknown make targets to base
- add `cmake` and `staging` directories to ignored output artifacts
- drop `package.path` and `package.cpath` luarocks specific entries
4 months ago
Martín Fernández 3fb2f18041
update tool to generate metadata translations (#11869)
* updated:

    - strings to translate
    - english metadata

* added:

    - appstream: metadata generator
    - appstream: translation of screenshot captions, if they're present.
    - appstream: link to gh release notes
4 months ago
Martín Fernández 36d2e3cf74
Add README.md to Linux package (#11859) 4 months ago
Martín Fernández ba8891082c
fix after #11833 (#11849) 4 months ago
Martín Fernández 7bded465eb
SDL: add flatpak flavor (#11833)
* ship metadata with generic linux binaries
* append release version & data at build time
4 months ago
Benoit Pierre 25d29aca4a
android: fix building with kodev (#11817)
If the Android NDK and/or SDK are not setup, `kodev` will try to invoke
the `android-ndk` and/or `android-sdk` make targets.  This can't be done
with `TARGET=android`, as `base/Makefile.defs` will error out trying to
call the (missing) compiler to get the target machine. Those rules need
to be available to all targets.
4 months ago
Martín Fernández 2c6808ba78
Add generic Linux package (#9351)
Relates to https://github.com/koreader/koreader/issues/9268
Requires https://github.com/koreader/koreader-base/pull/1504

Usage: 
- `kodev release linux` for native package (same arch as host)
- `LINUX_ARCH=arm release linux` for armhf on a x86_64 host.
- `LINUX_ARCH=arm64 release linux` for arm64 on a x86_64 host.

It produces a `koreader-linux-$ARCH-$VERSION.tar.xz` archive, where $ARCH follows `uname -m` convention {x86_64, armv7l, aarch64}

To generate the debian package from the generic archive the following command is required

`./platform/linux/do_debian_package.sh path_to.tar.xz`
4 months ago
Benoit Pierre 49e3251e7b make: support changing the build / install directory location 4 months ago
Benoit Pierre f749fc2fd9 make: move target specific rules to dedicated files 4 months ago