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)
'CREW_LIB_PREFIX',
'CREW_LIB_SUFFIX',
'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_META_PATH',
'CREW_NOT_COMPRESS',
......
# Defines common constants used in different parts of crew
CREW_VERSION = '1.7.26'
CREW_VERSION = '1.8.0'
ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines
......@@ -72,15 +72,20 @@ when 'x86_64'
CREW_BUILD = 'x86_64-cros-linux-gnu'
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_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_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_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_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
# 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
# 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_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
def self.build
system "meson #{CREW_MESON_OPTIONS} \
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} \
-Dc_args='-fuse-ld=lld' \
builddir"
system "meson configure builddir"
......
......@@ -45,7 +45,7 @@ class Appstream_glib < Package
depends_on 'util_linux'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dtests=false \
-Dsysprof=disabled \
-Dintrospection=true \
......
......@@ -27,7 +27,7 @@ class At_spi2_atk < Package
depends_on 'atk'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson configure builddir"
system "ninja -C builddir"
end
......
......@@ -30,7 +30,7 @@ class At_spi2_core < Package
depends_on 'gtk_doc'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
......@@ -26,7 +26,7 @@ class Atk < Package
depends_on 'six' => :build
def self.build
system "meson #{CREW_MESON_OPTIONS} build"
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} build"
system 'meson configure build'
system 'ninja -C build'
end
......
......@@ -26,7 +26,7 @@ class Atkmm < Package
depends_on 'glibmm'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \
-Dbuild-documentation=false \
-Dbuild-demos=false \
......
......@@ -26,7 +26,7 @@ class Babl < Package
depends_on 'pango'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -34,7 +34,7 @@ class Cairo < Package
depends_on 'pixman'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \
-Dgl-backend=auto \
-Dglesv3=enabled \
......
......@@ -29,7 +29,7 @@ class Cairomm_1_0 < Package
depends_on 'libxrender'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \
-Dbuild-documentation=false \
-Dbuild-examples=false \
......
......@@ -29,7 +29,7 @@ class Cairomm_1_16 < Package
depends_on 'libxrender'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \
-Dbuild-documentation=false \
-Dbuild-examples=false \
......
......@@ -28,7 +28,7 @@ class Cantarell_fonts < Package
depends_on 'graphite' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Duseprebuilt=true \
-Dfontsdir=#{CREW_PREFIX}/share/fonts/opentype/cantarell \
builddir"
......
......@@ -31,7 +31,7 @@ class Clutter_gtk < Package
depends_on 'clutter'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
......@@ -26,7 +26,7 @@ class Dav1d < Package
depends_on 'nasm' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -29,7 +29,7 @@ class Dconf < Package
depends_on 'bash_completion' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -28,7 +28,7 @@ class Dconf_editor < Package
depends_on 'vala' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'ninja -C builddir'
end
......
......@@ -35,7 +35,7 @@ class Elogind < Package
depends_on 'polkit'
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_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' \
......
......@@ -46,7 +46,7 @@ class Epiphany < Package
depends_on 'webkit2gtk_4'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -48,7 +48,7 @@ class Evince < Package
depends_on 'poppler'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dgtk_doc=false \
-Dps=enabled \
-Dsystemduserunitdir=no \
......
......@@ -30,7 +30,7 @@ class Folks < Package
depends_on 'vala' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dbluez_backend=false \
-Ddocs=false \
-Deds_backend=false \
......
......@@ -39,7 +39,7 @@ class Fontconfig < Package
sys.exit()
INSTALLCACHE_HEREDOC
IO.write('install-cache', @install_cache, perm: 0o666)
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
--localstatedir=#{CREW_PREFIX}/cache \
--default-library=both \
-Ddoc=disabled \
......
......@@ -23,7 +23,7 @@ class Fribidi < Package
})
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 'ninja -v -C build'
end
......
......@@ -24,7 +24,7 @@ class Fuse3 < Package
def self.build
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 \
-Dudevrulesdir=#{CREW_PREFIX}/etc/udev/rules.d/ \
-Dexamples=true \
......
......@@ -34,7 +34,7 @@ class Gcalculator < Package
depends_on 'libsoup'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
......@@ -38,7 +38,7 @@ class Gcr < Package
depends_on 'vala' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dgtk_doc=false \
builddir"
system 'meson configure builddir'
......
......@@ -42,7 +42,7 @@ class Gdk_pixbuf < Package
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dinstalled_tests=false \
-Dbuiltin_loaders=all \
-Drelocatable=true \
......
......@@ -57,7 +57,7 @@ class Gedit < Package
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Drequire_all_tests=false \
-Duser_documentation=false \
builddir"
......
......@@ -47,7 +47,7 @@ class Gegl < Package
depends_on 'vala'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -33,7 +33,7 @@ class Geoclue < Package
depends_on 'modemmanager'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=disabled \
-Ddbus-sys-dir=#{CREW_PREFIX}/share/dbus-1 \
-D3g-source=true \
......
......@@ -32,7 +32,7 @@ class Geocode_glib < Package
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=false \
builddir"
system 'meson configure builddir'
......
......@@ -28,7 +28,7 @@ class Gexiv2 < Package
depends_on 'gobject_introspection'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -31,7 +31,7 @@ class Gjs < Package
depends_on 'dbus' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dinstalled_tests=false \
-Dskip_dbus_tests=true \
-Dreadline=disabled \
......
......@@ -31,7 +31,7 @@ class Glade < Package
def self.build
ENV['CFLAGS'] = "-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 "ninja -C build"
end
......
......@@ -31,7 +31,7 @@ class Glib < Package
depends_on 'pygments'
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_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' \
......
......@@ -26,7 +26,7 @@ class Glib_networking < Package
depends_on 'gsettings_desktop_schemas'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dstatic_modules=true builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -28,7 +28,7 @@ class Glibmm_2_4 < Package
depends_on 'mm_common' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \
-Dbuild-documentation=false \
-Dbuild-demos=false \
......
......@@ -28,7 +28,7 @@ class Glibmm_2_68 < Package
depends_on 'mm_common' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \
-Dbuild-documentation=false \
-Dbuild-demos=false \
......
......@@ -40,7 +40,7 @@ class Gnome_desktop < Package
depends_on 'yelp_tools' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=disabled \
builddir"
system 'meson configure builddir'
......
......@@ -19,7 +19,7 @@ class Gnome_klotski < Package
depends_on 'libgnome_games_support'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
......@@ -37,7 +37,7 @@ class Gnome_maps < Package
depends_on 'yelp_tools' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -20,7 +20,7 @@ class Gnome_mines < Package
def self.build
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 'ninja -C builddir'
end
......
......@@ -19,7 +19,7 @@ class Gnome_nibbles < Package
depends_on 'libgnome_games_support'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
......@@ -34,7 +34,7 @@ class Gnome_online_accounts < Package
depends_on 'vala' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dgtk_doc=true \
builddir"
system 'meson configure builddir'
......
......@@ -33,7 +33,7 @@ class Gnome_session < Package
depends_on 'docbook_xsl' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS}\
system "meson #{CREW_MESON_OPTIONS}\
-Dsystemd=false \
-Dsystemd_session=disable \
-Dsystemd_journal=false \
......
......@@ -56,7 +56,7 @@ class Gnome_settings_daemon < Package
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=false \
-Dcolord=false \
builddir"
......
......@@ -52,7 +52,7 @@ class Gnome_shell < Package
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dgtk_doc=true \
-Dsystemd=false \
-Dnetworkmanager=false \
......
......@@ -19,7 +19,7 @@ class Gnome_sudoku < Package
depends_on 'qqwing'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
......@@ -32,7 +32,7 @@ class Gnome_terminal < Package
depends_on 'gtk_doc'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \
-Dsearch_provider=false \
-Dnautilus_extension=false \
......
......@@ -30,7 +30,7 @@ class Gnome_tweaks < Package
depends_on 'libnotify'
def self.build
system "meson setup #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson setup #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
......@@ -32,7 +32,7 @@ class Gnome_weather < Package
depends_on 'libhandy'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=disabled \
builddir"
system 'meson configure builddir'
......
......@@ -27,7 +27,7 @@ class Gobject_introspection < Package
def self.build
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} \
meson #{CREW_MESON_LTO_OPTIONS} \
meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -27,7 +27,7 @@ class Graphene < Package
def self.build
ENV['CFLAGS'] = "-fuse-ld=lld"
ENV['CXXFLAGS'] = "-fuse-ld=lld"
system "meson #{CREW_MESON_OPTIONS} \
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} \
-Darm_neon=false \
-Dinstalled_tests=false \
-Dtests=false \
......
......@@ -29,7 +29,7 @@ class Gsettings_desktop_schemas < Package
depends_on 'gtk4'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
......@@ -31,7 +31,7 @@ class Gst_editing_services < Package
depends_on 'pygobject' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Ddoc=disabled \
-Dvalidate=disabled \
builddir"
......
......@@ -54,7 +54,7 @@ class Gst_plugins_bad < Package
def self.build
system "meson \
#{CREW_MESON_LTO_OPTIONS} \
#{CREW_MESON_OPTIONS} \
-Ddirectfb=disabled \
-Ddoc=disabled \
-Dflite=disabled \
......
......@@ -50,7 +50,7 @@ class Gst_plugins_base < Package
depends_on 'wayland'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dgst_debug=false \
-Dexamples=disabled \
builddir"
......
......@@ -59,7 +59,7 @@ class Gst_plugins_good < Package
depends_on 'wavpack' # R
def self.build
system "meson #{CREW_MESON_OPTIONS} \
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} \
-Ddoc=disabled \
-Drpicamsrc=disabled \
-Dgobject-cast-checks=disabled \
......
......@@ -31,7 +31,7 @@ class Gstreamer < Package
depends_on 'libunwind'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dgst_debug=false \
builddir"
system 'meson configure builddir'
......
......@@ -67,7 +67,7 @@ class Gtk3 < Package
depends_on 'wayland' # R
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dbroadway_backend=true \
-Ddemos=false \
-Dexamples=false \
......
......@@ -79,7 +79,7 @@ class Gtk4 < Package
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dbroadway-backend=true \
-Dbuild-examples=false \
-Dbuild-tests=false \
......
......@@ -56,7 +56,7 @@ class Gtk_doc < Package
#end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson configure builddir"
system "ninja -C builddir"
end
......
......@@ -27,7 +27,7 @@ class Gtkmm3 < Package
depends_on 'pangomm'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \
-Dbuild-documentation=false \
-Dbuild-demos=false \
......
......@@ -28,7 +28,7 @@ class Gtkmm4 < Package
depends_on 'cairomm'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -44,7 +44,7 @@ class Gtksourceview_4 < Package
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Db_asneeded=false \
builddir"
system 'meson configure builddir'
......
......@@ -44,7 +44,7 @@ class Gtksourceview_5 < Package
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Db_asneeded=false \
builddir"
system 'meson configure builddir'
......
......@@ -33,7 +33,7 @@ class Gusb < Package
end
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_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' \
......
......@@ -48,7 +48,7 @@ class Gvfs < Package
depends_on 'smbclient'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dfuse=true \
-Dgoa=false \
-Dgoogle=false \
......
......@@ -32,7 +32,7 @@ class Harfbuzz < Package
depends_on 'graphite' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \
-Dintrospection=enabled \
-Dbenchmark=disabled \
......
......@@ -32,7 +32,7 @@ class Igt_gpu_tools < Package
depends_on 'gtk_doc' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Ddocs=disabled \
-Dtests=disabled \
-Doping=disabled \
......
......@@ -27,7 +27,7 @@ class Json_glib < Package
depends_on 'gobject_introspection'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -37,7 +37,7 @@ class Libadwaita < Package
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Drequire_all_tests=false \
-Duser_documentation=false \
builddir"
......
......@@ -32,7 +32,7 @@ class Libchamplain < Package
depends_on 'vala' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -29,7 +29,7 @@ class Libdrm < Package
depends_on 'libxslt'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dfreedreno-kgsl=true \
-Damdgpu=true \
-Dradeon=true \
......
......@@ -26,7 +26,7 @@ class Libepoxy < Package
depends_on 'python3'
def self.build
system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} builddir"
system "meson configure builddir"
system "ninja -C builddir"
end
......
......@@ -26,7 +26,7 @@ class Libevdev < Package
depends_on 'python3' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -31,7 +31,7 @@ class Libgnome_games_support < Package
depends_on 'clutter'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
......@@ -25,7 +25,7 @@ class Libgudev < Package
depends_on 'gobject_introspection'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -31,7 +31,7 @@ class Libgweather < Package
depends_on 'glade' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dsystemd=disabled \
builddir"
system 'meson configure builddir'
......
......@@ -41,7 +41,7 @@ class Libgxps < Package
depends_on 'openjpeg'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -38,7 +38,7 @@ class Libhandy < Package
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
......@@ -24,7 +24,7 @@ class Libinih < Package
})
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Ddefault_library=both \
-Ddistro_install=true \
-Dwith_INIReader=true \
......
......@@ -35,7 +35,7 @@ class Libinput < Package
# depends_on 'gtk3' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Ddebug-gui=false \
-Ddocumentation=false \
builddir"
......
......@@ -28,7 +28,7 @@ class Libnotify < Package
depends_on 'gnome_common'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dman=false \
-Ddocbook_docs=disabled \
-Dtests=false \
......
......@@ -31,7 +31,7 @@ class Libpeas < Package
depends_on 'vala' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson configure builddir"
system "ninja -C builddir"
end
......
......@@ -24,7 +24,7 @@ class Libpsl < Package
})
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Ddocs=disabled \
builddir"
system 'meson configure builddir'
......
......@@ -27,7 +27,7 @@ class Libsecret < Package
depends_on 'vala' => :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 'ninja -v -C build'
end
......
......@@ -24,7 +24,7 @@ class Libsigcplusplus < Package
})
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dmaintainer-mode=true \
-Dbuild-deprecated-api=true \
-Dbuild-examples=false \
......
......@@ -24,7 +24,7 @@ class Libsigcplusplus3 < Package
})
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dbuild-examples=false \
builddir"
system "meson configure builddir"
......
......@@ -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.
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dtests=false \
-Dsysprof=disabled \
-Dintrospection=enabled \
......
......@@ -28,7 +28,7 @@ class Libsoup2 < Package
depends_on 'vala'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dtests=false \
-Dsysprof=disabled \
-Dintrospection=enabled \
......
......@@ -31,7 +31,7 @@ class Libva < Package
depends_on 'wayland'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
--default-library=both \
-Db_lto=true \
-Db_pie=true \
......
......@@ -30,7 +30,7 @@ class Libva_intel_driver_hybrid < Package
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Denable_hybrid_codec=true builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -26,7 +26,7 @@ class Libva_utils < Package
depends_on 'libva'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system "meson #{CREW_MESON_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
......
......@@ -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 pytest --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 \
builddir"
system 'meson configure builddir'
......
......@@ -26,7 +26,7 @@ class Libwpe < Package
depends_on 'libxkbcommon'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -28,7 +28,7 @@ class Libxkbcommon < Package
def self.build
system "meson \
#{CREW_MESON_LTO_OPTIONS} \
#{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
......
......@@ -58,7 +58,7 @@ class Mesa < Package
system 'pip3 uninstall -y Mako MarkupSafe || :'
system "pip3 install --no-warn-script-location --prefix \"#{CREW_PREFIX}\" --root \"#{CREW_DEST_DIR}\" Mako"
system "pip3 install --prefix \"#{CREW_PREFIX}\" Mako"
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Db_asneeded=false \
-Dvulkan-drivers=#{@vk} \
-Dgallium-drivers=#{@galliumdrivers} \
......
......@@ -24,7 +24,7 @@ class Mm_common < Package
})
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Duse-network=true \
builddir"
system "meson configure builddir"
......
......@@ -33,7 +33,7 @@ class Mutter < Package
depends_on 'ccache' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
system "meson #{CREW_MESON_OPTIONS} \
-Dtests=false \
-Dprofiler=false \
-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