Add gen_c_bindings gbs build option 92/319192/1
authorYoungsun Suh <youngsun.suh@samsung.com>
Wed, 5 Feb 2025 07:14:09 +0000 (16:14 +0900)
committerYoungsun Suh <youngsun.suh@samsung.com>
Wed, 5 Feb 2025 07:14:48 +0000 (16:14 +0900)
Change-Id: I1329a73a5a958de25b895743cbc4486d8f22861c

packaging/aurum.spec

index 73c6f38c75d599a7e307964f12271035656b79b7..aedf1f2ee287d215ba34a9d00cbd9e0c0d50b0e5 100644 (file)
@@ -80,6 +80,13 @@ cp %{SOURCE1001} .
 export LDFLAGS+="-Wl,-z,noexecstack"
 %endif
 
+%if "%{gen_c_bindings}" == "1"
+echo "Generating C bindings..."
+%define GEN_C_BINDINGS true
+%else
+%define GEN_C_BINDINGS false
+%endif
+
 %if 0%{?gendoc:1}
 %define TIZEN_GEN_DOC true
 %else
@@ -94,6 +101,7 @@ meson \
     -Denable_documentation=%{TIZEN_GEN_DOC} \
     -Dtzapp_path=%{TZ_SYS_RO_APP} \
     -Dtzpackage_path=%{TZ_SYS_RO_PACKAGES} \
+    -Dbuild_c_bindings=%{GEN_C_BINDINGS} \
     gbsbuild 2>&1 | sed \
         -e 's%^.*: error: .*$%\x1b[37;41m&\x1b[m%' \
         -e 's%^.*: warning: .*$%\x1b[30;43m&\x1b[m%'