Skip to content

Commit

Permalink
OpenBSD/FreeBSD GYP changes (most of the remaining ones)
Browse files Browse the repository at this point in the history
Review URL: http://codereview.chromium.org/565043

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38079 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
pvalchev@google.com committed Feb 4, 2010
1 parent f6dc896 commit 60b2c07
Show file tree
Hide file tree
Showing 20 changed files with 169 additions and 47 deletions.
12 changes: 6 additions & 6 deletions chrome/chrome.gyp
Expand Up @@ -458,7 +458,7 @@
'browser/debugger/inspectable_tab_proxy.h',
],
'conditions': [
['OS=="linux" or OS=="freebsd"', {
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
Expand Down Expand Up @@ -535,7 +535,7 @@
'plugin/command_buffer_stub.h',
],
},],
['OS=="linux" or OS=="freebsd"', {
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
Expand Down Expand Up @@ -824,7 +824,7 @@
'sync_proto',
],
'conditions': [
['OS=="linux"', {
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'dependencies': [
'../build/linux/system.gyp:gtk'
],
Expand Down Expand Up @@ -967,7 +967,7 @@
'browser/sync/util/data_encryption.h',
],
}],
['OS=="linux"', {
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'dependencies': [
'../build/linux/system.gyp:gtk'
],
Expand Down Expand Up @@ -1515,7 +1515,7 @@
},
]}, # 'targets'
], # OS=="win"
['OS=="linux" or OS=="freebsd"', {
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'targets': [{
'target_name': 'packed_resources',
'type': 'none',
Expand Down Expand Up @@ -1601,7 +1601,7 @@
},
],
}], # targets
}], # OS=="linux" or OS=="freebsd"
}], # OS=="linux" or OS=="freebsd" or OS=="openbsd"
], # 'conditions'
}

