Source

quake3 / code / bspc / Conscript

# bspc compile

Import qw( BSPC_BASE_CFLAGS BUILD_DIR INSTALL_DIR CC CXX LINK );

@BSPC_FILES = qw(
	aas_areamerging.c
	aas_cfg.c
	aas_create.c
	aas_edgemelting.c
	aas_facemerging.c
	aas_file.c
	aas_gsubdiv.c
	aas_map.c
	aas_prunenodes.c
	aas_store.c
	be_aas_bspc.c
	../botlib/be_aas_bspq3.c
	../botlib/be_aas_cluster.c
	../botlib/be_aas_move.c
	../botlib/be_aas_optimize.c
	../botlib/be_aas_reach.c
	../botlib/be_aas_sample.c
	brushbsp.c
	bspc.c
	../qcommon/cm_load.c
	../qcommon/cm_patch.c
	../qcommon/cm_test.c
	../qcommon/cm_trace.c
	csg.c
	glfile.c
	l_bsp_ent.c
	l_bsp_hl.c
	l_bsp_q1.c
	l_bsp_q2.c
	l_bsp_q3.c
	l_bsp_sin.c
	l_cmd.c
	../botlib/l_libvar.c
	l_log.c
	l_math.c
	l_mem.c
	l_poly.c
	../botlib/l_precomp.c
	l_qfiles.c
	../botlib/l_script.c
	../botlib/l_struct.c
	l_threads.c
	l_utils.c
	leakfile.c
	map.c
	map_hl.c
	map_q1.c
	map_q2.c
	map_q3.c
	map_sin.c
	../qcommon/md4.c
	nodraw.c
	portals.c
	textures.c
	tree.c
	../qcommon/unzip.c
  );
$BSPC_REF = \@BSPC_FILES;

$env = new cons(
  CC => $CC,
  CXX => $CXX,
  LINK => $LINK,
  CFLAGS => $BSPC_BASE_CFLAGS,
  LIBS => '-ldl -lm -lpthread'
);

Program $env 'bspc', @$BSPC_REF;
# this should install to Q3 or something?
Install $env $INSTALL_DIR, 'bspc';
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.