File: gettext.prf

package info (click to toggle)
openscad 2021.01-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,096 kB
  • sloc: cpp: 53,199; sh: 4,384; ansic: 4,382; python: 1,813; yacc: 853; javascript: 762; lex: 417; lisp: 163; xml: 127; makefile: 118
file content (26 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Detect gettext, then use this priority list to determine
# which library to use:
#
# Priority
# 1. GETTEXT_INCLUDEPATH / GETTEXT_LIBPATH (qmake parameter, not checked it given on commandline)
# 2. OPENSCAD_LIBRARIES (environment variable)
# 3. system's standard include paths from pkg-config

# read environment variables
OPENSCAD_LIBRARIES_DIR = $$(OPENSCAD_LIBRARIES)
GETTEXT_DIR = $$(GETTEXTDIR)

macx: {
  isEmpty(GETTEXT_INCLUDEPATH) {
    !isEmpty(OPENSCAD_LIBRARIES_DIR) {
      GETTEXT_INCLUDEPATH = $$OPENSCAD_LIBRARIES_DIR/include
      GETTEXT_LIBPATH = $$OPENSCAD_LIBRARIES_DIR/lib
    }
  }
  !isEmpty(GETTEXT_INCLUDEPATH): GETTEXT_CXXFLAGS = -I$$GETTEXT_INCLUDEPATH
  !isEmpty(GETTEXT_LIBPATH): GETTEXT_LIBS = -L$$GETTEXT_LIBPATH 
  GETTEXT_LIBS += -lintl -liconv
}

QMAKE_CXXFLAGS += $$GETTEXT_CXXFLAGS
LIBS += $$GETTEXT_LIBS