Browse Source

templates/gettext-config.h.in added.

master
Kolan Sh 3 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()
17 17
 # configure a header file for Gettext
18 18
 STRING (TOUPPER "${CMAKE_PROJECT_NAME}" GettextUniqueHeader)
19 19
 CONFIGURE_FILE (
20
-  "gettext-config.h.in"
20
+  "${CMAKE_SOURCE_DIR}/cmake/backbone/templates/gettext-config.h.in"
21 21
   "${CMAKE_CURRENT_BINARY_DIR}/gettext-config.h"
22 22
 )
23 23
 

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

@@ -0,0 +1,11 @@
1
+#ifndef @GettextUniqueHeader@_H
2
+#define @GettextUniqueHeader@_H
3
+
4
+#define GETTEXT_PACKAGE "@GETTEXT_PACKAGE@"
5
+#include <glib/gi18n-lib.h>
6
+
7
+#ifdef WIN32
8
+#define _(String) dgettext (GETTEXT_PACKAGE, String)
9
+#endif
10
+
11
+#endif // @GettextUniqueHeader@_H

Loading…
Cancel
Save