test dependency loading

This commit is contained in:
2025-03-17 12:55:01 -05:00
parent a7be10fde3
commit 830fe14355
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#include "DependsOnPrint.h"
DependsOnPrint::DependsOnPrint(void* h, App& a) : Module(h, a) {
name = "DependsOnPrint";
deps["Print"] = "/home/nathan/Projects/Archimedes/result-2/bin/Print";
}
DependsOnPrint::~DependsOnPrint() {
std::cout << "DependsOnPrint Destroyed!\n";
}
void DependsOnPrint::run() {
std::cout << "DependsOnPrint lib loaded and run!\n";
app.stopModule(self);
}

View File

@@ -0,0 +1,17 @@
#include "Archimedes.h"
class DependsOnPrint : public Module {
public:
DependsOnPrint(void*, App&);
~DependsOnPrint();
void run();
void onLoad() {}
};
extern "C" {
Module* create(void* handle, App& app) {
return new DependsOnPrint(handle, app);
}
}