linking
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
#include "DependsOnPrint.h"
|
#include "DependsOnPrint.h"
|
||||||
|
|
||||||
DependsOnPrint::DependsOnPrint(void* h, App& a) : Module(h, a) {
|
DependsOnPrint::DependsOnPrint(void* h, Archimedes::App* a) : Module(h, a) {
|
||||||
name = "DependsOnPrint";
|
name = "DependsOnPrint";
|
||||||
|
|
||||||
deps["Print"] = "/home/nathan/Projects/Archimedes/result-2/bin/Print";
|
deps["Print"] = "/home/nathan/Projects/Archimedes/result-1/bin/Print";
|
||||||
}
|
}
|
||||||
|
|
||||||
DependsOnPrint::~DependsOnPrint() {
|
DependsOnPrint::~DependsOnPrint() {
|
||||||
@@ -12,5 +12,5 @@ DependsOnPrint::~DependsOnPrint() {
|
|||||||
|
|
||||||
void DependsOnPrint::run() {
|
void DependsOnPrint::run() {
|
||||||
std::cout << "DependsOnPrint lib loaded and run!\n";
|
std::cout << "DependsOnPrint lib loaded and run!\n";
|
||||||
app.stopModule(self);
|
app->stopModule(self);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#include "Archimedes.h"
|
#include "Archimedes.h"
|
||||||
|
|
||||||
class DependsOnPrint : public Module {
|
class DependsOnPrint : public Archimedes::Module {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DependsOnPrint(void*, App&);
|
DependsOnPrint(void*, Archimedes::App*);
|
||||||
~DependsOnPrint();
|
~DependsOnPrint();
|
||||||
void run();
|
void run();
|
||||||
void onLoad() {}
|
void onLoad() {}
|
||||||
@@ -11,7 +11,7 @@ class DependsOnPrint : public Module {
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
Module* create(void* handle, App& app) {
|
Archimedes::Module* create(void* handle, Archimedes::App* app) {
|
||||||
return new DependsOnPrint(handle, app);
|
return new DependsOnPrint(handle, app);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,12 @@ class DependsOnPrintStatic : public Archimedes::Module {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef DEPENDSONPRINTSTATIC_STATIC
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
Archimedes::Module* create(void* handle, Archimedes::App* app) {
|
Archimedes::Module* create(void* handle, Archimedes::App* app) {
|
||||||
return new DependsOnPrintStatic(handle, app);
|
return new DependsOnPrintStatic(handle, app);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#define PRINT_STATIC
|
||||||
#include "Print.h"
|
#include "Print.h"
|
||||||
|
|
||||||
Print::Print(void* h, Archimedes::App* a) : Archimedes::Module(h, a) {
|
Print::Print(void* h, Archimedes::App* a) : Archimedes::Module(h, a) {
|
||||||
|
|||||||
@@ -10,8 +10,12 @@ class Print : public Archimedes::Module {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef PRINT_STATIC
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
Archimedes::Module* create(void* handle, Archimedes::App* app) {
|
Archimedes::Module* create(void* handle, Archimedes::App* app) {
|
||||||
return new Print(handle, app);
|
return new Print(handle, app);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user