script.build 891 Bytes
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
#define TARGET_SCRIPT

#define OUTPUT_EXE %(NAME).dll
#define OUTPUT_EXE %(NAME).exe
#define OUTPUT_DLL %(NAME).dll
#define OUTPUT_LIB %(NAME).lib
#define OUTPUT_CON %(NAME).exe

CONFIG

FOR EACH WORKSPACE
  FOR EACH USE
    FOR EACH COMPILE
      BUILDSTR = 
      IF %(CONFIG_CUSTOMER)
        BUILDSTR = %(CONFIG_CUSTOMER)
      ENDIF
      IF %(CONFIG_TEST_EXPIRE)
        IF %(BUILDSTR)
          BUILDSTR = %(BUILDSTR)_%(CONFIG_TEST_EXPIRE)
        ELSE
          BUILDSTR = %(CONFIG_TEST_EXPIRE)
        ENDIF
      ENDIF
      IF %(PROJECT_BUILD)
        IF %(BUILDSTR)
          BUILDSTR = %(BUILDSTR)_r%(PROJECT_BUILD)
        ELSE
          BUILDSTR = r%(PROJECT_BUILD)
        ENDIF
      ENDIF
      COMPILE %(NAME) %(NAME)
    ENDFOR
    IF %(DOXYGEN)
      COMPILE %(DOXYGEN) "%(PATH)%(`PROJECT_NAME).doxyfile"
    ENDIF
  ENDFOR
ENDFOR