Skip to content

Commit

Permalink
Rename download-js Meson option
Browse files Browse the repository at this point in the history
The version with a dash more closely resembles how Meson build flags are
named.
  • Loading branch information
ximion committed Nov 6, 2017
1 parent 1e6fb67 commit b4ba446
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ In summary:

```ShellSession
$ mkdir build && cd build
$ meson -Ddownload_js=true ..
$ meson -Ddownload-js=true ..
$ ninja
$ sudo ninja install
```
Expand Down
3 changes: 1 addition & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ gir_binding_sources = dgir_glob_script.stdout().strip().split('\n')
#

# Download JavaScript assets if requested
download_js = get_option('download_js')
if download_js
if get_option('download-js')
message('Downloading JavaScript libraries...')
if run_command('[', '-d', 'data/templates/default/static/js', ']').returncode() != 0
getjs_cmd = run_command([source_root + '/contrib/setup/build_js.sh'])
Expand Down
2 changes: 1 addition & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Options for AppStream Generator
#

option('download_js',
option('download-js',
type: 'boolean',
value: true,
description: 'Whether we should download JavaScript with Bower automatically.'
Expand Down
2 changes: 1 addition & 1 deletion test/ci/build_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ meson --version
# Build & Test
#
mkdir -p build && cd build
meson -Ddownload_js=true ..
meson -Ddownload-js=true ..
ninja

# Run tests
Expand Down

0 comments on commit b4ba446

Please sign in to comment.