Cleanup the brightray.gyp file

This commit is contained in:
Cheng Zhao 2015-04-11 13:26:29 +08:00
parent a1b682cd50
commit decf522f48

View file

@ -44,11 +44,12 @@
'-Wl,--no-whole-archive', '-Wl,--no-whole-archive',
], ],
} }
}, { }, { # (Release build on Linux)
'link_settings': { 'link_settings': {
'libraries': [ '<@(libchromiumcontent_libraries)' ] 'libraries': [ '<@(libchromiumcontent_libraries)' ]
}, },
}], }], # (Normal builds)
# Linux specific link settings.
['OS=="linux"', { ['OS=="linux"', {
'link_settings': { 'link_settings': {
'ldflags': [ 'ldflags': [
@ -96,15 +97,16 @@
}, },
}], }],
], ],
}], }], # OS=="linux"
['OS=="mac"', { ['OS=="mac"', {
'link_settings': { 'link_settings': {
'libraries': [ 'libraries': [
'$(SDKROOT)/System/Library/Frameworks/AppKit.framework', '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
], ],
}, },
}], 'conditions': [
['OS=="mac" and libchromiumcontent_component==0', { # Link with system frameworks.
['libchromiumcontent_component==0', {
'link_settings': { 'link_settings': {
'libraries': [ 'libraries': [
# ui_base.gypi: # ui_base.gypi:
@ -136,19 +138,24 @@
], ],
}, },
}], }],
['OS=="win" and libchromiumcontent_component==1', { ]
}], # OS=="mac"
['OS=="win"', {
'conditions': [
['libchromiumcontent_component', {
# sandbox and base_static are always linked statically.
'link_settings': { 'link_settings': {
'libraries': [ 'libraries': [
'<(libchromiumcontent_dir)/base_static.lib', '<(libchromiumcontent_dir)/base_static.lib',
'<(libchromiumcontent_dir)/sandbox.lib', '<(libchromiumcontent_dir)/sandbox.lib',
], ],
}, },
}], }, {
['OS=="win" and libchromiumcontent_component==0', { # Link with system libraries.
'link_settings': { 'link_settings': {
'libraries': [ 'libraries': [
# ffmpegsumo.lib is required for linking with ffmpegsumo.dll
'<(libchromiumcontent_dir)/ffmpegsumo.lib', '<(libchromiumcontent_dir)/ffmpegsumo.lib',
'<(libchromiumcontent_dir)/libyuv.lib',
# content_browser.gypi: # content_browser.gypi:
'-lsensorsapi.lib', '-lsensorsapi.lib',
'-lportabledeviceguids.lib', '-lportabledeviceguids.lib',
@ -188,7 +195,9 @@
}, },
}, },
}, },
}], }], # libchromiumcontent_component
],
}], # OS=="win"
], ],
}, },
], ],