• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..27-Dec-2020-

make/H27-Dec-2020-8460

READMEH A D27-Dec-2020188 64

README.crossbuildH A D27-Dec-20201.7 KiB5036

README.packagesH A D27-Dec-20201 KiB3225

ansiH A D27-Dec-2020444 2219

build.configH A D27-Dec-202023.1 KiB781692

build.docsH A D27-Dec-20208.7 KiB206186

build.shH A D27-Dec-20203 KiB14498

build_cleanH A D27-Dec-2020742 3016

build_collectH A D27-Dec-2020633 2713

build_functionsH A D03-May-20228 KiB313271

config_functionsH A D03-May-202230.6 KiB1,1421,005

config_proginfo_buildH A D03-May-202211.1 KiB337258

config_proginfo_hostH A D03-May-20228.6 KiB357308

menu_functionsH A D27-Dec-202017 KiB663578

recurseH A D27-Dec-20201.9 KiB8966

todoH A D27-Dec-2020515 1612

uqm-wrapper.inH A D27-Dec-2020142 51

README

1This directory contains files used for building and installing
2on unix-like environments.
3There's no need to use any of those directly; type './build.sh' from
4the top dir to get started.
5
6

README.crossbuild

1-= Instructions for cross-building UQM =-
2
3
4Terminology:
5	Build system
6		The system on which the code is being built.
7	Host system
8		The system on which the code is supposed to run on.
9
10
11Set the environment variable 'CROSS_ROOT' to the root of your cross building
12environment. This is not necessary for the build scripts, but it will
13simplify what you type in the following steps.
14
15Make sure your cross-building tools (gcc, ld, etc) are in the path.
16	export PATH=$CROSS_ROOT/bin:$PATH
17Make sure that it isn't being reset by subshells that are started.
18	unset ENV BASH_ENV
19
20Set the environment variable 'BUILD_HOST' to the host system.
21This is whatever 'uname -s' returns on such a system (like "MINGW32").
22When building for Windows CE, using the cegcc tools, you should use "cegcc".
23
24If your host system is big-endian, set the environment variable
25'BUILD_HOST_ENDIAN' to "big". For a little-endian system, you don't
26have to do anything.
27	export BUILD_HOST_ENDIAN=little
28
29If you're using pkg-config (advised), set the environment variable
30PKG_CONFIG_PATH' to the pkgconfig directory of the cross environment.
31This dir normally resides in the 'lib/' directory.
32	export PKG_CONFIG_PATH=$CROSS_ROOT/lib/pkgconfig
33
34For any libraries that can't be detected - which will be a lot if you
35don't use pkg-config - set the corresponding include dirs in CFLAGS and
36library dirs in LDFLAGS.
37	export CFLAGS="-I$CROSS_ROOT/include"
38	export LDFLAGS="-L$CROSS_ROOT/lib"
39
40Run configure:
41	./build.sh uqm config
42This will produce the file 'build.vars' and 'config_unix.h' (or config_win.h
43on MinGW or Cygwin). If there are any problems during the build, you can
44usually easilly solve them by editing these files manually.
45
46Start the compilation:
47	./build.sh uqm
48
49
50

README.packages

1This file describes the easiest way to use this build system from
2a packaging system such as rpm.
3
4If you want an interactive configuration, you can start the build process
5like you would do manually:
6	./build.sh uqm
7to build the game, and
8	./build.sh uqm install
9to install it.
10
11
12If you want the configuration to be non-interactive, you'll want to do
13the following: execute
14	./build.sh uqm config
15once. This will generate a 'config.vars' file, which you can then
16include in your package. Then when you want to build the game, put this
17file the directory pointed to by $BUILD_WORK (default is the current
18directory), and do
19	./build.sh uqm reprocess_config
20to generate all the configuration information for the build, and then
21	./build.sh uqm
22to build the game, and
23	./build.sh uqm install
24to install it.
25
26You may wish to set the environment variable BUILD_WORK to a directory
27where the files created in the configuration and build process should be
28stored. That way, the source tree will remain clean and no write access
29to it is required.
30
31
32