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.

485 lines
16 KiB

  1. //-----------------------------------------------------------------------------
  2. // VSCRIPT.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. $Configuration
  10. {
  11. $Compiler [!$PS3]
  12. {
  13. $PreprocessorDefinitions "$BASE;VSCRIPT_DLL_EXPORT;LUA_MOD_CASE_INSENSITIVE"
  14. $PreprocessorDefinitions "$BASE;MSVC" [$WINDOWS||$X360]
  15. $AdditionalIncludeDirectories "$BASE;.\languages\squirrel\include;.\languages\squirrel\sqplus;.\languages\lua\lua-5.1.4\src" [$OSXALL||$POSIX]
  16. }
  17. $Compiler [$PS3]
  18. {
  19. $PreprocessorDefinitions "$BASE;VSCRIPT_DLL_EXPORT;LUA_MOD_CASE_INSENSITIVE"
  20. $C++ExceptionsandRTTIUsage "Using Exceptions and RTTI"
  21. }
  22. $Linker [$OSXALL]
  23. {
  24. $SystemLibraries "iconv"
  25. }
  26. }
  27. $Configuration "Release"
  28. {
  29. $General [!$PS3]
  30. {
  31. $WholeProgramOptimization "Use Link Time Code Generation" [!$PROFILE]
  32. }
  33. }
  34. $Project "vscript"
  35. {
  36. $Folder "Source Files"
  37. {
  38. $File "vscript.cpp"
  39. $File ".\languages\gm\vgm\vgm.cpp"
  40. {
  41. $Configuration
  42. {
  43. $Compiler
  44. {
  45. $AdditionalIncludeDirectories "$BASE;.\languages\gm\src\gm;.\languages\gm\src\binds;.\languages\gm\src\platform\win32msvc"
  46. }
  47. $ExcludedFromBuild "Yes"
  48. }
  49. }
  50. $File ".\languages\lua\vlua\vlua.cpp" [!$X360 && !$PS3 && !$LINUX]
  51. {
  52. $Configuration
  53. {
  54. $Compiler
  55. {
  56. $AdditionalIncludeDirectories "$BASE;.\languages\lua\lua-5.1.4\src"
  57. }
  58. }
  59. }
  60. $File ".\languages\squirrel\vsquirrel\vsquirrel.cpp"
  61. {
  62. $Configuration
  63. {
  64. $Compiler
  65. {
  66. $AdditionalIncludeDirectories "$BASE;.\languages\squirrel\include;.\languages\squirrel\sqplus"
  67. }
  68. }
  69. }
  70. $Folder "Script Files"
  71. {
  72. $File ".\languages\squirrel\vsquirrel\init.nut"
  73. {
  74. $Configuration
  75. {
  76. $CustomBuildStep
  77. {
  78. $CommandLine "$SRCDIR\devtools\srcsrv\perl\bin\perl.exe $SRCDIR\devtools\bin\texttoarray.pl $(InputPath) g_Script_$(InputName)> $(InputDir)$(InputName)_nut.h" [$WINDOWS]
  79. $CommandLine "perl $SRCDIR\devtools\bin\texttoarray.pl $(InputPath) g_Script_$(InputName)> $(InputDir)$(InputName)_nut.h" [$POSIX]
  80. $Description "$(InputFileName) produces $(InputName)_nut.h"
  81. $Outputs "$(InputDir)$(InputName)_nut.h"
  82. }
  83. }
  84. }
  85. }
  86. }
  87. $Folder "Header Files"
  88. {
  89. $File ".\languages\gm\vgm\vgm.h"
  90. $File ".\languages\squirrel\vsquirrel\vsquirrel.h"
  91. $File ".\languages\lua\vlua\vlua.h"
  92. }
  93. $Folder "Interface"
  94. {
  95. $File "$SRCDIR\public\vscript\ivscript.h"
  96. $File "$SRCDIR\public\vscript\vscript_templates.h"
  97. }
  98. $Folder "GameMonkey"
  99. {
  100. $Folder "gm"
  101. {
  102. $Folder "Source Files"
  103. {
  104. $File ".\languages\gm\src\gm\gmArraySimple.cpp" \
  105. ".\languages\gm\src\gm\gmByteCode.cpp" \
  106. ".\languages\gm\src\gm\gmByteCodeGen.cpp" \
  107. ".\languages\gm\src\gm\gmCodeGen.cpp" \
  108. ".\languages\gm\src\gm\gmCodeGenHooks.cpp" \
  109. ".\languages\gm\src\gm\gmCodeTree.cpp" \
  110. ".\languages\gm\src\gm\gmCrc.cpp" \
  111. ".\languages\gm\src\gm\gmDebug.cpp" \
  112. ".\languages\gm\src\gm\gmFunctionObject.cpp" \
  113. ".\languages\gm\src\gm\gmHash.cpp" \
  114. ".\languages\gm\src\gm\gmIncGC.cpp" \
  115. ".\languages\gm\src\gm\gmLibHooks.cpp" \
  116. ".\languages\gm\src\gm\gmListDouble.cpp" \
  117. ".\languages\gm\src\gm\gmLog.cpp" \
  118. ".\languages\gm\src\gm\gmMachine.cpp" \
  119. ".\languages\gm\src\gm\gmMachineLib.cpp" \
  120. ".\languages\gm\src\gm\gmMem.cpp" \
  121. ".\languages\gm\src\gm\gmMemChain.cpp" \
  122. ".\languages\gm\src\gm\gmMemFixed.cpp" \
  123. ".\languages\gm\src\gm\gmMemFixedSet.cpp" \
  124. ".\languages\gm\src\gm\gmOperators.cpp" \
  125. ".\languages\gm\src\gm\gmParser.cpp" \
  126. ".\languages\gm\src\gm\gmScanner.cpp" \
  127. ".\languages\gm\src\gm\gmStream.cpp" \
  128. ".\languages\gm\src\gm\gmStreamBuffer.cpp" \
  129. ".\languages\gm\src\gm\gmStringObject.cpp" \
  130. ".\languages\gm\src\gm\gmTableObject.cpp" \
  131. ".\languages\gm\src\gm\gmThread.cpp" \
  132. ".\languages\gm\src\gm\gmUserObject.cpp" \
  133. ".\languages\gm\src\gm\gmUtil.cpp" \
  134. ".\languages\gm\src\gm\gmVariable.cpp"
  135. {
  136. $Configuration
  137. {
  138. $Compiler
  139. {
  140. $AdditionalIncludeDirectories "$BASE;.\languages\gm\src\gm;.\languages\gm\src\binds;.\languages\gm\src\platform\win32msvc"
  141. $PreprocessorDefinitions "$BASE;PROTECTED_THINGS_DISABLE;VSCRIPT_DLL_EXPORT"
  142. }
  143. $ExcludedFromBuild "Yes"
  144. }
  145. }
  146. }
  147. $Folder "Header Files"
  148. {
  149. $File ".\languages\gm\src\platform\win32msvc\gmConfig_p.h" \
  150. ".\languages\gm\src\gm\gmArraySimple.h" \
  151. ".\languages\gm\src\gm\gmByteCode.h" \
  152. ".\languages\gm\src\gm\gmByteCodeGen.h" \
  153. ".\languages\gm\src\gm\gmCodeGen.h" \
  154. ".\languages\gm\src\gm\gmCodeGenHooks.h" \
  155. ".\languages\gm\src\gm\gmCodeTree.h" \
  156. ".\languages\gm\src\gm\gmConfig.h" \
  157. ".\languages\gm\src\gm\gmCrc.h" \
  158. ".\languages\gm\src\gm\gmDebug.h" \
  159. ".\languages\gm\src\gm\gmFunctionObject.h" \
  160. ".\languages\gm\src\gm\gmHash.h" \
  161. ".\languages\gm\src\gm\gmIncGC.h" \
  162. ".\languages\gm\src\gm\gmIterator.h" \
  163. ".\languages\gm\src\gm\gmLibHooks.h" \
  164. ".\languages\gm\src\gm\gmListDouble.h" \
  165. ".\languages\gm\src\gm\gmLog.h" \
  166. ".\languages\gm\src\gm\gmMachine.h" \
  167. ".\languages\gm\src\gm\gmMachineLib.h" \
  168. ".\languages\gm\src\gm\gmMem.h" \
  169. ".\languages\gm\src\gm\gmMemChain.h" \
  170. ".\languages\gm\src\gm\gmMemFixed.h" \
  171. ".\languages\gm\src\gm\gmMemFixedSet.h" \
  172. ".\languages\gm\src\gm\gmOperators.h" \
  173. ".\languages\gm\src\gm\gmParser.cpp.h" \
  174. ".\languages\gm\src\gm\gmScanner.h" \
  175. ".\languages\gm\src\gm\gmStream.h" \
  176. ".\languages\gm\src\gm\gmStreamBuffer.h" \
  177. ".\languages\gm\src\gm\gmStringObject.h" \
  178. ".\languages\gm\src\gm\gmTableObject.h" \
  179. ".\languages\gm\src\gm\gmThread.h" \
  180. ".\languages\gm\src\gm\gmUserObject.h" \
  181. ".\languages\gm\src\gm\gmUtil.h" \
  182. ".\languages\gm\src\gm\gmVariable.h"
  183. }
  184. }
  185. $Folder "binds"
  186. {
  187. $Folder "Source Files"
  188. {
  189. $File ".\languages\gm\src\binds\gmArrayLib.cpp" \
  190. ".\languages\gm\src\binds\gmCall.cpp" \
  191. ".\languages\gm\src\binds\gmGCRoot.cpp" \
  192. ".\languages\gm\src\binds\gmGCRootUtil.cpp" \
  193. ".\languages\gm\src\binds\gmHelpers.cpp" \
  194. ".\languages\gm\src\binds\gmMathLib.cpp" \
  195. ".\languages\gm\src\binds\gmStringLib.cpp" \
  196. ".\languages\gm\src\binds\gmSystemLib.cpp" \
  197. ".\languages\gm\src\binds\gmVector3Lib.cpp"
  198. {
  199. $Configuration
  200. {
  201. $Compiler
  202. {
  203. $AdditionalIncludeDirectories "$BASE;.\languages\gm\src\gm;.\languages\gm\src\binds;.\languages\gm\src\platform\win32msvc"
  204. $PreprocessorDefinitions "$BASE;PROTECTED_THINGS_DISABLE;VSCRIPT_DLL_EXPORT"
  205. }
  206. $ExcludedFromBuild "Yes"
  207. }
  208. }
  209. }
  210. $Folder "Header Files"
  211. {
  212. $File ".\languages\gm\src\binds\gmArrayLib.h" \
  213. ".\languages\gm\src\binds\gmCall.h" \
  214. ".\languages\gm\src\binds\gmGCRoot.h" \
  215. ".\languages\gm\src\binds\gmGCRootUtil.h" \
  216. ".\languages\gm\src\binds\gmHelpers.h" \
  217. ".\languages\gm\src\binds\gmMathLib.h" \
  218. ".\languages\gm\src\binds\gmStringLib.h" \
  219. ".\languages\gm\src\binds\gmSystemLib.h" \
  220. ".\languages\gm\src\binds\gmVector3Lib.h"
  221. }
  222. }
  223. }
  224. $Folder "Squirrel"
  225. {
  226. $Folder "Header Files"
  227. {
  228. $File ".\languages\squirrel\include\sqdbgserver.h"
  229. $File ".\languages\squirrel\include\sqrdbg.h"
  230. $File ".\languages\squirrel\include\sqstdaux.h"
  231. $File ".\languages\squirrel\include\sqstdblob.h"
  232. $File ".\languages\squirrel\include\sqstdio.h"
  233. $File ".\languages\squirrel\include\sqstdmath.h"
  234. $File ".\languages\squirrel\include\sqstdstring.h"
  235. $File ".\languages\squirrel\include\sqstdsystem.h"
  236. $File ".\languages\squirrel\include\squirrel.h"
  237. }
  238. $Folder "squirrel"
  239. {
  240. $Folder "Source Files"
  241. {
  242. $File ".\languages\squirrel\squirrel\sqapi.cpp" \
  243. ".\languages\squirrel\squirrel\sqbaselib.cpp" \
  244. ".\languages\squirrel\squirrel\sqclass.cpp" \
  245. ".\languages\squirrel\squirrel\sqcompiler.cpp" \
  246. ".\languages\squirrel\squirrel\sqdebug.cpp" \
  247. ".\languages\squirrel\squirrel\sqfuncstate.cpp" \
  248. ".\languages\squirrel\squirrel\sqlexer.cpp" \
  249. ".\languages\squirrel\squirrel\sqmem.cpp" \
  250. ".\languages\squirrel\squirrel\sqobject.cpp" \
  251. ".\languages\squirrel\squirrel\sqstate.cpp" \
  252. ".\languages\squirrel\squirrel\sqtable.cpp" \
  253. ".\languages\squirrel\squirrel\sqvm.cpp" \
  254. ".\languages\squirrel\sqdbg\sqrdbg.cpp" \
  255. ".\languages\squirrel\sqdbg\sqdbgserver.cpp"
  256. {
  257. $Configuration
  258. {
  259. $Compiler [!$PS3]
  260. {
  261. $WarningLevel "Level 3 (/W3)"
  262. // $Detect64bitPortabilityIssues "No" [$WIN32||$LINUX]
  263. }
  264. $Compiler
  265. {
  266. $AdditionalIncludeDirectories "$BASE;.\languages\squirrel\include;.\languages\squirrel\sqplus"
  267. $PreprocessorDefinitions "$BASE;PROTECTED_THINGS_DISABLE;VSCRIPT_DLL_EXPORT"
  268. }
  269. }
  270. }
  271. }
  272. $Folder "Header Files"
  273. {
  274. $File ".\languages\squirrel\squirrel\sqarray.h" \
  275. ".\languages\squirrel\squirrel\sqclass.h" \
  276. ".\languages\squirrel\squirrel\sqclosure.h" \
  277. ".\languages\squirrel\squirrel\sqcompiler.h" \
  278. ".\languages\squirrel\squirrel\sqfuncproto.h" \
  279. ".\languages\squirrel\squirrel\sqfuncstate.h" \
  280. ".\languages\squirrel\squirrel\sqlexer.h" \
  281. ".\languages\squirrel\squirrel\sqobject.h" \
  282. ".\languages\squirrel\squirrel\sqopcodes.h" \
  283. ".\languages\squirrel\squirrel\sqpcheader.h" \
  284. ".\languages\squirrel\squirrel\sqstate.h" \
  285. ".\languages\squirrel\squirrel\sqstring.h" \
  286. ".\languages\squirrel\squirrel\sqtable.h" \
  287. ".\languages\squirrel\squirrel\squserdata.h" \
  288. ".\languages\squirrel\squirrel\squtils.h" \
  289. ".\languages\squirrel\squirrel\sqvm.h"
  290. }
  291. }
  292. $Folder "sqstdlib"
  293. {
  294. $Folder "Source Files"
  295. {
  296. $File ".\languages\squirrel\sqstdlib\sqstdaux.cpp"\
  297. ".\languages\squirrel\sqstdlib\sqstdblob.cpp" \
  298. ".\languages\squirrel\sqstdlib\sqstdmath.cpp" \
  299. ".\languages\squirrel\sqstdlib\sqstdrex.cpp" \
  300. ".\languages\squirrel\sqstdlib\sqstdstream.cpp" \
  301. ".\languages\squirrel\sqstdlib\sqstdstring.cpp"
  302. {
  303. $Configuration
  304. {
  305. $Compiler [!$PS3]
  306. {
  307. $WarningLevel "Level 3 (/W3)"
  308. // $Detect64bitPortabilityIssues "No" [$WIN32||$LINUX]
  309. }
  310. $Compiler
  311. {
  312. $AdditionalIncludeDirectories "$BASE;.\languages\squirrel\include;.\languages\squirrel\sqplus"
  313. $PreprocessorDefinitions "$BASE;PROTECTED_THINGS_DISABLE;VSCRIPT_DLL_EXPORT"
  314. }
  315. }
  316. }
  317. }
  318. }
  319. $Folder "sqplus"
  320. {
  321. $Folder "Source Files"
  322. {
  323. $File ".\languages\squirrel\sqplus\SquirrelBindingsUtilsWin32.cpp" [!$PS3&&!$POSIX]
  324. {
  325. $Configuration
  326. {
  327. $Compiler
  328. {
  329. $AdditionalIncludeDirectories "$BASE,.\languages\squirrel3\include"
  330. $WarningLevel "Level 3 (/W3)"
  331. // $Detect64bitPortabilityIssues "No" [$WIN32||$LINUX]
  332. // "SQPlus" need exceptions. If commit to squirrel, look into removing that
  333. $AdditionalOptions "$BASE /EHsc"
  334. $AdditionalIncludeDirectories "$BASE;.\languages\squirrel\include;.\languages\squirrel\sqplus"
  335. $PreprocessorDefinitions "$BASE;PROTECTED_THINGS_DISABLE;VSCRIPT_DLL_EXPORT"
  336. }
  337. }
  338. }
  339. $File ".\languages\squirrel\sqplus\SqPlus.cpp" \
  340. ".\languages\squirrel\sqplus\SquirrelBindingsUtils.cpp" \
  341. ".\languages\squirrel\sqplus\SquirrelObject.cpp" \
  342. ".\languages\squirrel\sqplus\SquirrelVM.cpp"
  343. {
  344. $Configuration
  345. {
  346. $Compiler [!$PS3]
  347. {
  348. $WarningLevel "Level 3 (/W3)"
  349. // $Detect64bitPortabilityIssues "No" [$WIN32||$LINUX]
  350. // "SQPlus" need exceptions. If commit to squirrel, look into removing that
  351. $AdditionalOptions "$BASE /EHsc"
  352. }
  353. $Compiler
  354. {
  355. $AdditionalIncludeDirectories "$BASE;.\languages\squirrel\include;.\languages\squirrel\sqplus"
  356. $PreprocessorDefinitions "$BASE;PROTECTED_THINGS_DISABLE;VSCRIPT_DLL_EXPORT"
  357. }
  358. }
  359. }
  360. }
  361. $Folder "Header Files"
  362. {
  363. $File ".\languages\squirrel\sqplus\sqplus.h" \
  364. ".\languages\squirrel\sqplus\SqPlusConst.h" \
  365. ".\languages\squirrel\sqplus\sqplusWin32.h" \
  366. ".\languages\squirrel\sqplus\SquirrelBindingsUtils.h" \
  367. ".\languages\squirrel\sqplus\SquirrelBindingsUtilsWin32.h" \
  368. ".\languages\squirrel\sqplus\SquirrelObject.h" \
  369. ".\languages\squirrel\sqplus\SquirrelVM.h"
  370. }
  371. }
  372. }
  373. $Folder "Lua" [ !$X360 && !$PS3 && !$LINUX]
  374. {
  375. $Folder "lua-5.1.4"
  376. {
  377. $Folder "Source Files"
  378. {
  379. $File ".\languages\lua\lua-5.1.4\src\lapi.c" \
  380. ".\languages\lua\lua-5.1.4\src\lauxlib.c" \
  381. ".\languages\lua\lua-5.1.4\src\lbaselib.c" \
  382. ".\languages\lua\lua-5.1.4\src\lcode.c" \
  383. ".\languages\lua\lua-5.1.4\src\ldblib.c" \
  384. ".\languages\lua\lua-5.1.4\src\ldebug.c" \
  385. ".\languages\lua\lua-5.1.4\src\ldo.c" \
  386. ".\languages\lua\lua-5.1.4\src\ldump.c" \
  387. ".\languages\lua\lua-5.1.4\src\lfunc.c" \
  388. ".\languages\lua\lua-5.1.4\src\lgc.c" \
  389. ".\languages\lua\lua-5.1.4\src\linit.c" \
  390. ".\languages\lua\lua-5.1.4\src\liolib.c" \
  391. ".\languages\lua\lua-5.1.4\src\llex.c" \
  392. ".\languages\lua\lua-5.1.4\src\lmathlib.c" \
  393. ".\languages\lua\lua-5.1.4\src\lmem.c" \
  394. ".\languages\lua\lua-5.1.4\src\loadlib.c" \
  395. ".\languages\lua\lua-5.1.4\src\lobject.c" \
  396. ".\languages\lua\lua-5.1.4\src\lopcodes.c" \
  397. ".\languages\lua\lua-5.1.4\src\loslib.c" \
  398. ".\languages\lua\lua-5.1.4\src\lparser.c" \
  399. ".\languages\lua\lua-5.1.4\src\lstate.c" \
  400. ".\languages\lua\lua-5.1.4\src\lstring.c" \
  401. ".\languages\lua\lua-5.1.4\src\lstrlib.c" \
  402. ".\languages\lua\lua-5.1.4\src\ltable.c" \
  403. ".\languages\lua\lua-5.1.4\src\ltablib.c" \
  404. ".\languages\lua\lua-5.1.4\src\ltm.c" \
  405. ".\languages\lua\lua-5.1.4\src\lundump.c" \
  406. ".\languages\lua\lua-5.1.4\src\lvm.c" \
  407. ".\languages\lua\lua-5.1.4\src\lzio.c" \
  408. ".\languages\lua\lua-5.1.4\src\print.c"
  409. {
  410. $Configuration
  411. {
  412. $Compiler [!$PS3]
  413. {
  414. $WarningLevel "Level 3 (/W3)"
  415. $Detect64bitPortabilityIssues "No"
  416. $CompileAs "Default"
  417. }
  418. }
  419. }
  420. }
  421. $Folder "Header Files"
  422. {
  423. $File ".\languages\lua\lua-5.1.4\src\lapi.h" \
  424. ".\languages\lua\lua-5.1.4\src\lauxlib.h" \
  425. ".\languages\lua\lua-5.1.4\src\lcode.h" \
  426. ".\languages\lua\lua-5.1.4\src\ldebug.h" \
  427. ".\languages\lua\lua-5.1.4\src\ldo.h" \
  428. ".\languages\lua\lua-5.1.4\src\lfunc.h" \
  429. ".\languages\lua\lua-5.1.4\src\lgc.h" \
  430. ".\languages\lua\lua-5.1.4\src\llex.h" \
  431. ".\languages\lua\lua-5.1.4\src\llimits.h" \
  432. ".\languages\lua\lua-5.1.4\src\lmem.h" \
  433. ".\languages\lua\lua-5.1.4\src\lobject.h" \
  434. ".\languages\lua\lua-5.1.4\src\lopcodes.h" \
  435. ".\languages\lua\lua-5.1.4\src\lparser.h" \
  436. ".\languages\lua\lua-5.1.4\src\lstate.h" \
  437. ".\languages\lua\lua-5.1.4\src\lstring.h" \
  438. ".\languages\lua\lua-5.1.4\src\ltable.h" \
  439. ".\languages\lua\lua-5.1.4\src\ltm.h" \
  440. ".\languages\lua\lua-5.1.4\src\lua.h" \
  441. ".\languages\lua\lua-5.1.4\src\luaconf.h" \
  442. ".\languages\lua\lua-5.1.4\src\lualib.h" \
  443. ".\languages\lua\lua-5.1.4\src\lundump.h" \
  444. ".\languages\lua\lua-5.1.4\src\lvm.h" \
  445. ".\languages\lua\lua-5.1.4\src\lzio.h"
  446. }
  447. }
  448. $Folder "Support"
  449. {
  450. $File ".\languages\lua\vlua\vec3.cpp"
  451. $File ".\languages\lua\vlua\vec3.h"
  452. }
  453. }
  454. $Folder "Link Libraries"
  455. {
  456. $Lib mathlib
  457. }
  458. }