Thanks to visit codestin.com
Credit goes to github.com

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

[[ Build ]] Make use of thirdparty prebuilts optional #142

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion libcairo/libcairo.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
[
{
'target_name': 'libcairo',
'toolsets': ['host', 'target'],

'variables':
{
Expand All @@ -18,8 +19,9 @@
'conditions':
[
[
'use_system_libcairo == 0',
'use_system_libcairo == 0 and use_prebuilt_thirdparty == 0',
{
# build static library
'type': 'static_library',

'dependencies':
Expand Down Expand Up @@ -550,7 +552,28 @@
],
},
},
],
[
'use_system_libcairo == 0 and use_prebuilt_thirdparty != 0',
{
# use prebuilt library
'type': 'none',

'dependencies':
[
'../../prebuilt/thirdparty.gyp:thirdparty_prebuilt_cairo',
],

'export_dependent_settings':
[
'../../prebuilt/thirdparty.gyp:thirdparty_prebuilt_cairo',
],
},
],
[
'use_system_libcairo != 0',
{
# use system library
'type': 'none',

'link_settings':
Expand Down
Loading