Commit ff31a818 authored by Cassandra Watergate's avatar Cassandra Watergate Committed by GitHub

Add compiling constants (#5593)

* add compiling constants

* fix version and quoting

* lib/const.rb: add CREW_MESON_FNO_LTO_OPTIONS

* lib/const.rb: fix CREW_COMMON_OPTIONS

* crew: add new consts to crew const output

* bin/crew: alphabetize consts
Co-authored-by: default avatarEd Reel <edreel@gmail.com>
parent d614a166
...@@ -355,7 +355,10 @@ def const (var) ...@@ -355,7 +355,10 @@ def const (var)
'CREW_LIB_PREFIX', 'CREW_LIB_PREFIX',
'CREW_LIB_SUFFIX', 'CREW_LIB_SUFFIX',
'CREW_MAN_PREFIX', 'CREW_MAN_PREFIX',
'CREW_MESON_LTO_OPTIONS', 'CREW_COMMON_FLAGS',
'CREW_COMMON_FNO_LTO_FLAGS',
'CREW_ENV_OPTIONS',
'CREW_MESON_FNO_LTO_OPTIONS',
'CREW_MESON_OPTIONS', 'CREW_MESON_OPTIONS',
'CREW_META_PATH', 'CREW_META_PATH',
'CREW_NOT_COMPRESS', 'CREW_NOT_COMPRESS',
......
# Defines common constants used in different parts of crew # Defines common constants used in different parts of crew
CREW_VERSION = '1.7.26' CREW_VERSION = '1.8.0'
ARCH_ACTUAL = `uname -m`.strip ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines # This helps with virtualized builds on aarch64 machines
...@@ -72,15 +72,20 @@ when 'x86_64' ...@@ -72,15 +72,20 @@ when 'x86_64'
CREW_BUILD = 'x86_64-cros-linux-gnu' CREW_BUILD = 'x86_64-cros-linux-gnu'
end end
CREW_COMMON_FLAGS = "'-Os -pipe -flto=auto -fuse-ld=gold'"
CREW_COMMON_FNO_LTO_FLAGS = "'-Os -pipe -fno-lto -fuse-ld=gold'"
CREW_FNO_LTO_LDFLAGS = "'-fno-lto'"
CREW_LDFLAGS = "'-flto=auto'"
CREW_ENV_OPTIONS = "CFLAGS=#{CREW_COMMON_FLAGS} CXXFLAGS=#{CREW_COMMON_FLAGS} FCFLAGS=#{CREW_COMMON_FLAGS} FFLAGS=#{CREW_COMMON_FLAGS} LDFLAGS=#{CREW_LDFLAGS}"
CREW_OPTIONS = "--prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} --mandir=#{CREW_MAN_PREFIX} --build=#{CREW_BUILD} --host=#{CREW_TGT} --target=#{CREW_TGT} --program-prefix='' --program-suffix=''" CREW_OPTIONS = "--prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} --mandir=#{CREW_MAN_PREFIX} --build=#{CREW_BUILD} --host=#{CREW_TGT} --target=#{CREW_TGT} --program-prefix='' --program-suffix=''"
CREW_MESON_OPTIONS = "-Dprefix=#{CREW_PREFIX} -Dlibdir=#{CREW_LIB_PREFIX} -Dmandir=#{CREW_MAN_PREFIX} -Dbuildtype=release -Dc_args='-fuse-ld=lld -pipe' -Dcpp_args='-fuse-ld=lld -pipe'" CREW_MESON_OPTIONS = "-Dprefix=#{CREW_PREFIX} -Dlibdir=#{CREW_LIB_PREFIX} -Dmandir=#{CREW_MAN_PREFIX} -Dbuildtype=minsize -Db_lto=true -Dcpp_args=#{CREW_COMMON_FLAGS} -Dc_args=#{CREW_COMMON_FLAGS}"
CREW_MESON_LTO_OPTIONS = "-Dprefix=#{CREW_PREFIX} -Dlibdir=#{CREW_LIB_PREFIX} -Dmandir=#{CREW_MAN_PREFIX} -Dbuildtype=release -Db_lto=true -Dcpp_args='-fuse-ld=gold -pipe' -Dc_args='-fuse-ld=gold -pipe'" CREW_MESON_FNO_LTO_OPTIONS = "-Dprefix=#{CREW_PREFIX} -Dlibdir=#{CREW_LIB_PREFIX} -Dmandir=#{CREW_MAN_PREFIX} -Dbuildtype=minsize -Db_lto=false -Dcpp_args=#{CREW_COMMON_FNO_LTO_FLAGS} -Dc_args=#{CREW_COMMON_FNO_LTO_FLAGS}"
# Cmake sometimes wants to use LIB_SUFFIX to install libs in LIB64, so specify such for x86_64 # Cmake sometimes wants to use LIB_SUFFIX to install libs in LIB64, so specify such for x86_64
# This is often considered deprecated. See discussio at https://gitlab.kitware.com/cmake/cmake/-/issues/18640 # This is often considered deprecated. See discussio at https://gitlab.kitware.com/cmake/cmake/-/issues/18640
# and also https://bugzilla.redhat.com/show_bug.cgi?id=1425064 # and also https://bugzilla.redhat.com/show_bug.cgi?id=1425064
# Let's have two CREW_CMAKE_OPTIONS since this avoids the logic in the recipe file. # Let's have two CREW_CMAKE_OPTIONS since this avoids the logic in the recipe file.
CREW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} -DCMAKE_LIBRARY_PATH=#{CREW_LIB_PREFIX} -DCMAKE_BUILD_TYPE=Release --build=#{CREW_BUILD} --host=#{CREW_TGT} --target=#{CREW_TGT}" CREW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} -DCMAKE_LIBRARY_PATH=#{CREW_LIB_PREFIX} -DCMAKE_C_FLAGS=#{CREW_COMMON_FLAGS} -DCMAKE_CXX_FLAGS=#{CREW_COMMON_FLAGS} -DCMAKE_BUILD_TYPE=MinSizeRel --build=#{CREW_BUILD} --host=#{CREW_TGT} --target=#{CREW_TGT}"
CREW_LIB_SUFFIX = if ARCH == 'x86_64' then '64' else '' end CREW_LIB_SUFFIX = if ARCH == 'x86_64' then '64' else '' end
CREW_CMAKE_LIBSUFFIX_OPTIONS = "-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} -DCMAKE_LIBRARY_PATH=#{CREW_LIB_PREFIX} -DLIB_SUFFIX=#{CREW_LIB_SUFFIX} -DCMAKE_BUILD_TYPE=Release --build=#{CREW_BUILD} --host=#{CREW_TGT} --target=#{CREW_TGT}" CREW_CMAKE_LIBSUFFIX_OPTIONS = "-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} -DCMAKE_LIBRARY_PATH=#{CREW_LIB_PREFIX} -DLIB_SUFFIX=#{CREW_LIB_SUFFIX} -DCMAKE_C_FLAGS=#{CREW_COMMON_FLAGS} -DCMAKE_CXX_FLAGS=#{CREW_COMMON_FLAGS} -DCMAKE_BUILD_TYPE=MinSizeRel --build=#{CREW_BUILD} --host=#{CREW_TGT} --target=#{CREW_TGT}"
...@@ -29,7 +29,7 @@ class Amtk < Package ...@@ -29,7 +29,7 @@ class Amtk < Package
def self.build def self.build
system "meson #{CREW_MESON_OPTIONS} \ system "meson #{CREW_MESON_FNO_LTO_OPTIONS} \
-Dc_args='-fuse-ld=lld' \ -Dc_args='-fuse-ld=lld' \
builddir" builddir"
system "meson configure builddir" system "meson configure builddir"
......
...@@ -45,7 +45,7 @@ class Appstream_glib < Package ...@@ -45,7 +45,7 @@ class Appstream_glib < Package
depends_on 'util_linux' depends_on 'util_linux'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dtests=false \ -Dtests=false \
-Dsysprof=disabled \ -Dsysprof=disabled \
-Dintrospection=true \ -Dintrospection=true \
......
...@@ -27,7 +27,7 @@ class At_spi2_atk < Package ...@@ -27,7 +27,7 @@ class At_spi2_atk < Package
depends_on 'atk' depends_on 'atk'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson configure builddir" system "meson configure builddir"
system "ninja -C builddir" system "ninja -C builddir"
end end
......
...@@ -30,7 +30,7 @@ class At_spi2_core < Package ...@@ -30,7 +30,7 @@ class At_spi2_core < Package
depends_on 'gtk_doc' depends_on 'gtk_doc'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -26,7 +26,7 @@ class Atk < Package ...@@ -26,7 +26,7 @@ class Atk < Package
depends_on 'six' => :build depends_on 'six' => :build
def self.build def self.build
system "meson #{CREW_MESON_OPTIONS} build" system "meson #{CREW_MESON_FNO_LTO_OPTIONS} build"
system 'meson configure build' system 'meson configure build'
system 'ninja -C build' system 'ninja -C build'
end end
......
...@@ -26,7 +26,7 @@ class Atkmm < Package ...@@ -26,7 +26,7 @@ class Atkmm < Package
depends_on 'glibmm' depends_on 'glibmm'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \ --default-library=both \
-Dbuild-documentation=false \ -Dbuild-documentation=false \
-Dbuild-demos=false \ -Dbuild-demos=false \
......
...@@ -26,7 +26,7 @@ class Babl < Package ...@@ -26,7 +26,7 @@ class Babl < Package
depends_on 'pango' depends_on 'pango'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -34,7 +34,7 @@ class Cairo < Package ...@@ -34,7 +34,7 @@ class Cairo < Package
depends_on 'pixman' depends_on 'pixman'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \ --default-library=both \
-Dgl-backend=auto \ -Dgl-backend=auto \
-Dglesv3=enabled \ -Dglesv3=enabled \
......
...@@ -29,7 +29,7 @@ class Cairomm_1_0 < Package ...@@ -29,7 +29,7 @@ class Cairomm_1_0 < Package
depends_on 'libxrender' depends_on 'libxrender'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \ --default-library=both \
-Dbuild-documentation=false \ -Dbuild-documentation=false \
-Dbuild-examples=false \ -Dbuild-examples=false \
......
...@@ -29,7 +29,7 @@ class Cairomm_1_16 < Package ...@@ -29,7 +29,7 @@ class Cairomm_1_16 < Package
depends_on 'libxrender' depends_on 'libxrender'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \ --default-library=both \
-Dbuild-documentation=false \ -Dbuild-documentation=false \
-Dbuild-examples=false \ -Dbuild-examples=false \
......
...@@ -28,7 +28,7 @@ class Cantarell_fonts < Package ...@@ -28,7 +28,7 @@ class Cantarell_fonts < Package
depends_on 'graphite' => :build depends_on 'graphite' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Duseprebuilt=true \ -Duseprebuilt=true \
-Dfontsdir=#{CREW_PREFIX}/share/fonts/opentype/cantarell \ -Dfontsdir=#{CREW_PREFIX}/share/fonts/opentype/cantarell \
builddir" builddir"
......
...@@ -31,7 +31,7 @@ class Clutter_gtk < Package ...@@ -31,7 +31,7 @@ class Clutter_gtk < Package
depends_on 'clutter' depends_on 'clutter'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -26,7 +26,7 @@ class Dav1d < Package ...@@ -26,7 +26,7 @@ class Dav1d < Package
depends_on 'nasm' => :build depends_on 'nasm' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -29,7 +29,7 @@ class Dconf < Package ...@@ -29,7 +29,7 @@ class Dconf < Package
depends_on 'bash_completion' => :build depends_on 'bash_completion' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -28,7 +28,7 @@ class Dconf_editor < Package ...@@ -28,7 +28,7 @@ class Dconf_editor < Package
depends_on 'vala' => :build depends_on 'vala' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -35,7 +35,7 @@ class Elogind < Package ...@@ -35,7 +35,7 @@ class Elogind < Package
depends_on 'polkit' depends_on 'polkit'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dc_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \ -Dc_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dc_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \ -Dc_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dcpp_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \ -Dcpp_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
......
...@@ -46,7 +46,7 @@ class Epiphany < Package ...@@ -46,7 +46,7 @@ class Epiphany < Package
depends_on 'webkit2gtk_4' depends_on 'webkit2gtk_4'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -48,7 +48,7 @@ class Evince < Package ...@@ -48,7 +48,7 @@ class Evince < Package
depends_on 'poppler' depends_on 'poppler'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dgtk_doc=false \ -Dgtk_doc=false \
-Dps=enabled \ -Dps=enabled \
-Dsystemduserunitdir=no \ -Dsystemduserunitdir=no \
......
...@@ -30,7 +30,7 @@ class Folks < Package ...@@ -30,7 +30,7 @@ class Folks < Package
depends_on 'vala' => :build depends_on 'vala' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dbluez_backend=false \ -Dbluez_backend=false \
-Ddocs=false \ -Ddocs=false \
-Deds_backend=false \ -Deds_backend=false \
......
...@@ -39,7 +39,7 @@ class Fontconfig < Package ...@@ -39,7 +39,7 @@ class Fontconfig < Package
sys.exit() sys.exit()
INSTALLCACHE_HEREDOC INSTALLCACHE_HEREDOC
IO.write('install-cache', @install_cache, perm: 0o666) IO.write('install-cache', @install_cache, perm: 0o666)
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
--localstatedir=#{CREW_PREFIX}/cache \ --localstatedir=#{CREW_PREFIX}/cache \
--default-library=both \ --default-library=both \
-Ddoc=disabled \ -Ddoc=disabled \
......
...@@ -23,7 +23,7 @@ class Fribidi < Package ...@@ -23,7 +23,7 @@ class Fribidi < Package
}) })
def self.build def self.build
system "meson #{CREW_MESON_OPTIONS} -Ddocs=false -Dtests=false build" system "meson #{CREW_MESON_FNO_LTO_OPTIONS} -Ddocs=false -Dtests=false build"
system 'meson configure build' system 'meson configure build'
system 'ninja -v -C build' system 'ninja -v -C build'
end end
......
...@@ -24,7 +24,7 @@ class Fuse3 < Package ...@@ -24,7 +24,7 @@ class Fuse3 < Package
def self.build def self.build
system "pip install --upgrade --no-warn-script-location pytest --prefix #{CREW_PREFIX}" system "pip install --upgrade --no-warn-script-location pytest --prefix #{CREW_PREFIX}"
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Ddisable-mtab=true \ -Ddisable-mtab=true \
-Dudevrulesdir=#{CREW_PREFIX}/etc/udev/rules.d/ \ -Dudevrulesdir=#{CREW_PREFIX}/etc/udev/rules.d/ \
-Dexamples=true \ -Dexamples=true \
......
...@@ -34,7 +34,7 @@ class Gcalculator < Package ...@@ -34,7 +34,7 @@ class Gcalculator < Package
depends_on 'libsoup' depends_on 'libsoup'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -38,7 +38,7 @@ class Gcr < Package ...@@ -38,7 +38,7 @@ class Gcr < Package
depends_on 'vala' => :build depends_on 'vala' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dgtk_doc=false \ -Dgtk_doc=false \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
......
...@@ -42,7 +42,7 @@ class Gdk_pixbuf < Package ...@@ -42,7 +42,7 @@ class Gdk_pixbuf < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dinstalled_tests=false \ -Dinstalled_tests=false \
-Dbuiltin_loaders=all \ -Dbuiltin_loaders=all \
-Drelocatable=true \ -Drelocatable=true \
......
...@@ -57,7 +57,7 @@ class Gedit < Package ...@@ -57,7 +57,7 @@ class Gedit < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Drequire_all_tests=false \ -Drequire_all_tests=false \
-Duser_documentation=false \ -Duser_documentation=false \
builddir" builddir"
......
...@@ -47,7 +47,7 @@ class Gegl < Package ...@@ -47,7 +47,7 @@ class Gegl < Package
depends_on 'vala' depends_on 'vala'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -33,7 +33,7 @@ class Geoclue < Package ...@@ -33,7 +33,7 @@ class Geoclue < Package
depends_on 'modemmanager' depends_on 'modemmanager'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=disabled \ -Dsystemd=disabled \
-Ddbus-sys-dir=#{CREW_PREFIX}/share/dbus-1 \ -Ddbus-sys-dir=#{CREW_PREFIX}/share/dbus-1 \
-D3g-source=true \ -D3g-source=true \
......
...@@ -32,7 +32,7 @@ class Geocode_glib < Package ...@@ -32,7 +32,7 @@ class Geocode_glib < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=false \ -Dsystemd=false \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
......
...@@ -28,7 +28,7 @@ class Gexiv2 < Package ...@@ -28,7 +28,7 @@ class Gexiv2 < Package
depends_on 'gobject_introspection' depends_on 'gobject_introspection'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -31,7 +31,7 @@ class Gjs < Package ...@@ -31,7 +31,7 @@ class Gjs < Package
depends_on 'dbus' => :build depends_on 'dbus' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dinstalled_tests=false \ -Dinstalled_tests=false \
-Dskip_dbus_tests=true \ -Dskip_dbus_tests=true \
-Dreadline=disabled \ -Dreadline=disabled \
......
...@@ -31,7 +31,7 @@ class Glade < Package ...@@ -31,7 +31,7 @@ class Glade < Package
def self.build def self.build
ENV['CFLAGS'] = "-fuse-ld=lld" ENV['CFLAGS'] = "-fuse-ld=lld"
ENV['CXXFLAGS'] = "-fuse-ld=lld" ENV['CXXFLAGS'] = "-fuse-ld=lld"
system "meson setup #{CREW_MESON_OPTIONS} -Dgtk_doc=false -Dman=false build" system "meson setup #{CREW_MESON_FNO_LTO_OPTIONS} -Dgtk_doc=false -Dman=false build"
system "meson configure build" system "meson configure build"
system "ninja -C build" system "ninja -C build"
end end
......
...@@ -31,7 +31,7 @@ class Glib < Package ...@@ -31,7 +31,7 @@ class Glib < Package
depends_on 'pygments' depends_on 'pygments'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dc_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \ -Dc_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dc_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \ -Dc_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dcpp_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \ -Dcpp_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
......
...@@ -26,7 +26,7 @@ class Glib_networking < Package ...@@ -26,7 +26,7 @@ class Glib_networking < Package
depends_on 'gsettings_desktop_schemas' depends_on 'gsettings_desktop_schemas'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dstatic_modules=true builddir" -Dstatic_modules=true builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -28,7 +28,7 @@ class Glibmm_2_4 < Package ...@@ -28,7 +28,7 @@ class Glibmm_2_4 < Package
depends_on 'mm_common' => :build depends_on 'mm_common' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \ --default-library=both \
-Dbuild-documentation=false \ -Dbuild-documentation=false \
-Dbuild-demos=false \ -Dbuild-demos=false \
......
...@@ -28,7 +28,7 @@ class Glibmm_2_68 < Package ...@@ -28,7 +28,7 @@ class Glibmm_2_68 < Package
depends_on 'mm_common' => :build depends_on 'mm_common' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \ --default-library=both \
-Dbuild-documentation=false \ -Dbuild-documentation=false \
-Dbuild-demos=false \ -Dbuild-demos=false \
......
...@@ -40,7 +40,7 @@ class Gnome_desktop < Package ...@@ -40,7 +40,7 @@ class Gnome_desktop < Package
depends_on 'yelp_tools' => :build depends_on 'yelp_tools' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=disabled \ -Dsystemd=disabled \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
......
...@@ -19,7 +19,7 @@ class Gnome_klotski < Package ...@@ -19,7 +19,7 @@ class Gnome_klotski < Package
depends_on 'libgnome_games_support' depends_on 'libgnome_games_support'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -37,7 +37,7 @@ class Gnome_maps < Package ...@@ -37,7 +37,7 @@ class Gnome_maps < Package
depends_on 'yelp_tools' => :build depends_on 'yelp_tools' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -20,7 +20,7 @@ class Gnome_mines < Package ...@@ -20,7 +20,7 @@ class Gnome_mines < Package
def self.build def self.build
system "env CFLAGS='-fuse-ld=lld' CXXFLAGS='-fuse-ld=lld' \ system "env CFLAGS='-fuse-ld=lld' CXXFLAGS='-fuse-ld=lld' \
meson #{CREW_MESON_LTO_OPTIONS} builddir" meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -19,7 +19,7 @@ class Gnome_nibbles < Package ...@@ -19,7 +19,7 @@ class Gnome_nibbles < Package
depends_on 'libgnome_games_support' depends_on 'libgnome_games_support'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -34,7 +34,7 @@ class Gnome_online_accounts < Package ...@@ -34,7 +34,7 @@ class Gnome_online_accounts < Package
depends_on 'vala' => :build depends_on 'vala' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dgtk_doc=true \ -Dgtk_doc=true \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
......
...@@ -33,7 +33,7 @@ class Gnome_session < Package ...@@ -33,7 +33,7 @@ class Gnome_session < Package
depends_on 'docbook_xsl' => :build depends_on 'docbook_xsl' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS}\ system "meson #{CREW_MESON_OPTIONS}\
-Dsystemd=false \ -Dsystemd=false \
-Dsystemd_session=disable \ -Dsystemd_session=disable \
-Dsystemd_journal=false \ -Dsystemd_journal=false \
......
...@@ -56,7 +56,7 @@ class Gnome_settings_daemon < Package ...@@ -56,7 +56,7 @@ class Gnome_settings_daemon < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=false \ -Dsystemd=false \
-Dcolord=false \ -Dcolord=false \
builddir" builddir"
......
...@@ -52,7 +52,7 @@ class Gnome_shell < Package ...@@ -52,7 +52,7 @@ class Gnome_shell < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dgtk_doc=true \ -Dgtk_doc=true \
-Dsystemd=false \ -Dsystemd=false \
-Dnetworkmanager=false \ -Dnetworkmanager=false \
......
...@@ -19,7 +19,7 @@ class Gnome_sudoku < Package ...@@ -19,7 +19,7 @@ class Gnome_sudoku < Package
depends_on 'qqwing' depends_on 'qqwing'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -32,7 +32,7 @@ class Gnome_terminal < Package ...@@ -32,7 +32,7 @@ class Gnome_terminal < Package
depends_on 'gtk_doc' depends_on 'gtk_doc'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \ --default-library=both \
-Dsearch_provider=false \ -Dsearch_provider=false \
-Dnautilus_extension=false \ -Dnautilus_extension=false \
......
...@@ -30,7 +30,7 @@ class Gnome_tweaks < Package ...@@ -30,7 +30,7 @@ class Gnome_tweaks < Package
depends_on 'libnotify' depends_on 'libnotify'
def self.build def self.build
system "meson setup #{CREW_MESON_LTO_OPTIONS} builddir" system "meson setup #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -32,7 +32,7 @@ class Gnome_weather < Package ...@@ -32,7 +32,7 @@ class Gnome_weather < Package
depends_on 'libhandy' depends_on 'libhandy'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=disabled \ -Dsystemd=disabled \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
......
...@@ -27,7 +27,7 @@ class Gobject_introspection < Package ...@@ -27,7 +27,7 @@ class Gobject_introspection < Package
def self.build def self.build
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} \ system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} \
meson #{CREW_MESON_LTO_OPTIONS} \ meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -27,7 +27,7 @@ class Graphene < Package ...@@ -27,7 +27,7 @@ class Graphene < Package
def self.build def self.build
ENV['CFLAGS'] = "-fuse-ld=lld" ENV['CFLAGS'] = "-fuse-ld=lld"
ENV['CXXFLAGS'] = "-fuse-ld=lld" ENV['CXXFLAGS'] = "-fuse-ld=lld"
system "meson #{CREW_MESON_OPTIONS} \ system "meson #{CREW_MESON_FNO_LTO_OPTIONS} \
-Darm_neon=false \ -Darm_neon=false \
-Dinstalled_tests=false \ -Dinstalled_tests=false \
-Dtests=false \ -Dtests=false \
......
...@@ -29,7 +29,7 @@ class Gsettings_desktop_schemas < Package ...@@ -29,7 +29,7 @@ class Gsettings_desktop_schemas < Package
depends_on 'gtk4' depends_on 'gtk4'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -31,7 +31,7 @@ class Gst_editing_services < Package ...@@ -31,7 +31,7 @@ class Gst_editing_services < Package
depends_on 'pygobject' => :build depends_on 'pygobject' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Ddoc=disabled \ -Ddoc=disabled \
-Dvalidate=disabled \ -Dvalidate=disabled \
builddir" builddir"
......
...@@ -54,7 +54,7 @@ class Gst_plugins_bad < Package ...@@ -54,7 +54,7 @@ class Gst_plugins_bad < Package
def self.build def self.build
system "meson \ system "meson \
#{CREW_MESON_LTO_OPTIONS} \ #{CREW_MESON_OPTIONS} \
-Ddirectfb=disabled \ -Ddirectfb=disabled \
-Ddoc=disabled \ -Ddoc=disabled \
-Dflite=disabled \ -Dflite=disabled \
......
...@@ -50,7 +50,7 @@ class Gst_plugins_base < Package ...@@ -50,7 +50,7 @@ class Gst_plugins_base < Package
depends_on 'wayland' depends_on 'wayland'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dgst_debug=false \ -Dgst_debug=false \
-Dexamples=disabled \ -Dexamples=disabled \
builddir" builddir"
......
...@@ -59,7 +59,7 @@ class Gst_plugins_good < Package ...@@ -59,7 +59,7 @@ class Gst_plugins_good < Package
depends_on 'wavpack' # R depends_on 'wavpack' # R
def self.build def self.build
system "meson #{CREW_MESON_OPTIONS} \ system "meson #{CREW_MESON_FNO_LTO_OPTIONS} \
-Ddoc=disabled \ -Ddoc=disabled \
-Drpicamsrc=disabled \ -Drpicamsrc=disabled \
-Dgobject-cast-checks=disabled \ -Dgobject-cast-checks=disabled \
......
...@@ -31,7 +31,7 @@ class Gstreamer < Package ...@@ -31,7 +31,7 @@ class Gstreamer < Package
depends_on 'libunwind' depends_on 'libunwind'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dgst_debug=false \ -Dgst_debug=false \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
......
...@@ -67,7 +67,7 @@ class Gtk3 < Package ...@@ -67,7 +67,7 @@ class Gtk3 < Package
depends_on 'wayland' # R depends_on 'wayland' # R
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dbroadway_backend=true \ -Dbroadway_backend=true \
-Ddemos=false \ -Ddemos=false \
-Dexamples=false \ -Dexamples=false \
......
...@@ -79,7 +79,7 @@ class Gtk4 < Package ...@@ -79,7 +79,7 @@ class Gtk4 < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dbroadway-backend=true \ -Dbroadway-backend=true \
-Dbuild-examples=false \ -Dbuild-examples=false \
-Dbuild-tests=false \ -Dbuild-tests=false \
......
...@@ -56,7 +56,7 @@ class Gtk_doc < Package ...@@ -56,7 +56,7 @@ class Gtk_doc < Package
#end #end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson configure builddir" system "meson configure builddir"
system "ninja -C builddir" system "ninja -C builddir"
end end
......
...@@ -27,7 +27,7 @@ class Gtkmm3 < Package ...@@ -27,7 +27,7 @@ class Gtkmm3 < Package
depends_on 'pangomm' depends_on 'pangomm'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \ --default-library=both \
-Dbuild-documentation=false \ -Dbuild-documentation=false \
-Dbuild-demos=false \ -Dbuild-demos=false \
......
...@@ -28,7 +28,7 @@ class Gtkmm4 < Package ...@@ -28,7 +28,7 @@ class Gtkmm4 < Package
depends_on 'cairomm' depends_on 'cairomm'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -44,7 +44,7 @@ class Gtksourceview_4 < Package ...@@ -44,7 +44,7 @@ class Gtksourceview_4 < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Db_asneeded=false \ -Db_asneeded=false \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
......
...@@ -44,7 +44,7 @@ class Gtksourceview_5 < Package ...@@ -44,7 +44,7 @@ class Gtksourceview_5 < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Db_asneeded=false \ -Db_asneeded=false \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
......
...@@ -33,7 +33,7 @@ class Gusb < Package ...@@ -33,7 +33,7 @@ class Gusb < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dc_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \ -Dc_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dc_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \ -Dc_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dcpp_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \ -Dcpp_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
......
...@@ -48,7 +48,7 @@ class Gvfs < Package ...@@ -48,7 +48,7 @@ class Gvfs < Package
depends_on 'smbclient' depends_on 'smbclient'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dfuse=true \ -Dfuse=true \
-Dgoa=false \ -Dgoa=false \
-Dgoogle=false \ -Dgoogle=false \
......
...@@ -32,7 +32,7 @@ class Harfbuzz < Package ...@@ -32,7 +32,7 @@ class Harfbuzz < Package
depends_on 'graphite' => :build depends_on 'graphite' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \ --default-library=both \
-Dintrospection=enabled \ -Dintrospection=enabled \
-Dbenchmark=disabled \ -Dbenchmark=disabled \
......
...@@ -32,7 +32,7 @@ class Igt_gpu_tools < Package ...@@ -32,7 +32,7 @@ class Igt_gpu_tools < Package
depends_on 'gtk_doc' => :build depends_on 'gtk_doc' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Ddocs=disabled \ -Ddocs=disabled \
-Dtests=disabled \ -Dtests=disabled \
-Doping=disabled \ -Doping=disabled \
......
...@@ -27,7 +27,7 @@ class Json_glib < Package ...@@ -27,7 +27,7 @@ class Json_glib < Package
depends_on 'gobject_introspection' depends_on 'gobject_introspection'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -37,7 +37,7 @@ class Libadwaita < Package ...@@ -37,7 +37,7 @@ class Libadwaita < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Drequire_all_tests=false \ -Drequire_all_tests=false \
-Duser_documentation=false \ -Duser_documentation=false \
builddir" builddir"
......
...@@ -32,7 +32,7 @@ class Libchamplain < Package ...@@ -32,7 +32,7 @@ class Libchamplain < Package
depends_on 'vala' => :build depends_on 'vala' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -29,7 +29,7 @@ class Libdrm < Package ...@@ -29,7 +29,7 @@ class Libdrm < Package
depends_on 'libxslt' depends_on 'libxslt'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dfreedreno-kgsl=true \ -Dfreedreno-kgsl=true \
-Damdgpu=true \ -Damdgpu=true \
-Dradeon=true \ -Dradeon=true \
......
...@@ -26,7 +26,7 @@ class Libepoxy < Package ...@@ -26,7 +26,7 @@ class Libepoxy < Package
depends_on 'python3' depends_on 'python3'
def self.build def self.build
system "meson #{CREW_MESON_OPTIONS} builddir" system "meson #{CREW_MESON_FNO_LTO_OPTIONS} builddir"
system "meson configure builddir" system "meson configure builddir"
system "ninja -C builddir" system "ninja -C builddir"
end end
......
...@@ -26,7 +26,7 @@ class Libevdev < Package ...@@ -26,7 +26,7 @@ class Libevdev < Package
depends_on 'python3' => :build depends_on 'python3' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -31,7 +31,7 @@ class Libgnome_games_support < Package ...@@ -31,7 +31,7 @@ class Libgnome_games_support < Package
depends_on 'clutter' depends_on 'clutter'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -25,7 +25,7 @@ class Libgudev < Package ...@@ -25,7 +25,7 @@ class Libgudev < Package
depends_on 'gobject_introspection' depends_on 'gobject_introspection'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -31,7 +31,7 @@ class Libgweather < Package ...@@ -31,7 +31,7 @@ class Libgweather < Package
depends_on 'glade' => :build depends_on 'glade' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=disabled \ -Dsystemd=disabled \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
......
...@@ -41,7 +41,7 @@ class Libgxps < Package ...@@ -41,7 +41,7 @@ class Libgxps < Package
depends_on 'openjpeg' depends_on 'openjpeg'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -38,7 +38,7 @@ class Libhandy < Package ...@@ -38,7 +38,7 @@ class Libhandy < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -24,7 +24,7 @@ class Libinih < Package ...@@ -24,7 +24,7 @@ class Libinih < Package
}) })
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Ddefault_library=both \ -Ddefault_library=both \
-Ddistro_install=true \ -Ddistro_install=true \
-Dwith_INIReader=true \ -Dwith_INIReader=true \
......
...@@ -35,7 +35,7 @@ class Libinput < Package ...@@ -35,7 +35,7 @@ class Libinput < Package
# depends_on 'gtk3' => :build # depends_on 'gtk3' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Ddebug-gui=false \ -Ddebug-gui=false \
-Ddocumentation=false \ -Ddocumentation=false \
builddir" builddir"
......
...@@ -28,7 +28,7 @@ class Libnotify < Package ...@@ -28,7 +28,7 @@ class Libnotify < Package
depends_on 'gnome_common' depends_on 'gnome_common'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dman=false \ -Dman=false \
-Ddocbook_docs=disabled \ -Ddocbook_docs=disabled \
-Dtests=false \ -Dtests=false \
......
...@@ -31,7 +31,7 @@ class Libpeas < Package ...@@ -31,7 +31,7 @@ class Libpeas < Package
depends_on 'vala' => :build depends_on 'vala' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson configure builddir" system "meson configure builddir"
system "ninja -C builddir" system "ninja -C builddir"
end end
......
...@@ -24,7 +24,7 @@ class Libpsl < Package ...@@ -24,7 +24,7 @@ class Libpsl < Package
}) })
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Ddocs=disabled \ -Ddocs=disabled \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
......
...@@ -27,7 +27,7 @@ class Libsecret < Package ...@@ -27,7 +27,7 @@ class Libsecret < Package
depends_on 'vala' => :build depends_on 'vala' => :build
def self.build def self.build
system "meson #{CREW_MESON_OPTIONS} -Dgtk_doc=false -Dmanpage=false build" system "meson #{CREW_MESON_FNO_LTO_OPTIONS} -Dgtk_doc=false -Dmanpage=false build"
system 'meson configure build' system 'meson configure build'
system 'ninja -v -C build' system 'ninja -v -C build'
end end
......
...@@ -24,7 +24,7 @@ class Libsigcplusplus < Package ...@@ -24,7 +24,7 @@ class Libsigcplusplus < Package
}) })
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dmaintainer-mode=true \ -Dmaintainer-mode=true \
-Dbuild-deprecated-api=true \ -Dbuild-deprecated-api=true \
-Dbuild-examples=false \ -Dbuild-examples=false \
......
...@@ -24,7 +24,7 @@ class Libsigcplusplus3 < Package ...@@ -24,7 +24,7 @@ class Libsigcplusplus3 < Package
}) })
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dbuild-examples=false \ -Dbuild-examples=false \
builddir" builddir"
system "meson configure builddir" system "meson configure builddir"
......
...@@ -29,7 +29,7 @@ class Libsoup < Package ...@@ -29,7 +29,7 @@ class Libsoup < Package
depends_on 'libsoup2' # This way we make sure packages which need the older libsoup-2.4 library get it too. depends_on 'libsoup2' # This way we make sure packages which need the older libsoup-2.4 library get it too.
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dtests=false \ -Dtests=false \
-Dsysprof=disabled \ -Dsysprof=disabled \
-Dintrospection=enabled \ -Dintrospection=enabled \
......
...@@ -28,7 +28,7 @@ class Libsoup2 < Package ...@@ -28,7 +28,7 @@ class Libsoup2 < Package
depends_on 'vala' depends_on 'vala'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dtests=false \ -Dtests=false \
-Dsysprof=disabled \ -Dsysprof=disabled \
-Dintrospection=enabled \ -Dintrospection=enabled \
......
...@@ -31,7 +31,7 @@ class Libva < Package ...@@ -31,7 +31,7 @@ class Libva < Package
depends_on 'wayland' depends_on 'wayland'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \ --default-library=both \
-Db_lto=true \ -Db_lto=true \
-Db_pie=true \ -Db_pie=true \
......
...@@ -30,7 +30,7 @@ class Libva_intel_driver_hybrid < Package ...@@ -30,7 +30,7 @@ class Libva_intel_driver_hybrid < Package
end end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Denable_hybrid_codec=true builddir" -Denable_hybrid_codec=true builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -26,7 +26,7 @@ class Libva_utils < Package ...@@ -26,7 +26,7 @@ class Libva_utils < Package
depends_on 'libva' depends_on 'libva'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir" system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
......
...@@ -31,7 +31,7 @@ class Libwacom < Package ...@@ -31,7 +31,7 @@ class Libwacom < Package
system "pip3 install --upgrade --no-warn-script-location pyudev --prefix #{CREW_PREFIX}" system "pip3 install --upgrade --no-warn-script-location pyudev --prefix #{CREW_PREFIX}"
system "pip3 install --upgrade --no-warn-script-location pytest --prefix #{CREW_PREFIX}" system "pip3 install --upgrade --no-warn-script-location pytest --prefix #{CREW_PREFIX}"
system "pip3 install --upgrade --no-warn-script-location libevdev --prefix #{CREW_PREFIX}" system "pip3 install --upgrade --no-warn-script-location libevdev --prefix #{CREW_PREFIX}"
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dtests=disabled \ -Dtests=disabled \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
......
...@@ -26,7 +26,7 @@ class Libwpe < Package ...@@ -26,7 +26,7 @@ class Libwpe < Package
depends_on 'libxkbcommon' depends_on 'libxkbcommon'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -28,7 +28,7 @@ class Libxkbcommon < Package ...@@ -28,7 +28,7 @@ class Libxkbcommon < Package
def self.build def self.build
system "meson \ system "meson \
#{CREW_MESON_LTO_OPTIONS} \ #{CREW_MESON_OPTIONS} \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -58,7 +58,7 @@ class Mesa < Package ...@@ -58,7 +58,7 @@ class Mesa < Package
system 'pip3 uninstall -y Mako MarkupSafe || :' system 'pip3 uninstall -y Mako MarkupSafe || :'
system "pip3 install --no-warn-script-location --prefix \"#{CREW_PREFIX}\" --root \"#{CREW_DEST_DIR}\" Mako" system "pip3 install --no-warn-script-location --prefix \"#{CREW_PREFIX}\" --root \"#{CREW_DEST_DIR}\" Mako"
system "pip3 install --prefix \"#{CREW_PREFIX}\" Mako" system "pip3 install --prefix \"#{CREW_PREFIX}\" Mako"
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Db_asneeded=false \ -Db_asneeded=false \
-Dvulkan-drivers=#{@vk} \ -Dvulkan-drivers=#{@vk} \
-Dgallium-drivers=#{@galliumdrivers} \ -Dgallium-drivers=#{@galliumdrivers} \
......
...@@ -24,7 +24,7 @@ class Mm_common < Package ...@@ -24,7 +24,7 @@ class Mm_common < Package
}) })
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Duse-network=true \ -Duse-network=true \
builddir" builddir"
system "meson configure builddir" system "meson configure builddir"
......
...@@ -33,7 +33,7 @@ class Mutter < Package ...@@ -33,7 +33,7 @@ class Mutter < Package
depends_on 'ccache' => :build depends_on 'ccache' => :build
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_OPTIONS} \
-Dtests=false \ -Dtests=false \
-Dprofiler=false \ -Dprofiler=false \
-Dopengl=true \ -Dopengl=true \
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment