content.mak 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. Alphabet.pvr \
  34. Road.pvr \
  35. StreetSigns.pvr
  36. BIN_SHADERS = \
  37. AlphaMaskFragShader.fsc \
  38. AntiAliasedLinesFragShader.fsc \
  39. AntiAliasedLinesVertShader.vsc \
  40. FragShader.fsc \
  41. VertShader.vsc \
  42. PivotQuadFragShader.fsc \
  43. PivotQuadMaskedFragShader.fsc \
  44. PivotQuadVertShader.vsc
  45. RESOURCES = \
  46. $(CONTENTDIR)/Alphabet.cpp \
  47. $(CONTENTDIR)/Road.cpp \
  48. $(CONTENTDIR)/StreetSigns.cpp \
  49. $(CONTENTDIR)/AlphaMaskFragShader.cpp \
  50. $(CONTENTDIR)/AntiAliasedLinesFragShader.cpp \
  51. $(CONTENTDIR)/AntiAliasedLinesVertShader.cpp \
  52. $(CONTENTDIR)/FragShader.cpp \
  53. $(CONTENTDIR)/VertShader.cpp \
  54. $(CONTENTDIR)/PivotQuadFragShader.cpp \
  55. $(CONTENTDIR)/PivotQuadMaskedFragShader.cpp \
  56. $(CONTENTDIR)/PivotQuadVertShader.cpp \
  57. $(CONTENTDIR)/cameratrack.cpp \
  58. $(CONTENTDIR)/Landmark_meshes.cpp \
  59. $(CONTENTDIR)/LandUseA_meshes.cpp \
  60. $(CONTENTDIR)/LandUseB_meshes.cpp \
  61. $(CONTENTDIR)/MajHwys_meshes.cpp \
  62. $(CONTENTDIR)/MajHwyShield_text.cpp \
  63. $(CONTENTDIR)/RailRds_meshes.cpp \
  64. $(CONTENTDIR)/SecHwys_meshes.cpp \
  65. $(CONTENTDIR)/SecHwyShield_text.cpp \
  66. $(CONTENTDIR)/Signs_billboards.cpp \
  67. $(CONTENTDIR)/Streets_meshes.cpp \
  68. $(CONTENTDIR)/Streets_text.cpp \
  69. $(CONTENTDIR)/WaterPoly_meshes.cpp \
  70. $(CONTENTDIR)/WaterSeg_meshes.cpp
  71. all: resources
  72. help:
  73. @echo Valid targets are:
  74. @echo resources, textures, binary_shaders, clean
  75. @echo PVRTEXTOOL, FILEWRAP and PVRUNISCO can be used to override the default paths to these utilities.
  76. clean:
  77. -rm $(RESOURCES)
  78. -rm $(BIN_SHADERS)
  79. -rm $(TEXTURES)
  80. resources: $(CONTENTDIR) $(RESOURCES)
  81. textures: $(TEXTURES)
  82. binary_shaders: $(BIN_SHADERS)
  83. $(CONTENTDIR):
  84. -mkdir $@
  85. Alphabet.pvr: $(MEDIAPATH)/Alphabet.png
  86. $(PVRTEXTOOL) -m -fOGL88 -i$(MEDIAPATH)/Alphabet.png -o$@
  87. Road.pvr: $(MEDIAPATH)/Road.png
  88. $(PVRTEXTOOL) -m -fOGL88 -i$(MEDIAPATH)/Road.png -o$@
  89. StreetSigns.pvr: $(MEDIAPATH)/StreetSigns.png
  90. $(PVRTEXTOOL) -m -fOGL4444 -i$(MEDIAPATH)/StreetSigns.png -o$@
  91. $(CONTENTDIR)/Alphabet.cpp: Alphabet.pvr
  92. $(FILEWRAP) -o $@ Alphabet.pvr
  93. $(CONTENTDIR)/Road.cpp: Road.pvr
  94. $(FILEWRAP) -o $@ Road.pvr
  95. $(CONTENTDIR)/StreetSigns.cpp: StreetSigns.pvr
  96. $(FILEWRAP) -o $@ StreetSigns.pvr
  97. $(CONTENTDIR)/AlphaMaskFragShader.cpp: AlphaMaskFragShader.fsh AlphaMaskFragShader.fsc
  98. $(FILEWRAP) -s -o $@ AlphaMaskFragShader.fsh
  99. $(FILEWRAP) -oa $@ AlphaMaskFragShader.fsc
  100. $(CONTENTDIR)/AntiAliasedLinesFragShader.cpp: AntiAliasedLinesFragShader.fsh AntiAliasedLinesFragShader.fsc
  101. $(FILEWRAP) -s -o $@ AntiAliasedLinesFragShader.fsh
  102. $(FILEWRAP) -oa $@ AntiAliasedLinesFragShader.fsc
  103. $(CONTENTDIR)/AntiAliasedLinesVertShader.cpp: AntiAliasedLinesVertShader.vsh AntiAliasedLinesVertShader.vsc
  104. $(FILEWRAP) -s -o $@ AntiAliasedLinesVertShader.vsh
  105. $(FILEWRAP) -oa $@ AntiAliasedLinesVertShader.vsc
  106. $(CONTENTDIR)/FragShader.cpp: FragShader.fsh FragShader.fsc
  107. $(FILEWRAP) -s -o $@ FragShader.fsh
  108. $(FILEWRAP) -oa $@ FragShader.fsc
  109. $(CONTENTDIR)/VertShader.cpp: VertShader.vsh VertShader.vsc
  110. $(FILEWRAP) -s -o $@ VertShader.vsh
  111. $(FILEWRAP) -oa $@ VertShader.vsc
  112. $(CONTENTDIR)/PivotQuadFragShader.cpp: PivotQuadFragShader.fsh PivotQuadFragShader.fsc
  113. $(FILEWRAP) -s -o $@ PivotQuadFragShader.fsh
  114. $(FILEWRAP) -oa $@ PivotQuadFragShader.fsc
  115. $(CONTENTDIR)/PivotQuadMaskedFragShader.cpp: PivotQuadMaskedFragShader.fsh PivotQuadMaskedFragShader.fsc
  116. $(FILEWRAP) -s -o $@ PivotQuadMaskedFragShader.fsh
  117. $(FILEWRAP) -oa $@ PivotQuadMaskedFragShader.fsc
  118. $(CONTENTDIR)/PivotQuadVertShader.cpp: PivotQuadVertShader.vsh PivotQuadVertShader.vsc
  119. $(FILEWRAP) -s -o $@ PivotQuadVertShader.vsh
  120. $(FILEWRAP) -oa $@ PivotQuadVertShader.vsc
  121. $(CONTENTDIR)/cameratrack.cpp: cameratrack.pod
  122. $(FILEWRAP) -o $@ cameratrack.pod
  123. $(CONTENTDIR)/Landmark_meshes.cpp: Landmark_meshes.nav
  124. $(FILEWRAP) -o $@ Landmark_meshes.nav
  125. $(CONTENTDIR)/LandUseA_meshes.cpp: LandUseA_meshes.nav
  126. $(FILEWRAP) -o $@ LandUseA_meshes.nav
  127. $(CONTENTDIR)/LandUseB_meshes.cpp: LandUseB_meshes.nav
  128. $(FILEWRAP) -o $@ LandUseB_meshes.nav
  129. $(CONTENTDIR)/MajHwys_meshes.cpp: MajHwys_meshes.nav
  130. $(FILEWRAP) -o $@ MajHwys_meshes.nav
  131. $(CONTENTDIR)/MajHwyShield_text.cpp: MajHwyShield_text.nav
  132. $(FILEWRAP) -o $@ MajHwyShield_text.nav
  133. $(CONTENTDIR)/RailRds_meshes.cpp: RailRds_meshes.nav
  134. $(FILEWRAP) -o $@ RailRds_meshes.nav
  135. $(CONTENTDIR)/SecHwys_meshes.cpp: SecHwys_meshes.nav
  136. $(FILEWRAP) -o $@ SecHwys_meshes.nav
  137. $(CONTENTDIR)/SecHwyShield_text.cpp: SecHwyShield_text.nav
  138. $(FILEWRAP) -o $@ SecHwyShield_text.nav
  139. $(CONTENTDIR)/Signs_billboards.cpp: Signs_billboards.nav
  140. $(FILEWRAP) -o $@ Signs_billboards.nav
  141. $(CONTENTDIR)/Streets_meshes.cpp: Streets_meshes.nav
  142. $(FILEWRAP) -o $@ Streets_meshes.nav
  143. $(CONTENTDIR)/Streets_text.cpp: Streets_text.nav
  144. $(FILEWRAP) -o $@ Streets_text.nav
  145. $(CONTENTDIR)/WaterPoly_meshes.cpp: WaterPoly_meshes.nav
  146. $(FILEWRAP) -o $@ WaterPoly_meshes.nav
  147. $(CONTENTDIR)/WaterSeg_meshes.cpp: WaterSeg_meshes.nav
  148. $(FILEWRAP) -o $@ WaterSeg_meshes.nav
  149. AlphaMaskFragShader.fsc: AlphaMaskFragShader.fsh
  150. $(PVRUNISCO) AlphaMaskFragShader.fsh $@ -f
  151. AntiAliasedLinesFragShader.fsc: AntiAliasedLinesFragShader.fsh
  152. $(PVRUNISCO) AntiAliasedLinesFragShader.fsh $@ -f
  153. AntiAliasedLinesVertShader.vsc: AntiAliasedLinesVertShader.vsh
  154. $(PVRUNISCO) AntiAliasedLinesVertShader.vsh $@ -v
  155. FragShader.fsc: FragShader.fsh
  156. $(PVRUNISCO) FragShader.fsh $@ -f
  157. VertShader.vsc: VertShader.vsh
  158. $(PVRUNISCO) VertShader.vsh $@ -v
  159. PivotQuadFragShader.fsc: PivotQuadFragShader.fsh
  160. $(PVRUNISCO) PivotQuadFragShader.fsh $@ -f
  161. PivotQuadMaskedFragShader.fsc: PivotQuadMaskedFragShader.fsh
  162. $(PVRUNISCO) PivotQuadMaskedFragShader.fsh $@ -f
  163. PivotQuadVertShader.vsc: PivotQuadVertShader.vsh
  164. $(PVRUNISCO) PivotQuadVertShader.vsh $@ -v
  165. ############################################################################
  166. # End of file (content.mak)
  167. ############################################################################