Browse Source

templates/gettext-config.h.in added.

master
Kolan Sh 4 years ago
parent
commit
85724cbd4e
2 changed files with 12 additions and 1 deletions
  1. 1
    1
      GettextCommonRules.cmake
  2. 11
    0
      templates/gettext-config.h.in

+ 1
- 1
GettextCommonRules.cmake View File

@@ -17,7 +17,7 @@ ENDFOREACH()
# configure a header file for Gettext
STRING (TOUPPER "${CMAKE_PROJECT_NAME}" GettextUniqueHeader)
CONFIGURE_FILE (
"gettext-config.h.in"
"${CMAKE_SOURCE_DIR}/cmake/backbone/templates/gettext-config.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/gettext-config.h"
)


+ 11
- 0
templates/gettext-config.h.in View File

@@ -0,0 +1,11 @@
#ifndef @GettextUniqueHeader@_H
#define @GettextUniqueHeader@_H

#define GETTEXT_PACKAGE "@GETTEXT_PACKAGE@"
#include <glib/gi18n-lib.h>

#ifdef WIN32
#define _(String) dgettext (GETTEXT_PACKAGE, String)
#endif

#endif // @GettextUniqueHeader@_H

Loading…
Cancel
Save