Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

209 lines
8.5 KiB

  1. //-----------------------------------------------------------------------------
  2. // SCALEFORMUI.VPC
  3. //
  4. // Project Script
  5. //-----------------------------------------------------------------------------
  6. $macro SRCDIR ".."
  7. $Macro OUTBINDIR "$SRCDIR\..\game\bin"
  8. $include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
  9. $IgnoreRedundancyWarning "ON"
  10. // @wge: Because vpc make file generator doesn't care about $AdditionalDependencies, we need to manually switch the lib for OSX.
  11. // NOTE: This can only be "Shipping" or "Debug" and the value of GFXBUILDSHIPPING_OSX must match or things will fail horribly.
  12. $Macro GFXCONFIG_OSX "Shipping"
  13. $Conditional GFXBUILDSHIPPING_OSX 1
  14. $Macro GFXCONFIG_LINUX "shipping" // On linux we need to help with the path
  15. $Conditional GFXBUILDSHIPPING_LINUX 1 // 1 Turns off AMP and pix markers
  16. // Set the following to 1 to link including Scaleform AMP profiling tools (game must be launched with "-sfstats")
  17. // If 0 then in Release we define SF_BUILD_SHIPPING and link to the Shipping libs.
  18. // Set to 0 in pc-beta! It is set to 1 in trunk so that we can track SFVALUE still holding reference to AS object when releasing a movie
  19. $Conditional ENABLE_AMP_SERVER 1 [$WINDOWS]
  20. $Conditional ENABLE_AMP_SERVER 0 [!$WINDOWS]
  21. $Macro WINPLATDIR win32 [$WIN32]
  22. $Macro WINPLATDIR x64 [$WIN64]
  23. //-----------------------------------------------------------------------------
  24. // Scaleform defines
  25. $Macro GFXLIB "$SRCDIR\thirdparty\scaleform\sdk42\Lib\$WINPLATDIR\msvc10" [$WINDOWS]
  26. $Macro GFXLIB "$SRCDIR\thirdparty\scaleform\sdk42\Lib\MacOS-i686" [$OSX32]
  27. $Macro GFXLIB "$SRCDIR\thirdparty\scaleform\sdk42\Lib\MacOS-x86_64" [$OSX64]
  28. $Macro GFXLIB "$SRCDIR\thirdparty\scaleform\sdk42\Lib\i386-linux" [$LINUX32]
  29. $Macro GFXLIB "$SRCDIR\thirdparty\scaleform\sdk42\Lib\x86_64-linux" [$LINUX64]
  30. $Macro LIBJPEG "$SRCDIR\thirdparty\scaleform\sdk42\3rdParty\jpeg-8d\lib\$WINPLATDIR\msvc10" [$WINDOWS && !$VS2015]
  31. $Macro LIBJPEG "$SRCDIR\thirdparty\scaleform\sdk42\3rdParty\jpeg-8d\lib\$WINPLATDIR\msvc15" [$WINDOWS && $VS2015]
  32. $Macro LIBPNG "$SRCDIR\thirdparty\scaleform\sdk42\3rdParty\libpng-1.5.13\Lib\$WINPLATDIR\msvc10" [$WINDOWS && !$VS2015]
  33. $Macro LIBPNG "$SRCDIR\thirdparty\scaleform\sdk42\3rdParty\libpng-1.5.13\Lib\$WINPLATDIR\msvc15" [$WINDOWS && $VS2015]
  34. $Macro ZLIB "$SRCDIR\thirdparty\scaleform\sdk42\3rdParty\zlib-1.2.7\Lib\$WINPLATDIR\msvc10" [$WINDOWS]
  35. //-----------------------------------------------------------------------------
  36. $Configuration
  37. {
  38. $Compiler
  39. {
  40. $AdditionalIncludeDirectories "$BASE;$SRCDIR\scaleformui;$SRCDIR\thirdparty\scaleform\sdk42\Include;$SRCDIR\thirdparty\scaleform\sdk42\Src;$SRCDIR\thirdparty"
  41. $AdditionalIncludeDirectories "$BASE;$SRCDIR\dx9sdk\Include" [$WINDOWS && !$GL]
  42. $AdditionalIncludeDirectories "$BASE;$SRCDIR\common\gl" [$GL]
  43. $PreprocessorDefinitions "$BASE;INCLUDE_SCALEFORM;ENABLE_AMP_SERVER=$ENABLE_AMP_SERVER"
  44. $PreprocessorDefinitions "$BASE;VERSION_SAFE_STEAM_API_INTERFACES"
  45. $PreprocessorDefinitions "$BASE;USE_ACTUAL_DX" [( $WINDOWS || $X360 ) && !$GL]
  46. $PreprocessorDefinitions "$BASE;strncpy=use_Q_strncpy_instead;_snprintf=use_Q_snprintf_instead" [!$POSIX]
  47. $PreprocessorDefinitions "$BASE;GL_GLEXT_PROTOTYPES;DX_TO_GL_ABSTRACTION" [$GL]
  48. $PreprocessorDefinitions "$BASE;ALLOW_TEXT_MODE=1" [$CSTRIKE_TRUNK_BUILD||$CSTRIKE_STAGING_BUILD]
  49. $EnableC++Exceptions "Yes (/EHsc)"
  50. }
  51. $Linker
  52. {
  53. $AdditionalDependencies "$BASE winmm.lib libgfx.lib libgfx_as2.lib libgfx_as3.lib libgfxexpat.lib libgfx_ime.lib libgfxvideo.lib libjpeg.lib zlib.lib libpng.lib Ws2_32.lib imm32.lib oleaut32.lib" [$WINDOWS]
  54. $AdditionalDependencies "$BASE libgfxplatform_d3d9.lib libgfxrender_d3d9.lib" [$WINDOWS && !$GL]
  55. $AdditionalDependencies "$BASE OpenGL32.lib libgfxplatform_GL.lib libgfxrender_GL.lib" [$GL]
  56. $AdditionalDependencies "$BASE legacy_stdio_definitions.lib" [$WINDOWS && $VS2015]
  57. $AdditionalLibraryDirectories "$BASE;$GFXLIB" [$PS3 || $OSXALL || $LINUX]
  58. $SystemLibraries "GL" [$LINUXALL]
  59. }
  60. }
  61. $Configuration "Debug"
  62. {
  63. $Compiler [($LINUX && $GFXBUILDSHIPPING_LINUX) || ($OSXALL && $GFXBUILDSHIPPING_OSX)]
  64. {
  65. $PreprocessorDefinitions "$BASE;SF_BUILD_SHIPPING"
  66. }
  67. $Compiler [($LINUX && !$GFXBUILDSHIPPING_LINUX) || ($OSXALL && !$GFXBUILDSHIPPING_OSX)]
  68. {
  69. $PreprocessorDefinitions "$BASE;SF_BUILD_DEBUG"
  70. }
  71. $Linker [$WINDOWS]
  72. {
  73. $AdditionalLibraryDirectories "$BASE;$GFXLIB\debug;$LIBJPEG\debug;$LIBPNG\debug;$ZLIB\debug"
  74. }
  75. }
  76. $Configuration "Release"
  77. {
  78. $Compiler [($LINUX && $GFXBUILDSHIPPING_LINUX) || ($OSXALL && $GFXBUILDSHIPPING_OSX)]
  79. {
  80. $PreprocessorDefinitions "$BASE;SF_BUILD_SHIPPING"
  81. }
  82. $Compiler [($LINUX && !$GFXBUILDSHIPPING_LINUX) || ($OSXALL && !$GFXBUILDSHIPPING_OSX)]
  83. {
  84. $PreprocessorDefinitions "$BASE;SF_BUILD_RELEASE"
  85. }
  86. $Compiler [$WINDOWS]
  87. {
  88. $PreprocessorDefinitions "$BASE;SF_BUILD_SHIPPING" [!$ENABLE_AMP_SERVER]
  89. }
  90. $Linker [$WINDOWS]
  91. {
  92. $AdditionalLibraryDirectories "$BASE;$GFXLIB\release" [$ENABLE_AMP_SERVER]
  93. $AdditionalLibraryDirectories "$BASE;$GFXLIB\shipping" [!$ENABLE_AMP_SERVER]
  94. $AdditionalLibraryDirectories "$BASE;$LIBJPEG\release;$LIBPNG\release;$ZLIB\release"
  95. }
  96. }
  97. $Configuration
  98. {
  99. $Linker [$OSXALL]
  100. {
  101. $SystemFrameworks "Carbon;OpenGL;Quartz;Cocoa;IOKit"
  102. $SystemLibraries "iconv;z"
  103. $AdditionalLibraryDirectories "$BASE;$GFXLIB\$GFXCONFIG_OSX"
  104. $AdditionalDependencies "$BASE $GFXLIB\$GFXCONFIG_OSX\libgfx.a $GFXLIB\libjpeg.a $GFXLIB\libpng.a"
  105. }
  106. }
  107. $Project "ScaleformUI"
  108. {
  109. $Folder "Public Header Files"
  110. {
  111. }
  112. $Folder "Scaleform" [!$DEDICATED]
  113. {
  114. $Folder "Public Header Files"
  115. {
  116. $File "$SRCDIR\public\scaleformui\scaleformui.h"
  117. $File "$SRCDIR\public\tier1\interface.h"
  118. }
  119. $Folder "Precompiled Header Files"
  120. {
  121. $File "stdafx.h"
  122. $File "stdafx.cpp"
  123. }
  124. $Folder "ScaleformUIImpl"
  125. {
  126. $File "scaleformuiimpl\sfuimemoryfile.h"
  127. $File "scaleformuiimpl\movieslot.h"
  128. $File "scaleformuiimpl\movieslot.cpp"
  129. $File "scaleformuiimpl\scaleformuiimpl.h"
  130. $File "scaleformuiimpl\scaleformuicursorimpl.cpp"
  131. $File "scaleformuiimpl\scaleformuihighlevelimpl.cpp"
  132. $File "scaleformuiimpl\scaleformuiinitimpl.cpp"
  133. $File "scaleformuiimpl\scaleformuimovieimpl.cpp"
  134. $File "scaleformuiimpl\scaleformuimovieslotimpl.cpp"
  135. $File "scaleformuiimpl\scaleformuiparamsimpl.cpp"
  136. $File "scaleformuiimpl\scaleformuirendererimpl.cpp"
  137. $File "scaleformuiimpl\scaleformuitranslationimpl.cpp"
  138. $File "scaleformuiimpl\scaleformuivalueimpl.cpp"
  139. $File "scaleformuiimpl\scaleformuiintegration.cpp"
  140. $File "scaleformuiimpl\scaleformuitextobjimpl.cpp"
  141. $File "scaleformuiimpl\scaleformuiintegration.h"
  142. $File "scaleformuiimpl\scaleformuiimage.cpp"
  143. $File "scaleformuiimpl\scaleformuiimage.h"
  144. $File "scaleformuiimpl\sfuiavatarimage.cpp"
  145. $File "scaleformuiimpl\sfuiavatarimage.h"
  146. $File "scaleformuiimpl\sfuichromehtmlimage.cpp"
  147. $File "scaleformuiimpl\sfuichromehtmlimage.h"
  148. $File "scaleformuiimpl\sfuiinventoryimage.cpp"
  149. $File "scaleformuiimpl\sfuiinventoryimage.h"
  150. $File "$SRCDIR\game\shared\cstrike15\dlchelper.h"
  151. }
  152. }
  153. $Folder "Link Libraries"
  154. {
  155. $Lib "mathlib"
  156. $Lib "bitmap"
  157. $Lib "tier2"
  158. $Lib "tier3"
  159. $Lib "vtf"
  160. $LibExternal "$GFXLIB\$GFXCONFIG_LINUX\libgfx" [$LINUX && !$DEDICATED]
  161. $LibExternal "$GFXLIB\$GFXCONFIG_LINUX\libgfxplatform" [$LINUX && !$DEDICATED]
  162. $LibExternal "$GFXLIB\$GFXCONFIG_LINUX\libgfx_as2" [$LINUX && !$DEDICATED]
  163. $LibExternal "$GFXLIB\$GFXCONFIG_LINUX\libgfxexpat" [$LINUX && !$DEDICATED]
  164. $LibExternal "$GFXLIB\$GFXCONFIG_LINUX\libgfxrender_gl" [$LINUX && !$DEDICATED]
  165. $LibExternal "$GFXLIB\$GFXCONFIG_OSX\libgfx" [$OSXALL]
  166. $LibExternal "$GFXLIB\$GFXCONFIG_OSX\libgfxplatform" [$OSXALL]
  167. $LibExternal "$GFXLIB\$GFXCONFIG_OSX\libgfx_as2" [$OSXALL]
  168. $LibExternal "$GFXLIB\$GFXCONFIG_OSX\libgfxrender_gl" [$OSXALL]
  169. $LibExternal "$GFXLIB\libjpeg" [($OSXALL || $LINUX) && !$DEDICATED]
  170. $LibExternal "$GFXLIB\libpng" [($OSXALL || $LINUX) && !$DEDICATED]
  171. $LibExternal "$GFXLIB\libz" [$LINUX && !$DEDICATED]
  172. $Lib "videocfg" [$OSXALL]
  173. $ImplibExternal steam_api [ ( $WIN32 || $POSIX || $PS3 ) && !$NO_STEAM ]
  174. $ImplibExternal steam_api64 [ $WIN64 && !$NO_STEAM ]
  175. $ImpLib togl [!$IS_LIB_PROJECT && $GL && !$DEDICATED]
  176. $File "$SRCDIR\dx9sdk\lib$PLATSUBDIR\d3d9.lib" [$WINDOWS && !$GL]
  177. $File "$SRCDIR\dx9sdk\lib$PLATSUBDIR\d3dx9.lib" [$WINDOWS && !$GL]
  178. $File "$SRCDIR\dx9sdk\lib$PLATSUBDIR\dxguid.lib" [$WINDOWS && !$GL]
  179. }
  180. }