content.mak 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #--------------------------------------------------------------------------
  2. # Name : content.mak
  3. # Title : Makefile to build content files
  4. #
  5. # Copyright : Copyright (C) Imagination Technologies Limited.
  6. # : No part of this software, either material or conceptual
  7. # : may be copied or distributed, transmitted, transcribed,
  8. # : stored in a retrieval system or translated into any
  9. # : human or computer language in any form by any means,
  10. # : electronic, mechanical, manual or other-wise, or
  11. # : disclosed to third parties without the express written
  12. # : permission of VideoLogic Limited, Unit 8, HomePark
  13. # : Industrial Estate, King's Langley, Hertfordshire,
  14. # : WD4 8LZ, U.K.
  15. #
  16. # Description : Makefile to build content files for demos in the PowerVR SDK
  17. #
  18. # Platform :
  19. #
  20. #--------------------------------------------------------------------------
  21. #############################################################################
  22. ## Variables
  23. #############################################################################
  24. PVRTEXTOOL = ..\..\..\Utilities\PVRTexTool\PVRTexToolCL\Windows_x86_32\PVRTexTool.exe
  25. FILEWRAP = ..\..\..\Utilities\Filewrap\Windows_x86_32\Filewrap.exe
  26. PVRUNISCO = ..\..\..\Utilities\PVRUniSCo\OGLES\Windows_x86_32\PVRUniSCo_SGX53x.exe
  27. MEDIAPATH = ../Media
  28. CONTENTDIR = Content
  29. #############################################################################
  30. ## Instructions
  31. #############################################################################
  32. TEXTURES = \
  33. Balloon.pvr \
  34. Balloon_pvr.pvr \
  35. Noise.pvr \
  36. Skybox.pvr \
  37. SkyboxMidnight.pvr
  38. BIN_SHADERS =
  39. RESOURCES = \
  40. $(CONTENTDIR)/Balloon.cpp \
  41. $(CONTENTDIR)/Balloon_pvr.cpp \
  42. $(CONTENTDIR)/Noise.cpp \
  43. $(CONTENTDIR)/Skybox.cpp \
  44. $(CONTENTDIR)/SkyboxMidnight.cpp \
  45. $(CONTENTDIR)/effects.cpp \
  46. $(CONTENTDIR)/Scene.cpp
  47. all: resources
  48. help:
  49. @echo Valid targets are:
  50. @echo resources, textures, binary_shaders, clean
  51. @echo PVRTEXTOOL, FILEWRAP and PVRUNISCO can be used to override the default paths to these utilities.
  52. clean:
  53. -rm $(RESOURCES)
  54. -rm $(BIN_SHADERS)
  55. -rm $(TEXTURES)
  56. resources: $(CONTENTDIR) $(RESOURCES)
  57. textures: $(TEXTURES)
  58. binary_shaders: $(BIN_SHADERS)
  59. $(CONTENTDIR):
  60. -mkdir $@
  61. Balloon.pvr: $(MEDIAPATH)/balloon.png
  62. $(PVRTEXTOOL) -m -fOGLPVRTC4 -i$(MEDIAPATH)/balloon.png -o$@
  63. Balloon_pvr.pvr: $(MEDIAPATH)/balloon_pvr.png
  64. $(PVRTEXTOOL) -m -fOGLPVRTC4 -i$(MEDIAPATH)/balloon_pvr.png -o$@
  65. Noise.pvr: $(MEDIAPATH)/Noise.png
  66. $(PVRTEXTOOL) -m -fOGLPVRTC4 -i$(MEDIAPATH)/Noise.png -o$@
  67. Skybox.pvr: $(MEDIAPATH)/skybox1.png $(MEDIAPATH)/skybox2.png $(MEDIAPATH)/skybox3.png $(MEDIAPATH)/skybox4.png $(MEDIAPATH)/skybox5.png $(MEDIAPATH)/skybox6.png
  68. $(PVRTEXTOOL) -s -m -p -fOGLPVRTC4 -i$(MEDIAPATH)/skybox1.png -o$@
  69. SkyboxMidnight.pvr: $(MEDIAPATH)/skybox_midnight1.png $(MEDIAPATH)/skybox_midnight2.png $(MEDIAPATH)/skybox_midnight3.png $(MEDIAPATH)/skybox_midnight4.png $(MEDIAPATH)/skybox_midnight5.png $(MEDIAPATH)/skybox_midnight6.png
  70. $(PVRTEXTOOL) -s -m -p -fOGLPVRTC4 -i$(MEDIAPATH)/skybox_midnight1.png -o$@
  71. $(CONTENTDIR)/Balloon.cpp: Balloon.pvr
  72. $(FILEWRAP) -o $@ Balloon.pvr
  73. $(CONTENTDIR)/Balloon_pvr.cpp: Balloon_pvr.pvr
  74. $(FILEWRAP) -o $@ Balloon_pvr.pvr
  75. $(CONTENTDIR)/Noise.cpp: Noise.pvr
  76. $(FILEWRAP) -o $@ Noise.pvr
  77. $(CONTENTDIR)/Skybox.cpp: Skybox.pvr
  78. $(FILEWRAP) -o $@ Skybox.pvr
  79. $(CONTENTDIR)/SkyboxMidnight.cpp: SkyboxMidnight.pvr
  80. $(FILEWRAP) -o $@ SkyboxMidnight.pvr
  81. $(CONTENTDIR)/effects.cpp: effects.pfx
  82. $(FILEWRAP) -s -o $@ effects.pfx
  83. $(CONTENTDIR)/Scene.cpp: Scene.pod
  84. $(FILEWRAP) -o $@ Scene.pod
  85. ############################################################################
  86. # End of file (content.mak)
  87. ############################################################################