~tristan957/harvest-almanac

98607eae6f3c9e35088d9f693060873cbd372ef2 — Tristan Partin 2 years ago d8317c7
meson: cannot actually silence the warning

Compiling the subproject fs it up
3 files changed, 6 insertions(+), 5 deletions(-)

M .build.yml
M dist/flatpak/io.partin.tristan.HarvestAlmanac.json
M meson.build
M .build.yml => .build.yml +1 -1
@@ 13,7 13,7 @@ sources:
tasks:
  - setup: |
      cd harvest-almanac
      CC=gcc meson -Dwarning_level=3 -Dbuildtype=release build
      CC=gcc meson -Dwerror=true -Dbuildtype=release build
  - build: |
      cd harvest-almanac
      ninja -C build

M dist/flatpak/io.partin.tristan.HarvestAlmanac.json => dist/flatpak/io.partin.tristan.HarvestAlmanac.json +1 -1
@@ 51,7 51,7 @@
			"builddir": true,
			"buildsystem": "meson",
			"config-opts": [
				"-Dwarning_level=3",
				"-Dwerror=true",
				"-Dbuildtype=release"
			],
			"sources": [

M meson.build => meson.build +4 -3
@@ 8,15 8,16 @@ project(
    default_options: [
        'c_std=gnu11', # Enable GCC extensions
        'buildtype=debugoptimized',
        'warning_level=1',
    ],
)

c_args = [
    '-Wall',
    '-Wextra',
    # Required to pick up hal-resources.h in some IDEs
    '-Werror',
    # Required to pick up hal-resources.h, config.h in some IDEs
    '-I' + join_paths(meson.build_root(), 'data'),
    '-I' + join_paths(meson.build_root(), 'harvest-almanac'),
    '-I' + join_paths(meson.build_root(), 'harvest-glib'),
]

cc = meson.get_compiler('c')