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

Commit de1acc8

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 de1acc8

File tree

17 files changed

+2237
-1819
lines changed

17 files changed

+2237
-1819
lines changed

libcairo/libcairo.gyp

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
'conditions':
1919
[
2020
[
21-
'use_system_libcairo == 0',
21+
'use_system_libcairo == 0 and use_prebuilt_thirdparty == 0',
2222
{
23+
# build static library
2324
'type': 'static_library',
2425

2526
'dependencies':
@@ -550,7 +551,28 @@
550551
],
551552
},
552553
},
554+
],
555+
[
556+
'use_system_libcairo == 0 and use_prebuilt_thirdparty != 0',
557+
{
558+
# use prebuilt library
559+
'type': 'none',
560+
561+
'dependencies':
562+
[
563+
'../../prebuilt/thirdparty.gyp:thirdparty_prebuilt_cairo',
564+
],
565+
566+
'export_dependent_settings':
567+
[
568+
'../../prebuilt/thirdparty.gyp:thirdparty_prebuilt_cairo',
569+
],
570+
},
571+
],
572+
[
573+
'use_system_libcairo != 0',
553574
{
575+
# use system library
554576
'type': 'none',
555577

556578
'link_settings':

0 commit comments

Comments
 (0)