rcmaemo5defines.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef RCMAEMO5DEFINES_H
  2. #define RCMAEMO5DEFINES_H
  3. #include "maemo5/maemo5defines.h"
  4. #define MAEMO5_PLATFORMNAME "maemo5"
  5. #define MAEMO5_SHORTDESC "Building for Maemo5 locally"
  6. /**
  7. * Since "rcmaemo5" implementation reuses "maemo5"
  8. * implementation heavily, the generator phase values
  9. * used for "rcmaemo5" will have to be backward compatible
  10. * with the ones used for "maemo5", as those values are
  11. * used / set by the reused code.
  12. *
  13. * In addition to these, "rcmaemo5" has its own values too.
  14. */
  15. enum RcMaemo5GeneratorPhase {
  16. // compatible with "maemo5" build
  17. RCM5_INITIAL = M5_INITIAL,
  18. RCM5_UNZIP_WIDGET = M5_UNZIP_WIDGET,
  19. RCM5_DPKG_BUILDPACKAGE = M5_DPKG_BUILDPACKAGE,
  20. RCM5_ENDED_SUCCESSFULLY = M5_ENDED_SUCCESSFULLY,
  21. RCM5_ENDED_WITH_ERRORS = M5_ENDED_WITH_ERRORS,
  22. // rcmaemo5 specific phases
  23. RCM5_PKGZIPPING,
  24. RCM5_PKGUPLOADING_WAITING,
  25. RCM5_DOWNLOADING,
  26. };
  27. /**
  28. * This operator let's you treat GeneratorPhase as if it was
  29. * the same enum type as Maemo5GeneratorPhase.
  30. */
  31. bool operator==(const GeneratorPhase & left,
  32. RcMaemo5GeneratorPhase right);
  33. #endif // RCMAEMO5DEFINES_H