OSDN Git Service

Version: 0.3.2
[fontmanager/fontmanager.git] / fontmanager.pro
index e6c54f6..431c04f 100644 (file)
@@ -29,6 +29,27 @@ symbian:TARGET.UID3 = 0xE6A64536
 # Add dependency to Symbian components
 # CONFIG += qt-components
 
+defineReplace(cleanPath) {
+    win32:1 ~= s|\\\\|/|g
+    contains(1, ^/.*):pfx = /
+    else:pfx =
+    segs = $$split(1, /)
+    out =
+    for(seg, segs) {
+        equals(seg, ..):out = $$member(out, 0, -2)
+        else:!equals(seg, .):out += $$seg
+    }
+    return($$join(out, /, $$pfx))
+}
+
+SOURCE_TREE_ROOT = $$PWD
+isEmpty(BUILD_TREE_ROOT) {
+    sub_dir = $$_PRO_FILE_PWD_
+    sub_dir ~= s,^$$re_escape($$PWD),,
+    BUILD_TREE_ROOT = $$cleanPath($$OUT_PWD)
+    BUILD_TREE_ROOT ~= s,$$re_escape($$sub_dir)$,,
+}
+
 # The .cpp file which was generated for your project. Feel free to hack it.
 SOURCES += main.cpp \
     applicationcontroller.cpp \
@@ -56,4 +77,8 @@ HEADERS += \
     fontinfo.h \
     fontconfigmanager.h \
     installedfontinfo.h \
-    fontsconfigproperties.h
+    fontsconfigproperties.h \
+    fontconfigdefs.h
+
+include(translations/translations.pri)
+