Talk:Compiling

From VDrift Documentation Wiki

Revision as of 14:49, 18 January 2010 by NamiyoYanagisawa (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Great instructions! From now, on when I complain about sparse, vague, and inaccurate compiling instructions I will direct the authors to this page so they can see how its done.


[edit] Building DEB packages

SCons scripts to build Vdrift Deb packages. Please complete them as needed --Bogdanbiv 07:02, 26 June 2009 (PDT)

  1. Append this to the end of SConstruct script
  2. package target build as Debian packages

if 'debian' in COMMAND_LINE_TARGETS:

   SConscript("deb/debConstruct.py")
  1. The file deb/debConstruct.py should contain:
  2. -*- coding: utf-8 -*-
  3. This script was taken from http://www.qandr.org/quentin/writings/debscons

import os, shutil, sys Import('env') # exported by parent SConstruct

  1. I wanted to base the debian version number partly on the
  2. revision checked out from our SVN repository.
  3. Skip this if it's not relevant to you.
  4. svn_version = os.popen('svnversion ..').read()[:-1]
  1. This may be as simple as '89' or as complex as '4123:4184M'.
  2. We'll just use the last bit.
  3. svn_version = svn_version.split(':')[-1]

svn_version = "2009.06.15"


  1. Here's the core info for the package

DEBNAME = "vdrift" DEBVERSION = "2009.06.15" DEBMAINT = "Bogdan bogdan.bivolaru@gmail.com" DEBARCH = "i386" DEBDEPENDS = "other-package1, other-package2, g++, scons, libsdl-gfx1.2-dev, libsdl-image1.2-dev, libsdl-net1.2-dev, libvorbis-dev, libglew-dev, libasio-dev" # what are we dependent on? DEBDESC = "VDrift is a driving simulation game made with drift racing in mind or buy a paper made"

DEBFILES = [

   # Now we specify the files to be included in the .deb
   # Where they should go, and where they should be copied from.
   # If you have a lot of files, you may wish to generate this 
   # list in some other way.
   # ("usr/bin/myutility",            # "#src/myutility/myutility"),
   # ("etc/myutility/myutility.conf", # "#misc/myutility.conf"),
   ("usr",        		      "#docs/"),
Personal tools