mkspecs/hb_functions.prf
changeset 21 4633027730f5
parent 7 923ff622b8b9
child 23 e6ad4ef83b23
--- a/mkspecs/hb_functions.prf	Tue Jul 06 14:36:53 2010 +0300
+++ b/mkspecs/hb_functions.prf	Wed Aug 18 10:05:37 2010 +0300
@@ -70,17 +70,17 @@
 # eg. hbExportHeaders(hbcore)
 defineTest(hbExportHeaders) {
     for(PUBLIC_HEADER, PUBLIC_HEADERS) {
-        PUBLIC_HEADER = $$section(PUBLIC_HEADER, ":", 1)
+        contains(QMAKE_HOST.os, Windows):PUBLIC_HEADER = $$section(PUBLIC_HEADER, ":", 1)
         EXPORT_PATH = $$sprintf($$HB_EXPORT_DIR, $$1, $$basename(PUBLIC_HEADER))
         BLD_INF_RULES.prj_exports *= "$$PUBLIC_HEADER $$EXPORT_PATH"
     }
     for(RESTRICTED_HEADER, RESTRICTED_HEADERS) {
-        RESTRICTED_HEADER = $$section(RESTRICTED_HEADER, ":", 1)
+        contains(QMAKE_HOST.os, Windows):RESTRICTED_HEADER = $$section(RESTRICTED_HEADER, ":", 1)
         EXPORT_PATH = $$sprintf($$HB_RESTRICTED_EXPORT_DIR, $$1, $$basename(RESTRICTED_HEADER))
         BLD_INF_RULES.prj_exports *= "$$RESTRICTED_HEADER $$EXPORT_PATH"
     }
     for(CONVENIENCE_HEADER, CONVENIENCE_HEADERS) {
-        CONVENIENCE_HEADER = $$section(CONVENIENCE_HEADER, ":", 1)
+        contains(QMAKE_HOST.os, Windows):CONVENIENCE_HEADER = $$section(CONVENIENCE_HEADER, ":", 1)
         EXPORT_PATH = $$sprintf($$HB_EXPORT_DIR, $$1, $$basename(CONVENIENCE_HEADER))
         BLD_INF_RULES.prj_exports *= "$$CONVENIENCE_HEADER $$EXPORT_PATH"
     }