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.

460 lines
15 KiB

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