bin/installs.py
changeset 17 a5dfa7884e30
parent 12 aa35df067ae7
child 21 e81654f8e7d8
equal deleted inserted replaced
14:75f2092df3f7 17:a5dfa7884e30
    82             filepath = os.path.splitdrive(filepath)[1]
    82             filepath = os.path.splitdrive(filepath)[1]
    83             if include_exclude(filepath):
    83             if include_exclude(filepath):
    84                 target = make_target(root)
    84                 target = make_target(root)
    85                 relpath = os.path.relpath(root, input_dir).replace("\\", "/")
    85                 relpath = os.path.relpath(root, input_dir).replace("\\", "/")
    86                 if os.path.splitext(file)[1] == ".zip":
    86                 if os.path.splitext(file)[1] == ".zip":
    87                     out.write("symbian:BLD_INF_RULES.prj_exports += \":zip %s $${EPOCROOT}epoc32/data/z/resource/hb/themes/%s/\"\n" % (filepath, relpath)) 
    87                     out.write("symbian:BLD_INF_RULES.prj_exports += \":zip %s $${EPOCROOT}epoc32/data/z/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    88                     out.write("symbian:BLD_INF_RULES.prj_exports += \":zip %s $${EPOCROOT}epoc32/winscw/c/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    88                     out.write("symbian:BLD_INF_RULES.prj_exports += \":zip %s $${EPOCROOT}epoc32/winscw/c/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    89                     out.write("!isEmpty(%s.commands): %s.commands += &&\n" % (target, target))
    89                     out.write("!isEmpty(%s.commands): %s.commands += &&\n" % (target, target))
    90                     out.write("%s.commands += $$QMAKE_UNZIP %s -d $$(HB_THEMES_DIR)/themes/%s\n" % (target, filepath, relpath))
    90                     out.write("%s.commands += $$QMAKE_UNZIP %s -d $$(HB_THEMES_DIR)/themes/%s\n" % (target, filepath, relpath))
    91                 else:
    91                 else:
    92                     out.write("symbian:BLD_INF_RULES.prj_exports += \"%s $${EPOCROOT}epoc32/data/z/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    92                     out.write("symbian:BLD_INF_RULES.prj_exports += \"%s $${EPOCROOT}epoc32/data/z/resource/hb/themes/%s/\"\n" % (filepath, relpath))
    95                 if root not in roots:
    95                 if root not in roots:
    96                     out.write("%s.CONFIG += no_build\n" % target)
    96                     out.write("%s.CONFIG += no_build\n" % target)
    97                     out.write("%s.path = $$(HB_THEMES_DIR)/themes/%s\n" % (target, relpath))
    97                     out.write("%s.path = $$(HB_THEMES_DIR)/themes/%s\n" % (target, relpath))
    98                     out.write("INSTALLS += %s\n" % target)
    98                     out.write("INSTALLS += %s\n" % target)
    99                     roots.append(root)
    99                     roots.append(root)
       
   100                 out.write("QMAKE_CLEAN += %s\n" % filepath)
   100     out.close()
   101     out.close()
   101     return 0
   102     return 0
   102 
   103 
   103 def include_exclude(filepath):
   104 def include_exclude(filepath):
   104     global INCLUDE, EXCLUDE
   105     global INCLUDE, EXCLUDE