Explorar el Código

add after_install

ruki hace 1 año
padre
commit
20bd8d81de
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      src/foo/xmake.sh

+ 7 - 0
src/foo/xmake.sh

@@ -6,3 +6,10 @@ target "foo"
     add_defines "FOO" "{public}"
     add_undefines "BAZ" "{public}"
     add_includedirs "." "{public}"
+    after_install "foo_after_install"
+
+foo_after_install() {
+    local target=${1}
+    local installdir=${2}
+    echo "after installing ${target} ${installdir}"
+}