diff options
author | bradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 04:22:23 +0000 |
---|---|---|
committer | bradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 04:22:23 +0000 |
commit | 69acda8a4dd801608af986d95df16851ce8c50e5 (patch) | |
tree | bd36b9c658c8513accb6c8b4b2fed70158126776 /webkit | |
parent | deb6e0ed6dd06c90044b0ba199149872fd60b75f (diff) | |
download | chromium_src-69acda8a4dd801608af986d95df16851ce8c50e5.zip chromium_src-69acda8a4dd801608af986d95df16851ce8c50e5.tar.gz chromium_src-69acda8a4dd801608af986d95df16851ce8c50e5.tar.bz2 |
Fixes to gyp files to get test_shell building on windows from a gyp project (doesn't run correctly yet).
Switched all uses of windows system libraries that assumed they were in the include path to use -l (which will be
supported on windows in a separate change).
Review URL: http://codereview.chromium.org/27362
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10781 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/activex_shim/activex_shim.gyp | 8 | ||||
-rw-r--r-- | webkit/activex_shim_dll/activex_shim_dll.gyp | 6 | ||||
-rw-r--r-- | webkit/default_plugin/default_plugin.gyp | 47 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell.gyp | 11 | ||||
-rw-r--r-- | webkit/webkit.gyp | 23 |
5 files changed, 88 insertions, 7 deletions
diff --git a/webkit/activex_shim/activex_shim.gyp b/webkit/activex_shim/activex_shim.gyp index 8aa219a..9565b1d 100644 --- a/webkit/activex_shim/activex_shim.gyp +++ b/webkit/activex_shim/activex_shim.gyp @@ -39,9 +39,11 @@ 'web_activex_site.cc', 'web_activex_site.h', ], - 'libraries': [ - 'urlmon.lib', - ], + 'link_settings': { + 'libraries': [ + '-lurlmon.lib', + ], + }, }, ], } diff --git a/webkit/activex_shim_dll/activex_shim_dll.gyp b/webkit/activex_shim_dll/activex_shim_dll.gyp index 321d30e..263f0f4 100644 --- a/webkit/activex_shim_dll/activex_shim_dll.gyp +++ b/webkit/activex_shim_dll/activex_shim_dll.gyp @@ -14,6 +14,7 @@ 'target_name': 'activex_shim_dll', 'type': 'shared_library', 'dependencies': [ + '../../base/base.gyp:base', '../../third_party/npapi/npapi.gyp:npapi', '../activex_shim/activex_shim.gyp:activex_shim', ], @@ -23,6 +24,11 @@ 'activex_shim_dll.rc', 'resource.h', ], + 'link_settings': { + 'libraries': [ + '-lurlmon.lib', + ], + }, }, ], } diff --git a/webkit/default_plugin/default_plugin.gyp b/webkit/default_plugin/default_plugin.gyp new file mode 100644 index 0000000..a3a9a7c --- /dev/null +++ b/webkit/default_plugin/default_plugin.gyp @@ -0,0 +1,47 @@ +# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'includes': [ + '../../build/common.gypi', + ], + 'targets': [ + { + 'target_name': 'default_plugin', + 'type': 'static_library', + 'dependencies': [ + '../../third_party/libxml/libxml.gyp:libxml', + '../../third_party/icu38/icu38.gyp:icui18n', + '../../third_party/icu38/icu38.gyp:icuuc', + '../../third_party/npapi/npapi.gyp:npapi', + '../../net/net.gyp:net_resources', + ], + 'include_dirs': [ + '../..', + # TODO(bradnelson): this should fall out of the dependencies. + '<(SHARED_INTERMEDIATE_DIR)/webkit', + ], + 'sources': [ + 'activex_installer.cc', + 'activex_installer.h', + 'default_plugin.cc', + 'default_plugin_resources.h', + 'default_plugin_shared.h', + 'install_dialog.cc', + 'install_dialog.h', + 'plugin_database_handler.cc', + 'plugin_database_handler.h', + 'plugin_impl_win.cc', + 'plugin_impl_win.h', + 'plugin_install_job_monitor.cc', + 'plugin_install_job_monitor.h', + 'plugin_main.cc', + 'plugin_main.h', + ], + 'link_settings': { + 'libraries': ['-lUrlmon.lib'], + }, + }, + ], +} diff --git a/webkit/tools/test_shell/test_shell.gyp b/webkit/tools/test_shell/test_shell.gyp index 6134283..8970991 100644 --- a/webkit/tools/test_shell/test_shell.gyp +++ b/webkit/tools/test_shell/test_shell.gyp @@ -89,10 +89,15 @@ ] }], ['OS=="win"', { - 'include_dirs': [ - '../../../breakpad/src', - ], 'msvs_disabled_warnings': [ 4800 ], + 'link_settings': { + 'libraries': [ + '-lcomctl32.lib', + ], + }, + 'dependencies': [ + '../../../breakpad/breakpad.gyp:breakpad_handler', + ], }, { # OS!=win 'sources/': [ ['exclude', '_win\\.cc$'] diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp index 671d244..4423c59 100644 --- a/webkit/webkit.gyp +++ b/webkit/webkit.gyp @@ -110,6 +110,12 @@ # Match Safari and Mozilla on Windows. 'WEBCORE_NAVIGATOR_PLATFORM="Win32"', ], + 'webcore_include_dirs': [ + '../third_party/WebKit/WebCore/page/win', + '../third_party/WebKit/WebCore/platform/graphics/win', + '../third_party/WebKit/WebCore/platform/text/win', + '../third_party/WebKit/WebCore/platform/win', + ], }, { # else: OS!="win" 'feature_defines': [ 'ENABLE_VIDEO=0' @@ -3999,7 +4005,15 @@ }, }], ['OS=="win"', { - 'sources/': [['exclude', 'Posix\\.cpp$']], + 'sources/': [ + ['exclude', 'Posix\\.cpp$'], + ['include', '/opentype/'], + ['include', '/TransparencyWin\\.cpp$'], + ['include', '/SkiaFontWin\\.cpp$'], + ], + 'sources!': [ + '../third_party/WebKit/WebCore/platform/network/ResourceHandle.cpp', + ], 'defines': [ '__PRETTY_FUNCTION__=__FUNCTION__', 'DISABLE_ACTIVEX_TYPE_CONVERSION_MPLAYER2', @@ -4343,6 +4357,13 @@ ], }, { # else: OS=="win" 'sources/': [['exclude', '_posix\\.cc$']], + 'dependencies': [ + 'activex_shim/activex_shim.gyp:activex_shim', + 'default_plugin/default_plugin.gyp:default_plugin', + ], + 'sources!': [ + 'glue/plugins/plugin_stubs.cc', + ], }], ], }, |