Initial commit.
This commit is contained in:
commit
7354b302b4
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
build
|
16
CMakeLists.txt
Normal file
16
CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
project(tox-weechat)
|
||||
|
||||
add_definitions(-std=c11)
|
||||
|
||||
add_library(tox SHARED
|
||||
src/tox-weechat.c
|
||||
)
|
||||
|
||||
# remove lib prefix
|
||||
set_target_properties(tox PROPERTIES PREFIX "")
|
||||
|
||||
target_link_libraries(tox toxcore)
|
||||
|
||||
install(FILES build/tox.so DESTINATION ~/.weechat/plugins)
|
20
src/tox-weechat.c
Normal file
20
src/tox-weechat.c
Normal file
@ -0,0 +1,20 @@
|
||||
#include <weechat/weechat-plugin.h>
|
||||
|
||||
WEECHAT_PLUGIN_NAME("tox");
|
||||
WEECHAT_PLUGIN_DESCRIPTION("Tox protocol");
|
||||
WEECHAT_PLUGIN_AUTHOR("Håvard Pettersson <haavard.pettersson@gmail.com>");
|
||||
WEECHAT_PLUGIN_VERSION("0.1");
|
||||
WEECHAT_PLUGIN_LICENSE("GPL3");
|
||||
|
||||
int
|
||||
weechat_plugin_init(struct t_weechat_plugin *plugin,
|
||||
int argc, char *argv[])
|
||||
{
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
int
|
||||
weechat_plugin_end(struct t_weechat_plugin *plugin)
|
||||
{
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
4
src/tox-weechat.h
Normal file
4
src/tox-weechat.h
Normal file
@ -0,0 +1,4 @@
|
||||
#ifndef TOX_WEECHAT_H
|
||||
#define TOX_WEECHAT_H
|
||||
|
||||
#endif // TOX_WEECHAT_H
|
Loading…
Reference in New Issue
Block a user