Initial commit.

This commit is contained in:
Håvard Pettersson 2014-09-02 12:37:00 +02:00
commit 7354b302b4
4 changed files with 41 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build

16
CMakeLists.txt Normal file
View 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
View 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
View File

@ -0,0 +1,4 @@
#ifndef TOX_WEECHAT_H
#define TOX_WEECHAT_H
#endif // TOX_WEECHAT_H