content.mak 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. MaskMain.pvr \
  34. RoomStill.pvr
  35. BIN_SHADERS = \
  36. SHVertShader.vsc \
  37. DiffuseVertShader.vsc \
  38. FragShader.fsc
  39. RESOURCES = \
  40. $(CONTENTDIR)/PhantomMask.cpp \
  41. $(CONTENTDIR)/MaskMain.cpp \
  42. $(CONTENTDIR)/RoomStill.cpp \
  43. $(CONTENTDIR)/SHVertShader.cpp \
  44. $(CONTENTDIR)/DiffuseVertShader.cpp \
  45. $(CONTENTDIR)/FragShader.cpp
  46. all: resources
  47. help:
  48. @echo Valid targets are:
  49. @echo resources, textures, binary_shaders, clean
  50. @echo PVRTEXTOOL, FILEWRAP and PVRUNISCO can be used to override the default paths to these utilities.
  51. clean:
  52. -rm $(RESOURCES)
  53. -rm $(BIN_SHADERS)
  54. -rm $(TEXTURES)
  55. resources: $(CONTENTDIR) $(RESOURCES)
  56. textures: $(TEXTURES)
  57. binary_shaders: $(BIN_SHADERS)
  58. $(CONTENTDIR):
  59. -mkdir $@
  60. MaskMain.pvr: $(MEDIAPATH)/MaskMain.png
  61. $(PVRTEXTOOL) -m -fOGLPVRTC4 -i$(MEDIAPATH)/MaskMain.png -o$@
  62. RoomStill.pvr: $(MEDIAPATH)/RoomStill.png
  63. $(PVRTEXTOOL) -m -fOGLPVRTC4 -i$(MEDIAPATH)/RoomStill.png -o$@
  64. $(CONTENTDIR)/PhantomMask.cpp: PhantomMask.pod
  65. $(FILEWRAP) -o $@ PhantomMask.pod
  66. $(CONTENTDIR)/MaskMain.cpp: MaskMain.pvr
  67. $(FILEWRAP) -o $@ MaskMain.pvr
  68. $(CONTENTDIR)/RoomStill.cpp: RoomStill.pvr
  69. $(FILEWRAP) -o $@ RoomStill.pvr
  70. $(CONTENTDIR)/SHVertShader.cpp: SHVertShader.vsh SHVertShader.vsc
  71. $(FILEWRAP) -s -o $@ SHVertShader.vsh
  72. $(FILEWRAP) -oa $@ SHVertShader.vsc
  73. $(CONTENTDIR)/DiffuseVertShader.cpp: DiffuseVertShader.vsh DiffuseVertShader.vsc
  74. $(FILEWRAP) -s -o $@ DiffuseVertShader.vsh
  75. $(FILEWRAP) -oa $@ DiffuseVertShader.vsc
  76. $(CONTENTDIR)/FragShader.cpp: FragShader.fsh FragShader.fsc
  77. $(FILEWRAP) -s -o $@ FragShader.fsh
  78. $(FILEWRAP) -oa $@ FragShader.fsc
  79. SHVertShader.vsc: SHVertShader.vsh
  80. $(PVRUNISCO) SHVertShader.vsh $@ -v
  81. DiffuseVertShader.vsc: DiffuseVertShader.vsh
  82. $(PVRUNISCO) DiffuseVertShader.vsh $@ -v
  83. FragShader.fsc: FragShader.fsh
  84. $(PVRUNISCO) FragShader.fsh $@ -f
  85. ############################################################################
  86. # End of file (content.mak)
  87. ############################################################################