From f399d4f81fb1de7a7e5cc12b85e8b90b730685fb Mon Sep 17 00:00:00 2001
From: Matt Madia <mattmadia@gmail.com>
Date: Tue, 10 Jul 2012 19:16:46 +0000
Subject: [PATCH 1/2] Changes relating to building WebPositive from source.
* Detect hybrid builds.
* Only enable WebKit build feature when WebPositive is added
* Provide a more accurate message for gcc2hybrids.
---
build/jam/OptionalBuildFeatures | 29 ++++++++++++++++++++++++-----
1 file changed, 24 insertions(+), 5 deletions(-)
diff --git a/build/jam/OptionalBuildFeatures b/build/jam/OptionalBuildFeatures
index 17bf698..64be3b3 100644
a
|
b
|
|
2 | 2 | # build. For features that require downloading a zip file from somewhere it is |
3 | 3 | # likely the same file use for an optional package. |
4 | 4 | |
| 5 | # Detect a hybrid GCC2/GCC4 image and disable the checks for unavailable GCC4 |
| 6 | # packages. (It does not matter if a package was built with either compiler, |
| 7 | # the system should have the respective other system libs.) |
| 8 | local isHybridBuild ; |
| 9 | if $(HAIKU_ADD_ALTERNATIVE_GCC_LIBS) = 1 |
| 10 | && $(HAIKU_ALTERNATIVE_GCC_OUTPUT_DIR) { |
| 11 | isHybridBuild = 1 ; |
| 12 | } |
5 | 13 | |
6 | 14 | local baseURL = http://www.haiku-files.org/files/optional-packages ; |
7 | 15 | |
… |
… |
if $(HAIKU_BUILD_FEATURE_TAGLIB) {
|
421 | 429 | |
422 | 430 | |
423 | 431 | # WebKit |
| 432 | # Automatically install the WebKit feature, when the optional WebPositive |
| 433 | # optional package is enabled. |
| 434 | if [ IsOptionalHaikuImagePackageAdded WebPositive ] { |
| 435 | HAIKU_BUILD_FEATURE_WEBKIT = 1 ; |
| 436 | } |
| 437 | |
424 | 438 | HAIKU_WEBKIT_FILE = webkit-0.1.1-x86-gcc4-2012-07-03.zip ; |
425 | | if $(TARGET_ARCH) = x86 { |
426 | | if $(HAIKU_GCC_VERSION[1]) < 4 { |
427 | | Echo "WebKit support not available on gcc $(HAIKU_GCC_VERSION[1])" ; |
| 439 | |
| 440 | if $(HAIKU_BUILD_FEATURE_WEBKIT) { |
| 441 | if $(TARGET_ARCH) != x86 { |
| 442 | Echo "WebKit support not available on $(TARGET_ARCH)" ; |
| 443 | } else if $(HAIKU_GCC_VERSION[1]) < 4 { |
| 444 | if ! $(isHybridBuild) { |
| 445 | Echo "WebKit support not available on gcc $(HAIKU_GCC_VERSION[1])" ; |
| 446 | } else { |
| 447 | Echo "WebKit to be utilized by gcc4 inside $(HAIKU_ALTERNATIVE_GCC_OUTPUT_DIR)" ; |
| 448 | } |
428 | 449 | } else { |
429 | 450 | local zipFile = [ DownloadFile $(HAIKU_WEBKIT_FILE) |
430 | 451 | : $(baseURL)/$(HAIKU_WEBKIT_FILE) ] ; |
… |
… |
if $(TARGET_ARCH) = x86 {
|
447 | 468 | |
448 | 469 | HAIKU_WEBKIT_HEADERS = [ FDirName $(HAIKU_WEBKIT_DIR) include ] ; |
449 | 470 | } |
450 | | } else { |
451 | | Echo "WebKit support not available on $(TARGET_ARCH)" ; |
452 | 471 | } |