Commit graph

77 commits

Author SHA1 Message Date
evandrocoan
db49fc2a48 Merge remote-tracking branch 'danielelmes/master' into allow_to_define_python_bin
# Conflicts:
#	rspy/Makefile
2020-03-02 11:44:45 -03:00
evandrocoan
17dc37151c Allow to define a externally PYTHON_BIN and ACTIVATE_SCRIPT 2020-03-01 22:41:06 -03:00
evandrocoan
95b3a8d86c Hide the Makefile buildhash rule verbosity 2020-03-01 22:39:19 -03:00
Damien Elmes
fbf0fd686e make sure we pull in translations for check action as well 2020-02-27 20:52:05 +10:00
Damien Elmes
804474c1ff less wordy anki_extra_pip, and readme tweaks 2020-02-27 14:22:53 +10:00
evandrocoan
a522ba8fdb Fixed syntax error near unexpected token `&&' due ANKI_EXTRA_PIP
variable being undefined and added the last missing @ silencer on
the Makefile.
2020-02-27 00:51:36 -03:00
evandrocoan
337c616f30 Added back missing Makefile @ silencers 2020-02-27 00:22:08 -03:00
evandrocoan
4a2456f62f Merge remote-tracking branch 'danielelmes/master' into fix_windows_build
# Conflicts:
#	Makefile
2020-02-27 00:20:34 -03:00
Damien Elmes
84c066aa02 need to invoke make for pull-i18n
suggestions on a more elegant want to avoid executing these rules
every time without needing to invoke make welcome!
2020-02-26 20:07:55 +10:00
Damien Elmes
9e5e214891 fix pull-i18n running on every build 2020-02-26 18:32:47 +10:00
Damien Elmes
2804bc18c5 fetch qt/ftl/repo on first build
needs to happen prior to develop step to ensure qt translations
get compiled into rspy
2020-02-26 18:01:05 +10:00
Damien Elmes
7d691d7571 don't abort build if mo file fails; rename files for consistency
Issues are now checked for in CI, so there's no need to break the
build for everyone each time there's a problem with the gettext
catalogs.
2020-02-26 17:47:02 +10:00
evandrocoan
b0927266fa Reverted back to use pyenv (without using system wide packages) 2020-02-25 23:44:18 -03:00
evandrocoan
0eee3061dc Removed the qt/Makefile INSTALL_PYAUDIO variable and
created the Makefile SYSTEM_PACKAGES updating README.development
2020-02-25 21:08:05 -03:00
evandrocoan
2d316748a7 Merge remote-tracking branch 'danielelmes/master' into fix_windows_build
# Conflicts:
#	Makefile
2020-02-25 03:16:57 -03:00
evandrocoan
9e690f80e7 Renamed FIND_EXEC to FIND, replaced IS_WINDOWS by specific commands
as PYTHON_BIN, ACTIVE_SCRIPT and INSTALL_PYAUDIO.
Fixed echo statements not using @ to suppress double message output.
Deprecated the usage of ECHOCMD := /bin/echo -e because it has no
effect: https://stackoverflow.com/questions/60387684/how-to-make-the-makefile-echos-to-use-bin-echo-e

# Conflicts:
#	Makefile
2020-02-25 03:15:11 -03:00
Damien Elmes
572bc557e0 add shortcut to update translations to makefile 2020-02-25 15:32:11 +10:00
evandrocoan
5fab701431 Added -o pipefail to all set -e ensuring the build fails when some
operation with pipe exits error status.

# Conflicts:
#	Makefile
2020-02-24 20:18:56 -03:00
evandrocoan
6d16298254 Fixed development compilation with Windows 10
1. Documented on README.development how to setup the environment
   for Windows.
2. Fixed qt/ts/package.json not working due usage of ; instead
   of &&
3. Fixed copy-qt-files rsync using Windows paths instead of Unix
   ones
4. Fixed Makefile's using Windows Linux Subsystem bash instead of
    the Cygwin one.
5. Ensured running the correct pip module by using python -m pip
    instead of just pip.
6. Fixed Makefiles using Windows `find` command, instead of the
    Cygwin's one (POSIX find).
7. Fixed pyenv sourcing/activate using /pyevn/bin/ instead of
    /python/Scripts/ on Windows.
8. Fixed pyaudio not installing/linking with portaudio on Windows
    by installing for a patched fork at evandroforks/pyaudio
9. Forked and fixed portaudio not building with Visual Studio 2017
    or superior and added the reference for the patched fork on
    README.development at evandroforks/portaudio.
2020-02-24 14:59:11 -03:00
Damien Elmes
a769fb6172 update rslib version automatically 2020-02-17 08:40:17 +10:00
Damien Elmes
05e269e20f run rs checks before setting up py env 2020-02-17 08:40:16 +10:00
Damien Elmes
b758520d57 fix build from tarball 2020-02-03 08:55:05 +10:00
Damien Elmes
05e447c8df run make run by default 2020-02-03 08:55:00 +10:00
Damien Elmes
c9f7f387f4 make sure pyenv is active when fixing 2020-01-10 13:07:12 +10:00
Glutanimate
4df58983a2 Split root develop steps into separate develop target
Allows development tools to directly debug qt/runanki while using
`make develop` as a debugging pre-launch task.
2020-01-08 21:44:46 +01:00
Damien Elmes
98a16e2e56 more makefile fixes
can't rely on SHELLFLAGS on macOS
2020-01-07 18:19:18 +10:00
Damien Elmes
ba901656e2 ensure a failed check aborts build 2020-01-06 13:15:20 +10:00
Damien Elmes
d36791f39b be explicit about hash length
different git versions have different defaults
2020-01-05 12:20:35 +10:00
Damien Elmes
7311e86490 fix buildhash not being updated 2020-01-05 10:28:48 +10:00
Damien Elmes
08d0220385 fix missing develop step in make check 2020-01-04 12:36:27 +10:00
Damien Elmes
53ac8c0f0f split up build steps in top level makefile 2020-01-04 12:21:58 +10:00
Damien Elmes
351699268a move top level scripts into makefile 2020-01-04 12:21:58 +10:00
Damien Elmes
3ca39bfda3 move the separate components back into this monorepo
Earlier today I pushed a change that split this code up into multiple
repos, but that has proved to complicate things too much. So we're
back to a single repo, except the individual submodules are better
separated than they were before.

The README files need updating again; I will push them out soon.

Aside from splitting out the different modules, the sound code has
moved from from anki to aqt.
2020-01-02 19:43:19 +10:00
Damien Elmes
ab116b7142 add comment about make install 2019-12-30 21:53:11 +10:00
Damien Elmes
0b0a8e29bf check depends on build 2019-12-27 08:40:46 +10:00
Damien Elmes
ef57fd004b isort tests; black/isort should notice changes to tests 2019-12-26 07:36:26 +10:00
Damien Elmes
222789e1af drop oneshell from makefile
It's preventing @ prefixes on subsequent lines from being honored.
2019-12-25 16:05:01 +10:00
Damien Elmes
a1af6e61ae format tests 2019-12-25 14:18:34 +10:00
Damien Elmes
8ef1fa7ed1 bridge->backend 2019-12-25 08:59:33 +10:00
Damien Elmes
02ceab04e7 ignore dot files and generated files when determining rust deps 2019-12-24 19:57:55 +10:00
Damien Elmes
7a91f2be64 generate type stubs for Protobuf; disable pylint on rsbridge 2019-12-24 19:57:54 +10:00
Damien Elmes
65db02ddde switch to Google's (C++) Protobuf implementation
Brings the 100 field test down from 3 secs to 0.15 secs.

"betterproto" indeed!
2019-12-24 19:57:54 +10:00
Damien Elmes
e05b77b083 use protobuf for python/rust bridge
If we go ahead with betterproto on the Python side, it will mean
bumping the minimum Python dependency to 3.7.
2019-12-24 19:57:54 +10:00
Damien Elmes
432f2d0fbd add rust checks, and clean up the makefile 2019-12-24 19:57:54 +10:00
Damien Elmes
349c5ba049 make it possible to implement functionality in Rust 2019-12-24 19:57:54 +10:00
Damien Elmes
fcb242090f py-test needs to depend on test files 2019-12-24 10:46:02 +10:00
Damien Elmes
9eb5162165 give up on pytype
the fix/check/fix cycle is infuriating slow
2019-12-23 11:58:26 +10:00
Damien Elmes
79af342ee8 add black, update for new isort
people updating from a previous build, make sure you run
pip install --reinstall requirements.check
2019-12-23 10:31:47 +10:00
Damien Elmes
df9435aae5 js build doesn't require python deps 2019-12-22 19:29:26 +10:00
Damien Elmes
b39568ec96 fix race condition in build scripts
- pip dependencies need to be installed sequentially
- move the individual check deps back into a separate file
- qt type hints not required for 'make run'
2019-12-22 10:19:50 +10:00