remove .so
authorhgn <hgodden00@gmail.com>
Tue, 9 Aug 2022 10:54:55 +0000 (11:54 +0100)
committerhgn <hgodden00@gmail.com>
Tue, 9 Aug 2022 10:54:55 +0000 (11:54 +0100)
.gitignore
src/tools.sh
src/vg/vg_gldiag.h
vg_build.sh

index 7d497edec3baeafdc1f7e55b92fadadd22771f5b..3431ab8d8ef7356d31f42ade36b14d192c07db6e 100755 (executable)
@@ -16,7 +16,7 @@ restricted/
 !.gitmodules
 
 # Dependencies _____________________
-!*.so
+#!*.so
 !*.a
 !*.dll
 
index e5a428a03b3b883abeb2e36b065912a1462ded9e..9c9fc3ac42a5d123accc32d4d77fa3494613ab1e 100644 (file)
@@ -1,3 +1,8 @@
+#!/bin/bash
+# Copyright (C) 2021-2022 Harry Godden (hgn) - All Rights Reserved
+#
+# Standard tool scripts
+#
 mkdir $_folder/tools -p
 
 _link="-lm"
index 29c246dd26ef47be542b208ef12a54eb15d88758..99a7059149cf477575f22e7566bc3d627722c7a9 100644 (file)
@@ -11,6 +11,7 @@ static void vg_check_gl_integerv( FILE *log, GLenum name, const char *stringname
 
 static int vg_run_gfx_diagnostics(void)
 {
+#if 0
        FILE *log = fopen( "gldiag.txt", "w" );
        if( log )
        {
@@ -36,6 +37,7 @@ static int vg_run_gfx_diagnostics(void)
                
                fclose( log );
        }
+#endif
        
        return 0;
-}
\ No newline at end of file
+}
index 9ea78676d0d815676c5a6341bc95cc64cfe1232a..70913c74128e25693059ebdaf6f95fdfa1020d0f 100644 (file)
@@ -1,8 +1,36 @@
 #!/bin/bash
 # Copyright (C) 2021-2022 Harry Godden (hgn) - All Rights Reserved
-
+#
+# Build script utilities
+# Usage:
+#  1) in your build script, define the function
+#
+#   vg_command(){
+#      
+#   }
+#  
+#  it should handle $1 as the switch for different commands
+#  if you want to run an existing command, use run_command <x> to do it.
+#
+#
+#  2) at the end of the build script, include:
+#
+#   source vg/vg_build.sh
+#
+#  this runs the triggers that are passed in from the invoker
+#
+#  
+#  3) targets with standard tool support should run the command:
+#
+#    vg_compile_tools
+#
+#  make sure _compiler _options, and _ext are setup for that target
+#  these will only invoke the tooling compilers if tools is passed to the 
+#  build script.
+#
 # Util
 # ==============================================================================
+
 error(){
     echo -e "\033[1;31mError:\e[0m $@"
     exit 1
@@ -40,8 +68,6 @@ if ! [ -x "$( command -v $compiler_cache )" ]; then
 fi
 
 compile_x(){
-   mkdir $_folder -p
-
    cmd="$compiler_cache $_compiler 
         $_options
         $_warnings
@@ -70,16 +96,25 @@ vg_compile_tools() {
    if [ $enable_tools = true ]; then source vg/src/tools.sh; fi
 }
 
-tools() {
-   enable_tools=true
+run_command(){
+   case "$1" in
+      tools)
+         enable_tools=true
+      ;;
+      "")
+         return
+      ;;
+      *)
+         vg_command $1
+   esac
 }
 
-$1
-$2
-$3
-$4
-$5
-$6
-$7
-$8
-$9
+run_command $1
+run_command $2
+run_command $3
+run_command $4
+run_command $5
+run_command $6
+run_command $7
+run_command $8
+run_command $9