Ticket #5110: IncludeSources.2.patch
File IncludeSources.2.patch, 3.4 KB (added by , 14 years ago) |
---|
-
configure
64 64 implement patented ideas and techniques. This 65 65 option only disables code that is currently known 66 66 to be problematic. 67 --include-sources Includes the source code of projects that require 68 either an offer of source code or a copy of the 69 patched sources. This is preferable when 70 distributing on physical mediums. 67 71 --include-3rdparty Include 3rdparty/ in the build system. 68 72 -j<n> Only relevant for --build-cross-tools and 69 73 --build-cross-tools-gcc4. Is passed on to the … … 355 359 --help | -h) usage; exit 0;; 356 360 --include-gpl-addons) includeGPLAddOns=1; shift 1;; 357 361 --include-patented-code) includePatentedCode=1; shift 1;; 362 --include-sources) includeSources=1; shift 1;; 358 363 --include-3rdparty) include3rdParty=1; shift 1;; 359 364 -j*) buildCrossToolsJobs="$1"; shift 1;; 360 365 --target=*) target=`echo $1 | cut -d'=' -f2-`; shift 1;; … … 476 481 477 482 BOCHS_DEBUG_HACK ?= "${bochsDebug}" ; 478 483 INCLUDE_GPL_ADDONS ?= "${includeGPLAddOns}" ; 484 HAIKU_INCLUDE_SOURCES ?= "${includeSources}" ; 479 485 HAIKU_INCLUDE_PATENTED_CODE ?= "${includePatentedCode}" ; 480 486 HAIKU_INCLUDE_3RDPARTY ?= "${include3rdParty}" ; 481 487 HAIKU_ENABLE_MULTIUSER ?= "${enableMultiuser}" ; -
build/jam/FileRules
358 358 $(2[1]) $(DATA_VARIABLE) $(SIZE_VARIABLE) $(2[2]) $(1) 359 359 } 360 360 361 rule Download File target : url361 rule DownloadLocatedFile target : url 362 362 { 363 363 URL on $(target) = $(url) ; 364 364 365 Download File1 $(target) ;365 DownloadLocatedFile1 $(target) ; 366 366 } 367 367 368 actions Download File1368 actions DownloadLocatedFile1 369 369 { 370 370 wget -O $(1) $(URL) 371 371 } 372 372 373 rule Download OptionalPackage package : url373 rule DownloadFile file : url 374 374 { 375 # download zip file 376 local zipFile = $(package:G=download).zip ; 375 file = $(file:G=download) ; 377 376 378 377 # Request the download only once. 379 if [ on $( zipFile) return $(HAIKU_OPTIONAL_PACKAGE_DOWNLOAD) ] {380 return $( zipFile) ;378 if [ on $(file) return $(HAIKU_FILE_DOWNLOAD) ] { 379 return $(file) ; 381 380 } 382 381 383 HAIKU_ OPTIONAL_PACKAGE_DOWNLOAD on $(zipFile) = 1 ;382 HAIKU_FILE_DOWNLOAD on $(file) = 1 ; 384 383 385 MakeLocate $( zipFile) : $(HAIKU_DOWNLOAD_DIR) ;386 Download File $(zipFile) : $(url) ;384 MakeLocate $(file) : $(HAIKU_DOWNLOAD_DIR) ; 385 DownloadLocatedFile $(file) : $(url) ; 387 386 388 return $( zipFile) ;387 return $(file) ; 389 388 } 389 390 rule DownloadOptionalPackage package : url 391 { 392 return [ DownloadFile $(package).zip : $(url) ] ; 393 } -
build/jam/ImageRules
758 758 } 759 759 } 760 760 761 rule InstallSourceArchive file : url 762 { 763 if $(HAIKU_INCLUDE_SOURCES) { 764 # download archive file 765 local archiveFile = [ DownloadFile $(file) : $(url) ] ; 766 767 # copy directly into image 768 AddFilesToHaikuImage develop sources : $(archiveFile) ; 769 } 770 } 771 761 772 rule InstallOptionalHaikuImagePackage package : url : dirTokens : isCDPackage 762 773 { 763 774 # download zip file