1
0
Fork 0

In progress...

This commit is contained in:
Kolan Sh 2015-11-14 08:19:28 +03:00
parent f166d9cf18
commit 09583ccffd
8 changed files with 17 additions and 63 deletions

View File

@ -1,5 +1,5 @@
<schemalist>
<schema id="ws.backbone.lavew.plugins.protocol-example-0" path="/ws/backbone/laview/plugins/protocol-example-0/" gettext-domain="laview-plugins-protocol-example-0">
<schema id="ws.backbone.lavew.plugins.protocol-example-@MAJOR@" path="/ws/backbone/laview/plugins/protocol-example-@MAJOR@/" gettext-domain="laview-plugins-protocol-example-@MAJOR@">
<key name="greeting" type="s">
<default l10n="messages">"Hello, earthlings"</default>

View File

@ -1,11 +1,11 @@
# German translations for laview-plugin-protocol-example-0 package.
# Copyright (C) 2015 THE laview-plugin-protocol-example-0'S COPYRIGHT HOLDER
# This file is distributed under the same license as the laview-plugin-protocol-example-0 package.
# German translations for laview-plugin-protocol-example package.
# Copyright (C) 2015 THE laview-plugin-protocol-example'S COPYRIGHT HOLDER
# This file is distributed under the same license as the laview-plugin-protocol-example package.
# <backbone@backbone.ws>, 2015.
#
msgid ""
msgstr ""
"Project-Id-Version: laview-plugin-protocol-example-0\n"
"Project-Id-Version: laview-plugin-protocol-example\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-09 15:51+0300\n"
"PO-Revision-Date: 2015-11-09 15:51+0300\n"

View File

@ -1,14 +1,14 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the laview-plugin-protocol-example-0 package.
# This file is distributed under the same license as the laview-plugin-protocol-example package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: laview-plugin-protocol-example-0\n"
"Project-Id-Version: laview-plugin-protocol-example\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-09 15:51+0300\n"
"POT-Creation-Date: 2015-11-14 08:16+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -1,11 +1,11 @@
# Russian translations for laview-plugin-protocol-example-0 package.
# Copyright (C) 2015 THE laview-plugin-protocol-example-0'S COPYRIGHT HOLDER
# This file is distributed under the same license as the laview-plugin-protocol-example-0 package.
# Russian translations for laview-plugin-protocol-example package.
# Copyright (C) 2015 THE laview-plugin-protocol-example'S COPYRIGHT HOLDER
# This file is distributed under the same license as the laview-plugin-protocol-example package.
# <backbone@backbone.ws>, 2015.
#
msgid ""
msgstr ""
"Project-Id-Version: laview-plugin-protocol-example-0\n"
"Project-Id-Version: laview-plugin-protocol-example\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-09 15:51+0300\n"
"PO-Revision-Date: 2015-11-09 15:51+0300\n"

View File

@ -4,11 +4,9 @@ SET (PluginPackages gtk+-3.0 gee-0.8 gobject-plugin-iface-0 laview-core-iface-0
SET (PluginPkgModules gtk+-3.0 gee-0.8 laview-core-0)
SET (PluginCustomVapis ${CMAKE_SOURCE_DIR}/config/Config.vapi)
INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}/config")
SET (PluginExtraSources ${PROJECT_SOURCE_DIR}/src/library_constructor.c)
SET (PluginInstall ON)
IF (WIN32)
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mwindows")
SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--export-all-symbols")
ENDIF (WIN32)
SET (LibExtraSources ${CMAKE_CURRENT_BINARY_DIR}/library_constructor.c)
SET (LC_RELATIVE_PREFIX "../../..")
CONFIGURE_FILE ( "${CMAKE_SOURCE_DIR}/cmake/backbone/templates/library_constructor.c.in" "${LibExtraSources}")
SET (PluginInstallPrefix "lib/laview-core-0/protocol-plugins")
INCLUDE (ValaPluginCommonRules)

View File

@ -1,45 +0,0 @@
#if defined(_WIN32) || defined(_WIN64)
#include <windows.h>
#elif defined(linux) || defined(UNIX) || defined(__unix__)
#define _GNU_SOURCE
#include <dlfcn.h>
#include <stdio.h>
#endif
char SO_PATH[FILENAME_MAX];
#include "gettext-config.h"
#if defined(_WIN32) || defined(_WIN64)
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
#elif defined(linux) || defined(UNIX) || defined(__unix__)
void __attribute__ ((constructor)) load_library (void)
#endif
{
#if defined(_WIN32) || defined(_WIN64)
gchar dllPath[FILENAME_MAX],
*dllDir,
*localePath;
GetModuleFileName (hInstance, dllPath, FILENAME_MAX);
dllDir = g_path_get_dirname (dllPath);
localePath = g_build_filename (dllDir, "../share/locale", NULL);
g_free (dllDir);
bindtextdomain (GETTEXT_PACKAGE, localePath);
g_free (localePath);
#elif defined(linux) || defined(UNIX) || defined(__unix__)
Dl_info dl_info;
dladdr(load_library, &dl_info);
strcpy (SO_PATH, dl_info.dli_fname);
#endif
#if (!GLIB_CHECK_VERSION (2, 36, 0))
g_type_init ();
#endif
#if defined(_WIN32) || defined(_WIN64)
(void) dwReason; // avoid
(void) lpReserved; // warnings
return TRUE;
#endif
}

View File

@ -1 +1,2 @@
INSTALL (FILES protocol-example.glade DESTINATION "share/laview/protocol-plugins/protocol-example-${MAJOR}/ui")
SET (GladeFile ${PROJECT_LOWERCASE_NAME})
INCLUDE (GladeCommonRules)