Conscript 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # bspc compile
  2. Import qw( BSPC_BASE_CFLAGS BUILD_DIR INSTALL_DIR CC CXX LINK );
  3. @BSPC_FILES = qw(
  4. aas_areamerging.c
  5. aas_cfg.c
  6. aas_create.c
  7. aas_edgemelting.c
  8. aas_facemerging.c
  9. aas_file.c
  10. aas_gsubdiv.c
  11. aas_map.c
  12. aas_prunenodes.c
  13. aas_store.c
  14. be_aas_bspc.c
  15. ../botlib/be_aas_bspq3.c
  16. ../botlib/be_aas_cluster.c
  17. ../botlib/be_aas_move.c
  18. ../botlib/be_aas_optimize.c
  19. ../botlib/be_aas_reach.c
  20. ../botlib/be_aas_sample.c
  21. brushbsp.c
  22. bspc.c
  23. ../qcommon/cm_load.c
  24. ../qcommon/cm_patch.c
  25. ../qcommon/cm_test.c
  26. ../qcommon/cm_trace.c
  27. csg.c
  28. glfile.c
  29. l_bsp_ent.c
  30. l_bsp_hl.c
  31. l_bsp_q1.c
  32. l_bsp_q2.c
  33. l_bsp_q3.c
  34. l_bsp_sin.c
  35. l_cmd.c
  36. ../botlib/l_libvar.c
  37. l_log.c
  38. l_math.c
  39. l_mem.c
  40. l_poly.c
  41. ../botlib/l_precomp.c
  42. l_qfiles.c
  43. ../botlib/l_script.c
  44. ../botlib/l_struct.c
  45. l_threads.c
  46. l_utils.c
  47. leakfile.c
  48. map.c
  49. map_hl.c
  50. map_q1.c
  51. map_q2.c
  52. map_q3.c
  53. map_sin.c
  54. ../qcommon/md4.c
  55. nodraw.c
  56. portals.c
  57. textures.c
  58. tree.c
  59. ../qcommon/unzip.c
  60. );
  61. $BSPC_REF = \@BSPC_FILES;
  62. $env = new cons(
  63. CC => $CC,
  64. CXX => $CXX,
  65. LINK => $LINK,
  66. CFLAGS => $BSPC_BASE_CFLAGS,
  67. LIBS => '-ldl -lm -lpthread'
  68. );
  69. Program $env 'bspc', @$BSPC_REF;
  70. # this should install to Q3 or something?
  71. Install $env $INSTALL_DIR, 'bspc';