summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-23 22:06:54 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-23 22:06:54 +0000
commit6a654d45598c2631f0009101a553fd14b866b62f (patch)
treeafd71c88f45b680bf30040047075fe259d5c767c /media
parentfcc2d5f0e4ff841a6af7cc7f5834985f833cf935 (diff)
downloadchromium_src-6a654d45598c2631f0009101a553fd14b866b62f.zip
chromium_src-6a654d45598c2631f0009101a553fd14b866b62f.tar.gz
chromium_src-6a654d45598c2631f0009101a553fd14b866b62f.tar.bz2
Final gyp patch to make use of the new cross-platform POSIX defines toolkit_uses_gtk, os_posix, and use_x11. For lists of source files that use a mix of POSIX and Gtk APIs, toolkit_uses_gtk was given precedence. Solaris was made to use ALSA also, as libasound has been ported to FreeBSD and Solaris as a wrapper around the native OSS.
Review URL: http://codereview.chromium.org/7055003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86352 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/media.gyp18
1 files changed, 9 insertions, 9 deletions
diff --git a/media/media.gyp b/media/media.gyp
index 9b6b195..384fee8 100644
--- a/media/media.gyp
+++ b/media/media.gyp
@@ -206,7 +206,7 @@
'video/mft_h264_decode_engine.h',
],
}],
- ['OS=="linux" or OS=="freebsd"', {
+ ['OS == "linux" or OS == "freebsd" or OS == "solaris"', {
'link_settings': {
'libraries': [
'-lasound',
@@ -228,7 +228,7 @@
'audio/openbsd/audio_manager_openbsd.h',
],
}],
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'sources': [
'filters/omx_video_decoder.cc',
'filters/omx_video_decoder.h',
@@ -237,7 +237,7 @@
'omx_wrapper',
]
}],
- ['OS=="linux"', {
+ ['os_posix == 1 and OS != "mac"', {
'sources!': [
'video/capture/video_capture_device_dummy.cc',
'video/capture/video_capture_device_dummy.h',
@@ -310,7 +310,7 @@
'..',
],
'conditions': [
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ [ 'os_posix == 1 and OS != "mac"', {
'cflags': [
'-msse2',
],
@@ -337,7 +337,7 @@
'ffmpeg/ffmpeg_unittest.cc',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
# Needed for the following #include chain:
# base/run_all_unittests.cc
@@ -422,7 +422,7 @@
'video/ffmpeg_video_decode_engine_unittest.cc',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
# Needed for the following #include chain:
# base/run_all_unittests.cc
@@ -625,7 +625,7 @@
'tools/shader_bench/window.h',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
@@ -665,7 +665,7 @@
},
],
}],
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'targets': [
{
'target_name': 'omx_test',
@@ -697,7 +697,7 @@
'../testing/gtest.gyp:gtest',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],