hb.pro
changeset 6 c3690ec91ef8
parent 5 627c4a0fd0e7
child 7 923ff622b8b9
equal deleted inserted replaced
5:627c4a0fd0e7 6:c3690ec91ef8
    36 }
    36 }
    37 
    37 
    38 !symbian {
    38 !symbian {
    39     feature.files += $$HB_SOURCE_DIR/hb.prf
    39     feature.files += $$HB_SOURCE_DIR/hb.prf
    40     feature.files += $$HB_BUILD_DIR/hb_install.prf
    40     feature.files += $$HB_BUILD_DIR/hb_install.prf
    41     feature.files += $$HB_MKSPECS_DIR/hb_functions.prf
    41     feature.files += $$HB_SOURCE_DIR/mkspecs/hb_functions.prf
    42     feature.files += $$HB_MKSPECS_DIR/docml2bin.prf
    42     feature.files += $$HB_SOURCE_DIR/mkspecs/docml2bin.prf
    43     feature.path = $$HB_FEATURES_DIR
    43     feature.path = $$HB_FEATURES_DIR
    44     INSTALLS += feature
    44     INSTALLS += feature
    45 }
    45 }
    46 else {
    46 else {
    47     tmp = $$split(HB_FEATURES_DIR, :)
    47     tmp = $$split(HB_FEATURES_DIR, :)
    61 INSTALLS += hbvar
    61 INSTALLS += hbvar
    62 
    62 
    63 symbian {
    63 symbian {
    64     exists(rom):include(rom/rom.pri)
    64     exists(rom):include(rom/rom.pri)
    65     install.depends += hbvar
    65     install.depends += hbvar
    66 #    install.depends += cssbinary
    66     install.depends += cssbinary
    67     install.commands += $$QMAKE_COPY $$hbNativePath($$HB_SOURCE_DIR/hb.prf) $$hbNativePath($$[QMAKE_MKSPECS]/features)
    67     install.commands += $$QMAKE_COPY $$hbNativePath($$HB_SOURCE_DIR/hb.prf) $$hbNativePath($$[QMAKE_MKSPECS]/features)
    68     install.commands += && $$QMAKE_COPY $$hbNativePath($$HB_BUILD_DIR/hb_install.prf) $$hbNativePath($$[QMAKE_MKSPECS]/features)
    68     install.commands += && $$QMAKE_COPY $$hbNativePath($$HB_BUILD_DIR/hb_install.prf) $$hbNativePath($$[QMAKE_MKSPECS]/features)
    69     install.commands += && $$QMAKE_COPY $$hbNativePath($$HB_SOURCE_DIR/mkspecs/hb_functions.prf) $$hbNativePath($$[QMAKE_MKSPECS]/features)
    69     install.commands += && $$QMAKE_COPY $$hbNativePath($$HB_SOURCE_DIR/mkspecs/hb_functions.prf) $$hbNativePath($$[QMAKE_MKSPECS]/features)
    70     install.commands += && $$QMAKE_COPY $$hbNativePath($$HB_BUILD_DIR/mkspecs/docml2bin.prf) $$hbNativePath($$[QMAKE_MKSPECS]/features)
    70     install.commands += && $$QMAKE_COPY $$hbNativePath($$HB_BUILD_DIR/mkspecs/docml2bin.prf) $$hbNativePath($$[QMAKE_MKSPECS]/features)
    71     QMAKE_EXTRA_TARGETS += install
    71     QMAKE_EXTRA_TARGETS += install
    72 }
    72 }
    73 
    73 
    74 # css binary generation
    74 # css binary generation
       
    75 cssbinmaker.input = $$HB_SOURCE_DIR/src/hbcore/resources/themes/style/hbdefault
       
    76 cssbinmaker.output = $$HB_BUILD_DIR/src/hbcore/resources/themes/hbdefault.cssbin
       
    77 cssbinmaker.commands = $$hbToolCommand(hbbincssmaker) -i $$cssbinmaker.input -o $$cssbinmaker.output
       
    78 QMAKE_DISTCLEAN += $$cssbinmaker.output
       
    79 QMAKE_EXTRA_TARGETS += cssbinmaker
    75 
    80 
    76 cssbinary.path = . #needed for install target
    81 cssbinary.depends = cssbinmaker
    77 cssbinary.sourcedir = $$PWD/src/hbcore/resources/themes/style/hbdefault
    82 cssbinary.path = $$HB_RESOURCES_DIR/themes
       
    83 cssbinary.files = $$cssbinmaker.output
       
    84 INSTALLS += cssbinary
       
    85 
    78 symbian {
    86 symbian {
    79     cssbinary.targetfile = $${EPOCROOT}epoc32/data/z/resource/hb/themes/css.bin
    87     cssbinary.commands += $$hbCopyCommand($$cssbinary.files, $${EPOCROOT}epoc32/data/z/resource/hb/themes/)
    80 } else {
    88     cssbinary.commands += && $$hbCopyCommand($$cssbinary.files, $${EPOCROOT}epoc32/release/winscw/udeb/z/resource/hb/themes/)
    81     cssbinary.targetfile = $$HB_RESOURCES_DIR/themes/css.bin 
    89     QMAKE_DISTCLEAN += $${EPOCROOT}epoc32/data/z/resource/hb/themes/$$cssbinary.files
       
    90     QMAKE_DISTCLEAN += $${EPOCROOT}epoc32/release/winscw/udeb/z/resource/hb/themes/$$cssbinary.files
       
    91     QMAKE_EXTRA_TARGETS += cssbinary
    82 }
    92 }
    83 cssbinary.commands = $$hbToolCommand(hbbincssmaker) -i $$cssbinary.sourcedir -o $$cssbinary.targetfile
       
    84 
       
    85 # copy generated css binary to symbian emulator directory
       
    86 symbian {
       
    87     cssbinary.commands += && $$QMAKE_COPY $$hbNativePath($$cssbinary.targetfile) $$hbNativePath($${EPOCROOT}epoc32/release/winscw/udeb/z/resource/hb/themes/css.bin)
       
    88 }
       
    89 
       
    90 QMAKE_EXTRA_TARGETS += cssbinary
       
    91 #INSTALLS += cssbinary
       
    92 
    93 
    93 !contains(HB_NOMAKE_PARTS, tests):exists(tsrc) {
    94 !contains(HB_NOMAKE_PARTS, tests):exists(tsrc) {
    94     test.depends = sub-src
    95     test.depends = sub-src
    95     test.commands += cd tsrc && $(MAKE) test
    96     test.commands += cd tsrc && $(MAKE) test
    96     autotest.depends = sub-src
    97     autotest.depends = sub-src
    97     autotest.commands += cd tsrc && $(MAKE) autotest
    98     autotest.commands += cd tsrc && $(MAKE) autotest
    98     loctest.depends = sub-src
    99     unittest.depends = sub-src
    99     loctest.commands += cd tsrc/loc && $(MAKE) loctest
   100     unittest.commands += cd tsrc/unit && $(MAKE) test
   100     QMAKE_EXTRA_TARGETS += test autotest loctest
   101     QMAKE_EXTRA_TARGETS += test autotest unittest
   101 }
   102 }
   102 
   103 
   103 exists(doc):include(doc/doc.pri)
   104 exists(doc):include(doc/doc.pri)
   104 include(src/hbcommon.pri)
   105 include(src/hbcommon.pri)