⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 conscript-setup

📁 3D 游戏界的大牛人 John Carmack 终于放出了 Q3 的源代码
💻
字号:
# setup

Import qw( INSTALL_BASEDIR );

$env = new cons(
  # add this path so setup script finds brandelf
  ENV => { PATH => $ENV{PATH} . ":" . $ENV{HOME} . "./usr/bin", },
);

sub launch {
  # need to get the correct version (i.e. from SP source)
  $version = `cat game/q_shared.h | grep Q3_VERSION`;
  chomp $version;
  $version =~ s/.*Q3\ (.*)\"/$1/;
  print("version: $version\n");
  system("cd unix ; ./build_setup.sh $version");

  return 1;
}

# no dependency to PB, we get it directly from the tree and not in install/
Depends $env "$INSTALL_BASEDIR/foo",
  "$INSTALL_BASEDIR/linuxq3ded",
  "$INSTALL_BASEDIR/linuxquake3-smp",
  "$INSTALL_BASEDIR/linuxquake3";
  # during developement phase, we generate and copy the pk3 on the fly
  # then those should move to the media tree
# those have been finalized and moved to the media tree
#  "$INSTALL_BASEDIR/baseq3/pak8.pk3",
#  "$INSTALL_BASEDIR/missionpack/pak3.pk3";
  
  
Command $env "$INSTALL_BASEDIR/foo", "[perl] &launch()";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -