Clarified that group chunks must have chunks in them
[iffl.git] / bsconf.h
blobac2022e7ce85737ee74fc7ad4e8b190294c590ba
1 /* This file is part of bsconf - a configure replacement.
3 * This is the configuration file used by bsconf.c to specify information
4 * specific to your project that it needs to substitute into files listed
5 * in g_Files. Being a configuration file, this file can be used or
6 * modified entirely without restriction. You should change all values
7 * appropriately to the name of your project and its requirements. The
8 * LGPL does not apply to this file. It can and should be treated as a
9 * template for the creation of your own configuration file.
11 * All substituted variable names are given without enclosing @@. For
12 * example: "CC" will match "@CC@" in config.h.in and replace it with
13 * "gcc" in config.h.
16 #define BSCONF_VERSION 0x03
18 #define PACKAGE_NAME "iff"
19 #define LIB_MAJOR "0"
20 #define LIB_MINOR "1"
21 #define LIB_BUILD "0"
23 #define PACKAGE_VERSION LIB_MAJOR "." LIB_MINOR
24 #define PACKAGE_TARNAME PACKAGE_NAME
25 #define PACKAGE_STRING PACKAGE_NAME " " PACKAGE_VERSION
26 #define PACKAGE_BUGREPORT "Mike Sharov <msharov@users.sourceforge.net>"
28 static cpchar_t g_Files [] = {
29 "Config.mk",
30 "config.h"
33 /* Values substitute @VARNAME@ */
34 static cpchar_t g_EnvVars [] = {
35 "CC",
36 "CXX",
37 "LD",
38 "CXXFLAGS",
39 "LDFLAGS"
42 /* VARIABLE PROGRAM HOW TO CALL IF NOT FOUND */
43 static cpchar_t g_ProgVars [] = {
44 "CC", "gcc", "gcc", "@CXX@",
45 "CXX", "g++", "g++", "@CXX@",
46 "CXX", "c++", "c++", "g++",
47 "LD", "ld", "ld", "ld",
48 "AR", "ar", "ar", "echo",
49 "RANLIB", "ranlib", "ranlib", "touch",
50 "DOXYGEN", "doxygen", "doxygen", "echo",
51 "INSTALL", "install", "install -c", "cp"
54 /* NAME IF NOT FOUND IF FOUND */
55 static cpchar_t g_Headers [] = {
56 "ustl.h", "#undef HAVE_USTL_H", "#define HAVE_USTL_H 1"
59 /* NAME IF NOT FOUND IF FOUND */
60 static cpchar_t g_Libs [] = {
61 "supc++", "", "-lsupc++",
62 "ustl", "", "-lustl"
65 /* NAME IF NOT FOUND IF FOUND */
66 static cpchar_t g_Functions [] = {
69 /* NAME WITHOUT TEXT WITH TEXT */
70 static cpchar_t g_Components [] = {
71 "shared", "#BUILD_SHARED\t= 1", "BUILD_SHARED\t= 1 ",
72 "static", "#BUILD_STATIC\t= 1", "BUILD_STATIC\t= 1 ",
73 "debug", "#DEBUG\t\t= 1", "DEBUG\t\t= 1 ",
74 "bigendian", "USTL_LITTLE_ENDIAN", "USTL_BIG_ENDIAN",
75 "2grain", "#define IFF_GRAIN 4", "#define IFF_GRAIN 2",
76 "align", "#define IFF_GRAIN 1", "#define IFF_GRAIN 4"
79 /* Parallel to g_Components */
80 static SComponentInfo g_ComponentInfos [VectorSize(g_Components) / 3] = {
81 { 0, "Builds the shared library (if supported by the OS)" },
82 { 1, "Builds the static library" },
83 { 0, "Compiles the library with debugging information" },
84 { 0, "Store header fields in big-endian format, as in EA85" },
85 { 0, "Align on 2-grain instead of 4-grain, as in EA85" },
86 { 1, "Turn off chunk alignment" }
89 /* Substitutes names like @PACKAGE_NAME@ with the second field */
90 static cpchar_t g_CustomVars [] = {
91 "GCC4_SIZEOPTS",
92 #if __GNUC__ >= 4
93 "-fno-threadsafe-statics -fno-enforce-eh-specs",
94 #else
95 "",
96 #endif
97 "PACKAGE_NAME", PACKAGE_NAME,
98 "PACKAGE_VERSION", PACKAGE_VERSION,
99 "PACKAGE_TARNAME", PACKAGE_TARNAME,
100 "PACKAGE_STRING", PACKAGE_STRING,
101 "PACKAGE_BUGREPORT", PACKAGE_BUGREPORT,
102 "LIBNAME", PACKAGE_NAME,
103 "LIB_MAJOR", LIB_MAJOR,
104 "LIB_MINOR", LIB_MINOR,
105 "LIB_BUILD", LIB_BUILD