winrc.inc 1.12 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
FOR EACH DLL,EXE,CON
  IFNDEF COREMAKE_STATIC
    FOR EACH INSTALL
      ../INSTALL_CAB += %(|NAME)
      ADD ../SOURCE %(|NAME)
        _COPY_ITEM = 1
      ENDADD
      DELETE
    ENDFOR
  ENDIF

  FOR EACH SOURCE
    IF %(>NAME)==rc
      ../SOURCERC += %(|NAME)
      DELETE
    ENDIF
  ENDFOR

  FOR EACH USE
    IF %(TYPE)==lib
      FOR EACH SOURCE
        IF %(>NAME)==rc
          ../../SOURCERC += %(|NAME)
        ENDIF
      ENDFOR
    ENDIF
  ENDFOR

  IF "%(=SOURCERC)"!="0" || "%(ICON)"!="" || "%(INSTALL)"!=""
    IF "%(=SOURCERC)"=="1" && "%(ICON)"=="" && "%(INSTALL)"==""
      SOURCE += %(|SOURCERC)
    ELSE
      SOURCE += %(PATH)%(NAME)_win32.rc
      FILE %(PATH)%(NAME)_win32.rc
      FOR EACH SOURCERC
        ../INCLUDERC += %(|PATH)
        PRINTNL #include "%(!NAME)"
      ENDFOR
      IF "%(ICON)"!=""
        IFDEF TARGET_WINCE
          PRINTNL 1000 ICON DISCARDABLE "%(!ICON)_wince.ico"
        ELSE
          PRINTNL 1000 ICON DISCARDABLE "%(!ICON)_win32.ico"
        ENDIF
      ENDIF
      FOR EACH INSTALL
        PRINTNL 1000 %(<NAME).%(>NAME) DISCARDABLE "%(!NAME)"
      ENDFOR
    ENDIF
  ENDIF
ENDFOR