summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-12 18:18:34 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-12 18:18:34 +0000
commit79e2336c1782fff5147a447495a20729007935c2 (patch)
tree08e8d6c59381ed89bab615ef9618fd0f5db7186f /app
parent45316d6f9cd510bd1b4604c38713272b2c8a7c9e (diff)
downloadchromium_src-79e2336c1782fff5147a447495a20729007935c2.zip
chromium_src-79e2336c1782fff5147a447495a20729007935c2.tar.gz
chromium_src-79e2336c1782fff5147a447495a20729007935c2.tar.bz2
The gyp files don't have a way to refer to POSIX-like OS's as a group, so I defined os_posix, toolkit_gtk, and use_x11 in common.gypi to handle them. I used something similar when porting Chromium 10 and 11 to OpenBSD and Solaris, plus a version of this patch has been tested on FreeBSD.
Chromium has also been built on other BSDs, so rather than adding each Unix to every gyp file individually every time another port is added, these broad defines can be used instead and modified with specific logic only where necessary. I included a few modified gyp files so the usage can be seen. I also added sunos5 to some grd/html files and set the default host_arch on i86pc solaris to ia32. BUG=0 TEST={} Patch by ruben <chromium@hybridsource.org>. Review URL: http://codereview.chromium.org/6965007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85154 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r--app/app.gyp4
-rw-r--r--app/app_base.gypi6
-rw-r--r--app/resources/app_resources.grd8
3 files changed, 9 insertions, 9 deletions
diff --git a/app/app.gyp b/app/app.gyp
index b7b9aaa..955a6d6 100644
--- a/app/app.gyp
+++ b/app/app.gyp
@@ -57,7 +57,7 @@
'..',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['toolkit_uses_gtk==1', {
'sources': [
'../ui/base/dragdrop/gtk_dnd_util_unittest.cc',
],
@@ -73,7 +73,7 @@
'../ui/base/view_prop_unittest.cc',
],
}],
- ['OS =="linux" or OS =="freebsd"', {
+ ['os_posix==1 and OS!="mac"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
diff --git a/app/app_base.gypi b/app/app_base.gypi
index 873cbb0..82c3962 100644
--- a/app/app_base.gypi
+++ b/app/app_base.gypi
@@ -31,7 +31,7 @@
'app_paths.cc',
],
'conditions': [
- ['OS!="linux" and OS!="freebsd" and OS!="openbsd"', {
+ ['toolkit_uses_gtk!=1', {
'sources!': [
'../ui/base/dragdrop/gtk_dnd_util.cc',
'../ui/base/dragdrop/gtk_dnd_util.h',
@@ -221,7 +221,7 @@
'win/shell.h',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['toolkit_uses_gtk==1', {
'dependencies': [
# font_gtk.cc uses fontconfig.
# TODO(evanm): I think this is wrong; it should just use GTK.
@@ -273,7 +273,7 @@
['exclude', '^win/*'],
],
}],
- ['OS=="linux"', {
+ ['use_x11==1', {
'sources!': [
'../ui/base/keycodes/keyboard_code_conversion_mac.mm',
'../ui/base/keycodes/keyboard_code_conversion_mac.h',
diff --git a/app/resources/app_resources.grd b/app/resources/app_resources.grd
index 751dfbf..6bd2388 100644
--- a/app/resources/app_resources.grd
+++ b/app/resources/app_resources.grd
@@ -18,7 +18,7 @@
<include name="IDR_CLOSE_H" file="close_h.png" type="BINDATA" />
<include name="IDR_CLOSE_P" file="close_p.png" type="BINDATA" />
</if>
- <if expr="not pp_ifdef('toolkit_views') and (os == 'linux2' or os.find('bsd') != -1)">
+ <if expr="not pp_ifdef('toolkit_views') and (os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5')">
<include name="IDR_CLOSE" file="linux_close.png" type="BINDATA" />
<include name="IDR_CLOSE_H" file="linux_close_h.png" type="BINDATA" />
<include name="IDR_CLOSE_P" file="linux_close_p.png" type="BINDATA" />
@@ -42,7 +42,7 @@
<include name="IDR_MAXIMIZE_H" file="maximize_h.png" type="BINDATA" />
<include name="IDR_MAXIMIZE_P" file="maximize_p.png" type="BINDATA" />
</if>
- <if expr="not pp_ifdef('toolkit_views') and (os == 'linux2' or os.find('bsd') != -1)">
+ <if expr="not pp_ifdef('toolkit_views') and (os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5')">
<include name="IDR_MAXIMIZE" file="linux_maximize.png" type="BINDATA" />
<include name="IDR_MAXIMIZE_H" file="linux_maximize_h.png" type="BINDATA" />
<include name="IDR_MAXIMIZE_P" file="linux_maximize_p.png" type="BINDATA" />
@@ -54,7 +54,7 @@
<include name="IDR_MINIMIZE_H" file="minimize_h.png" type="BINDATA" />
<include name="IDR_MINIMIZE_P" file="minimize_p.png" type="BINDATA" />
</if>
- <if expr="not pp_ifdef('toolkit_views') and (os == 'linux2' or os.find('bsd') != -1)">
+ <if expr="not pp_ifdef('toolkit_views') and (os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5')">
<include name="IDR_MINIMIZE" file="linux_minimize.png" type="BINDATA" />
<include name="IDR_MINIMIZE_H" file="linux_minimize_h.png" type="BINDATA" />
<include name="IDR_MINIMIZE_P" file="linux_minimize_p.png" type="BINDATA" />
@@ -64,7 +64,7 @@
<include name="IDR_RESTORE_H" file="restore_h.png" type="BINDATA" />
<include name="IDR_RESTORE_P" file="restore_p.png" type="BINDATA" />
</if>
- <if expr="not pp_ifdef('toolkit_views') and (os == 'linux2' or os.find('bsd') != -1)">
+ <if expr="not pp_ifdef('toolkit_views') and (os == 'linux2' or os.find('bsd') != -1 or os == 'sunos5')">
<include name="IDR_RESTORE" file="linux_restore.png" type="BINDATA" />
<include name="IDR_RESTORE_H" file="linux_restore_h.png" type="BINDATA" />
<include name="IDR_RESTORE_P" file="linux_restore_p.png" type="BINDATA" />