platformthemes.pro
changeset 9 a03989fb355a
parent 8 02a1dd166f2b
child 15 4d00362086e0
equal deleted inserted replaced
8:02a1dd166f2b 9:a03989fb355a
    34 } else {
    34 } else {
    35     HB_THEMES_DIR = $${EPOCROOT}epoc32/data/z/resource/hb
    35     HB_THEMES_DIR = $${EPOCROOT}epoc32/data/z/resource/hb
    36 }
    36 }
    37 HB_THEMES_DIR = $$HB_THEMES_DIR/themes
    37 HB_THEMES_DIR = $$HB_THEMES_DIR/themes
    38 
    38 
       
    39 # ============================================================================
       
    40 # determine dir separators & /dev/null
       
    41 # ============================================================================
    39 win32:!win32-g++ {
    42 win32:!win32-g++ {
    40     unixstyle = false
    43     unixstyle = false
    41 } else:symbian:isEmpty(QMAKE_SH) {
    44 } else:symbian:isEmpty(QMAKE_SH) {
    42     unixstyle = false
    45     unixstyle = false
    43 } else:win32-g++:isEmpty(QMAKE_SH) {
    46 } else:win32-g++:isEmpty(QMAKE_SH) {
    78     }
    81     }
    79     !system($$THEMEINDEXER > $$DEVNULL 2>&1) {
    82     !system($$THEMEINDEXER > $$DEVNULL 2>&1) {
    80         error(\'$$THEMEINDEXER\' must be in PATH.)
    83         error(\'$$THEMEINDEXER\' must be in PATH.)
    81     }
    84     }
    82 }
    85 }
    83 ARGS = -s $$OUT_PWD/tmp/src -t $$OUT_PWD/tmp
    86 ARGS = -s $$OUT_PWD/tmp/src -t $$OUT_PWD/tmp/src
    84 !system($$THEMEINDEXER $$ARGS) {
    87 !system($$THEMEINDEXER $$ARGS) {
    85     error(*** $$THEMEINDEXER reported an error. Stop.)
    88     error(*** $$THEMEINDEXER reported an error. Stop.)
    86 }
    89 }
    87 
    90 
    88 index.path = $$(HB_THEMES_DIR)/themes
    91 index.path = $$(HB_THEMES_DIR)/themes
    89 index.files = $$OUT_PWD/tmp/*.themeindex
    92 index.files = $$OUT_PWD/tmp/src/*.themeindex
    90 INSTALLS += index
    93 INSTALLS += index
    91 QMAKE_CLEAN += $$OUT_PWD/tmp/*.themeindex
    94 QMAKE_CLEAN += $$OUT_PWD/tmp/src/*.themeindex
    92 
    95 
    93 # ============================================================================
    96 # ============================================================================
    94 # generate installs.pri
    97 # generate installs.pri
    95 # ============================================================================
    98 # ============================================================================
    96 ARGS = --input $$OUT_PWD/tmp/src --output $$OUT_PWD/tmp $$EXCLUDE
    99 ARGS = --input $$OUT_PWD/tmp/src --output $$OUT_PWD/tmp $$EXCLUDE
    97 !system(python bin/installs.py $$ARGS) {
   100 !system(python bin/installs.py $$ARGS) {
    98     error(*** bin/installs.py reported an error. Stop.)
   101     error(*** bin/installs.py reported an error. Stop.)
    99 }
   102 }
   100 isEmpty(QMAKE_UNZIP):QMAKE_UNZIP = unzip -u -o
   103 isEmpty(QMAKE_UNZIP):QMAKE_UNZIP = unzip -u -o
   101 include($$OUT_PWD/tmp/installs.pri)
       
   102 QMAKE_DISTCLEAN += $$OUT_PWD/tmp/installs.pri
   104 QMAKE_DISTCLEAN += $$OUT_PWD/tmp/installs.pri
   103 
   105 
   104 # ============================================================================
   106 # ============================================================================
   105 # generate rom files
   107 # generate rom files
   106 # ============================================================================
   108 # ============================================================================
   108     ARGS = --input $$OUT_PWD/tmp/src --output $$OUT_PWD/tmp $$EXCLUDE
   110     ARGS = --input $$OUT_PWD/tmp/src --output $$OUT_PWD/tmp $$EXCLUDE
   109     !system(python bin/rom.py $$ARGS) {
   111     !system(python bin/rom.py $$ARGS) {
   110         error(*** bin/rom.py reported an error. Stop.)
   112         error(*** bin/rom.py reported an error. Stop.)
   111     }
   113     }
   112     QMAKE_CLEAN += $$OUT_PWD/tmp/*.iby
   114     QMAKE_CLEAN += $$OUT_PWD/tmp/*.iby
       
   115     QMAKE_CLEAN += $$OUT_PWD/tmp/*.thx
   113 }
   116 }
   114 
   117 
   115 # ============================================================================
   118 # ============================================================================
   116 # installs/exports
   119 # installs/exports
   117 # ============================================================================
   120 # ============================================================================
   138         }
   141         }
   139         export(BLD_INF_RULES.prj_exports)
   142         export(BLD_INF_RULES.prj_exports)
   140         return(true)
   143         return(true)
   141     }
   144     }
   142     exportThemeFiles($$files($$OUT_PWD/tmp/*.iby), $$CORE_MW_LAYER_IBY_EXPORT_PATH())
   145     exportThemeFiles($$files($$OUT_PWD/tmp/*.iby), $$CORE_MW_LAYER_IBY_EXPORT_PATH())
   143     exportThemeFiles($$files($$OUT_PWD/tmp/*.themeindex), $${EPOCROOT}epoc32/data/z/resource/hb/themes/)
   146     exportThemeFiles($$files($$OUT_PWD/tmp/*.thx), $${EPOCROOT}epoc32/data/z/resource/hb/themes/)
   144     exportThemeFiles($$files($$OUT_PWD/tmp/*.themeindex), $${EPOCROOT}epoc32/winscw/c/resource/hb/themes/)
   147     exportThemeFiles($$files($$OUT_PWD/tmp/src/*.themeindex), $${EPOCROOT}epoc32/winscw/c/resource/hb/themes/)
   145 
   148 
   146     # configuration files - exporting removed from platformthemes
   149     # configuration files
   147 #    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/confml/confml/hbtheme.confml            MW_LAYER_CONFML(hbtheme.confml)
   150     BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/confml/platformthemes.confml            MW_LAYER_CONFML(platformthemes.confml)
   148 #    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/confml/implml/hbtheme_20022e82.crml     MW_LAYER_CRML(hbtheme_20022e82.crml)
       
   149 #    BLD_INF_RULES.prj_exports += "$$section(PWD, ":", 1)/confml/implml/hbtheme.implml            MW_LAYER_CRML(hbtheme.implml)
       
   150 
   151 
   151 } else {
   152 } else {
   152     exists(src/theme.theme) {
   153     exists(src/theme.theme) {
   153         theme.theme.path = $$(HB_THEMES_DIR)/themes
   154         theme.theme.path = $$(HB_THEMES_DIR)/themes
   154         theme.theme.files += src/theme.theme
   155         theme.theme.files += src/theme.theme
   164     uninstall.depends = cleanexport
   165     uninstall.depends = cleanexport
   165     QMAKE_EXTRA_TARGETS += install uninstall
   166     QMAKE_EXTRA_TARGETS += install uninstall
   166 }
   167 }
   167 
   168 
   168 message(Run \'make install\')
   169 message(Run \'make install\')
       
   170 include($$OUT_PWD/tmp/installs.pri)