Skip to content
Snippets Groups Projects
Commit f9772b66 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Added glib component

parent 3068afe3
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
#@ load("/components/llvm_documentation.lib.yml", "llvm_documentation_component")
#@ load("/components/llvmcpy.lib.yml", "llvmcpy_component")
#@ load("/components/clang_release.lib.yml", "clang_release_component")
#@ load("/components/glib.lib.yml", "glib_component")
#@ load("/components/qemu.lib.yml", "qemu_component")
#@ load("/components/boost.lib.yml", "boost_component")
#@ load("/components/revng.lib.yml", "revng_component")
......@@ -53,6 +54,7 @@ components:
llvm-documentation: #@ llvm_documentation_component
llvmcpy: #@ llvmcpy_component
clang-release: #@ clang_release_component
glib: #@ glib_component
qemu: #@ qemu_component
boost: #@ boost_component
revng: #@ revng_component
......
#@ load("/lib/ninja.lib.yml", "ninja")
#@ source_url = "https://download.gnome.org/sources/glib/2.64/glib-2.64.5.tar.xz"
#@yaml/text-templated-strings
---
#@ def _glib_component():
builds:
default:
configure: |
mkdir -p "$BUILD_DIR/source"
extract.sh --into "$BUILD_DIR/source" (@= source_url @)
find "$BUILD_DIR/source/" -name meson.build -exec sed -i "s|install\s*:\s*|install_rpath : '$RPATH_PLACEHOLDER/lib', \0|" {} \;
sed -i 's|^.*HAVE_LANGINFO_.*1.*$||' "$BUILD_DIR/source/meson.build"
export LIBFFI_CFLAGS="-I$ORCHESTRA_ROOT/include"
export LIBFFI_LIBS="-L$ORCHESTRA_ROOT/lib64 -lffi"
CC=clang \
CXX=clang++ \
meson setup \
--buildtype plain \
--prefix "$ORCHESTRA_ROOT" \
--wrap-mode nodownload \
-Ddefault_library=shared \
-Dselinux=disabled \
-Dxattr=false \
-Dlibmount=disabled \
-Dinternal_pcre=true \
-Dman=false \
-Ddtrace=false \
-Dsystemtap=false \
-Dgtk_doc=false \
-Dfam=false \
-Dinstalled_tests=false \
-Dnls=disabled \
-Dc_args="-w" \
-Dc_link_args="-Wl,-z,origin -Wl,--enable-new-dtags -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath-link,$ORCHESTRA_ROOT/lib" \
"$BUILD_DIR" \
"$BUILD_DIR/source"
install: |
cd "$BUILD_DIR"
export LANG=
export LIBFFI_CFLAGS="-I$ORCHESTRA_ROOT/include"
export LIBFFI_LIBS="-L$ORCHESTRA_ROOT/lib64 -lffi"
(@= ninja @)
(@= ninja @) install
dependencies:
- clang-release
#@ end
---
#@ glib_component = _glib_component()
......@@ -41,6 +41,7 @@ builds:
- llvm
- clang-release
- zlib
- glib
#@ end
#@ end
......
#@ ninja = "ninja ${JOBS:+-j$JOBS}"
#@ serial_ninja = "ninja -j1"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment