feat: added zmq and cppzmq
This commit is contained in:
parent
6c4505e891
commit
8dfde0483a
6 changed files with 27 additions and 2 deletions
|
|
@ -1,3 +1,15 @@
|
|||
from subprocess import call
|
||||
import os.path
|
||||
|
||||
Import('env')
|
||||
|
||||
env.add_source_files(env.modules_sources, "*.cpp")
|
||||
ydi_env = env.Clone()
|
||||
ydi_env.Append(CPPPATH=["libzmq/include", "cppzmq/"])
|
||||
ydi_env.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
||||
if not os.path.isdir(Dir('libzmq/build/lib').abspath):
|
||||
call(["cmake", "-Slibzmq", "-B" + Dir('../modules/you_done_it/libzmq/build').abspath, "-DZMQ_BUILD_TESTS=OFF"])
|
||||
call(["cmake", "--build", Dir('libzmq/build').abspath])
|
||||
|
||||
env.Append(LIBPATH=[Dir('libzmq/build/lib/').abspath])
|
||||
env.Append(LIBS=['zmq'])
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ def can_build(env, platform):
|
|||
return True;
|
||||
|
||||
def configure(env):
|
||||
pass;
|
||||
pass
|
||||
|
|
|
|||
1
modules/you_done_it/cppzmq
Submodule
1
modules/you_done_it/cppzmq
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 8bace31b3db612d7c5ad7fd01b46f4c2c8a3a7e3
|
||||
1
modules/you_done_it/libzmq
Submodule
1
modules/you_done_it/libzmq
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 7a7bfa10e6b0e99210ed9397369b59f9e69cef8e
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
#include "register_types.h"
|
||||
|
||||
#include "core/object/class_db.h"
|
||||
#include "zmq.hpp"
|
||||
|
||||
void initialize_you_done_it_module(ModuleInitializationLevel p_level) {
|
||||
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
|
|
|
|||
10
modules/you_done_it/ydi_server.h
Normal file
10
modules/you_done_it/ydi_server.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef YDI_SERVER_H
|
||||
#define YDI_SERVER_H
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace ydi::server {
|
||||
void open(int port);
|
||||
}
|
||||
|
||||
#endif // !YDI_SERVER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue