mkspecs/hb_functions.prf
changeset 21 4633027730f5
parent 7 923ff622b8b9
child 23 e6ad4ef83b23
equal deleted inserted replaced
7:923ff622b8b9 21:4633027730f5
    68 # params: <collection>
    68 # params: <collection>
    69 # NOTE: exports PUBLIC_HEADERS, RESTRICTED_HEADERS and CONVENIENCE_HEADERS
    69 # NOTE: exports PUBLIC_HEADERS, RESTRICTED_HEADERS and CONVENIENCE_HEADERS
    70 # eg. hbExportHeaders(hbcore)
    70 # eg. hbExportHeaders(hbcore)
    71 defineTest(hbExportHeaders) {
    71 defineTest(hbExportHeaders) {
    72     for(PUBLIC_HEADER, PUBLIC_HEADERS) {
    72     for(PUBLIC_HEADER, PUBLIC_HEADERS) {
    73         PUBLIC_HEADER = $$section(PUBLIC_HEADER, ":", 1)
    73         contains(QMAKE_HOST.os, Windows):PUBLIC_HEADER = $$section(PUBLIC_HEADER, ":", 1)
    74         EXPORT_PATH = $$sprintf($$HB_EXPORT_DIR, $$1, $$basename(PUBLIC_HEADER))
    74         EXPORT_PATH = $$sprintf($$HB_EXPORT_DIR, $$1, $$basename(PUBLIC_HEADER))
    75         BLD_INF_RULES.prj_exports *= "$$PUBLIC_HEADER $$EXPORT_PATH"
    75         BLD_INF_RULES.prj_exports *= "$$PUBLIC_HEADER $$EXPORT_PATH"
    76     }
    76     }
    77     for(RESTRICTED_HEADER, RESTRICTED_HEADERS) {
    77     for(RESTRICTED_HEADER, RESTRICTED_HEADERS) {
    78         RESTRICTED_HEADER = $$section(RESTRICTED_HEADER, ":", 1)
    78         contains(QMAKE_HOST.os, Windows):RESTRICTED_HEADER = $$section(RESTRICTED_HEADER, ":", 1)
    79         EXPORT_PATH = $$sprintf($$HB_RESTRICTED_EXPORT_DIR, $$1, $$basename(RESTRICTED_HEADER))
    79         EXPORT_PATH = $$sprintf($$HB_RESTRICTED_EXPORT_DIR, $$1, $$basename(RESTRICTED_HEADER))
    80         BLD_INF_RULES.prj_exports *= "$$RESTRICTED_HEADER $$EXPORT_PATH"
    80         BLD_INF_RULES.prj_exports *= "$$RESTRICTED_HEADER $$EXPORT_PATH"
    81     }
    81     }
    82     for(CONVENIENCE_HEADER, CONVENIENCE_HEADERS) {
    82     for(CONVENIENCE_HEADER, CONVENIENCE_HEADERS) {
    83         CONVENIENCE_HEADER = $$section(CONVENIENCE_HEADER, ":", 1)
    83         contains(QMAKE_HOST.os, Windows):CONVENIENCE_HEADER = $$section(CONVENIENCE_HEADER, ":", 1)
    84         EXPORT_PATH = $$sprintf($$HB_EXPORT_DIR, $$1, $$basename(CONVENIENCE_HEADER))
    84         EXPORT_PATH = $$sprintf($$HB_EXPORT_DIR, $$1, $$basename(CONVENIENCE_HEADER))
    85         BLD_INF_RULES.prj_exports *= "$$CONVENIENCE_HEADER $$EXPORT_PATH"
    85         BLD_INF_RULES.prj_exports *= "$$CONVENIENCE_HEADER $$EXPORT_PATH"
    86     }
    86     }
    87     export(BLD_INF_RULES.prj_exports)
    87     export(BLD_INF_RULES.prj_exports)
    88     return(true)
    88     return(true)