Commits

Jeremy Rossi  committed f53431a

more waf

  • Participants
  • Parent commits 3fec567

Comments (0)

Files changed (4)

File src/os_analysisd/alerts/wscript

     
     ctx.stlib(
         source = "mail.c log.c exec.c getloglocation.c",
-        target = "analysisd_alerts",
+        target = "os_analysisd_alerts",
         defines = ['ARGV0="analysisd-alerts"'],
         includes = ".",
         export_includes = ".",

File src/os_analysisd/decoders/wscript

 
 def build(ctx):
     
+    ctx.objects(
+        source = ctx.path.ant_glob("plugins/*.c"),
+        target = "os_analysisd_decoders_plugins",
+        use = "os_headers os_analysisd_headers os_core",
+        defines = ['ARGV0="analysisd-decoders"'],
+        includes = ".",
+    )
+
     ctx.stlib(
-        source = ctx.path.ant_glob("**/*.c"),
-        target = "analysisd_decoders",
+        source = ctx.path.ant_glob("*.c"),
+        target = "os_analysisd_decoders",
         defines = ['ARGV0="analysisd-decoders"'],
         includes = ".",
         export_includes = ".",
-        use = "os_headers os_analysisd_headers os_core",
+        use = "os_headers os_analysisd_decoders_plugins os_analysisd_headers os_core",
     )

File src/os_analysisd/rules.c

 #include "rules.h"
 #include "config.h"
 #include "eventinfo.h"
-#include "compiled_rules/compiled_rules.h"
+#include "compiled_rules.h"
+#include "decoders/decoder.h"
 
 
 /* Chaging path for test rule. */

File src/os_analysisd/wscript

     )
     ctx.recurse("alerts decoders compiled_rules")
     ctx.program(
-        source=OTHER, 
+        source=OTHER + " analysisd.c", 
         target="ossec-analysisd",
         defines = ['ARGV0="ossec-analysisd"'],
-        use = "os_analysisd_headers os_core os_analysisd_alerts os_analysisd_decoders analysisd_compiled_rules",
+        use = "os_analysisd_headers os_core os_analysisd_decoders os_analysisd_alerts analysisd_compiled_rules",
     )
+    x= """
+    ctx.program(
+        source=OTHER + " testrule.c", 
+        target="ossec-logtest",
+        defines = ['ARGV0="ossec-analysisd"','TESTRULE'],
+        use = "os_analysisd_headers os_core os_analysisd_decoders os_analysisd_alerts analysisd_compiled_rules",
+    )
+    """