* Jamrules, Jamfile, src/Jamfile, src/*/Jamfile: Adding jamfiles to the source tree. see www.freetype.org/jam/index.html for details
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520
diff --git a/ChangeLog b/ChangeLog
index 5b0c898..50e6953 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,13 @@
2000-03-24 David Turner <david.turner@freetype.org>
+ * Jamrules, Jamfile, src/Jamfile, src/*/Jamfile: Adding jamfiles
+ to the source tree. see www.freetype.org/jam/index.html for details
+
+
* Version 2.0.2 released.
=========================
+
2001-03-20 Werner Lemberg <wl@gnu.org>
* builds/win32/detekt.mk: Fix .PHONY target for Intel compiler.
diff --git a/Jamfile b/Jamfile
new file mode 100644
index 0000000..74492d3
--- /dev/null
+++ b/Jamfile
@@ -0,0 +1,40 @@
+# FreeType 2 Jamfile (c) 2001 David Turner
+#
+
+# we need to invoke a SubDir rule if the FT2 source directory top
+# is not the current directory. This allows us to build FreeType 2 as
+# part of a larger project easily..
+#
+if $(FT2_TOP) != $(DOT)
+{
+ SubDir FT2_TOP ;
+}
+
+FT2_INCLUDE = [ FT2_SubDir include ] ;
+FT2_SRC = [ FT2_SubDir src ] ;
+
+FT2_LIB = $(LIBPREFIX)freetype ;
+
+# we need "freetype2/include" in the current include path in order to
+# compile any part of FreeType 2
+#
+SubDirHdr += $(FT2_INCLUDE) ;
+
+# uncomment the following line if you want to build individual source files
+# for each FreeType 2 module.
+#
+# FT2_MULTI = true;
+
+# the file <freetype/config/ft2build.h> is used to define macros that are
+# later used in #include statements.. it needs to be parsed in order to
+# record these definitions..
+#
+HDRMACRO [ FT2_SubDir include freetype config ft2build.h ] ;
+
+# now include the Jamfile in "freetype2/src", used to drive the
+# compilation of each FreeType 2 component and/or module
+#
+SubInclude FT2_TOP src ;
+
+
+
diff --git a/Jamrules b/Jamrules
new file mode 100644
index 0000000..a98dd81
--- /dev/null
+++ b/Jamrules
@@ -0,0 +1,54 @@
+# FreeType 2 JamRules (c) 2001 David Turner
+#
+# This file contains the Jam rules needed to build the FreeType 2 library
+# it is shared by all Jamfiles and is included only once in the build
+# process
+#
+
+
+# determine prefix of library file. We must use "libxxxxx" on Unix
+# systems, while all other simply use the real name..
+#
+if $(UNIX)
+{
+ LIBPREFIX ?= lib ;
+}
+else
+{
+ LIBPREFIX ?= "" ;
+}
+
+# FT_TOP contains the location of the FreeType source directory. You can
+# set it to a specific value if you want to compile the library as part
+# of a larger project..
+#
+FT2_TOP ?= $(DOT) ;
+
+# define a new rule used to declare a sub directory of the Nirvana
+# source tree..
+#
+rule FT2_SubDir
+{
+ if $(FT2_TOP) = $(DOT)
+ {
+ return [ FDirName $(<) ] ;
+ }
+ else
+ {
+ return [ FDirName $(FT2_TOP) $(<) ] ;
+ }
+}
+
+
+
+# the directory "include" must be in the current include path
+# when compiling any part of FreeType. We thus update the HDRS variable there
+#
+HDRS += [ FT2_SubDir include ] ;
+
+# we also set ALL_LOCATE_TARGET in order to place all object and library
+# files in "objs"
+#
+ALL_LOCATE_TARGET ?= [ FT2_SubDir objs ] ;
+
+
diff --git a/src/Jamfile b/src/Jamfile
new file mode 100644
index 0000000..89cd844
--- /dev/null
+++ b/src/Jamfile
@@ -0,0 +1,28 @@
+SubDir FT2_TOP src ;
+
+# we need to add "freetype/src" to the current includ path in order
+# to compile any part of FreeType 2..
+#
+SubDirHdrs [ FT2_SubDir src ] ;
+
+# the file <freetype/internal/internal.h> is used to define macros that are
+# later used in #include statements.. it needs to be parsed in order to
+# record these definitions..
+#
+HDRMACRO [ FT2_SubDir include internal internal.h ] ;
+
+SubInclude FT2_TOP src autohint ;
+SubInclude FT2_TOP src base ;
+SubInclude FT2_TOP src cache ;
+SubInclude FT2_TOP src cff ;
+SubInclude FT2_TOP src cid ;
+SubInclude FT2_TOP src pcf ;
+SubInclude FT2_TOP src psaux ;
+SubInclude FT2_TOP src psnames ;
+SubInclude FT2_TOP src raster ;
+SubInclude FT2_TOP src sfnt ;
+SubInclude FT2_TOP src smooth ;
+SubInclude FT2_TOP src truetype ;
+SubInclude FT2_TOP src type1 ;
+SubInclude FT2_TOP src winfonts ;
+
diff --git a/src/autohint/Jamfile b/src/autohint/Jamfile
new file mode 100644
index 0000000..7fd35db
--- /dev/null
+++ b/src/autohint/Jamfile
@@ -0,0 +1,21 @@
+SubDir FT2_TOP src autohint ;
+
+SubDirHdrs [ FT2_SubDir src autohint ] ;
+
+{
+ local _sources ;
+
+ if $(FT2_MULTI)
+ {
+ _sources = ahangles.c ahglobal.c ahglyph.c ahhint.c ahmodule.c ;
+ }
+ else
+ {
+ _sources = autohint.c ;
+ }
+
+ Library $(FT2_LIB) : $(_sources) ;
+}
+
+
+
diff --git a/src/base/Jamfile b/src/base/Jamfile
new file mode 100644
index 0000000..8a36d76
--- /dev/null
+++ b/src/base/Jamfile
@@ -0,0 +1,31 @@
+SubDir FT2_TOP src base ;
+
+SubDirHdrs [ FT2_SubDir src base ] ;
+
+
+# First of all, which files form the core / base of FT2
+#
+ft2_base_sources = ftcalc.c ftextend.c ftlist.c ftobjs.c ftstream.c
+ ftoutln.c ftnames.c ;
+
+if $(FT2_MULTI)
+{
+ Library $(FT2_LIB) : $(ft2_base_sources) ;
+}
+else
+{
+ Library $(FT2_LIB) : ftbase.c ;
+}
+
+# Add the optional/replaceable files
+#
+Library $(FT2_LIB) : ftsystem.c ftinit.c ftglyph.c ftmm.c ftbbox.c ftdebug.c ;
+
+# Add Macintosh-specific file to the library when necessary
+#
+if $(MAC)
+{
+ Library $(FT2_LIB) : ftmac.c ;
+}
+
+
diff --git a/src/cache/Jamfile b/src/cache/Jamfile
new file mode 100644
index 0000000..0055968
--- /dev/null
+++ b/src/cache/Jamfile
@@ -0,0 +1,23 @@
+SubDir FT2_TOP src cache ;
+
+SubDirHdrs [ FT2_SubDir src cache ] ;
+
+ft2_cache_sources = ftlru.c ftcmanag.c ftcglyph.c ftcchunk.c
+ ftcsbits.c ftcimage.c ;
+
+# the file <freetype/ftcache.h> contains some macro definitions that are
+# later used in #include statements related to the cache sub-system.
+# it need to be parsed through a HDRMACRO rule for macro definitions
+#
+HDRMACRO [ FT2_SubDir include ftcache.h ] ;
+
+if $(FT2_MULTI)
+{
+ Library $(FT2_LIB) : $(ft2_cache_sources) ;
+}
+else
+{
+ Library $(FT2_LIB) : ftcache.c ;
+}
+
+
diff --git a/src/cff/Jamfile b/src/cff/Jamfile
new file mode 100644
index 0000000..dbb91ed
--- /dev/null
+++ b/src/cff/Jamfile
@@ -0,0 +1,21 @@
+SubDir FT2_TOP src cff ;
+
+SubDirHdrs [ FT2_SubDir src cff ] ;
+
+{
+ local _sources ;
+
+ if $(FT2_MULTI)
+ {
+ _sources = cffdrivr.c cffgload.c cffload.c cffobjs.c cffparse.c ;
+ }
+ else
+ {
+ _sources = cff.c ;
+ }
+
+ Library $(FT2_LIB) : $(_sources) ;
+}
+
+
+
diff --git a/src/cid/Jamfile b/src/cid/Jamfile
new file mode 100644
index 0000000..7db1f05
--- /dev/null
+++ b/src/cid/Jamfile
@@ -0,0 +1,21 @@
+SubDir FT2_TOP src cid ;
+
+SubDirHdrs [ FT2_SubDir src cid ] ;
+
+{
+ local _sources ;
+
+ if $(FT2_MULTI)
+ {
+ _sources = cidobjs.c cidload.c cidgload.c cidriver.c cidparse.c ;
+ }
+ else
+ {
+ _sources = type1cid.c ;
+ }
+
+ Library $(FT2_LIB) : $(_sources) ;
+}
+
+
+
diff --git a/src/pcf/Jamfile b/src/pcf/Jamfile
new file mode 100644
index 0000000..c9938e3
--- /dev/null
+++ b/src/pcf/Jamfile
@@ -0,0 +1,21 @@
+SubDir FT2_TOP src pcf ;
+
+SubDirHdrs [ FT2_SubDir src pcf ] ;
+
+{
+ local _sources ;
+
+ if $(FT2_MULTI)
+ {
+ _sources = pcfdriver.c pcfread.c pcfutil.c ;
+ }
+ else
+ {
+ _sources = pcf.c ;
+ }
+
+ Library $(FT2_LIB) : $(_sources) ;
+}
+
+
+
diff --git a/src/psaux/Jamfile b/src/psaux/Jamfile
new file mode 100644
index 0000000..5be193e
--- /dev/null
+++ b/src/psaux/Jamfile
@@ -0,0 +1,16 @@
+SubDir FT2_TOP src psaux ;
+
+SubDirHdrs [ FT2_SubDir src psaux ] ;
+
+ft2_psaux_sources = psauxmod.c psobjs.c t1decode.c ;
+
+if $(FT2_MULTI)
+{
+ Library $(FT2_LIB) : $(ft2_psaux_sources) ;
+}
+else
+{
+ Library $(FT2_LIB) : psaux.c ;
+}
+
+
diff --git a/src/psnames/Jamfile b/src/psnames/Jamfile
new file mode 100644
index 0000000..7e15b51
--- /dev/null
+++ b/src/psnames/Jamfile
@@ -0,0 +1,20 @@
+SubDir FT2_TOP src psnames ;
+
+SubDirHdrs [ FT2_SubDir src psnames ] ;
+
+{
+ local _sources ;
+
+ if $(FT2_MULTI)
+ {
+ _sources = psmodule.c ;
+ }
+ else
+ {
+ _sources = psnames.c ;
+ }
+
+ Library $(FT2_LIB) : $(_sources) ;
+}
+
+
diff --git a/src/raster/Jamfile b/src/raster/Jamfile
new file mode 100644
index 0000000..06f6f94
--- /dev/null
+++ b/src/raster/Jamfile
@@ -0,0 +1,21 @@
+SubDir FT2_TOP src raster ;
+
+SubDirHdrs [ FT2_SubDir src raster ] ;
+
+{
+ local _sources ;
+
+ if $(FT2_MULTI)
+ {
+ _sources = ftraster.c ftrend1.c ;
+ }
+ else
+ {
+ _sources = raster.c ;
+ }
+
+ Library $(FT2_LIB) : $(_sources) ;
+}
+
+
+
diff --git a/src/sfnt/Jamfile b/src/sfnt/Jamfile
new file mode 100644
index 0000000..ba2d579
--- /dev/null
+++ b/src/sfnt/Jamfile
@@ -0,0 +1,21 @@
+SubDir FT2_TOP src sfnt ;
+
+SubDirHdrs [ FT2_SubDir src sfnt ] ;
+
+{
+ local _sources ;
+
+ if $(FT2_MULTI)
+ {
+ _sources = sfobjs.c sfdriver.c ttcmap.c ttpost.c ttload.c ttsbit.c ;
+ }
+ else
+ {
+ _sources = sfnt.c ;
+ }
+
+ Library $(FT2_LIB) : $(_sources) ;
+}
+
+
+
diff --git a/src/smooth/Jamfile b/src/smooth/Jamfile
new file mode 100644
index 0000000..df15491
--- /dev/null
+++ b/src/smooth/Jamfile
@@ -0,0 +1,16 @@
+SubDir FT2_TOP src smooth ;
+
+SubDirHdrs [ FT2_SubDir src smooth ] ;
+
+ft2_smooth_sources = ftgrays.c ftsmooth.c ;
+
+if $(FT2_MULTI)
+{
+ Library $(FT2_LIB) : $(ft2_smooth_sources) ;
+}
+else
+{
+ Library $(FT2_LIB) : smooth.c ;
+}
+
+
diff --git a/src/truetype/Jamfile b/src/truetype/Jamfile
new file mode 100644
index 0000000..5012fba
--- /dev/null
+++ b/src/truetype/Jamfile
@@ -0,0 +1,21 @@
+SubDir FT2_TOP src truetype ;
+
+SubDirHdrs [ FT2_SubDir src truetype ] ;
+
+{
+ local _sources ;
+
+ if $(FT2_MULTI)
+ {
+ _sources = ttdriver.c ttobjs.c ttpload.c ttgload.c ttinterp.c ;
+ }
+ else
+ {
+ _sources = truetype.c ;
+ }
+
+ Library $(FT2_LIB) : $(_sources) ;
+}
+
+
+
diff --git a/src/type1/Jamfile b/src/type1/Jamfile
new file mode 100644
index 0000000..e40ba26
--- /dev/null
+++ b/src/type1/Jamfile
@@ -0,0 +1,17 @@
+SubDir FT2_TOP src type1 ;
+
+SubDirHdrs [ FT2_SubDir src type1 ] ;
+
+ft2_type1_sources = t1afm.c t1driver.c t1objs.c t1load.c t1gload.c
+ t1parse.c ;
+
+if $(FT2_MULTI)
+{
+ Library $(FT2_LIB) : $(ft2_type1_sources) ;
+}
+else
+{
+ Library $(FT2_LIB) : type1.c ;
+}
+
+
diff --git a/src/winfonts/Jamfile b/src/winfonts/Jamfile
new file mode 100644
index 0000000..da22342
--- /dev/null
+++ b/src/winfonts/Jamfile
@@ -0,0 +1,8 @@
+SubDir FT2_TOP src winfonts ;
+
+SubDirHdrs [ FT2_SubDir src winfonts ] ;
+
+Library $(FT2_LIB) : winfnt.c ;
+
+
+