summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 21:49:41 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 21:49:41 +0000
commitcb5e507bf311305117bc727d94921e89c2dee7de (patch)
tree22f7032c4d0770a3042d5d5cd64e37733aa3af38 /chrome
parent0d920aacaa1c7439ad940b282ea84dd3c3dacfd4 (diff)
downloadchromium_src-cb5e507bf311305117bc727d94921e89c2dee7de.zip
chromium_src-cb5e507bf311305117bc727d94921e89c2dee7de.tar.gz
chromium_src-cb5e507bf311305117bc727d94921e89c2dee7de.tar.bz2
Make use of the new cross-platform POSIX defines toolkit_uses_gtk, os_posix, and use_x11 for the gyp files. For lists of source files that use a mix of POSIX and Gtk APIs, toolkit_uses_gtk was given precedence. I also added Solaris to the remaining grit files.
Patch by ruben (chromium@hybridsource.org). Review URL: http://codereview.chromium.org/7011032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85979 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/app/generated_resources.grd24
-rw-r--r--chrome/app/resources/locale_settings.grd2
-rw-r--r--chrome/browser/browser_resources.grd4
-rw-r--r--chrome/chrome.gyp16
-rw-r--r--chrome/chrome_browser.gypi18
-rw-r--r--chrome/chrome_common.gypi6
-rw-r--r--chrome/chrome_exe.gypi2
-rw-r--r--chrome/chrome_renderer.gypi7
-rw-r--r--chrome/chrome_tests.gypi58
-rw-r--r--chrome/common_constants.gypi2
-rw-r--r--chrome/default_plugin/default_plugin.gyp2
11 files changed, 66 insertions, 75 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index 8ed4048..ee4de04 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -1006,7 +1006,7 @@ Other platform defines such as use_titlecase are declared in build/common.gypi.
Preferences...
</message>
</if>
- <if expr="os == 'linux2'">
+ <if expr="os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5'">
<message name="IDS_PREFERENCES" desc="The text label of the Preferences menu item.">
Preferences
</message>
@@ -2403,7 +2403,7 @@ Other platform defines such as use_titlecase are declared in build/common.gypi.
<message name="IDS_CREATE_SHORTCUTS_QUICK_LAUNCH_BAR_CHKBOX" desc="Label of the checkbox to create an application shortcut in quick launch bar.">
Quick launch bar
</message>
- <if expr="os == 'linux2' or os.find('bsd') != -1">
+ <if expr="os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5'">
<message name="IDS_CREATE_SHORTCUTS_ERROR_TITLE" desc="Title of the error dialog box when creating an application shortcut failed.">
Failed to Create Application Shortcut
</message>
@@ -6063,7 +6063,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
and make sure your configuration is set to &quot;no proxy&quot; or &quot;direct.&quot;
</message>
</if>
- <if expr="not pp_ifdef('chromeos') and (os == 'linux2' or os.find('bsd') != -1)">
+ <if expr="not pp_ifdef('chromeos') and (os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5')">
<message name="IDS_ERRORPAGES_SUGGESTION_PROXY_DISABLE_PLATFORM" desc="Linux instructions for disabling use of a proxy server.">
Go to
<ph name="BEGIN_BOLD">&lt;strong&gt;</ph>
@@ -6072,7 +6072,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
and make sure your configuration is set to &quot;no proxy&quot; or &quot;direct.&quot;
</message>
</if>
- <if expr="os != 'darwin' and os != 'linux2'">
+ <if expr="os != 'darwin' and os != 'linux2' and os.find('bsd') == -1 and os != 'sunos5'">
<message name="IDS_ERRORPAGES_SUGGESTION_PROXY_DISABLE_PLATFORM" desc="Windows instructions for disabling use of a proxy server.">
Go to
<ph name="BEGIN_BOLD">&lt;strong&gt;</ph>
@@ -6191,7 +6191,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
to test your connection.
</message>
</if>
- <if expr="os != 'darwin' and os != 'linux2'">
+ <if expr="os != 'darwin' and os != 'linux2' and os.find('bsd') == -1 and os != 'sunos5'">
<message name="IDS_ERRORPAGES_SUMMARY_INTERNET_DISCONNECTED_PLATFORM" desc="Summary (platform dependent section) in the error page when the network connection failed. Describes how to get to the network Diagnostics screen under Windows 7 and later.">
Go to
<ph name="BEGIN_BOLD">&lt;strong&gt;</ph>
@@ -6849,7 +6849,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
Settings
</message>
</if>
- <if expr="not pp_ifdef('chromeos') and (os == 'darwin' or os == 'linux2' or os.find('bsd') != -1)">
+ <if expr="not pp_ifdef('chromeos') and (os == 'darwin' or os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5')">
<message name="IDS_SETTINGS_TITLE" desc="Title for the settings tab.">
Preferences
</message>
@@ -7186,7 +7186,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
</message>
</if>
- <if expr="os == 'darwin' or (os =='linux2' and not pp_ifdef('chromeos'))">
+ <if expr="os == 'darwin' or os.find('bsd') != -1 or os == 'sunos5' or (os =='linux2' and not pp_ifdef('chromeos'))">
<message name="IDS_AUTOFILL_OPTIONS_TITLE" desc="The title of the Autofill dialog.">
Autofill Preferences
</message>
@@ -7403,7 +7403,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
</message>
</if>
- <if expr="os == 'linux2' or os.find('bsd') != -1">
+ <if expr="os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5'">
<message name="IDS_APPEARANCE_GROUP_NAME" desc="In Title Case: The title of the themes group">
Appearance
</message>
@@ -7487,7 +7487,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
Some settings have been disabled by your IT administrator.
</message>
</if>
- <if expr="not pp_ifdef('chromeos') and (os == 'darwin' or os == 'linux2' or os.find('bsd') != -1)">
+ <if expr="not pp_ifdef('chromeos') and (os == 'darwin' or os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5')">
<message name="IDS_OPTIONS_MANAGED_PREFS" desc="Mac/Linux banner displayed in case there are managed options the user won't be able to change.">
Some preferences have been disabled by your IT administrator.
</message>
@@ -7527,7 +7527,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
Search settings
</message>
</if>
- <if expr="not pp_ifdef('chromeos') and (os == 'darwin' or os == 'linux2' or os.find('bsd') != -1)">
+ <if expr="not pp_ifdef('chromeos') and (os == 'darwin' or os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5')">
<message name="IDS_OPTIONS_SEARCH_PLACEHOLDER" desc="Text placeholder for an empty search field on Mac/Linux.">
Search preferences
</message>
@@ -9460,7 +9460,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
</if> <!-- os == 'darwin' -->
<!-- Linux Global Menubar Menus -->
- <if expr="os == 'linux2'">
+ <if expr="os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5'">
<!-- Unity and some other GNOME configurations now have a permanent,
Mac-like menu bar that lives outside the window at the top of the
screen. The following strings should be in Linux style, not Mac
@@ -12198,7 +12198,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
Import bookmarks now...
</message>
- <if expr="os == 'linux2' or os == 'openbsd4' or os=='freebsd6'">
+ <if expr="os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5'">
<!-- Linux proxy configuration fallback help -->
<message name="IDS_ABOUT_LINUX_PROXY_CONFIG_TITLE" desc="Title of HTML page shown on systems where system proxy configuration is unsupported.">
Proxy Configuration Help
diff --git a/chrome/app/resources/locale_settings.grd b/chrome/app/resources/locale_settings.grd
index 4e70fe2..40238d9 100644
--- a/chrome/app/resources/locale_settings.grd
+++ b/chrome/app/resources/locale_settings.grd
@@ -497,7 +497,7 @@
</message>
<!-- The width and height for the "create application shortcuts error" dialog. -->
- <if expr="os == 'linux2' or os.find('bsd') != -1">
+ <if expr="os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5'">
<message name="IDS_CREATE_SHORTCUTS_ERROR_DIALOG_WIDTH_CHARS" use_name_for_id="true">
60
</message>
diff --git a/chrome/browser/browser_resources.grd b/chrome/browser/browser_resources.grd
index d163e4c..a0a2063 100644
--- a/chrome/browser/browser_resources.grd
+++ b/chrome/browser/browser_resources.grd
@@ -12,13 +12,13 @@
<if expr="os.find('win') != -1">
<include name="IDR_ABOUT_CONFLICTS_HTML" file="resources\about_conflicts.html" flattenhtml="true" type="BINDATA" />
</if>
- <if expr="os == 'linux2' or os.find('bsd') != -1">
+ <if expr="os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5'">
<include name="IDR_ABOUT_MEMORY_HTML" file="resources\about_memory_linux.html" flattenhtml="true" type="BINDATA" />
</if>
<if expr="os == 'darwin'">
<include name="IDR_ABOUT_MEMORY_HTML" file="resources\about_memory_mac.html" flattenhtml="true" type="BINDATA" />
</if>
- <if expr="os != 'linux2' and os != 'darwin' and os.find('bsd') == -1">
+ <if expr="os != 'linux2' and os != 'darwin' and os.find('bsd') == -1 and os != 'sunos5'">
<include name="IDR_ABOUT_MEMORY_HTML" file="resources\about_memory.html" flattenhtml="true" type="BINDATA" />
</if>
<include name="IDR_ABOUT_STATS_HTML" file="resources\about_stats.html" flattenhtml="true" type="BINDATA" />
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 38b147c..57ef9a1 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -73,6 +73,10 @@
}],
],
},],
+ ['os_posix == 1 and OS != "mac" and OS != "linux"', {
+ 'platform_locale_settings_grd':
+ 'app/resources/locale_settings_linux.grd',
+ },],
['OS=="mac"', {
'tweak_info_plist_path': 'tools/build/mac/tweak_info_plist',
'nacl_defines': [
@@ -464,7 +468,7 @@
'browser/debugger/inspectable_tab_proxy.h',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
@@ -488,7 +492,7 @@
'..',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
@@ -709,7 +713,7 @@
'browser/sync/util/data_encryption.h',
],
}],
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
@@ -840,7 +844,7 @@
'service/cloud_print/print_system_win.cc',
],
}],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
@@ -1528,7 +1532,7 @@
},
]}, # 'targets'
], # OS=="win"
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['os_posix == 1 and OS != "mac"', {
'targets': [{
'target_name': 'packed_resources',
'type': 'none',
@@ -1629,7 +1633,7 @@
},
],
}], # targets
- }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"
+ }], # os_posix == 1 and OS != "mac"
], # 'conditions'
}
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi
index 0ce0575..7937bf6 100644
--- a/chrome/chrome_browser.gypi
+++ b/chrome/chrome_browser.gypi
@@ -3580,7 +3580,7 @@
['exclude', '^browser/chromeos/input_method/candidate_window.h'],
],
}],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:dbus-glib',
'../build/linux/system.gyp:gconf',
@@ -3648,7 +3648,7 @@
],
}],
],
- }, { # OS != "linux"
+ }, { # toolkit_uses_gtk != 1
'sources!': [
# TODO(mattm): Cert manager stuff is really !USE_NSS.
'browser/certificate_manager_model.cc',
@@ -3657,14 +3657,6 @@
'browser/ui/webui/options/certificate_manager_handler.h',
],
}],
- ['OS=="freebsd" or OS=="openbsd"', {
- 'dependencies': [
- '../build/linux/system.gyp:gtk',
- '../build/linux/system.gyp:gtkprint',
- '../build/linux/system.gyp:nss',
- '../build/linux/system.gyp:x11',
- ],
- }],
['OS=="mac"', {
'sources!': [
'browser/automation/automation_provider_list_generic.cc',
@@ -4266,14 +4258,14 @@
}],
# Exclude extension_input_ui_api again
# (Required because of the '^browser/extensions/' include abrove)
- ['OS=="linux" and ( touchui==0 or chromeos==0 )', {
+ ['toolkit_uses_gtk == 1 and ( touchui == 0 or chromeos == 0 )', {
'sources/': [
['exclude', '^browser/extensions/extension_input_ui_api.cc'],
['exclude', '^browser/extensions/extension_input_ui_api.h'],
],
}],
# GTK build only
- ['OS=="linux" and toolkit_views==0', {
+ ['toolkit_uses_gtk == 1 and toolkit_views == 0', {
'sources/': [
['include', '^browser/printing/print_dialog_gtk.cc'],
['include', '^browser/printing/print_dialog_gtk.h'],
@@ -4361,7 +4353,7 @@
},
],
}],
- ['OS=="linux" and gcc_version==45', {
+ ['os_posix == 1 and OS != "mac" and gcc_version == 45', {
# Avoid gcc 4.5 miscompilation of template_url.cc
# as per http://crbug.com/41887
'cflags': [
diff --git a/chrome/chrome_common.gypi b/chrome/chrome_common.gypi
index 6a5d99b..a5d80c0 100644
--- a/chrome/chrome_common.gypi
+++ b/chrome/chrome_common.gypi
@@ -254,7 +254,7 @@
'common/zip.h',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
@@ -270,7 +270,7 @@
],
},
},],
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
+ ['os_posix == 1 and OS != "mac"', {
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)',
],
@@ -385,7 +385,7 @@
'../third_party/icu/icu.gyp:icuuc',
],
'conditions': [
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'conditions': [
['use_openssl==1', {
'dependencies': [
diff --git a/chrome/chrome_exe.gypi b/chrome/chrome_exe.gypi
index 15ae7bb..a11d90b 100644
--- a/chrome/chrome_exe.gypi
+++ b/chrome/chrome_exe.gypi
@@ -150,7 +150,7 @@
'disable_pie%': 0,
},
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'actions': [
{
'action_name': 'manpage',
diff --git a/chrome/chrome_renderer.gypi b/chrome/chrome_renderer.gypi
index b094911..88cdb2d 100644
--- a/chrome/chrome_renderer.gypi
+++ b/chrome/chrome_renderer.gypi
@@ -187,7 +187,7 @@
'../third_party/mach_override/mach_override.gyp:mach_override',
],
}],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'conditions': [
[ 'linux_use_tcmalloc==1', {
'dependencies': [
@@ -201,11 +201,6 @@
'../sandbox/sandbox.gyp:sandbox',
],
}],
- ['OS=="openbsd" or OS=="freebsd"', {
- 'dependencies': [
- '../build/linux/system.gyp:gtk',
- ],
- }],
['OS=="win"', {
'include_dirs': [
'<(DEPTH)/third_party/wtl/include',
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi
index d5ba29e..933d313 100644
--- a/chrome/chrome_tests.gypi
+++ b/chrome/chrome_tests.gypi
@@ -208,7 +208,7 @@
['exclude', '^browser/chromeos'],
],
}],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../build/linux/system.gyp:nss',
@@ -263,7 +263,7 @@
'chrome.gyp:crash_service', # run time dependency
],
}],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
@@ -348,7 +348,7 @@
'test/unit/run_all_unittests.cc',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
# Needed for the following #include chain:
# test/unit/run_all_unittests.cc
@@ -395,7 +395,7 @@
},
},
},],
- ['OS=="linux"', {
+ ['use_x11 == 1', {
'dependencies': [
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
],
@@ -469,14 +469,14 @@
'test/unit/chrome_test_suite.h',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../build/linux/system.gyp:nss',
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
],
}],
- ['OS=="linux" and toolkit_views==0', {
+ ['toolkit_uses_gtk == 1 and toolkit_views == 0', {
'sources!': [
# TODO(port)
'browser/ui/views/bookmarks/bookmark_bar_view_test.cc',
@@ -680,12 +680,12 @@
'../webkit/webkit.gyp:copy_npapi_test_plugin',
],
}],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
],
- }, { # else: OS != "linux"
+ }, { # else: toolkit_uses_gtk != 1
'sources!': [
'browser/process_singleton_linux_uitest.cc',
],
@@ -746,7 +746,7 @@
'browser/printing/printing_layout_uitest.cc',
],
}],
- ['OS=="linux" or OS=="freebsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
@@ -864,7 +864,7 @@
'test/webdriver/commands/webelement_commands.cc',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
@@ -875,7 +875,7 @@
'../views/views.gyp:views',
],
}],
- ['OS=="linux" or OS=="freebsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
@@ -1024,7 +1024,7 @@
],
},],
# Set fPIC in case it isn't set.
- ['(OS=="linux" or OS=="openbsd" or OS=="freebsd" or OS=="solaris")'
+ ['os_posix == 1 and OS != "mac"'
'and (target_arch=="x64" or target_arch=="arm") and linux_fpic!=1', {
'cflags': ['-fPIC'],
},],
@@ -1997,7 +1997,7 @@
['exclude', '^browser/ui/webui/chromeos/login'],
],
}],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'conditions': [
['selinux==0', {
'dependencies': [
@@ -2027,14 +2027,14 @@
'sources!': [
'browser/printing/print_job_unittest.cc',
],
- }, { # else: OS != "linux"
+ }, { # else: toolkit_uses_gtk != 1
'sources!': [
'browser/ui/gtk/tabs/tab_renderer_gtk_unittest.cc',
'browser/renderer_host/gtk_key_bindings_handler_unittest.cc',
'../views/focus/accelerator_handler_gtk_unittest.cc',
],
}],
- ['OS=="linux" or OS=="freebsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
@@ -2557,7 +2557,7 @@
'../content/browser/child_process_security_policy_browsertest.cc',
],
}],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../build/linux/system.gyp:nss',
@@ -2595,7 +2595,7 @@
'browser/extensions/browser_action_test_util_mac.mm',
],
}],
- ['OS=="linux" or OS=="freebsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
@@ -2728,7 +2728,7 @@
},
},
},],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
@@ -2759,7 +2759,7 @@
},
},
},],
- ['OS=="linux" or OS=="freebsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
@@ -2830,7 +2830,7 @@
},
},
},],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
@@ -2867,7 +2867,7 @@
},
},
},],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
@@ -2905,7 +2905,7 @@
'test/tab_switching/tab_switching_test.cc',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
@@ -2940,7 +2940,7 @@
'test/memory_test/memory_test.cc',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
@@ -3106,7 +3106,7 @@
'browser/sync/util/data_encryption_unittest.cc',
],
}],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../build/linux/system.gyp:nss',
@@ -3230,7 +3230,7 @@
'test/data/resource.rc',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../build/linux/system.gyp:nss',
@@ -3378,7 +3378,7 @@
# See comments about "xcode_settings" elsewhere in this file.
'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
}],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../build/linux/system.gyp:nss',
@@ -3513,7 +3513,7 @@
'test/perf/url_parse_perftest.cc',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
@@ -3669,7 +3669,7 @@
], # OS=="win"
# If you change this condition, make sure you also change it in all.gyp
# for the chromium_builder_qa target.
- ['OS=="mac" or OS=="win" or (OS=="linux" and target_arch==python_arch)', {
+ ['OS == "mac" or OS == "win" or (os_posix == 1 and target_arch == python_arch)', {
'targets': [
{
# Documentation: http://dev.chromium.org/developers/testing/pyauto
@@ -3721,7 +3721,7 @@
'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Wno-error
},
'conditions': [
- ['OS=="linux"', {
+ ['os_posix == 1 and OS!="mac"', {
'include_dirs': [
'..',
'<(sysroot)/usr/include/python<(python_ver)',
diff --git a/chrome/common_constants.gypi b/chrome/common_constants.gypi
index 8fc435e..eb9c87d 100644
--- a/chrome/common_constants.gypi
+++ b/chrome/common_constants.gypi
@@ -63,7 +63,7 @@
'../base/base.gyp:base',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': ['../build/linux/system.gyp:gtk'],
}],
],
diff --git a/chrome/default_plugin/default_plugin.gyp b/chrome/default_plugin/default_plugin.gyp
index 247960f..0a53ac1 100644
--- a/chrome/default_plugin/default_plugin.gyp
+++ b/chrome/default_plugin/default_plugin.gyp
@@ -51,7 +51,7 @@
'plugin_install_job_monitor.h',
],
}],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'<(DEPTH)/build/linux/system.gyp:gtk',
],