Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 47c5e0a

Browse files
author
Ian Macphail
committed
[[ Build ]] Make use of thirdparty prebuilts optional
This patch modifies the build configuration files of the thirdparty libraries so that the libraries can either be compiled from source or fetched as prebuilt binaries. This is determined by the 'use_prebuilt_thirdparty' variable which can be set to a non-zero value to specify using the prebuilt binary files instead of compiling the libraries from source.
1 parent 65aac53 commit 47c5e0a

File tree

17 files changed

+2235
-1816
lines changed

17 files changed

+2235
-1816
lines changed

libcairo/libcairo.gyp

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
[
99
{
1010
'target_name': 'libcairo',
11+
'toolsets': ['host', 'target'],
1112

1213
'variables':
1314
{
@@ -18,8 +19,9 @@
1819
'conditions':
1920
[
2021
[
21-
'use_system_libcairo == 0',
22+
'use_system_libcairo == 0 and use_prebuilt_thirdparty == 0',
2223
{
24+
# build static library
2325
'type': 'static_library',
2426

2527
'dependencies':
@@ -550,7 +552,28 @@
550552
],
551553
},
552554
},
555+
],
556+
[
557+
'use_system_libcairo == 0 and use_prebuilt_thirdparty != 0',
558+
{
559+
# use prebuilt library
560+
'type': 'none',
561+
562+
'dependencies':
563+
[
564+
'../../prebuilt/thirdparty.gyp:thirdparty_prebuilt_cairo',
565+
],
566+
567+
'export_dependent_settings':
568+
[
569+
'../../prebuilt/thirdparty.gyp:thirdparty_prebuilt_cairo',
570+
],
571+
},
572+
],
573+
[
574+
'use_system_libcairo != 0',
553575
{
576+
# use system library
554577
'type': 'none',
555578

556579
'link_settings':

0 commit comments

Comments
 (0)