hb.pro
changeset 5 627c4a0fd0e7
parent 3 11d3954df52a
child 6 c3690ec91ef8
equal deleted inserted replaced
3:11d3954df52a 5:627c4a0fd0e7
    23 ## Nokia at developer.feedback@nokia.com.
    23 ## Nokia at developer.feedback@nokia.com.
    24 ##
    24 ##
    25 #############################################################################
    25 #############################################################################
    26 #
    26 #
    27 
    27 
       
    28 
    28 TEMPLATE = subdirs
    29 TEMPLATE = subdirs
    29 CONFIG += root
    30 CONFIG += root
    30 
    31 
    31 SUBDIRS += src
    32 SUBDIRS += src
    32 !contains(HB_NOMAKE_PARTS, tutorials):exists(tutorials) {
    33 !contains(HB_NOMAKE_PARTS, tutorials):exists(tutorials) {
    33     tutorials.depends = src
    34     tutorials.depends = src
    34     SUBDIRS += tutorials
    35     SUBDIRS += tutorials
    35 }
    36 }
    36 
    37 
    37 feature.files += $$HB_SOURCE_DIR/hb.prf
    38 !symbian {
    38 feature.files += $$HB_BUILD_DIR/hb_install.prf
    39     feature.files += $$HB_SOURCE_DIR/hb.prf
    39 feature.files += $$HB_MKSPECS_DIR/hb_functions.prf
    40     feature.files += $$HB_BUILD_DIR/hb_install.prf
    40 feature.files += $$HB_MKSPECS_DIR/docml2bin.prf
    41     feature.files += $$HB_MKSPECS_DIR/hb_functions.prf
    41 feature.path = $$HB_FEATURES_DIR
    42     feature.files += $$HB_MKSPECS_DIR/docml2bin.prf
    42 INSTALLS += feature
    43     feature.path = $$HB_FEATURES_DIR
       
    44     INSTALLS += feature
       
    45 }
       
    46 else {
       
    47     tmp = $$split(HB_FEATURES_DIR, :)
       
    48     HB_SYMBIAN_PRF_EXPORT_DIR = $$last(tmp)
       
    49     BLD_INF_RULES.prj_exports += "hb.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/hb.prf"
       
    50     BLD_INF_RULES.prj_exports += "hb_install.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/hb_install.prf"
       
    51     BLD_INF_RULES.prj_exports += "mkspecs/hb_functions.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/hb_functions.prf"
       
    52     BLD_INF_RULES.prj_exports += "mkspecs/docml2bin.prf $$HB_SYMBIAN_PRF_EXPORT_DIR/docml2bin.prf"
       
    53 }
    43 
    54 
    44 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/.qmake.cache)
    55 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/.qmake.cache)
    45 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/hb_install.prf)
    56 QMAKE_DISTCLEAN += $$hbNativePath($$HB_BUILD_DIR/hb_install.prf)
    46 
    57 
    47 hbvar.path = .
    58 hbvar.path = .
    49 QMAKE_EXTRA_TARGETS += hbvar
    60 QMAKE_EXTRA_TARGETS += hbvar
    50 INSTALLS += hbvar
    61 INSTALLS += hbvar
    51 
    62 
    52 symbian {
    63 symbian {
    53     exists(rom):include(rom/rom.pri)
    64     exists(rom):include(rom/rom.pri)
    54     install.depends += index hbvar
    65     install.depends += hbvar
    55     #install.depends += cssbinary
    66 #    install.depends += cssbinary
    56     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)
    57     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)
       
    70     install.commands += && $$QMAKE_COPY $$hbNativePath($$HB_BUILD_DIR/mkspecs/docml2bin.prf) $$hbNativePath($$[QMAKE_MKSPECS]/features)
    58     QMAKE_EXTRA_TARGETS += install
    71     QMAKE_EXTRA_TARGETS += install
    59     BLD_INF_RULES.prj_exports += "sis/hb_stub.sis /epoc32/data/z/system/install/hb_stub.sis"
       
    60 }
       
    61 
       
    62 # theme indexing
       
    63 
       
    64 symbian:HB_THEMES_DIR = $${EPOCROOT}epoc32/data/z/resource/hb/themes
       
    65 else:HB_THEMES_DIR = $(HB_THEMES_DIR)/themes
       
    66 isEmpty(HB_THEMES_DIR):index.commands += echo HB_THEMES_DIR environment variable not set
       
    67 else {
       
    68     index.path = .
       
    69     index.name = hbdefault
       
    70     index.source = $$PWD/src/hbcore/resources/themes/icons/hbdefault
       
    71     index.targets = $$HB_THEMES_DIR
       
    72     symbian {
       
    73         index.targets += $${EPOCROOT}epoc32/release/winscw/urel/z/resource/hb/themes
       
    74         index.targets += $${EPOCROOT}epoc32/release/winscw/udeb/z/resource/hb/themes
       
    75     }
       
    76     for(index.target, index.targets) {
       
    77         !isEmpty(index.commands):index.commands += &&
       
    78         index.commands += $$hbToolCommand(hbthemeindexer) -n $$index.name -s $$index.source -t $$index.target
       
    79     }
       
    80     QMAKE_EXTRA_TARGETS += index
       
    81     INSTALLS += index
       
    82 }
    72 }
    83 
    73 
    84 # css binary generation
    74 # css binary generation
    85 
    75 
    86 cssbinary.path = . #needed for install target
    76 cssbinary.path = . #needed for install target
    96 symbian {
    86 symbian {
    97     cssbinary.commands += && $$QMAKE_COPY $$hbNativePath($$cssbinary.targetfile) $$hbNativePath($${EPOCROOT}epoc32/release/winscw/udeb/z/resource/hb/themes/css.bin)
    87     cssbinary.commands += && $$QMAKE_COPY $$hbNativePath($$cssbinary.targetfile) $$hbNativePath($${EPOCROOT}epoc32/release/winscw/udeb/z/resource/hb/themes/css.bin)
    98 }
    88 }
    99 
    89 
   100 QMAKE_EXTRA_TARGETS += cssbinary
    90 QMAKE_EXTRA_TARGETS += cssbinary
   101 # INSTALLS += cssbinary
    91 #INSTALLS += cssbinary
   102 
    92 
   103 !contains(HB_NOMAKE_PARTS, tests):exists(tsrc) {
    93 !contains(HB_NOMAKE_PARTS, tests):exists(tsrc) {
   104     test.depends = sub-src
    94     test.depends = sub-src
   105     test.commands += cd tsrc && $(MAKE) test
    95     test.commands += cd tsrc && $(MAKE) test
   106     autotest.depends = sub-src
    96     autotest.depends = sub-src