| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Adding this manifest allows GNOME Builder to build GJS right out of the
box, and run the interpreter and the tests using Builder's UI. This should
help the onboarding process for new contributors.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Based on looking at the git logs, add copyright notices to files which
were missing them, assuming the copyright belongs to people who made major
contributions to each file.
Some assumptions were made as to who to assign the copyright to, such as,
what copyright assignment did the contributor make in other files added in
the same commit? What email address did they use to make the commit? What
copyright assignment did they make in other commits using the same email
address?
|
|
|
|
|
|
| |
This adds a SPDX-License-Identifier comment to all files that are part
of GJS, part of its unit tests, or auxiliary tools. (Except for some
files like the debugger scripts that don't support comments.)
|
|
|
|
|
|
|
| |
Fixes a warning during install with newer python versions:
```
SyntaxWarning: "is not" with a literal. Did you mean "!="?
```
|
|
|
|
| |
Avoiding the duplication will make patching easier for downstreams who need that.
|
|
|
|
|
|
|
|
|
| |
/usr/bin/locale is shipped by glibc, so for example on musl systems it
is missing. In this case, don't set the LC_ALL environment variable, and
hope for the best. (This also makes the change that LC_ALL is left
untouched on Windows, which seems better.)
Closes: #296
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
os.path.join() doesn't simply concatenate paths as:
If a component is an absolute path, all previous components are
thrown away and joining continues from the absolute path component.
Strip the leading '/' from the configured prefix if needed to prevent
that.
Closes: https://gitlab.gnome.org/GNOME/gjs/issues/291
|
|
|
|
|
|
|
|
|
|
|
| |
Python's os.symlink() will fail if the symlink already exists, so when
installing GJS in a prefix where it was already installed. This was
previously avoided with the -f option to ln.
Instead, create a temporary link and atomically rename it over the
existing link.
Unreviewed, pushing to fix build.
|
|
|
|
|
| |
This is so that we can also use this script on Windows MSVC builds,
which do not support shell scripts out-of-the-box.
|
|
|
|
|
|
|
| |
Doing so will enable that things run correctly on Windows/MSVC builds as
well. This will also enable to copy (instead of symlink)
gjs-console.exe on Windows as symlinks often require admin privileges on
Windows.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a Meson build system which should be functionally equivalent
to the existing Autotools build system, but easier to deal with and
faster.
Equivalents:
./configure -> meson _build
make -j5 -> ninja -C _build
make install -> ninja -C _build install
make check -> meson test -C _build
It's also easy to run the tests under Valgrind or using the GC zeal
variables, by adding e.g. --setup=valgrind to the meson test command.
Dependencies (except SpiderMonkey) will be downloaded and built if not
present (or not new enough), using Meson's wrap system.
There were a small number of things the Autotools build did better. One
is export-symbols-regex which doesn't exist in Meson; we must write two
separate linker config files for GNU ld and macOS's linker, and I'm not
sure what happens in this case on Windows.
The other thing is merging the JS and C code coverage files
automatically. Since this isn't possible using Meson's b_coverage
option, we add a script, tools/run_coverage.sh, which generates a code
coverage report from start to finish. This is actually kind of better
than the old situation, since the script builds in a different build
tree, so you cannot accidentally leave coverage-instrumented build
artifacts sitting in your build tree.
|
|
|
|
|
|
|
|
|
| |
It seems that if there are few locales, `locale -a` will print them all
on one line, which was confusing the matching done in this script using
grep. Instead, make sure to break the output so that there is only one
locale per line.
For context, see failures on GNOME/gjs!312.
|
|
|
|
|
|
|
|
| |
The C.utf8 locale seems to exist in the wild, so if it is present we
should prefer it above other UTF-8 locales, with the same priority as
C.UTF-8.
For context, see failure on GNOME/gjs!312.
|
|
In order to port to Meson in the future, we'll need to have this
functionality in a separate script. Splitting it out now and using the
script in the Autotools build will be handy if we decide to keep the two
build systems in parallel for a while.
|