Changeset 228 for trunk/cairo/cairo-build.d
- Timestamp:
- 11/03/07 22:54:06 (5 years ago)
- Files:
-
- trunk/cairo/cairo-build.d (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cairo/cairo-build.d
r119 r228 61 61 TARGET_GLITZ = {name:"glitz", type:"lib", target:"lib/cairo_glitz", 62 62 sources:["cairo/glitz/cairo_glitz.d"]}, 63 TARGET_PDF = {name:"pdf", type:"lib", target:"lib/cairo_pdf", 64 sources:["cairo/pdf/cairo_pdf.d"]}, 63 65 TARGET_PNG = {name:"png", type:"lib", target:"lib/cairo_png", 64 66 sources:["cairo/png/cairo_png.d"]}, 67 TARGET_PS = {name:"ps", type:"lib", target:"lib/cairo_ps", 68 sources:["cairo/ps/cairo_ps.d"]}, 69 TARGET_SVG = {name:"svg", type:"lib", target:"lib/cairo_svg", 70 sources:["cairo/svg/cairo_svg.d"]}, 65 71 TARGET_WIN32 = {name:"win32", type:"lib", target:"lib/cairo_win32", 66 72 flags:["-Xwin32"], sources:["cairo/win32/cairo_win32.d"]}, 73 TARGET_WIN32_DFL = {name:"win32-dfl", type:"lib", 74 target:"lib/cairo_win32_dfl", 75 flags:["-Xwin32","-Xdfl","-version=cairo_dfl"], 76 sources:["cairo/win32/cairo_win32.d"]}, 67 77 TARGET_XLIB = {name:"xlib", type:"lib", target:"lib/cairo_xlib", 68 78 sources:["cairo/xlib/cairo_xlib.d"]}; … … 71 81 const Target 72 82 TARGET_ALL = {name:"all", type:"dummy", 73 deps:[&TARGET_CAIRO, &TARGET_GLITZ, &TARGET_PNG, &TARGET_WIN32]}; 83 deps:[&TARGET_CAIRO, &TARGET_GLITZ, &TARGET_PDF, 84 &TARGET_PNG, &TARGET_PS, &TARGET_SVG, 85 &TARGET_WIN32]}; 74 86 version(linux) 75 87 const Target 76 88 TARGET_ALL = {name:"all", type:"dummy", 77 deps:[&TARGET_CAIRO, &TARGET_GLITZ, &TARGET_PNG, &TARGET_XLIB]}; 89 deps:[&TARGET_CAIRO, &TARGET_GLITZ, &TARGET_PDF, 90 &TARGET_PNG, &TARGET_PS, &TARGET_SVG, 91 &TARGET_XLIB]}; 78 92 79 93 const Target[] TARGETS = 80 94 [TARGET_ALL, TARGET_PNG, TARGET_CAIRO, TARGET_GLITZ, TARGET_WIN32, 81 TARGET_ XLIB];95 TARGET_WIN32_DFL, TARGET_XLIB, TARGET_PDF, TARGET_PS, TARGET_SVG]; 82 96 const DEFAULT_TARGET = &TARGET_ALL; 83 97 const DEBUG_TARGET_SUFFIX = "_debug"; 84 98 85 99 const char[][] FLAGS = ["-allobj","-cleanup"]; 86 const char[][] FLAGS_DEBUG = ["-debug","-unittest","- g"];100 const char[][] FLAGS_DEBUG = ["-debug","-unittest","-version=Unittest","-g"]; 87 101 const char[][] FLAGS_RELEASE = ["-release","-inline","-O"]; 88 102 … … 148 162 --very-verbose Verbose script AND toolchain commands. 149 163 --help This message. 164 +arg "arg" is passed on to the compiler verbatim. 150 165 151 166 Supported targets: … … 184 199 bool veryVerbose = false; 185 200 char[][] targetNames; 201 char[][] extraFlags; 186 202 187 203 // Check for flags … … 201 217 return 0; 202 218 } 219 else if( arg[0] == '+' ) 220 { 221 extraFlags.pushBack(arg[1..$]); 222 } 203 223 else if( arg[0..2] == "--" ) 204 224 { … … 269 289 270 290 // Do the build 271 build(flags ~ target.flags ~ target.sources);291 build(flags ~ target.flags ~ extraFlags ~ target.sources); 272 292 } 273 293