Expand Down
4 changes: 2 additions & 2 deletions courgette/courgette.gyp
Expand Up @@ -93,7 +93,7 @@
'../testing/gtest.gyp:gtest',
],
'conditions': [
[ 'OS == "linux" or OS == "freebsd"', {
[ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
'dependencies': [
# Workaround for gyp bug 69.
# Needed to handle the #include chain:
Expand All @@ -118,7 +118,7 @@
'../testing/gtest.gyp:gtest',
],
'conditions': [
[ 'OS == "linux" or OS == "freebsd"', {
[ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
'dependencies': [
# Workaround for gyp bug 69.
# Needed to handle the #include chain:
Expand Down
6 changes: 3 additions & 3 deletions ipc/ipc.gyp
Expand Up @@ -10,7 +10,7 @@
['exclude', '/win_[^/]*\\.cc$'],
],
'conditions': [
['OS=="linux"', {'sources/': [
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {'sources/': [
['include', '_posix(_unittest)?\\.cc$'],
]}],
['OS=="mac"', {'sources/': [
Expand Down Expand Up @@ -53,7 +53,7 @@
'sync_socket_unittest.cc',
],
'conditions': [
['OS=="linux"', {
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
Expand All @@ -63,7 +63,7 @@
'../views/views.gyp:views',
],
}],
['OS=="linux" or OS=="freebsd"', {
['OS=="linux"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
Expand Down
4 changes: 2 additions & 2 deletions printing/native_metafile.h
Expand Up @@ -34,9 +34,9 @@ typedef PdfMetafile NativeMetafile;

} // namespace printing

#elif defined(OS_LINUX)
#elif defined(OS_POSIX)

#include "printing/pdf_ps_metafile_linux.h"
#include "printing/pdf_ps_metafile_cairo.h"

namespace printing {

Expand Down
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "printing/pdf_ps_metafile_linux.h"
#include "printing/pdf_ps_metafile_cairo.h"

#include <stdio.h>

Expand Down
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef PRINTING_PDF_PS_METAFILE_LINUX_H_
#define PRINTING_PDF_PS_METAFILE_LINUX_H_
#ifndef PRINTING_PDF_PS_METAFILE_CAIRO_H_
#define PRINTING_PDF_PS_METAFILE_CAIRO_H_

#include <string>

Expand Down Expand Up @@ -107,4 +107,4 @@ class PdfPsMetafile {

} // namespace printing

#endif // PRINTING_PDF_PS_METAFILE_LINUX_H_
#endif // PRINTING_PDF_PS_METAFILE_CAIRO_H_
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "printing/pdf_ps_metafile_linux.h"
#include "printing/pdf_ps_metafile_cairo.h"

#include <fcntl.h>
#include <string>
Expand Down
File renamed without changes.
24 changes: 13 additions & 11 deletions printing/printing.gyp
Expand Up @@ -39,20 +39,20 @@
'page_setup.h',
'pdf_metafile_mac.h',
'pdf_metafile_mac.cc',
'pdf_ps_metafile_linux.h',
'pdf_ps_metafile_linux.cc',
'pdf_ps_metafile_cairo.h',
'pdf_ps_metafile_cairo.cc',
'print_settings.cc',
'print_settings.h',
'printed_document.cc',
'printed_document_linux.cc',
'printed_document_cairo.cc',
'printed_document_mac.cc',
'printed_document_win.cc',
'printed_document.h',
'printed_page.cc',
'printed_page.h',
'printed_pages_source.h',
'printing_context.h',
'printing_context_linux.cc',
'printing_context_cairo.cc',
'printing_context_mac.mm',
'printing_context_win.cc',
'units.cc',
Expand All @@ -64,13 +64,15 @@
],
},
'conditions': [
['OS!="linux"', {'sources/': [['exclude', '_linux\\.cc$']]}],
['OS!="linux" and OS!="freebsd" and OS!="openbsd"',{
'sources/': [['exclude', '_cairo\\.cc$']]
}],
['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}],
['OS!="win"', {'sources/': [['exclude', '_win\\.cc$']]
}, { # else: OS=="win"
'sources/': [['exclude', '_posix\\.cc$']]
}],
['OS=="linux"', {
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'dependencies': [
# For FT_Init_FreeType and friends.
'../build/linux/system.gyp:freetype2',
Expand All @@ -94,25 +96,25 @@
'page_range_unittest.cc',
'page_setup_unittest.cc',
'pdf_metafile_mac_unittest.cc',
'pdf_ps_metafile_linux_unittest.cc',
'pdf_ps_metafile_cairo_unittest.cc',
'printing_context_win_unittest.cc',
'run_all_unittests.cc',
'units_unittest.cc',
],
'conditions': [
['OS!="linux"', {'sources/': [['exclude', '_linux_unittest\\.cc$']]}],
['OS!="linux"', {'sources/': [['exclude', '_cairo_unittest\\.cc$']]}],
['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}],
['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']]
}, { # else: OS=="win"
'sources/': [['exclude', '_posix_unittest\\.cc$']]
'sources/': [['exclude', '_cairo_unittest\\.cc$']]
}
],
['OS=="linux"', {
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
}],
['OS=="linux" or OS=="freebsd"', {
['OS=="linux"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
Expand Down
File renamed without changes.
113 changes: 113 additions & 0 deletions sdch/bsd/config.h
@@ -0,0 +1,113 @@
/* src/config.h. Generated by SCons. */
/* src/config.h.in. Generated from configure.ac by autoheader. */

/* Define to 1 if you have the <dlfcn.h> header file. */
/* #undef HAVE_DLFCN_H */

/* Define to 1 if you have the <ext/rope> header file. */
/* #undef HAVE_EXT_ROPE */

/* Define to 1 if you have the <fnmatch.h> header file. */
/* #undef HAVE_FNMATCH_H */

/* Define to 1 if you have the <getopt.h> header file. */
/* #undef HAVE_GETOPT_H */

/* Define to 1 if you have the `gettimeofday' function. */
/* #undef HAVE_GETTIMEOFDAY */

/* Define to 1 if you have the <inttypes.h> header file. */
/* #undef HAVE_INTTYPES_H */

/* Define to 1 if you have the <malloc.h> header file. */
/* #undef HAVE_MALLOC_H */

/* Define to 1 if you have the `memalign' function. */
/* #undef HAVE_MEMALIGN */

/* Define to 1 if you have the <memory.h> header file. */
/* #undef HAVE_MEMORY_H */

/* Define to 1 if you have the `mprotect' function. */
/* #undef HAVE_MPROTECT */

/* Define to 1 if you have the `posix_memalign' function. */
/* #undef HAVE_POSIX_MEMALIGN */

/* Define to 1 if you have the `QueryPerformanceCounter' function. */
/* #undef HAVE_QUERYPERFORMANCECOUNTER */

/* Define to 1 if you have the <stdint.h> header file. */
/* #undef HAVE_STDINT_H */

/* Define to 1 if you have the <stdlib.h> header file. */
/* #undef HAVE_STDLIB_H */

/* Define to 1 if you have the <strings.h> header file. */
/* #undef HAVE_STRINGS_H */

/* Define to 1 if you have the <string.h> header file. */
/* #undef HAVE_STRING_H */

/* Define to 1 if you have the `strtoll' function. */
/* #undef HAVE_STRTOLL */

/* Define to 1 if you have the `strtoq' function. */
/* #undef HAVE_STRTOQ */

/* Define to 1 if you have the <sys/mman.h> header file. */
/* #undef HAVE_SYS_MMAN_H */

/* Define to 1 if you have the <sys/stat.h> header file. */
/* #undef HAVE_SYS_STAT_H */

/* Define to 1 if you have the <sys/time.h> header file. */
/* #undef HAVE_SYS_TIME_H */

/* Define to 1 if you have the <sys/types.h> header file. */
/* #undef HAVE_SYS_TYPES_H */

/* Define to 1 if the system has the type `uint16_t'. */
/* #undef HAVE_UINT16_T */

/* Define to 1 if you have the <unistd.h> header file. */
/* #undef HAVE_UNISTD_H */

/* Define to 1 if the system has the type `u_int16_t'. */
/* #undef HAVE_U_INT16_T */

/* Define to 1 if you have the <windows.h> header file. */
/* #undef HAVE_WINDOWS_H */

/* define if your compiler has __attribute__ */
/* #undef HAVE___ATTRIBUTE__ */

/* Define to 1 if the system has the type `__int16'. */
/* #undef HAVE___INT16 */

/* Name of package */
/* #undef PACKAGE */

/* Define to the address where bug reports for this package should be sent. */
/* #undef PACKAGE_BUGREPORT */

/* Define to the full name of this package. */
/* #undef PACKAGE_NAME */

/* Define to the full name and version of this package. */
/* #undef PACKAGE_STRING */

/* Define to the one symbol short name of this package. */
/* #undef PACKAGE_TARNAME */

/* Define to the version of this package. */
/* #undef PACKAGE_VERSION */

/* Define to 1 if you have the ANSI C header files. */
/* #undef STDC_HEADERS */

/* Use custom compare function instead of memcmp */
/* #undef VCDIFF_USE_BLOCK_COMPARE_WORDS */

/* Version number of package */
/* #undef VERSION */
1 change: 1 addition & 0 deletions sdch/sdch.gyp
Expand Up @@ -55,6 +55,7 @@
},
'conditions': [
[ 'OS == "linux"', { 'include_dirs': [ 'linux' ] } ],
[ 'OS == "freebsd" or OS == "openbsd"', { 'include_dirs': [ 'bsd' ] } ],
[ 'OS == "mac"', { 'include_dirs': [ 'mac' ] } ],
[ 'OS == "win"', { 'include_dirs': [ 'open-vcdiff/vsprojects' ] } ],
],
Expand Down
4 changes: 2 additions & 2 deletions skia/skia.gyp
Expand Up @@ -566,7 +566,7 @@
['exclude', '_mac\\.(cc|cpp|mm?)$'],
['exclude', '/mac/'] ],
}],
[ 'OS != "linux"', {
[ 'OS != "linux" and OS != "freebsd" and OS != "openbsd"', {
'sources/': [ ['exclude', '_(linux|gtk)\\.(cc|cpp)$'] ],
'sources!': [
'../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
Expand All @@ -590,7 +590,7 @@
'../third_party/skia/src/opts/opts_check_SSE2.cpp'
],
}],
[ 'OS == "linux" or OS == "freebsd"', {
[ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
'dependencies': [
'../build/linux/system.gyp:gdk',
'../build/linux/system.gyp:fontconfig',
Expand Down
2 changes: 1 addition & 1 deletion testing/gtest.gyp
Expand Up @@ -59,7 +59,7 @@
],
},
}],
['OS == "mac" or OS == "linux"', {
['OS == "mac" or OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
'defines': [
# gtest isn't able to figure out when RTTI is disabled for gcc
# versions older than 4.3.2, and assumes it's enabled. Our Mac
Expand Down

0 comments on commit 60b2c07

Please sign in to comment.