0

Import .gyp files into the Chromium tree

Review URL: http://codereview.chromium.org/27158

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10380 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
mark@chromium.org
2009-02-25 21:26:55 +00:00
parent a2318cda8a
commit 2f80c3109c
38 changed files with 10889 additions and 1 deletions

2
DEPS

@ -22,7 +22,7 @@ deps = {
"/trunk/deps/third_party/WebKit@10283",
"src/third_party/icu38":
"/trunk/deps/third_party/icu38@10304",
"/trunk/deps/third_party/icu38@10364",
# TODO(mark): Remove once this has moved into depot_tools.
"src/tools/gyp":

571
base/base.gyp Normal file

@ -0,0 +1,571 @@
# 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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../build/common.gypi',
],
'targets': [
{
'target_name': 'base',
'type': 'static_library',
'dependencies': [
'../third_party/icu38/icu38.gyp:icui18n',
'../third_party/icu38/icu38.gyp:icuuc',
],
'sources': [
'../build/build_config.h',
'third_party/dmg_fp/dmg_fp.h',
'third_party/dmg_fp/dtoa.cc',
'third_party/dmg_fp/g_fmt.cc',
'third_party/nspr/prcpucfg.h',
'third_party/nspr/prcpucfg_win.h',
'third_party/nspr/prtime.cc',
'third_party/nspr/prtime.h',
'third_party/nspr/prtypes.h',
'third_party/nss/blapi.h',
'third_party/nss/blapit.h',
'third_party/nss/sha256.h',
'third_party/nss/sha512.cc',
'third_party/purify/pure.h',
'third_party/purify/pure_api.c',
'atomicops_internals_x86_gcc.cc',
'at_exit.cc',
'at_exit.h',
'atomic_ref_count.h',
'atomic_sequence_num.h',
'atomicops.h',
'atomicops_internals_x86_msvc.h',
'base_drag_source.cc',
'base_drag_source.h',
'base_drop_target.cc',
'base_drop_target.h',
'base_paths.cc',
'base_paths.h',
'base_paths_linux.cc',
'base_paths_mac.mm',
'base_paths_win.cc',
'base_paths_win.h',
'base_switches.cc',
'base_switches.h',
'basictypes.h',
'bzip2_error_handler.cc',
'clipboard.cc',
'clipboard.h',
'clipboard_linux.cc',
'clipboard_mac.mm',
'clipboard_util.cc',
'clipboard_util.h',
'clipboard_win.cc',
'command_line.cc',
'command_line.h',
'compiler_specific.h',
'condition_variable.h',
'condition_variable_posix.cc',
'condition_variable_win.cc',
'cpu.cc',
'cpu.h',
'data_pack.cc',
'debug_on_start.cc',
'debug_on_start.h',
'debug_util.cc',
'debug_util.h',
'debug_util_mac.cc',
'debug_util_posix.cc',
'debug_util_win.cc',
'directory_watcher.h',
'directory_watcher_win.cc',
'event_recorder.cc',
'event_recorder.h',
'event_recorder_stubs.cc',
'field_trial.cc',
'field_trial.h',
'file_path.cc',
'file_path.h',
'file_util.cc',
'file_util.h',
'file_util_linux.cc',
'file_util_mac.mm',
'file_util_posix.cc',
'file_util_win.cc',
'file_version_info.cc',
'file_version_info.h',
'file_version_info_linux.cc',
'file_version_info_mac.mm',
'fix_wp64.h',
'float_util.h',
'hash_tables.h',
'histogram.cc',
'histogram.h',
'hmac.h',
'hmac_mac.cc',
'hmac_nss.cc',
'hmac_win.cc',
'iat_patch.cc',
'iat_patch.h',
'icu_util.cc',
'icu_util.h',
'id_map.h',
'idle_timer.cc',
'idle_timer.h',
'idle_timer_none.cc',
'image_util.cc',
'image_util.h',
'json_reader.cc',
'json_reader.h',
'json_writer.cc',
'json_writer.h',
'keyboard_codes.h',
'keyboard_codes_win.h',
'lazy_instance.cc',
'lazy_instance.h',
'linked_ptr.h',
'lock.cc',
'lock.h',
'lock_impl.h',
'lock_impl_posix.cc',
'lock_impl_win.cc',
'logging.cc',
'logging.h',
'mac_util.mm',
'md5.cc',
'md5.h',
'memory_debug.cc',
'memory_debug.h',
'message_loop.cc',
'message_loop.h',
'message_pump.h',
'message_pump_default.cc',
'message_pump_default.h',
'message_pump_glib.cc',
'message_pump_libevent.cc',
'message_pump_mac.mm',
'message_pump_win.cc',
'message_pump_win.h',
'non_thread_safe.cc',
'non_thread_safe.h',
'nss_init.cc',
'object_watcher.cc',
'object_watcher.h',
'observer_list.h',
'observer_list_threadsafe.h',
'path_service.cc',
'path_service.h',
'pe_image.cc',
'pe_image.h',
'pickle.cc',
'pickle.h',
'platform_file.h',
'platform_file_win.cc',
'platform_file_posix.cc',
'platform_thread.h',
'platform_thread_mac.mm',
'platform_thread_posix.cc',
'platform_thread_win.cc',
'port.h',
'process.h',
'process_posix.cc',
'process_util.h',
'process_util_linux.cc',
'process_util_mac.mm',
'process_util_posix.cc',
'process_util_win.cc',
'process_win.cc',
'rand_util.cc',
'rand_util.h',
'rand_util_posix.cc',
'rand_util_win.cc',
'ref_counted.cc',
'ref_counted.h',
'registry.cc',
'registry.h',
'resource_util.cc',
'resource_util.h',
'revocable_store.cc',
'revocable_store.h',
'scoped_bstr_win.cc',
'scoped_bstr_win.h',
'scoped_clipboard_writer.cc',
'scoped_clipboard_writer.h',
'scoped_comptr_win.h',
'scoped_handle.h',
'scoped_handle_win.h',
'scoped_nsautorelease_pool.h',
'scoped_nsautorelease_pool.mm',
'scoped_ptr.h',
'scoped_temp_dir.cc',
'scoped_temp_dir.h',
'sha2.cc',
'sha2.h',
'shared_memory.h',
'shared_memory_posix.cc',
'shared_memory_win.cc',
'simple_thread.cc',
'simple_thread.h',
'singleton.h',
'spin_wait.h',
'stack_container.h',
'stats_counters.h',
'stats_table.cc',
'stats_table.h',
'string16.cc',
'string16.h',
'string_escape.cc',
'string_escape.h',
'string_piece.cc',
'string_piece.h',
'string_tokenizer.h',
'string_util.cc',
'string_util.h',
'string_util_icu.cc',
'string_util_win.h',
'sys_info.h',
'sys_info_mac.cc',
'sys_info_posix.cc',
'sys_info_win.cc',
'sys_string_conversions.h',
'sys_string_conversions_linux.cc',
'sys_string_conversions_mac.mm',
'sys_string_conversions_win.cc',
'system_monitor.cc',
'system_monitor.h',
'system_monitor_posix.cc',
'system_monitor_win.cc',
'task.h',
'test_file_util.h',
'test_file_util_linux.cc',
'test_file_util_mac.cc',
'test_file_util_win.cc',
'thread.cc',
'thread.h',
'thread_collision_warner.cc',
'thread_collision_warner.h',
'thread_local.h',
'thread_local_posix.cc',
'thread_local_storage.h',
'thread_local_storage_posix.cc',
'thread_local_storage_win.cc',
'thread_local_win.cc',
'time.cc',
'time.h',
'time_format.cc',
'time_format.h',
'time_mac.cc',
'time_posix.cc',
'time_win.cc',
'timer.cc',
'timer.h',
'trace_event.cc',
'trace_event.h',
'tracked.cc',
'tracked.h',
'tracked_objects.cc',
'tracked_objects.h',
'tuple.h',
'values.cc',
'values.h',
'version.cc',
'version.h',
'waitable_event.h',
'waitable_event_posix.cc',
'waitable_event_watcher.h',
'waitable_event_watcher_posix.cc',
'waitable_event_watcher_win.cc',
'waitable_event_win.cc',
'watchdog.cc',
'watchdog.h',
'win_util.cc',
'win_util.h',
'windows_message_list.h',
'wmi_util.cc',
'wmi_util.h',
'word_iterator.cc',
'word_iterator.h',
'worker_pool.cc',
'worker_pool.h',
'worker_pool_mac.mm',
],
'include_dirs': [
'..',
],
'direct_dependent_settings': {
'include_dirs': [
'..',
],
},
# These warnings are needed for the files in third_party\dmg_fp.
'msvs_disabled_warnings': [
4244, 4554, 4018, 4102,
],
'conditions': [
[ 'OS == "linux"', {
'sources/': [ ['exclude', '_(mac|win)\\.cc$'],
['exclude', '\\.mm?$' ] ],
'sources!': [
# Linux has an implementation of idle_timer that depends
# on XScreenSaver, but it's unclear if we want it yet,
# so use idle_timer_none.cc instead.
'idle_timer.cc',
],
'cflags': ['-Wno-write-strings'],
},
{ # else: OS != "linux"
'sources!': [
'atomicops_internals_x86_gcc.cc',
'data_pack.cc',
'hmac_nss.cc',
'idle_timer_none.cc',
'message_pump_glib.cc',
'nss_init.cc',
'time_posix.cc',
],
}
],
[ 'OS == "mac"', {
'sources/': [ ['exclude', '_(linux|win)\\.cc$'] ],
'sources!': [
'worker_pool.cc',
],
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
'$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
'$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
],
},
},
],
[ 'OS == "win"', {
'sources/': [ ['exclude', '_(linux|mac|posix)\\.cc$'],
['exclude', '\\.mm?$' ] ],
'sources!': [
'event_recorder_stubs.cc',
'message_pump_libevent.cc',
'string16.cc',
],
},
{ # else: OS != "win"
'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
'sources!': [
'third_party/purify/pure_api.c',
'base_drag_source.cc',
'base_drop_target.cc',
'cpu.cc',
'clipboard_util.cc',
'debug_on_start.cc',
'event_recorder.cc',
'file_version_info.cc',
'iat_patch.cc',
'image_util.cc',
'object_watcher.cc',
'pe_image.cc',
'registry.cc',
'resource_util.cc',
'win_util.cc',
'wmi_util.cc',
],
},
],
],
},
{
'target_name': 'base_gfx',
'type': 'static_library',
'sources': [
'gfx/gdi_util.cc',
'gfx/gdi_util.h',
'gfx/jpeg_codec.cc',
'gfx/jpeg_codec.h',
'gfx/native_theme.cc',
'gfx/native_theme.h',
'gfx/native_widget_types.h',
'gfx/platform_canvas.h',
'gfx/platform_canvas_linux.h',
'gfx/platform_canvas_mac.h',
'gfx/platform_device_linux.h',
'gfx/platform_device_mac.h',
'gfx/png_decoder.cc',
'gfx/png_decoder.h',
'gfx/png_encoder.cc',
'gfx/png_encoder.h',
'gfx/point.cc',
'gfx/point.h',
'gfx/rect.cc',
'gfx/rect.h',
'gfx/size.cc',
'gfx/size.h',
],
'mac_framework_dirs': [
'$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
],
'dependencies': [
'base',
'../skia/skia.gyp:skia',
'../third_party/libjpeg/libjpeg.gyp:libjpeg',
'../third_party/libpng/libpng.gyp:libpng',
'../third_party/zlib/zlib.gyp:zlib',
],
'export_dependent_settings': [
'base',
],
'conditions': [
[ 'OS != "win"', { 'sources!': [
'gfx/gdi_util.cc',
'gfx/native_theme.cc' ]
}],
],
},
{
'target_name': 'base_unittests',
'type': 'executable',
'sources': [
'gfx/jpeg_codec_unittest.cc',
'gfx/native_theme_unittest.cc',
'gfx/png_codec_unittest.cc',
'gfx/rect_unittest.cc',
'at_exit_unittest.cc',
'atomicops_unittest.cc',
'clipboard_unittest.cc',
'command_line_unittest.cc',
'condition_variable_unittest.cc',
'data_pack_unittest.cc',
'directory_watcher_unittest.cc',
'field_trial_unittest.cc',
'file_path_unittest.cc',
'file_util_unittest.cc',
'file_version_info_unittest.cc',
'histogram_unittest.cc',
'hmac_unittest.cc',
'idletimer_unittest.cc',
'json_reader_unittest.cc',
'json_writer_unittest.cc',
'lazy_instance_unittest.cc',
'linked_ptr_unittest.cc',
'mac_util_unittest.cc',
'message_loop_unittest.cc',
'object_watcher_unittest.cc',
'observer_list_unittest.cc',
'path_service_unittest.cc',
'pe_image_unittest.cc',
'pickle_unittest.cc',
'pr_time_unittest.cc',
'process_util_unittest.cc',
'rand_util_unittest.cc',
'ref_counted_unittest.cc',
'run_all_unittests.cc',
'scoped_bstr_win_unittest.cc',
'scoped_comptr_win_unittest.cc',
'scoped_ptr_unittest.cc',
'sha2_unittest.cc',
'shared_memory_unittest.cc',
'simple_thread_unittest.cc',
'singleton_unittest.cc',
'stack_container_unittest.cc',
'stats_table_unittest.cc',
'string_escape_unittest.cc',
'string_piece_unittest.cc',
'string_tokenizer_unittest.cc',
'string_util_unittest.cc',
'sys_info_unittest.cc',
'sys_string_conversions_unittest.cc',
'sys_string_conversions_unittest.cc',
'system_monitor_unittest.cc',
'thread_collision_warner_unittest.cc',
'thread_local_storage_unittest.cc',
'thread_local_unittest.cc',
'thread_unittest.cc',
'time_unittest.cc',
'time_win_unittest.cc',
'timer_unittest.cc',
'tracked_objects_unittest.cc',
'tuple_unittest.cc',
'values_unittest.cc',
'waitable_event_unittest.cc',
'watchdog_unittest.cc',
'win_util_unittest.cc',
'wmi_util_unittest.cc',
'word_iterator_unittest.cc',
'worker_pool_unittest.cc',
],
'include_dirs': [
# word_iterator.h (used by word_iterator_unittest.cc) leaks an ICU
# #include for unicode/uchar.h. This should probably be cleaned up.
'../third_party/icu38/public/common',
],
'dependencies': [
'base',
'base_gfx',
'../skia/skia.gyp:skia',
'../testing/gtest.gyp:gtest',
],
'conditions': [
[ 'OS == "linux"', {
'sources!': [
'file_version_info_unittest.cc',
# Linux has an implementation of idle_timer, but it's unclear
# if we want it yet, so leave it 'unported' for now.
'idletimer_unittest.cc',
],
},
{ # OS != "linux"
'sources!': [
'data_pack_unittest.cc',
],
},
],
[ 'OS == "mac"', {
'sources!': [
'stats_table_unittest.cc',
],
},
{ # OS != "mac"
'sources!': [
'mac_util_unittest.cc',
],
},
],
# This is needed to trigger the dll copy step on windows.
# TODO(mark): This should not be necessary.
[ 'OS == "win"', {
'dependencies': [
'../third_party/icu38/icu38.gyp:icudata',
],
},
{ # OS != "win", {
'sources!': [
'gfx/native_theme_unittest.cc',
'directory_watcher_unittest.cc',
'object_watcher_unittest.cc',
'pe_image_unittest.cc',
'scoped_bstr_win_unittest.cc',
'scoped_comptr_win_unittest.cc',
'system_monitor_unittest.cc',
'sys_string_conversions_unittest.cc',
'time_win_unittest.cc',
'win_util_unittest.cc',
'wmi_util_unittest.cc',
],
}
],
],
},
],
'conditions': [
[ 'OS == "win"', {
'targets': [
{
'target_name': 'debug_message',
'type': 'executable',
'sources': [
'debug_message.cc',
],
},
],
}],
],
}

42
build/all.gyp Normal file

@ -0,0 +1,42 @@
# 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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'common.gypi',
],
'targets': [
{
'target_name': 'All',
'type': 'none',
'dependencies': [
'../base/base.gyp:*',
'../chrome/chrome.gyp:*',
'../media/media.gyp:*',
'../net/net.gyp:*',
'../sdch/sdch.gyp:*',
'../skia/skia.gyp:*',
'../testing/gtest.gyp:*',
'../third_party/bzip2/bzip2.gyp:*',
'../third_party/icu38/icu38.gyp:*',
'../third_party/libevent/libevent.gyp:*',
'../third_party/libjpeg/libjpeg.gyp:*',
'../third_party/libpng/libpng.gyp:*',
'../third_party/libxml/libxml.gyp:*',
'../third_party/libxslt/libxslt.gyp:*',
'../third_party/modp_b64/modp_b64.gyp:*',
'../third_party/npapi/npapi.gyp:*',
'../third_party/sqlite/sqlite.gyp:*',
'../third_party/zlib/zlib.gyp:*',
'../webkit/tools/test_shell/test_shell.gyp:*',
'../webkit/webkit.gyp:*',
'temp_gyp/googleurl.gyp:*',
'temp_gyp/v8.gyp:*',
],
},
],
}

211
build/common.gypi Normal file

@ -0,0 +1,211 @@
# 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.
{
'variables': {
'chromium_code%': 0,
},
'target_defaults': {
# TODO(bradnelson): This should really be able to be either:
# CHROMIUM_BUILD or GOOGLE_CHROME_BUILD
'defines': ['CHROMIUM_BUILD'],
'default_configuration': 'Debug',
'configurations': {
'Debug': {
'conditions': [
[ 'OS=="mac"', {
'xcode_settings': {
'COPY_PHASE_STRIP': 'NO',
'GCC_OPTIMIZATION_LEVEL': '0',
}
}],
[ 'OS=="win"', {
'configuration_platform': 'Win32',
'msvs_configuration_attributes': {
'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
'CharacterSet': '1',
},
'msvs_settings': {
'VCCLCompilerTool': {
'Optimization': '0',
'PreprocessorDefinitions': ['_DEBUG'],
'BasicRuntimeChecks': '3',
'RuntimeLibrary': '1',
},
'VCLinkerTool': {
'LinkIncremental': '1',
},
'VCResourceCompilerTool': {
'PreprocessorDefinitions': ['_DEBUG'],
},
},
}],
],
},
'Release': {
'defines': [
'NDEBUG',
],
'conditions': [
[ 'OS=="mac"', {
'xcode_settings': {
'DEAD_CODE_STRIPPING': 'YES',
}
}],
[ 'OS=="win"', {
'configuration_platform': 'Win32',
'msvs_props': ['release.vsprops'],
}],
],
},
},
},
'conditions': [
['OS=="mac"', {
'target_defaults': {
'xcode_settings': {
'ALWAYS_SEARCH_USER_PATHS': 'NO',
'GCC_C_LANGUAGE_STANDARD': 'c99',
'GCC_CW_ASM_SYNTAX': 'NO',
'GCC_DYNAMIC_NO_PIC': 'YES',
'GCC_ENABLE_PASCAL_STRINGS': 'NO',
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
'GCC_PRECOMPILE_PREFIX_HEADER': 'YES',
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES',
'GCC_VERSION': '4.2',
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.5',
'PREBINDING': 'NO',
'SDKROOT': 'macosx10.5',
'USE_HEADERMAP': 'NO',
'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'],
},
'target_conditions': [
['_type=="shared_library"', {
'xcode_settings': {'GCC_DYNAMIC_NO_PIC': 'NO'},
}],
['_type!="static_library"', {
'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
}],
['_type=="application" or _type=="executable"', {
'postbuilds': [
{
'variables': {
# Define strip_from_xcode in a variable ending in _path so
# that gyp understands it's a path and performs proper
# relativization during dict merging.
'strip_from_xcode_path': 'mac/strip_from_xcode',
},
'postbuild_name': 'Strip If Needed',
'action': ['<(strip_from_xcode_path)'],
},
],
}],
],
},
}],
['OS=="win"', {
'target_defaults': {
'defines': [
'_WIN32_WINNT=0x0600',
'WINVER=0x0600',
'WIN32',
'_WINDOWS',
'_HAS_EXCEPTIONS=0',
'NOMINMAX',
'_CRT_RAND_S',
'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS',
'WIN32_LEAN_AND_MEAN',
'_SECURE_ATL',
'_HAS_TR1=0',
],
'include_dirs': [
'<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Include',
'$(VSInstallDir)/VC/atlmfc/include',
],
'msvs_cygwin_dirs': ['../third_party/cygwin'],
'msvs_disabled_warnings': [4503, 4819],
'msvs_settings': {
'VCCLCompilerTool': {
'MinimalRebuild': 'false',
'ExceptionHandling': '0',
'BufferSecurityCheck': 'true',
'EnableFunctionLevelLinking': 'true',
'RuntimeTypeInfo': 'false',
'WarningLevel': '3',
'WarnAsError': 'true',
'DebugInformationFormat': '3',
},
'VCLibrarianTool': {
'AdditionalOptions': '/ignore:4221',
'OutputFile': '$(OutDir)\\lib\\$(ProjectName).lib',
'AdditionalLibraryDirectories':
'<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Lib',
},
'VCLinkerTool': {
'AdditionalOptions':
'/safeseh /dynamicbase /ignore:4199 /ignore:4221 /nxcompat',
'AdditionalDependencies': [
'wininet.lib',
'version.lib',
'msimg32.lib',
'ws2_32.lib',
'usp10.lib',
'psapi.lib',
],
'AdditionalLibraryDirectories':
'<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Lib',
'DelayLoadDLLs': 'dwmapi.dll,uxtheme.dll',
'GenerateDebugInformation': 'true',
'MapFileName': '$(OutDir)\\$(TargetName).map',
'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
'TargetMachine': '1',
'FixedBaseAddress': '1',
},
'VCMIDLTool': {
'GenerateStublessProxies': 'true',
'TypeLibraryName': '$(InputName).tlb',
'OutputDirectory': '$(IntDir)',
'HeaderFileName': '$(InputName).h',
'DLLDataFileName': 'dlldata.c',
'InterfaceIdentifierFileName': '$(InputName)_i.c',
'ProxyFileName': '$(InputName)_p.c',
},
'VCResourceCompilerTool': {
'Culture' : '1033',
'AdditionalIncludeDirectories': '<(DEPTH)',
},
},
},
}],
['chromium_code==0', {
# This section must follow the other conditon sections above because
# external_code.gypi expects to be merged into those settings.
'includes': [
'external_code.gypi',
],
}],
],
'xcode_settings': {
# The Xcode generator will look for an xcode_settings section at the root
# of each dict and use it to apply settings on a file-wide basis. Most
# settings should not be here, they should be in target-specific
# xcode_settings sections, or better yet, should use non-Xcode-specific
# settings in target dicts. SYMROOT is a special case, because many other
# Xcode variables depend on it, including variables such as
# PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
# like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
# files to appear (when present) in the UI as actual files and not red
# red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
# and therefore SYMROOT, needs to be set at the project level.
#
# xcodebuild_gyp is a temporary name to avoid colliding with the xcodebuild
# directory used by the non-gyp Xcode build system. When the gyp-based
# Xcode build system replaces the older system, this should be changed to
# simply "xcodebuild" or some other suitable name.
'SYMROOT': '<(DEPTH)/xcodebuild_gyp',
},
}

33
build/external_code.gypi Normal file

@ -0,0 +1,33 @@
# 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.
{
'conditions': [
[ 'OS=="win"', {
'target_defaults': {
'defines': [
'_CRT_SECURE_NO_DEPRECATE',
'_CRT_NONSTDC_NO_WARNINGS',
'_CRT_NONSTDC_NO_DEPRECATE',
'_SCL_SECURE_NO_DEPRECATE',
],
'msvs_disabled_warnings': [4800],
'msvs_settings': {
'VCCLCompilerTool': {
'WarnAsError': 'false',
'Detect64BitPortabilityProblems': 'false',
},
},
},
}],
[ 'OS=="mac"', {
'target_defaults': {
'xcode_settings': {
'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO',
'WARNING_CFLAGS!': ['-Wall'],
},
},
}],
],
}

@ -0,0 +1,3 @@
This directory will be removed once the files in it are committed upstream and
Chromium imports an upstream revision with these files. Contact mark for
details.

@ -0,0 +1,59 @@
# 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.
# TODO(mark): Upstream this file to googleurl.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../common.gypi',
],
'targets': [
{
'target_name': 'googleurl',
'type': 'static_library',
'sources': [
'../../googleurl/src/gurl.cc',
'../../googleurl/src/gurl.h',
'../../googleurl/src/url_canon.h',
'../../googleurl/src/url_canon_etc.cc',
'../../googleurl/src/url_canon_fileurl.cc',
'../../googleurl/src/url_canon_host.cc',
'../../googleurl/src/url_canon_icu.cc',
'../../googleurl/src/url_canon_icu.h',
'../../googleurl/src/url_canon_internal.cc',
'../../googleurl/src/url_canon_internal.h',
'../../googleurl/src/url_canon_internal_file.h',
'../../googleurl/src/url_canon_ip.cc',
'../../googleurl/src/url_canon_ip.h',
'../../googleurl/src/url_canon_mailtourl.cc',
'../../googleurl/src/url_canon_path.cc',
'../../googleurl/src/url_canon_pathurl.cc',
'../../googleurl/src/url_canon_query.cc',
'../../googleurl/src/url_canon_relative.cc',
'../../googleurl/src/url_canon_stdstring.h',
'../../googleurl/src/url_canon_stdurl.cc',
'../../googleurl/src/url_file.h',
'../../googleurl/src/url_parse.cc',
'../../googleurl/src/url_parse.h',
'../../googleurl/src/url_parse_file.cc',
'../../googleurl/src/url_parse_internal.h',
'../../googleurl/src/url_util.cc',
'../../googleurl/src/url_util.h',
],
'dependencies': [
'../../base/base.gyp:base',
'../../third_party/icu38/icu38.gyp:icudata',
'../../third_party/icu38/icu38.gyp:icui18n',
'../../third_party/icu38/icu38.gyp:icuuc',
],
'direct_dependent_settings': {
'include_dirs': [
'../..',
],
},
},
],
}

553
build/temp_gyp/v8.gyp Normal file

@ -0,0 +1,553 @@
# 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.
# TODO(mark): Upstream this file to v8.
{
'variables': {
'chromium_code': 1,
'base_source_files': [
'../../v8/src/third_party/dtoa/dtoa.c',
'../../v8/src/third_party/jscre/ASCIICType.h',
'../../v8/src/third_party/jscre/config.h',
'../../v8/src/third_party/jscre/pcre.h',
'../../v8/src/third_party/jscre/pcre_chartables.c',
'../../v8/src/third_party/jscre/pcre_compile.cpp',
'../../v8/src/third_party/jscre/pcre_exec.cpp',
'../../v8/src/third_party/jscre/pcre_internal.h',
'../../v8/src/third_party/jscre/pcre_tables.cpp',
'../../v8/src/third_party/jscre/pcre_ucp_searchfuncs.cpp',
'../../v8/src/third_party/jscre/pcre_xclass.cpp',
'../../v8/src/third_party/jscre/ucpinternal.h',
'../../v8/src/third_party/jscre/ucptable.cpp',
'../../v8/src/accessors.cc',
'../../v8/src/accessors.h',
'../../v8/src/allocation.cc',
'../../v8/src/allocation.h',
'../../v8/src/api.cc',
'../../v8/src/api.h',
'../../v8/src/apiutils.h',
'../../v8/src/arguments.h',
'../../v8/src/assembler-arm-inl.h',
'../../v8/src/assembler-arm.cc',
'../../v8/src/assembler-arm.h',
'../../v8/src/assembler-ia32-inl.h',
'../../v8/src/assembler-ia32.cc',
'../../v8/src/assembler-ia32.h',
'../../v8/src/assembler.cc',
'../../v8/src/assembler.h',
'../../v8/src/ast.cc',
'../../v8/src/ast.h',
'../../v8/src/bootstrapper.cc',
'../../v8/src/bootstrapper.h',
'../../v8/src/builtins-arm.cc',
'../../v8/src/builtins-ia32.cc',
'../../v8/src/builtins.cc',
'../../v8/src/builtins.h',
'../../v8/src/bytecodes-irregexp.h',
'../../v8/src/char-predicates-inl.h',
'../../v8/src/char-predicates.h',
'../../v8/src/checks.cc',
'../../v8/src/checks.h',
'../../v8/src/code-stubs.cc',
'../../v8/src/code-stubs.h',
'../../v8/src/code.h',
'../../v8/src/codegen-arm.cc',
'../../v8/src/codegen-arm.h',
'../../v8/src/codegen-ia32.cc',
'../../v8/src/codegen-ia32.h',
'../../v8/src/codegen-inl.h',
'../../v8/src/codegen.cc',
'../../v8/src/codegen.h',
'../../v8/src/compilation-cache.cc',
'../../v8/src/compilation-cache.h',
'../../v8/src/compiler.cc',
'../../v8/src/compiler.h',
'../../v8/src/constants-arm.h',
'../../v8/src/contexts.cc',
'../../v8/src/contexts.h',
'../../v8/src/conversions-inl.h',
'../../v8/src/conversions.cc',
'../../v8/src/conversions.h',
'../../v8/src/counters.cc',
'../../v8/src/counters.h',
'../../v8/src/cpu-arm.cc',
'../../v8/src/cpu-ia32.cc',
'../../v8/src/cpu.h',
'../../v8/src/dateparser.cc',
'../../v8/src/dateparser.h',
'../../v8/src/debug-arm.cc',
'../../v8/src/debug-ia32.cc',
'../../v8/src/debug.cc',
'../../v8/src/debug.h',
'../../v8/src/disasm-arm.cc',
'../../v8/src/disasm-ia32.cc',
'../../v8/src/disasm.h',
'../../v8/src/disassembler.cc',
'../../v8/src/disassembler.h',
'../../v8/src/dtoa-config.c',
'../../v8/src/execution.cc',
'../../v8/src/execution.h',
'../../v8/src/factory.cc',
'../../v8/src/factory.h',
'../../v8/src/flag-definitions.h',
'../../v8/src/flags.cc',
'../../v8/src/flags.h',
'../../v8/src/frames-arm.cc',
'../../v8/src/frames-arm.h',
'../../v8/src/frames-ia32.cc',
'../../v8/src/frames-ia32.h',
'../../v8/src/frames-inl.h',
'../../v8/src/frames.cc',
'../../v8/src/frames.h',
'../../v8/src/global-handles.cc',
'../../v8/src/global-handles.h',
'../../v8/src/globals.h',
'../../v8/src/handles-inl.h',
'../../v8/src/handles.cc',
'../../v8/src/handles.h',
'../../v8/src/hashmap.cc',
'../../v8/src/hashmap.h',
'../../v8/src/heap-inl.h',
'../../v8/src/heap.cc',
'../../v8/src/heap.h',
'../../v8/src/ic-arm.cc',
'../../v8/src/ic-ia32.cc',
'../../v8/src/ic-inl.h',
'../../v8/src/ic.cc',
'../../v8/src/ic.h',
'../../v8/src/interpreter-irregexp.cc',
'../../v8/src/interpreter-irregexp.h',
'../../v8/src/jsregexp-inl.h',
'../../v8/src/jsregexp.cc',
'../../v8/src/jsregexp.h',
'../../v8/src/list-inl.h',
'../../v8/src/list.h',
'../../v8/src/log.cc',
'../../v8/src/log.h',
'../../v8/src/macro-assembler-arm.cc',
'../../v8/src/macro-assembler-arm.h',
'../../v8/src/macro-assembler-ia32.cc',
'../../v8/src/macro-assembler-ia32.h',
'../../v8/src/macro-assembler.h',
'../../v8/src/mark-compact.cc',
'../../v8/src/mark-compact.h',
'../../v8/src/memory.h',
'../../v8/src/messages.cc',
'../../v8/src/messages.h',
'../../v8/src/natives.h',
'../../v8/src/objects-debug.cc',
'../../v8/src/objects-inl.h',
'../../v8/src/objects.cc',
'../../v8/src/objects.h',
'../../v8/src/parser.cc',
'../../v8/src/parser.h',
'../../v8/src/platform-freebsd.cc',
'../../v8/src/platform-linux.cc',
'../../v8/src/platform-macos.cc',
'../../v8/src/platform-nullos.cc',
'../../v8/src/platform-win32.cc',
'../../v8/src/platform.h',
'../../v8/src/prettyprinter.cc',
'../../v8/src/prettyprinter.h',
'../../v8/src/property.cc',
'../../v8/src/property.h',
'../../v8/src/regexp-macro-assembler-arm.cc',
'../../v8/src/regexp-macro-assembler-arm.h',
'../../v8/src/regexp-macro-assembler-ia32.cc',
'../../v8/src/regexp-macro-assembler-ia32.h',
'../../v8/src/regexp-macro-assembler-irregexp-inl.h',
'../../v8/src/regexp-macro-assembler-irregexp.cc',
'../../v8/src/regexp-macro-assembler-irregexp.h',
'../../v8/src/regexp-macro-assembler-tracer.cc',
'../../v8/src/regexp-macro-assembler-tracer.h',
'../../v8/src/regexp-macro-assembler.cc',
'../../v8/src/regexp-macro-assembler.h',
'../../v8/src/regexp-stack.cc',
'../../v8/src/regexp-stack.h',
'../../v8/src/rewriter.cc',
'../../v8/src/rewriter.h',
'../../v8/src/runtime.cc',
'../../v8/src/runtime.h',
'../../v8/src/scanner.cc',
'../../v8/src/scanner.h',
'../../v8/src/scopeinfo.cc',
'../../v8/src/scopeinfo.h',
'../../v8/src/scopes.cc',
'../../v8/src/scopes.h',
'../../v8/src/serialize.cc',
'../../v8/src/serialize.h',
'../../v8/src/shell.h',
'../../v8/src/simulator-arm.cc',
'../../v8/src/smart-pointer.h',
'../../v8/src/snapshot-common.cc',
'../../v8/src/snapshot.h',
'../../v8/src/spaces-inl.h',
'../../v8/src/spaces.cc',
'../../v8/src/spaces.h',
'../../v8/src/string-stream.cc',
'../../v8/src/string-stream.h',
'../../v8/src/stub-cache-arm.cc',
'../../v8/src/stub-cache-ia32.cc',
'../../v8/src/stub-cache.cc',
'../../v8/src/stub-cache.h',
'../../v8/src/token.cc',
'../../v8/src/token.h',
'../../v8/src/top.cc',
'../../v8/src/top.h',
'../../v8/src/unicode-inl.h',
'../../v8/src/unicode.cc',
'../../v8/src/unicode.h',
'../../v8/src/usage-analyzer.cc',
'../../v8/src/usage-analyzer.h',
'../../v8/src/utils.cc',
'../../v8/src/utils.h',
'../../v8/src/v8-counters.cc',
'../../v8/src/v8-counters.h',
'../../v8/src/v8.cc',
'../../v8/src/v8.h',
'../../v8/src/v8threads.cc',
'../../v8/src/v8threads.h',
'../../v8/src/variables.cc',
'../../v8/src/variables.h',
'../../v8/src/zone-inl.h',
'../../v8/src/zone.cc',
'../../v8/src/zone.h',
],
'not_base_source_files': [
# These files are #included by others and are not meant to be compiled
# directly.
'../../v8/src/third_party/dtoa/dtoa.c',
'../../v8/src/third_party/jscre/pcre_chartables.c',
'../../v8/src/third_party/jscre/ucptable.cpp',
],
'd8_source_files': [
'../../v8/src/d8-debug.cc',
'../../v8/src/d8-readline.cc',
'../../v8/src/d8.cc',
],
},
'includes': [
'../common.gypi',
],
'target_defaults': {
'configurations': {
'Debug': {
'defines': [
'DEBUG',
'ENABLE_DISASSEMBLER',
'ENABLE_LOGGING_AND_PROFILING',
],
},
},
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'NO',
'GCC_ENABLE_CPP_RTTI': 'NO',
},
},
'targets': [
# Targets that apply to any architecture.
{
'target_name': 'js2c',
'type': 'none',
'variables': {
'library_files': [
'../../v8/src/runtime.js',
'../../v8/src/v8natives.js',
'../../v8/src/array.js',
'../../v8/src/string.js',
'../../v8/src/uri.js',
'../../v8/src/math.js',
'../../v8/src/messages.js',
'../../v8/src/apinatives.js',
'../../v8/src/debug-delay.js',
'../../v8/src/mirror-delay.js',
'../../v8/src/date-delay.js',
'../../v8/src/regexp-delay.js',
'../../v8/src/macros.py',
],
},
'actions': [
{
'action_name': 'js2c',
'inputs': [
'../../v8/tools/js2c.py',
'<@(library_files)',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/v8/libraries.cc',
'<(SHARED_INTERMEDIATE_DIR)/v8/libraries-empty.cc',
],
'action': ['python', '../../v8/tools/js2c.py', '<@(_outputs)', 'CORE', '<@(library_files)'],
# TODO(sgk): figure out how to get gyp and SCons to play nice here.
'conditions': [
['OS=="linux"', {'action=': ['python', '${SOURCES[0]}', '${TARGETS}', 'CORE', '${SOURCES[1:]}'],}],
],
},
],
},
{
'target_name': 'd8_js2c',
'type': 'none',
'variables': {
'library_files': [
'../../v8/src/d8.js',
'../../v8/src/macros.py',
],
},
'actions': [
{
'action_name': 'js2c',
'inputs': [
'../../v8/tools/js2c.py',
'<@(library_files)',
],
'extra_inputs': [
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/v8/d8-js.cc',
'<(SHARED_INTERMEDIATE_DIR)/v8/d8-js-empty.cc',
],
'action': ['python', '../../v8/tools/js2c.py', '<@(_outputs)', 'D8', '<@(library_files)'],
# TODO(sgk): figure out how to get gyp and SCons to play nice here.
'conditions': [
['OS=="linux"', {'action=': ['python', '${SOURCES[0]}', '${TARGETS}', 'D8', '${SOURCES[1:]}'],}],
],
},
],
},
# Targets to build v8 for the native architecture (ia32).
{
'target_name': 'v8_base',
'type': 'static_library',
'include_dirs': [
'../../v8/src',
],
'sources': [
'<@(base_source_files)',
],
'sources!': [
'<@(not_base_source_files)',
],
'sources/': [
['exclude', '-arm\\.cc$'],
['exclude', 'src/platform-.*\\.cc$' ],
],
'conditions': [
['OS=="linux"', {'sources/': [['include', 'src/platform-linux\\.cc$']]}],
['OS=="mac"', {'sources/': [['include', 'src/platform-macos\\.cc$']]}],
['OS=="win"', {
'sources/': [['include', 'src/platform-win32\\.cc$']],
# 4355, 4800 came from common.vsprops
# 4018, 4244 were a per file config on dtoa-config.c
# TODO: It's probably possible and desirable to stop disabling the
# dtoa-specific warnings by modifying dtoa as was done in Chromium
# r9255. Refer to that revision for details.
'msvs_disabled_warnings': [4355, 4800, 4018, 4244],
'all_dependent_settings': {
'msvs_system_libraries': [ 'winmm.lib' ],
},
}],
],
},
{
'target_name': 'v8_nosnapshot',
'type': 'static_library',
'dependencies': [
'js2c',
'v8_base',
],
'include_dirs': [
'../../v8/src',
],
'sources': [
'<(SHARED_INTERMEDIATE_DIR)/v8/libraries.cc',
'../../v8/src/snapshot-empty.cc',
],
},
{
'target_name': 'mksnapshot',
'type': 'executable',
'dependencies': [
'v8_nosnapshot',
],
'sources': [
'../../v8/src/mksnapshot.cc',
],
},
{
'target_name': 'v8',
'type': 'static_library',
'dependencies': [
'js2c',
'mksnapshot',
'v8_base',
],
'actions': [
{
'action_name': 'mksnapshot',
'inputs': [
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
],
'outputs': [
'<(INTERMEDIATE_DIR)/snapshot.cc',
],
'action': ['<@(_inputs)', '<@(_outputs)'],
},
],
'include_dirs': [
'../../v8/src',
],
'sources': [
'<(SHARED_INTERMEDIATE_DIR)/v8/libraries-empty.cc',
'<(INTERMEDIATE_DIR)/snapshot.cc',
],
'direct_dependent_settings': {
'include_dirs': [
'../../v8/include',
],
},
},
{
'target_name': 'v8_shell',
'type': 'executable',
'dependencies': [
'v8',
],
'sources': [
'../../v8/samples/shell.cc',
],
'conditions': [
[ 'OS=="win"', {
# This could be gotten by not setting chromium_code, if that's OK.
'defines': ['_CRT_SECURE_NO_WARNINGS'],
}],
],
},
{
'target_name': 'd8',
'type': 'executable',
'dependencies': [
'd8_js2c',
'v8',
],
'include_dirs': [
'../../v8/src',
],
'sources': [
'<(SHARED_INTERMEDIATE_DIR)/v8/d8-js.cc',
'<@(d8_source_files)',
],
'conditions': [
[ 'OS=="linux"', {
'link_settings': { 'libraries': [ '-lreadline' ] },
}],
[ 'OS=="mac"', {
'link_settings': { 'libraries': [
'$(SDKROOT)/usr/lib/libreadline.dylib'
]},
}],
[ 'OS=="win"', {
'sources!': [ '../../v8/src/d8-readline.cc' ],
}],
],
},
# ARM targets, to test ARM code generation. These use an ARM simulator
# (src/simulator-arm.cc). The ARM targets are not snapshot-enabled.
{
'target_name': 'v8_arm',
'type': 'static_library',
'dependencies': [
'js2c',
],
'defines': [
'ARM',
],
'include_dirs': [
'../../v8/src',
],
'sources': [
'<@(base_source_files)',
'<(SHARED_INTERMEDIATE_DIR)/v8/libraries.cc',
'../../v8/src/snapshot-empty.cc',
],
'sources!': [
'<@(not_base_source_files)',
],
'sources/': [
['exclude', '-ia32\\.cc$'],
['exclude', 'src/platform-.*\\.cc$' ],
],
'direct_dependent_settings': {
'include_dirs': [
'../../v8/include',
],
},
'conditions': [
['OS=="linux"', {'sources/': [['include', 'src/platform-linux\\.cc$']]}],
['OS=="mac"', {'sources/': [['include', 'src/platform-macos\\.cc$']]}],
['OS=="win"', {
'sources/': [['include', 'src/platform-win32\\.cc$']],
# 4355, 4800 came from common.vsprops
# 4018, 4244 were a per file config on dtoa-config.c
# TODO: It's probably possible and desirable to stop disabling the
# dtoa-specific warnings by modifying dtoa as was done in Chromium
# r9255. Refer to that revision for details.
'msvs_disabled_warnings': [4355, 4800, 4018, 4244],
}],
],
},
{
'target_name': 'v8_shell_arm',
'type': 'executable',
'dependencies': [
'v8_arm',
],
'defines': [
'ARM',
],
'sources': [
'../../v8/samples/shell.cc',
],
'conditions': [
[ 'OS=="win"', {
# This could be gotten by not setting chromium_code, if that's OK.
'defines': ['_CRT_SECURE_NO_WARNINGS'],
}],
],
},
{
'target_name': 'd8_arm',
'type': 'executable',
'dependencies': [
'd8_js2c',
'v8_arm',
],
'defines': [
'ARM',
],
'include_dirs': [
'../../v8/src',
],
'sources': [
'<(SHARED_INTERMEDIATE_DIR)/v8/d8-js.cc',
'<@(d8_source_files)',
],
'conditions': [
[ 'OS=="linux"', {
'link_settings': { 'libraries': [ '-lreadline' ] },
}],
[ 'OS=="mac"', {
'link_settings': { 'libraries': [
'$(SDKROOT)/usr/lib/libreadline.dylib'
]},
}],
[ 'OS=="win"', {
'sources!': [ '../../v8/src/d8-readline.cc' ],
}],
],
},
],
}

1664
chrome/chrome.gyp Normal file

File diff suppressed because it is too large Load Diff

@ -0,0 +1,26 @@
# 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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../../../build/common.gypi',
],
'targets': [
{
'target_name': 'security_tests',
'type': 'shared_library',
'sources': [
'../../../sandbox/tests/validation_tests/commands.cc',
'../../../sandbox/tests/validation_tests/commands.h',
'../injection_test_dll.h',
'ipc_security_tests.cc',
'ipc_security_tests.h',
'security_tests.cc',
],
},
],
}

90
media/media.gyp Normal file

@ -0,0 +1,90 @@
# 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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../build/common.gypi',
],
'target_defaults': {
'conditions': [
['OS!="linux"', {'sources/': [['exclude', '/linux/']]}],
['OS!="mac"', {'sources/': [['exclude', '/mac/']]}],
['OS!="win"', {'sources/': [['exclude', '/win/']]}],
],
},
'targets': [
{
'target_name': 'media',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
],
'include_dirs': [
'..',
],
'sources': [
'audio/linux/audio_manager_linux.cc',
'audio/mac/audio_manager_mac.cc',
'audio/win/audio_manager_win.h',
'audio/win/audio_output_win.cc',
'audio/win/simple_sources_win.cc',
'audio/win/waveout_output_win.cc',
'audio/win/waveout_output_win.h',
'audio/audio_output.h',
'audio/simple_sources.h',
'base/buffers.h',
'base/data_buffer.cc',
'base/data_buffer.h',
'base/factory.h',
'base/filter_host.h',
'base/filter_host_impl.cc',
'base/filter_host_impl.h',
'base/filters.h',
'base/media_format.cc',
'base/media_format.h',
'base/mock_filter_host.h',
'base/mock_media_filters.h',
'base/mock_pipeline.h',
'base/pipeline.h',
'base/pipeline_impl.cc',
'base/pipeline_impl.h',
'base/synchronizer.cc',
'base/synchronizer.h',
'filters/audio_renderer_base.cc',
'filters/audio_renderer_base.h',
'filters/audio_renderer_impl.cc',
'filters/audio_renderer_impl.h',
'filters/file_data_source.cc',
'filters/file_data_source.h',
'filters/null_audio_renderer.cc',
'filters/null_audio_renderer.h',
'player/player.cc',
],
'direct_dependent_settings': {
'include_dirs': [
'..',
],
},
},
{
'target_name': 'media_unittests',
'type': 'executable',
'dependencies': [
'media',
'../base/base.gyp:base',
'../testing/gtest.gyp:gtest',
],
'sources': [
'audio/win/audio_output_win_unittest.cc',
'base/data_buffer_unittest.cc',
'base/pipeline_impl_unittest.cc',
'base/run_all_unittests.cc',
'filters/file_data_source_unittest.cc',
],
},
],
}

597
net/net.gyp Normal file

@ -0,0 +1,597 @@
# 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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../build/common.gypi',
],
'targets': [
{
'target_name': 'net',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
'../build/temp_gyp/googleurl.gyp:googleurl',
'../sdch/sdch.gyp:sdch',
'../third_party/bzip2/bzip2.gyp:bzip2',
'../third_party/icu38/icu38.gyp:icui18n',
'../third_party/icu38/icu38.gyp:icuuc',
'../third_party/modp_b64/modp_b64.gyp:modp_b64',
'../third_party/zlib/zlib.gyp:zlib',
],
'sources': [
'base/address_list.cc',
'base/address_list.h',
'base/auth.h',
'base/base64.cc',
'base/base64.h',
'base/bzip2_filter.cc',
'base/bzip2_filter.h',
'base/cert_status_flags.cc',
'base/cert_status_flags.h',
'base/cert_verifier.cc',
'base/cert_verifier.h',
'base/cert_verify_result.h',
'base/client_socket.cc',
'base/client_socket.h',
'base/client_socket_factory.cc',
'base/client_socket_factory.h',
'base/client_socket_handle.cc',
'base/client_socket_handle.h',
'base/client_socket_pool.cc',
'base/client_socket_pool.h',
'base/completion_callback.h',
'base/connection_type_histograms.cc',
'base/connection_type_histograms.h',
'base/cookie_monster.cc',
'base/cookie_monster.h',
'base/cookie_policy.cc',
'base/cookie_policy.h',
'base/data_url.cc',
'base/data_url.h',
'base/directory_lister.cc',
'base/directory_lister.h',
'base/dns_resolution_observer.cc',
'base/dns_resolution_observer.h',
'base/effective_tld_names.cc',
'base/effective_tld_names.dat',
'base/escape.cc',
'base/escape.h',
'base/ev_root_ca_metadata.cc',
'base/ev_root_ca_metadata.h',
'base/file_stream.h',
'base/file_stream_posix.cc',
'base/file_stream_win.cc',
'base/filter.cc',
'base/filter.h',
'base/gzip_filter.cc',
'base/gzip_filter.h',
'base/gzip_header.cc',
'base/gzip_header.h',
'base/host_resolver.cc',
'base/host_resolver.h',
'base/io_buffer.cc',
'base/io_buffer.h',
'base/listen_socket.cc',
'base/listen_socket.h',
'base/load_flags.h',
'base/mime_sniffer.cc',
'base/mime_sniffer.h',
'base/mime_util.cc',
'base/mime_util.h',
'base/net_error_list.h',
'base/net_errors.cc',
'base/net_errors.h',
'base/net_module.cc',
'base/net_module.h',
'base/net_resources.h',
'base/net_util.cc',
'base/net_util.h',
'base/net_util_posix.cc',
'base/net_util_win.cc',
'base/nss_memio.c',
'base/platform_mime_util.h',
# TODO(tc): gnome-vfs? xdgmime? /etc/mime.types?
'base/platform_mime_util_linux.cc',
'base/platform_mime_util_mac.cc',
'base/platform_mime_util_win.cc',
'base/registry_controlled_domain.cc',
'base/registry_controlled_domain.h',
'base/scoped_cert_chain_context.h',
'base/sdch_filter.cc',
'base/sdch_filter.h',
'base/sdch_manager.cc',
'base/sdch_manager.h',
'base/socket.h',
'base/ssl_client_socket.h',
'base/ssl_client_socket_mac.cc',
'base/ssl_client_socket_nss.cc',
'base/ssl_client_socket_win.cc',
'base/ssl_client_socket_win.h',
'base/ssl_config_service.cc',
'base/ssl_config_service.h',
'base/ssl_info.h',
'base/ssl_test_util.cc',
'base/tcp_client_socket.h',
'base/tcp_client_socket_libevent.cc',
'base/tcp_client_socket_win.cc',
'base/telnet_server.cc',
'base/telnet_server.h',
'base/upload_data.cc',
'base/upload_data.h',
'base/upload_data_stream.cc',
'base/upload_data_stream.h',
'base/wininet_util.cc',
'base/wininet_util.h',
'base/winsock_init.cc',
'base/winsock_init.h',
'base/x509_certificate.cc',
'base/x509_certificate.h',
'base/x509_certificate_mac.cc',
'base/x509_certificate_nss.cc',
'base/x509_certificate_win.cc',
'build/precompiled_net.cc',
'build/precompiled_net.h',
'disk_cache/addr.cc',
'disk_cache/addr.h',
'disk_cache/backend_impl.cc',
'disk_cache/backend_impl.h',
'disk_cache/block_files.cc',
'disk_cache/block_files.h',
'disk_cache/cache_util.h',
'disk_cache/cache_util_posix.cc',
'disk_cache/cache_util_win.cc',
'disk_cache/disk_cache.h',
'disk_cache/disk_format.h',
'disk_cache/entry_impl.cc',
'disk_cache/entry_impl.h',
'disk_cache/errors.h',
'disk_cache/eviction.cc',
'disk_cache/eviction.h',
'disk_cache/file.h',
'disk_cache/file_block.h',
'disk_cache/file_lock.cc',
'disk_cache/file_lock.h',
'disk_cache/file_posix.cc',
'disk_cache/file_win.cc',
'disk_cache/hash.cc',
'disk_cache/hash.h',
'disk_cache/mapped_file.h',
'disk_cache/mapped_file_posix.cc',
'disk_cache/mapped_file_win.cc',
'disk_cache/mem_backend_impl.cc',
'disk_cache/mem_backend_impl.h',
'disk_cache/mem_entry_impl.cc',
'disk_cache/mem_entry_impl.h',
'disk_cache/mem_rankings.cc',
'disk_cache/mem_rankings.h',
'disk_cache/rankings.cc',
'disk_cache/rankings.h',
'disk_cache/stats.cc',
'disk_cache/stats.h',
'disk_cache/stats_histogram.cc',
'disk_cache/stats_histogram.h',
'disk_cache/storage_block-inl.h',
'disk_cache/storage_block.h',
'disk_cache/trace.cc',
'disk_cache/trace.h',
'ftp/ftp_auth_cache.cc',
'ftp/ftp_auth_cache.h',
'ftp/ftp_network_layer.cc',
'ftp/ftp_network_layer.h',
'ftp/ftp_network_session.h',
'ftp/ftp_network_transaction.cc',
'ftp/ftp_network_transaction.h',
'ftp/ftp_request_info.h',
'ftp/ftp_response_info.h',
'ftp/ftp_transaction.h',
'ftp/ftp_transaction_factory.h',
'http/http_atom_list.h',
'http/http_auth.cc',
'http/http_auth.h',
'http/http_auth_cache.cc',
'http/http_auth_cache.h',
'http/http_auth_handler.h',
'http/http_auth_handler.cc',
'http/http_auth_handler_basic.cc',
'http/http_auth_handler_basic.h',
'http/http_auth_handler_digest.cc',
'http/http_auth_handler_digest.h',
'http/http_cache.cc',
'http/http_cache.h',
'http/http_chunked_decoder.cc',
'http/http_chunked_decoder.h',
'http/http_network_layer.cc',
'http/http_network_layer.h',
'http/http_network_session.h',
'http/http_network_transaction.cc',
'http/http_network_transaction.h',
'http/http_request_info.h',
'http/http_response_headers.cc',
'http/http_response_headers.h',
'http/http_response_info.cc',
'http/http_response_info.h',
'http/http_transaction.h',
'http/http_transaction_factory.h',
'http/http_util.cc',
'http/http_util.h',
'http/http_vary_data.cc',
'http/http_vary_data.h',
'proxy/proxy_config_service_fixed.h',
'proxy/proxy_config_service_win.cc',
'proxy/proxy_config_service_win.h',
'proxy/proxy_resolver_mac.cc',
'proxy/proxy_resolver_winhttp.cc',
'proxy/proxy_resolver_winhttp.h',
'proxy/proxy_script_fetcher.cc',
'proxy/proxy_script_fetcher.h',
'proxy/proxy_server.cc',
'proxy/proxy_server.h',
'proxy/proxy_service.cc',
'proxy/proxy_service.h',
'url_request/mime_sniffer_proxy.cc',
'url_request/mime_sniffer_proxy.h',
'url_request/url_request.cc',
'url_request/url_request.h',
'url_request/url_request_about_job.cc',
'url_request/url_request_about_job.h',
'url_request/url_request_context.h',
'url_request/url_request_error_job.cc',
'url_request/url_request_error_job.h',
'url_request/url_request_file_dir_job.cc',
'url_request/url_request_file_dir_job.h',
'url_request/url_request_file_job.cc',
'url_request/url_request_file_job.h',
'url_request/url_request_filter.cc',
'url_request/url_request_filter.h',
'url_request/url_request_ftp_job.cc',
'url_request/url_request_ftp_job.h',
'url_request/url_request_http_job.cc',
'url_request/url_request_http_job.h',
'url_request/url_request_inet_job.cc',
'url_request/url_request_inet_job.h',
'url_request/url_request_job.cc',
'url_request/url_request_job.h',
'url_request/url_request_job_manager.cc',
'url_request/url_request_job_manager.h',
'url_request/url_request_job_metrics.cc',
'url_request/url_request_job_metrics.h',
'url_request/url_request_job_tracker.cc',
'url_request/url_request_job_tracker.h',
'url_request/url_request_simple_job.cc',
'url_request/url_request_simple_job.h',
'url_request/url_request_status.h',
'url_request/url_request_test_job.cc',
'url_request/url_request_test_job.h',
'url_request/url_request_view_cache_job.cc',
'url_request/url_request_view_cache_job.h',
],
'sources!': [
'build/precompiled_net.h',
'build/precompiled_net.cc',
],
'export_dependent_settings': [
'../base/base.gyp:base',
],
'conditions': [
[ 'OS == "win"', {
'sources/': [ ['exclude', '_(mac|linux|posix)\\.cc$'] ],
'sources!': [
'base/tcp_client_socket_libevent.cc',
],
'dependencies': [
'net_resources',
'tld_cleanup',
],
'configurations': {
'Debug': {
'msvs_precompiled_header': 'build/precompiled_net.h',
'msvs_precompiled_source': 'build/precompiled_net.cc',
},
},
},
{ # else: OS != "win"
'sources!': [
'base/ssl_config_service.cc',
'base/wininet_util.cc',
'base/winsock_init.cc',
'proxy/proxy_resolver_winhttp.cc',
'url_request/url_request_ftp_job.cc',
'url_request/url_request_inet_job.cc',
],
},
],
[ 'OS == "linux"', {
'sources/': [ ['exclude', '_(mac|win)\\.cc$'] ],
'dependencies': [
'net_resources',
],
},
{ # else: OS != "linux"
'sources!': [
'base/nss_memio.c',
'base/ssl_client_socket_nss.cc',
'base/x509_certificate_nss.cc',
],
# Get U_STATIC_IMPLEMENTATION and -I directories on Linux.
'dependencies': [
'../third_party/icu38/icu38.gyp:icui18n',
'../third_party/icu38/icu38.gyp:icuuc',
],
},
],
[ 'OS == "mac"', {
'sources/': [ ['exclude', '_(linux|win)\\.cc$'] ],
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/Security.framework',
'$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
]
},
},
],
[ 'OS == "win"', {
# This used to live in build_convert_tld_data.rules
#'msvs_tool_files': ['build/convert_tld_data.rules'],
'rules': [
{
'rule_name': 'tld_convert',
'extension': 'dat',
'inputs': [ '<(RULE_INPUT_PATH)' ],
'outputs':
['<(INTERMEDIATE_DIR)/../<(RULE_INPUT_ROOT)_clean.dat'],
'action':
['<(PRODUCT_DIR)/tld_cleanup', '<@(_inputs)', '<@(_outputs)'],
},
],
},],
],
},
{
'target_name': 'net_unittests',
'type': 'executable',
'dependencies': [
'net',
'../base/base.gyp:base',
'../testing/gtest.gyp:gtest',
],
'sources': [
'base/base64_unittest.cc',
'base/bzip2_filter_unittest.cc',
'base/client_socket_pool_unittest.cc',
'base/cookie_monster_unittest.cc',
'base/cookie_policy_unittest.cc',
'base/data_url_unittest.cc',
'base/directory_lister_unittest.cc',
'base/escape_unittest.cc',
'base/file_stream_unittest.cc',
'base/filter_unittest.cc',
'base/gzip_filter_unittest.cc',
'base/host_resolver_unittest.cc',
'base/listen_socket_unittest.cc',
'base/listen_socket_unittest.h',
'base/mime_sniffer_unittest.cc',
'base/mime_util_unittest.cc',
'base/net_util_unittest.cc',
'base/registry_controlled_domain_unittest.cc',
'base/run_all_unittests.cc',
'base/sdch_filter_unittest.cc',
'base/ssl_client_socket_unittest.cc',
'base/ssl_config_service_unittest.cc',
'base/tcp_client_socket_unittest.cc',
'base/telnet_server_unittest.cc',
'base/test_completion_callback_unittest.cc',
'base/wininet_util_unittest.cc',
'base/x509_certificate_unittest.cc',
'disk_cache/addr_unittest.cc',
'disk_cache/backend_unittest.cc',
'disk_cache/block_files_unittest.cc',
'disk_cache/disk_cache_test_base.cc',
'disk_cache/disk_cache_test_base.h',
'disk_cache/disk_cache_test_util.cc',
'disk_cache/disk_cache_test_util.h',
'disk_cache/entry_unittest.cc',
'disk_cache/mapped_file_unittest.cc',
'disk_cache/storage_block_unittest.cc',
'ftp/ftp_auth_cache_unittest.cc',
'http/http_auth_cache_unittest.cc',
'http/http_auth_handler_basic_unittest.cc',
'http/http_auth_handler_digest_unittest.cc',
'http/http_auth_unittest.cc',
'http/http_cache_unittest.cc',
'http/http_chunked_decoder_unittest.cc',
'http/http_network_layer_unittest.cc',
'http/http_network_transaction_unittest.cc',
'http/http_response_headers_unittest.cc',
'http/http_transaction_unittest.cc',
'http/http_transaction_unittest.h',
'http/http_util_unittest.cc',
'http/http_vary_data_unittest.cc',
'proxy/proxy_script_fetcher_unittest.cc',
'proxy/proxy_service_unittest.cc',
'url_request/url_request_unittest.cc',
'url_request/url_request_unittest.h',
],
'conditions': [
[ 'OS != "win"', {
'sources!': [
'base/wininet_util_unittest.cc',
],
},
],
[ 'OS == "linux"', {
'sources!': [
'base/sdch_filter_unittest.cc',
'base/ssl_config_service_unittest.cc',
],
},
],
[ 'OS == "mac"', {
'sources!': [
'base/ssl_config_service_unittest.cc',
],
},
],
# This is needed to trigger the dll copy step on windows.
# TODO(mark): Specifying this here shouldn't be necessary.
[ 'OS == "win"', {
'dependencies': [
'../third_party/icu38/icu38.gyp:icudata',
],
},
],
],
},
{
'target_name': 'net_perftests',
'type': 'executable',
'dependencies': [
'net',
'../base/base.gyp:base',
'../testing/gtest.gyp:gtest',
],
'sources': [
'../base/perftimer.cc',
'../base/run_all_perftests.cc',
'base/cookie_monster_perftest.cc',
'disk_cache/disk_cache_perftest.cc',
'disk_cache/disk_cache_test_util.cc',
],
'conditions': [
# This is needed to trigger the dll copy step on windows.
# TODO(mark): Specifying this here shouldn't be necessary.
[ 'OS == "win"', {
'dependencies': [
'../third_party/icu38/icu38.gyp:icudata',
],
},
],
],
},
{
'target_name': 'stress_cache',
'type': 'executable',
'dependencies': [
'net',
'../base/base.gyp:base',
],
'sources': [
'disk_cache/disk_cache_test_util.cc',
'disk_cache/stress_cache.cc',
],
},
{
'target_name': 'tld_cleanup',
'type': 'executable',
'dependencies': [
'../base/base.gyp:base',
'../build/temp_gyp/googleurl.gyp:googleurl',
],
'sources': [
'tools/tld_cleanup/tld_cleanup.cc',
],
},
{
'target_name': 'crash_cache',
'type': 'executable',
'dependencies': [
'net',
'../base/base.gyp:base',
],
'sources': [
'tools/crash_cache/crash_cache.cc',
'disk_cache/disk_cache_test_util.cc',
],
},
],
'conditions': [
['OS=="win"', {
'targets': [
{
'target_name': 'net_resources',
'type': 'none',
'sources': [
'base/net_resources.grd',
],
#'msvs_tool_files': ['../tools/grit/build/grit_resources.rules'],
# This was orignally in grit_resources.rules
# NOTE: this version doesn't mimic the Properties specified there.
'rules': [
{
'rule_name': 'grit',
'extension': 'grd',
'inputs': [
'<(DEPTH)/tools/grit/grit.py',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/grit_derived_sources/<(RULE_INPUT_ROOT).h',
],
'action':
['python', '<(DEPTH)/tools/grit/grit.py', '-i', '<(RULE_INPUT_PATH)', 'build', '-o', '<(SHARED_INTERMEDIATE_DIR)/grit_derived_sources'],
},
],
'direct_dependent_settings': {
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/grit_derived_sources',
],
},
},
{
# TODO(port): dump_cache is still Windows-specific.
'target_name': 'dump_cache',
'type': 'executable',
'dependencies': [
'net',
'../base/base.gyp:base',
],
'sources': [
'tools/dump_cache/dump_cache.cc',
'tools/dump_cache/dump_files.cc',
'tools/dump_cache/upgrade.cc',
],
},
],
}],
['OS=="linux"', {
'targets': [
{
'target_name': 'net_resources',
'type': 'resource',
'sources': [
'base/net_resources.grd',
'../../grit_derived_sources/effective_tld_names_clean.dat',
],
'direct_dependent_settings': {
'include_dirs': [
'../../grit_derived_sources'
# FIXME: Should use one of the INTERMEDIATE dirs, e.g.:
# '$(obj)/gen'
],
},
'actions': [
{
'action_name': 'net_resources_h',
'inputs': [
'tld_cleanup',
'base/effective_tld_names.dat',
],
'outputs': [
'../../grit_derived_sources/effective_tld_names_clean.dat',
],
# An 'action' like this would expand things at gyp time:
#'action': 'tld_cleanup <@(_inputs) <@(_outputs)',
# But that doesn't work well with the SCons variant dir
# stuff that builds everything underneath Hammer. Just
# put a SCons string in the action, at least for now.
'action': ['${SOURCES[0]}', '${SOURCES[1]}', '$TARGET'],
}
],
},
],
}],
],
}

64
sdch/sdch.gyp Normal file

@ -0,0 +1,64 @@
# 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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../build/common.gypi',
],
'targets': [
{
'target_name': 'sdch',
'type': 'static_library',
'sources': [
'open-vcdiff/src/addrcache.cc',
'open-vcdiff/src/adler32.c',
'open-vcdiff/src/blockhash.cc',
'open-vcdiff/src/blockhash.h',
'open-vcdiff/src/checksum.h',
'open-vcdiff/src/codetable.cc',
'open-vcdiff/src/codetable.h',
'open-vcdiff/src/compile_assert.h',
'open-vcdiff/src/decodetable.cc',
'open-vcdiff/src/decodetable.h',
'open-vcdiff/src/encodetable.cc',
'open-vcdiff/src/encodetable.h',
'open-vcdiff/src/google/output_string.h',
'open-vcdiff/src/google/vcdecoder.h',
'open-vcdiff/src/headerparser.cc',
'open-vcdiff/src/headerparser.h',
'open-vcdiff/src/instruction_map.cc',
'open-vcdiff/src/instruction_map.h',
'open-vcdiff/src/logging.cc',
'open-vcdiff/src/logging.h',
'open-vcdiff/src/rolling_hash.h',
'open-vcdiff/src/testing.h',
'open-vcdiff/src/varint_bigendian.cc',
'open-vcdiff/src/varint_bigendian.h',
'open-vcdiff/src/vcdecoder.cc',
'open-vcdiff/src/vcdiff_defs.h',
'open-vcdiff/src/vcdiffengine.cc',
'open-vcdiff/src/vcdiffengine.h',
'open-vcdiff/src/zconf.h',
'open-vcdiff/src/zlib.h',
'open-vcdiff/vsprojects/config.h',
'open-vcdiff/vsprojects/stdint.h',
],
'include_dirs': [
'open-vcdiff/src',
],
'direct_dependent_settings': {
'include_dirs': [
'open-vcdiff/src',
],
},
'conditions': [
[ 'OS == "mac"', { 'include_dirs': [ 'mac' ] } ],
[ 'OS == "win"', { 'include_dirs': [ 'open-vcdiff/vsprojects' ] } ],
],
},
],
}

720
skia/skia.gyp Normal file

@ -0,0 +1,720 @@
# 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': 'skia',
'type': 'static_library',
'sources': [
'precompiled.cc',
#'animator/SkAnimate.h',
#'animator/SkAnimateActive.cpp',
#'animator/SkAnimateActive.h',
#'animator/SkAnimateBase.cpp',
#'animator/SkAnimateBase.h',
#'animator/SkAnimateField.cpp',
#'animator/SkAnimateMaker.cpp',
#'animator/SkAnimateMaker.h',
#'animator/SkAnimateProperties.h',
#'animator/SkAnimateSet.cpp',
#'animator/SkAnimateSet.h',
#'animator/SkAnimator.cpp',
#'animator/SkAnimatorScript.cpp',
#'animator/SkAnimatorScript.h',
#'animator/SkAnimatorScript2.cpp',
#'animator/SkAnimatorScript2.h',
#'animator/SkBase64.cpp',
#'animator/SkBase64.h',
#'animator/SkBoundable.cpp',
#'animator/SkBoundable.h',
#'animator/SkBuildCondensedInfo.cpp',
#'animator/SkCondensedDebug.cpp',
#'animator/SkCondensedRelease.cpp',
#'animator/SkDisplayable.cpp',
#'animator/SkDisplayable.h',
#'animator/SkDisplayAdd.cpp',
#'animator/SkDisplayAdd.h',
#'animator/SkDisplayApply.cpp',
#'animator/SkDisplayApply.h',
#'animator/SkDisplayBounds.cpp',
#'animator/SkDisplayBounds.h',
#'animator/SkDisplayEvent.cpp',
#'animator/SkDisplayEvent.h',
#'animator/SkDisplayEvents.cpp',
#'animator/SkDisplayEvents.h',
#'animator/SkDisplayInclude.cpp',
#'animator/SkDisplayInclude.h',
#'animator/SkDisplayInput.cpp',
#'animator/SkDisplayInput.h',
#'animator/SkDisplayList.cpp',
#'animator/SkDisplayList.h',
#'animator/SkDisplayMath.cpp',
#'animator/SkDisplayMath.h',
#'animator/SkDisplayMovie.cpp',
#'animator/SkDisplayMovie.h',
#'animator/SkDisplayNumber.cpp',
#'animator/SkDisplayNumber.h',
#'animator/SkDisplayPost.cpp',
#'animator/SkDisplayPost.h',
#'animator/SkDisplayRandom.cpp',
#'animator/SkDisplayRandom.h',
#'animator/SkDisplayScreenplay.cpp',
#'animator/SkDisplayScreenplay.h',
#'animator/SkDisplayType.cpp',
#'animator/SkDisplayType.h',
#'animator/SkDisplayTypes.cpp',
#'animator/SkDisplayTypes.h',
#'animator/SkDisplayXMLParser.cpp',
#'animator/SkDisplayXMLParser.h',
#'animator/SkDraw3D.cpp',
#'animator/SkDraw3D.h',
#'animator/SkDrawable.cpp',
#'animator/SkDrawable.h',
#'animator/SkDrawBitmap.cpp',
#'animator/SkDrawBitmap.h',
#'animator/SkDrawBlur.cpp',
#'animator/SkDrawBlur.h',
#'animator/SkDrawClip.cpp',
#'animator/SkDrawClip.h',
#'animator/SkDrawColor.cpp',
#'animator/SkDrawColor.h',
#'animator/SkDrawDash.cpp',
#'animator/SkDrawDash.h',
#'animator/SkDrawDiscrete.cpp',
#'animator/SkDrawDiscrete.h',
#'animator/SkDrawEmboss.cpp',
#'animator/SkDrawEmboss.h',
#'animator/SkDrawExtraPathEffect.cpp',
#'animator/SkDrawFull.cpp',
#'animator/SkDrawFull.h',
#'animator/SkDrawGradient.cpp',
#'animator/SkDrawGradient.h',
#'animator/SkDrawGroup.cpp',
#'animator/SkDrawGroup.h',
#'animator/SkDrawLine.cpp',
#'animator/SkDrawLine.h',
#'animator/SkDrawMatrix.cpp',
#'animator/SkDrawMatrix.h',
#'animator/SkDrawOval.cpp',
#'animator/SkDrawOval.h',
#'animator/SkDrawPaint.cpp',
#'animator/SkDrawPaint.h',
#'animator/SkDrawPath.cpp',
#'animator/SkDrawPath.h',
#'animator/SkDrawPoint.cpp',
#'animator/SkDrawPoint.h',
#'animator/SkDrawRectangle.cpp',
#'animator/SkDrawRectangle.h',
#'animator/SkDrawSaveLayer.cpp',
#'animator/SkDrawSaveLayer.h',
#'animator/SkDrawShader.cpp',
#'animator/SkDrawShader.h',
#'animator/SkDrawText.cpp',
#'animator/SkDrawText.h',
#'animator/SkDrawTextBox.cpp',
#'animator/SkDrawTextBox.h',
#'animator/SkDrawTo.cpp',
#'animator/SkDrawTo.h',
#'animator/SkDrawTransparentShader.cpp',
#'animator/SkDrawTransparentShader.h',
#'animator/SkDump.cpp',
#'animator/SkDump.h',
#'animator/SkExtras.h',
#'animator/SkGetCondensedInfo.cpp',
#'animator/SkHitClear.cpp',
#'animator/SkHitClear.h',
#'animator/SkHitTest.cpp',
#'animator/SkHitTest.h',
#'animator/SkIntArray.h',
#'animator/SkMatrixParts.cpp',
#'animator/SkMatrixParts.h',
#'animator/SkMemberInfo.cpp',
#'animator/SkMemberInfo.h',
#'animator/SkOpArray.cpp',
#'animator/SkOpArray.h',
#'animator/SkOperand.h',
#'animator/SkOperand2.h',
#'animator/SkOperandInterpolator.h',
#'animator/SkOperandIterpolator.cpp',
#'animator/SkPaintParts.cpp',
#'animator/SkPaintParts.h',
#'animator/SkPathParts.cpp',
#'animator/SkPathParts.h',
#'animator/SkPostParts.cpp',
#'animator/SkPostParts.h',
#'animator/SkScript.cpp',
#'animator/SkScript.h',
#'animator/SkScript2.h',
#'animator/SkScriptCallBack.h',
#'animator/SkScriptDecompile.cpp',
#'animator/SkScriptRuntime.cpp',
#'animator/SkScriptRuntime.h',
#'animator/SkScriptTokenizer.cpp',
#'animator/SkSnapshot.cpp',
#'animator/SkSnapshot.h',
#'animator/SkSVGPath.cpp',
#'animator/SkTDArray_Experimental.h',
#'animator/SkTextOnPath.cpp',
#'animator/SkTextOnPath.h',
#'animator/SkTextToPath.cpp',
#'animator/SkTextToPath.h',
'animator/SkTime.cpp',
#'animator/SkTypedArray.cpp',
#'animator/SkTypedArray.h',
#'animator/SkXMLAnimatorWriter.cpp',
#'animator/SkXMLAnimatorWriter.h',
'corecg/Sk64.cpp',
'corecg/SkBuffer.cpp',
'corecg/SkChunkAlloc.cpp',
'corecg/SkCordic.cpp',
'corecg/SkCordic.h',
'corecg/SkDebug.cpp',
'corecg/SkDebug_stdio.cpp',
'corecg/SkFloat.cpp',
'corecg/SkFloat.h',
'corecg/SkFloatBits.cpp',
'corecg/SkFloatBits.h',
'corecg/SkInterpolator.cpp',
'corecg/SkMath.cpp',
'corecg/SkMatrix.cpp',
'corecg/SkMemory_stdlib.cpp',
'corecg/SkPageFlipper.cpp',
'corecg/SkPoint.cpp',
'corecg/SkRect.cpp',
'corecg/SkRegion.cpp',
'corecg/SkRegionPriv.h',
'corecg/SkSinTable.h',
'corecg/SkTSort.h',
'effects/Sk1DPathEffect.cpp',
'effects/Sk2DPathEffect.cpp',
'effects/SkAvoidXfermode.cpp',
'effects/SkBlurDrawLooper.cpp',
'effects/SkBlurMask.cpp',
'effects/SkBlurMask.h',
'effects/SkBlurMaskFilter.cpp',
'effects/SkCamera.cpp',
'effects/SkColorFilters.cpp',
'effects/SkColorMatrix.cpp',
'effects/SkColorMatrixFilter.cpp',
'effects/SkCornerPathEffect.cpp',
'effects/SkCullPoints.cpp',
'effects/SkDashPathEffect.cpp',
'effects/SkDiscretePathEffect.cpp',
'effects/SkEmbossMask.cpp',
'effects/SkEmbossMask.h',
'effects/SkEmbossMask_Table.h',
'effects/SkEmbossMaskFilter.cpp',
'effects/SkGradientShader.cpp',
'effects/SkKernel33MaskFilter.cpp',
#'effects/SkLayerDrawLooper.cpp',
'effects/SkLayerRasterizer.cpp',
#'effects/SkNinePatch.cpp',
'effects/SkPaintFlagsDrawFilter.cpp',
'effects/SkPixelXorXfermode.cpp',
'effects/SkRadialGradient_Table.h',
'effects/SkShaderExtras.cpp',
'effects/SkTransparentShader.cpp',
'effects/SkUnitMappers.cpp',
'ext/bitmap_platform_device.h',
'ext/bitmap_platform_device_linux.cc',
'ext/bitmap_platform_device_linux.h',
'ext/bitmap_platform_device_mac.cc',
'ext/bitmap_platform_device_mac.h',
'ext/bitmap_platform_device_win.cc',
'ext/bitmap_platform_device_win.h',
'ext/convolver.cc',
'ext/convolver.h',
'ext/GdkSkia.cc',
'ext/GdkSkia.h',
'ext/google_logging.cc',
'ext/image_operations.cc',
'ext/image_operations.h',
'ext/platform_canvas.h',
'ext/platform_canvas_linux.cc',
'ext/platform_canvas_linux.h',
'ext/platform_canvas_mac.cc',
'ext/platform_canvas_mac.h',
'ext/platform_canvas_win.cc',
'ext/platform_canvas_win.h',
'ext/platform_device.h',
'ext/platform_device_linux.cc',
'ext/platform_device_linux.h',
'ext/platform_device_mac.cc',
'ext/platform_device_mac.h',
'ext/platform_device_win.cc',
'ext/platform_device_win.h',
'ext/skia_utils.cc',
'ext/skia_utils.h',
'ext/skia_utils_mac.cc',
'ext/skia_utils_mac.h',
'ext/skia_utils_win.cc',
'ext/skia_utils_win.h',
'ext/vector_canvas.cc',
'ext/vector_canvas.h',
'ext/vector_device.cc',
'ext/vector_device.h',
#'gl/SkGL.cpp',
#'gl/SkGL.h',
#'gl/SkGLCanvas.cpp',
#'gl/SkGLDevice.cpp',
#'gl/SkGLDevice.h',
#'gl/SkGLDevice_FBO.cpp',
#'gl/SkGLDevice_FBO.h',
#'gl/SkGLDevice_SWLayer.cpp',
#'gl/SkGLDevice_SWLayer.h',
#'gl/SkGLTextCache.cpp',
#'gl/SkGLTextCache.h',
#'gl/SkTextureCache.cpp',
#'gl/SkTextureCache.h',
#'images/bmpdecoderhelper.cpp',
#'images/bmpdecoderhelper.h',
#'images/fpdfemb.h',
#'images/fpdfemb_ext.h',
#'images/SkBitmap_RLEPixels.h',
#'images/SkCreateRLEPixelRef.cpp',
#'images/SkFDStream.cpp',
#'images/SkFlipPixelRef.cpp',
'images/SkImageDecoder.cpp',
#'images/SkImageDecoder_fpdfemb.cpp',
#'images/SkImageDecoder_libbmp.cpp',
#'images/SkImageDecoder_libgif.cpp',
#'images/SkImageDecoder_libico.cpp',
#'images/SkImageDecoder_libjpeg.cpp',
#'images/SkImageDecoder_libpng.cpp',
#'images/SkImageDecoder_libpvjpeg.cpp',
#'images/SkImageDecoder_wbmp.cpp',
'images/SkImageRef.cpp',
#'images/SkImageRef_GlobalPool.cpp',
#'images/SkImageRefPool.cpp',
#'images/SkImageRefPool.h',
'images/SkMMapStream.cpp',
#'images/SkMovie.cpp',
#'images/SkMovie_gif.cpp',
#'images/SkScaledBitmapSampler.cpp',
#'images/SkScaledBitmapSampler.h',
'images/SkStream.cpp',
'include/corecg/Sk64.h',
'include/corecg/SkBuffer.h',
'include/corecg/SkChunkAlloc.h',
'include/corecg/SkEndian.h',
'include/corecg/SkFDot6.h',
'include/corecg/SkFixed.h',
'include/corecg/SkFloatBits.h',
'include/corecg/SkFloatingPoint.h',
'include/corecg/SkInterpolator.h',
'include/corecg/SkMath.h',
'include/corecg/SkMatrix.h',
'include/corecg/SkPageFlipper.h',
'include/corecg/SkPerspIter.h',
'include/corecg/SkPoint.h',
'include/corecg/SkPostConfig.h',
'include/corecg/SkPreConfig.h',
'include/corecg/SkRandom.h',
'include/corecg/SkRect.h',
'include/corecg/SkRegion.h',
'include/corecg/SkScalar.h',
'include/corecg/SkScalarCompare.h',
'include/corecg/SkTemplates.h',
'include/corecg/SkThread.h',
'include/corecg/SkThread_platform.h',
'include/corecg/SkTSearch.h',
'include/corecg/SkTypes.h',
'include/corecg/SkUserConfig.h',
'include/Sk1DPathEffect.h',
'include/Sk2DPathEffect.h',
'include/SkAnimator.h',
'include/SkAnimatorView.h',
'include/SkApplication.h',
'include/SkAvoidXfermode.h',
'include/SkBGViewArtist.h',
'include/SkBitmap.h',
'include/SkBlurDrawLooper.h',
'include/SkBlurMaskFilter.h',
'include/SkBML_WXMLParser.h',
'include/SkBML_XMLParser.h',
'include/SkBorderView.h',
'include/SkBounder.h',
'include/SkCamera.h',
'include/SkCanvas.h',
'include/SkColor.h',
'include/SkColorFilter.h',
'include/SkColorMatrix.h',
'include/SkColorMatrixFilter.h',
'include/SkColorPriv.h',
'include/SkColorShader.h',
'include/SkCornerPathEffect.h',
'include/SkCullPoints.h',
'include/SkDashPathEffect.h',
'include/SkDeque.h',
'include/SkDescriptor.h',
'include/SkDevice.h',
'include/SkDiscretePathEffect.h',
'include/SkDither.h',
'include/SkDOM.h',
'include/SkDraw.h',
'include/SkDrawExtraPathEffect.h',
'include/SkDrawFilter.h',
'include/SkDrawLooper.h',
'include/SkEmbossMaskFilter.h',
'include/SkEvent.h',
'include/SkEventSink.h',
'include/SkFlattenable.h',
'include/SkFlipPixelRef.h',
'include/SkFontCodec.h',
'include/SkFontHost.h',
'include/SkGLCanvas.h',
'include/SkGlobals.h',
'include/SkGradientShader.h',
'include/SkGraphics.h',
'include/SkImageDecoder.h',
'include/SkImageRef.h',
'include/SkImageRef_GlobalPool.h',
'include/SkImageView.h',
'include/SkJS.h',
'include/SkKernel33MaskFilter.h',
'include/SkKey.h',
'include/SkLayerDrawLooper.h',
'include/SkLayerRasterizer.h',
'include/SkMallocPixelRef.h',
'include/SkMask.h',
'include/SkMaskFilter.h',
'include/SkMetaData.h',
'include/SkMMapStream.h',
'include/SkMovie.h',
'include/SkNinePatch.h',
'include/SkOSFile.h',
'include/SkOSMenu.h',
'include/SkOSSound.h',
'include/SkOSWindow_Mac.h',
'include/SkOSWindow_Unix.h',
'include/SkOSWindow_Win.h',
'include/SkOSWindow_wxwidgets.h',
'include/SkPackBits.h',
'include/SkPaint.h',
'include/SkPaintFlagsDrawFilter.h',
'include/SkParse.h',
'include/SkParsePaint.h',
'include/SkPath.h',
'include/SkPathEffect.h',
'include/SkPathMeasure.h',
'include/SkPicture.h',
'include/SkPixelRef.h',
'include/SkPixelXorXfermode.h',
'include/SkPorterDuff.h',
'include/SkProgressBarView.h',
'include/SkPtrRecorder.h',
'include/SkRasterizer.h',
'include/SkReader32.h',
'include/SkRefCnt.h',
'include/SkScalerContext.h',
'include/SkScrollBarView.h',
'include/SkShader.h',
'include/SkShaderExtras.h',
'include/SkStackViewLayout.h',
'include/SkStream.h',
'include/SkStream_Win.h',
'include/SkString.h',
'include/SkStroke.h',
'include/SkSVGAttribute.h',
'include/SkSVGBase.h',
'include/SkSVGPaintState.h',
'include/SkSVGParser.h',
'include/SkSVGTypes.h',
'include/SkSystemEventTypes.h',
'include/SkTDArray.h',
'include/SkTDict.h',
'include/SkTDStack.h',
'include/SkTextBox.h',
'include/SkTime.h',
'include/SkTransparentShader.h',
'include/SkTypeface.h',
'include/SkUnitMapper.h',
'include/SkUnitMappers.h',
'include/SkUnPreMultiply.h',
'include/SkUtils.h',
'include/SkView.h',
'include/SkViewInflate.h',
'include/SkWidget.h',
'include/SkWidgetViews.h',
'include/SkWindow.h',
'include/SkWriter32.h',
'include/SkXfermode.h',
'include/SkXMLParser.h',
'include/SkXMLWriter.h',
'picture/SkPathHeap.cpp',
'picture/SkPathHeap.h',
'picture/SkPicture.cpp',
'picture/SkPictureFlat.cpp',
'picture/SkPictureFlat.h',
'picture/SkPicturePlayback.cpp',
'picture/SkPicturePlayback.h',
'picture/SkPictureRecord.cpp',
'picture/SkPictureRecord.h',
'ports/sk_predefined_gamma.h',
#'ports/SkFontHost_android.cpp',
#'ports/SkFontHost_ascender.cpp',
'ports/SkFontHost_fontconfig.cpp',
#'ports/SkFontHost_FONTPATH.cpp',
'ports/SkFontHost_FreeType.cpp',
#'ports/SkFontHost_gamma.cpp',
'ports/SkFontHost_gamma_none.cpp',
#'ports/SkFontHost_linux.cpp',
#'ports/SkFontHost_mac.cpp',
'ports/SkFontHost_none.cpp',
'ports/SkFontHost_TrueType_Tables.cpp',
#'ports/SkFontHost_win.cpp',
'ports/SkGlobals_global.cpp',
'ports/SkImageDecoder_Factory.cpp',
#'ports/SkImageRef_ashmem.cpp',
#'ports/SkImageRef_ashmem.h',
#'ports/SkOSEvent_android.cpp',
#'ports/SkOSEvent_dummy.cpp',
'ports/SkOSFile_stdio.cpp',
#'ports/SkThread_none.cpp',
'ports/SkThread_pthread.cpp',
'ports/SkThread_win.cpp',
'ports/SkTime_Unix.cpp',
#'ports/SkXMLParser_empty.cpp',
#'ports/SkXMLParser_expat.cpp',
#'ports/SkXMLParser_tinyxml.cpp',
#'ports/SkXMLPullParser_expat.cpp',
'sgl/ARGB32_Clamp_Bilinear_BitmapShader.h',
'sgl/SkAlphaRuns.cpp',
'sgl/SkAntiRun.h',
'sgl/SkAutoKern.h',
'sgl/SkBitmap.cpp',
#'sgl/SkBitmap_scroll.cpp',
'sgl/SkBitmapProcShader.cpp',
'sgl/SkBitmapProcShader.h',
'sgl/SkBitmapProcState.cpp',
'sgl/SkBitmapProcState.h',
'sgl/SkBitmapProcState_matrix.h',
'sgl/SkBitmapProcState_matrixProcs.cpp',
'sgl/SkBitmapProcState_sample.h',
'sgl/SkBitmapSampler.cpp',
'sgl/SkBitmapSampler.h',
'sgl/SkBitmapSamplerTemplate.h',
'sgl/SkBitmapShader.cpp',
'sgl/SkBitmapShader.h',
'sgl/SkBitmapShader16BilerpTemplate.h',
'sgl/SkBitmapShaderTemplate.h',
'sgl/SkBlitBWMaskTemplate.h',
'sgl/SkBlitRow.h',
'sgl/SkBlitRow_D16.cpp',
'sgl/SkBlitRow_D4444.cpp',
'sgl/SkBlitter.cpp',
'sgl/SkBlitter.h',
'sgl/SkBlitter_4444.cpp',
'sgl/SkBlitter_A1.cpp',
'sgl/SkBlitter_A8.cpp',
'sgl/SkBlitter_ARGB32.cpp',
'sgl/SkBlitter_RGB16.cpp',
'sgl/SkBlitter_Sprite.cpp',
'sgl/SkCanvas.cpp',
'sgl/SkColor.cpp',
'sgl/SkColorFilter.cpp',
'sgl/SkColorTable.cpp',
'sgl/SkCoreBlitters.h',
'sgl/SkDeque.cpp',
'sgl/SkDevice.cpp',
'sgl/SkDither.cpp',
'sgl/SkDraw.cpp',
'sgl/SkDrawProcs.h',
'sgl/SkEdge.cpp',
'sgl/SkEdge.h',
'sgl/SkFilterProc.cpp',
'sgl/SkFilterProc.h',
'sgl/SkFlattenable.cpp',
'sgl/SkFP.h',
'sgl/SkGeometry.cpp',
'sgl/SkGeometry.h',
'sgl/SkGlobals.cpp',
'sgl/SkGlyphCache.cpp',
'sgl/SkGlyphCache.h',
'sgl/SkGraphics.cpp',
'sgl/SkMask.cpp',
'sgl/SkMaskFilter.cpp',
'sgl/SkPackBits.cpp',
'sgl/SkPaint.cpp',
'sgl/SkPath.cpp',
'sgl/SkPathEffect.cpp',
'sgl/SkPathMeasure.cpp',
'sgl/SkPixelRef.cpp',
'sgl/SkProcSpriteBlitter.cpp',
'sgl/SkPtrRecorder.cpp',
'sgl/SkRasterizer.cpp',
'sgl/SkRefCnt.cpp',
'sgl/SkRegion_path.cpp',
'sgl/SkScalerContext.cpp',
'sgl/SkScan.cpp',
'sgl/SkScan.h',
'sgl/SkScan_Antihair.cpp',
'sgl/SkScan_AntiPath.cpp',
'sgl/SkScan_Hairline.cpp',
'sgl/SkScan_Path.cpp',
'sgl/SkScanPriv.h',
'sgl/SkShader.cpp',
'sgl/SkSpriteBlitter.h',
'sgl/SkSpriteBlitter_ARGB32.cpp',
'sgl/SkSpriteBlitter_RGB16.cpp',
'sgl/SkSpriteBlitterTemplate.h',
'sgl/SkString.cpp',
'sgl/SkStroke.cpp',
'sgl/SkStrokerPriv.cpp',
'sgl/SkStrokerPriv.h',
'sgl/SkTemplatesPriv.h',
'sgl/SkTSearch.cpp',
'sgl/SkTSort.h',
'sgl/SkTypeface.cpp',
'sgl/SkTypeface_fake.cpp',
#'sgl/SkUnPreMultiply.cpp',
'sgl/SkUtils.cpp',
'sgl/SkWriter32.cpp',
'sgl/SkXfermode.cpp',
#'svg/SkSVG.cpp',
#'svg/SkSVGCircle.cpp',
#'svg/SkSVGCircle.h',
#'svg/SkSVGClipPath.cpp',
#'svg/SkSVGClipPath.h',
#'svg/SkSVGDefs.cpp',
#'svg/SkSVGDefs.h',
#'svg/SkSVGElements.cpp',
#'svg/SkSVGElements.h',
#'svg/SkSVGEllipse.cpp',
#'svg/SkSVGEllipse.h',
#'svg/SkSVGFeColorMatrix.cpp',
#'svg/SkSVGFeColorMatrix.h',
#'svg/SkSVGFilter.cpp',
#'svg/SkSVGFilter.h',
#'svg/SkSVGG.cpp',
#'svg/SkSVGG.h',
#'svg/SkSVGGradient.cpp',
#'svg/SkSVGGradient.h',
#'svg/SkSVGGroup.cpp',
#'svg/SkSVGGroup.h',
#'svg/SkSVGImage.cpp',
#'svg/SkSVGImage.h',
#'svg/SkSVGLine.cpp',
#'svg/SkSVGLine.h',
#'svg/SkSVGLinearGradient.cpp',
#'svg/SkSVGLinearGradient.h',
#'svg/SkSVGMask.cpp',
#'svg/SkSVGMask.h',
#'svg/SkSVGMetadata.cpp',
#'svg/SkSVGMetadata.h',
#'svg/SkSVGPaintState.cpp',
#'svg/SkSVGParser.cpp',
#'svg/SkSVGPath.cpp',
#'svg/SkSVGPath.h',
#'svg/SkSVGPolygon.cpp',
#'svg/SkSVGPolygon.h',
#'svg/SkSVGPolyline.cpp',
#'svg/SkSVGPolyline.h',
#'svg/SkSVGRadialGradient.cpp',
#'svg/SkSVGRadialGradient.h',
#'svg/SkSVGRect.cpp',
#'svg/SkSVGRect.h',
#'svg/SkSVGStop.cpp',
#'svg/SkSVGStop.h',
#'svg/SkSVGSVG.cpp',
#'svg/SkSVGSVG.h',
#'svg/SkSVGSymbol.cpp',
#'svg/SkSVGSymbol.h',
#'svg/SkSVGText.cpp',
#'svg/SkSVGText.h',
#'svg/SkSVGUse.cpp',
#'svg/SkSVGUse.h',
#'text/ATextEntry.h',
#'views/SkEvent.cpp',
#'views/SkEventSink.cpp',
#'views/SkMetaData.cpp',
#'views/SkTagList.cpp',
#'views/SkTagList.h',
#'views/SkTextBox.cpp',
#'xml/SkBML_Verbs.h',
#'xml/SkBML_XMLParser.cpp',
#'xml/SkDOM.cpp',
#'xml/SkJS.cpp',
#'xml/SkJSDisplayable.cpp',
#'xml/SkParse.cpp',
#'xml/SkParseColor.cpp',
#'xml/SkXMLParser.cpp',
#'xml/SkXMLPullParser.cpp',
#'xml/SkXMLWriter.cpp',
],
'include_dirs': [
'..',
'corecg',
'include',
'include/corecg',
'picture',
'sgl',
],
'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
'mac_framework_dirs': [
'$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
],
'defines': [
'SK_BUILD_NO_IMAGE_ENCODE',
],
'sources!': [
'include/corecg/SkTypes.h',
'precompiled.cc',
],
'conditions': [
[ 'OS != "mac"', {
'sources/': [ ['exclude', '_mac\\.(cc|cpp)$'] ],
}],
[ 'OS != "linux"', {
'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ],
'sources!': [
'ext/GdkSkia.cc',
'ports/SkFontHost_FreeType.cpp',
'ports/SkFontHost_TryeType_Tables.cpp',
'ports/SkFontHost_gamma_none.cpp',
'ports/SkFontHost_fontconfig.cpp',
'sgl/SkTypeface.cpp',
],
}],
[ 'OS != "win"', {
'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ],
'sources!': [
'ext/vector_canvas.cc',
'ext/vector_device.cc',
],
}],
[ 'OS == "mac"', {
'defines': [
'SK_BUILD_FOR_MAC',
],
}],
[ 'OS == "win"', {
'sources!': [
'images/SkMMapStream.cpp',
'ports/SkFontHost_TrueType_Tables.cpp',
'ports/SkThread_pthread.cpp',
'ports/SkTime_Unix.cc',
],
'configurations': {
'Debug': {
'msvs_precompiled_header': 'include/corecg/SkTypes.h',
'msvs_precompiled_source': 'precompiled.cc',
},
},
},],
],
'direct_dependent_settings': {
'include_dirs': [
'include',
'include/corecg',
'ext',
],
},
},
],
}

67
testing/gtest.gyp Normal file

@ -0,0 +1,67 @@
# 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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../build/common.gypi',
],
'targets': [
{
'target_name': 'gtest',
'type': 'static_library',
'sources': [
'gtest/include/gtest/internal/gtest-death-test-internal.h',
'gtest/include/gtest/internal/gtest-filepath.h',
'gtest/include/gtest/internal/gtest-internal.h',
'gtest/include/gtest/internal/gtest-linked_ptr.h',
'gtest/include/gtest/internal/gtest-param-util-generated.h',
'gtest/include/gtest/internal/gtest-param-util.h',
'gtest/include/gtest/internal/gtest-port.h',
'gtest/include/gtest/internal/gtest-string.h',
'gtest/include/gtest/internal/gtest-type-util.h',
'gtest/include/gtest/gtest-death-test.h',
'gtest/include/gtest/gtest-message.h',
'gtest/include/gtest/gtest-param-test.h',
'gtest/include/gtest/gtest-spi.h',
'gtest/include/gtest/gtest-test-part.h',
'gtest/include/gtest/gtest-typed-test.h',
'gtest/include/gtest/gtest.h',
'gtest/include/gtest/gtest_pred_impl.h',
'gtest/include/gtest/gtest_prod.h',
'gtest/src/gtest-test-part.cc',
'gtest/src/gtest-death-test.cc',
'gtest/src/gtest-filepath.cc',
'gtest/src/gtest-internal-inl.h',
'gtest/src/gtest-port.cc',
'gtest/src/gtest.cc',
'gtest/src/gtest_main.cc',
'multiprocess_func_list.cc',
'multiprocess_func_list.h',
'platform_test.h',
],
'include_dirs': [
'gtest',
'gtest/include',
],
'conditions': [
[ 'OS == "mac"', { 'sources': [ 'platform_test_mac.mm' ] } ],
],
'direct_dependent_settings': {
'defines': [
'UNIT_TEST',
],
'include_dirs': [
'gtest',
'gtest/include',
],
'target_conditions': [
['_type=="executable"', {'test': 1}],
],
},
},
],
}

39
third_party/bzip2/bzip2.gyp vendored Normal file

@ -0,0 +1,39 @@
# 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': 'bzip2',
'type': 'static_library',
'defines': ['BZ_NO_STDIO'],
'sources': [
'blocksort.c',
'bzlib.c',
'bzlib.h',
'bzlib_private.h',
'compress.c',
'crctable.c',
'decompress.c',
'huffman.c',
'randtable.c',
],
'direct_dependent_settings': {
'include_dirs': [
'.',
],
},
'conditions': [
['OS=="win"', {
'product_name': 'libbzip2',
}, { # else: OS!="win"
'product_name': 'bz2',
}],
],
},
],
}

50
third_party/libevent/libevent.gyp vendored Normal file

@ -0,0 +1,50 @@
# 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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../../build/common.gypi',
],
'targets': [
{
'target_name': 'libevent',
'product_name': 'event',
'type': 'static_library',
'sources': [
'buffer.c',
'evbuffer.c',
'evdns.c',
'event.c',
'event_tagging.c',
'evrpc.c',
'evutil.c',
'http.c',
'log.c',
'poll.c',
'select.c',
'signal.c',
'strlcpy.c',
],
'defines': [
'HAVE_CONFIG_H',
],
'include_dirs': [
'.', # libevent includes some of its own headers with #include <...>
# instead of #include "..."
],
'conditions': [
# libevent has platform-specific implementation files. Since its
# native build uses autoconf, platform-specific config.h files are
# provided and live in platform-specific directories.
[ 'OS == "linux"', { 'sources': [ 'epoll.c', 'epoll_sub.c' ],
'include_dirs': [ 'linux' ] } ],
[ 'OS == "mac"', { 'sources': [ 'kqueue.c' ],
'include_dirs': [ 'mac' ] } ],
],
},
],
}

79
third_party/libjpeg/libjpeg.gyp vendored Normal file

@ -0,0 +1,79 @@
# 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': 'libjpeg',
'type': 'static_library',
'sources': [
'jcapimin.c',
'jcapistd.c',
'jccoefct.c',
'jccolor.c',
'jcdctmgr.c',
'jchuff.c',
'jchuff.h',
'jcinit.c',
'jcmainct.c',
'jcmarker.c',
'jcmaster.c',
'jcomapi.c',
'jconfig.h',
'jcparam.c',
'jcphuff.c',
'jcprepct.c',
'jcsample.c',
'jdapimin.c',
'jdapistd.c',
'jdatadst.c',
'jdatasrc.c',
'jdcoefct.c',
'jdcolor.c',
'jdct.h',
'jddctmgr.c',
'jdhuff.c',
'jdhuff.h',
'jdinput.c',
'jdmainct.c',
'jdmarker.c',
'jdmaster.c',
'jdmerge.c',
'jdphuff.c',
'jdpostct.c',
'jdsample.c',
'jerror.c',
'jerror.h',
'jfdctflt.c',
'jfdctfst.c',
'jfdctint.c',
'jidctflt.c',
'jidctfst.c',
'jidctint.c',
'jinclude.h',
'jmemmgr.c',
'jmemnobs.c',
'jmemsys.h',
'jmorecfg.h',
'jpegint.h',
'jpeglib.h',
'jquant1.c',
'jquant2.c',
'jutils.c',
'jversion.h',
],
'direct_dependent_settings': {
'include_dirs': [
'.',
],
},
'conditions': [
['OS!="win"', {'product_name': 'jpeg'}],
],
},
],
}

59
third_party/libpng/libpng.gyp vendored Normal file

@ -0,0 +1,59 @@
# 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': 'libpng',
'type': 'static_library',
'dependencies': [
'../zlib/zlib.gyp:zlib',
],
'defines': [
'CHROME_PNG_WRITE_SUPPORT',
'PNG_USER_CONFIG',
],
'sources': [
'png.c',
'png.h',
'pngconf.h',
'pngerror.c',
'pnggccrd.c',
'pngget.c',
'pngmem.c',
'pngpread.c',
'pngread.c',
'pngrio.c',
'pngrtran.c',
'pngrutil.c',
'pngset.c',
'pngtrans.c',
'pngusr.h',
'pngvcrd.c',
'pngwio.c',
'pngwrite.c',
'pngwtran.c',
'pngwutil.c',
],
'direct_dependent_settings': {
'include_dirs': [
'.',
],
'defines': [
'CHROME_PNG_WRITE_SUPPORT',
'PNG_USER_CONFIG',
],
},
'export_dependent_settings': [
'../zlib/zlib.gyp:zlib',
],
'conditions': [
['OS!="win"', {'product_name': 'png'}],
],
},
],
}

190
third_party/libxml/libxml.gyp vendored Normal file

@ -0,0 +1,190 @@
# 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.
{
'variables': {
'conditions': [
['OS=="linux"', {'os_include': 'linux'}],
['OS=="mac"', {'os_include': 'mac'}],
['OS=="win"', {'os_include': 'win32'}],
],
},
'includes': [
'../../build/common.gypi',
],
'targets': [
{
'target_name': 'libxml',
'type': 'static_library',
'sources': [
'include/libxml/c14n.h',
'include/libxml/catalog.h',
'include/libxml/chvalid.h',
'include/libxml/debugXML.h',
'include/libxml/dict.h',
'include/libxml/DOCBparser.h',
'include/libxml/encoding.h',
'include/libxml/entities.h',
'include/libxml/globals.h',
'include/libxml/hash.h',
'include/libxml/HTMLparser.h',
'include/libxml/HTMLtree.h',
'include/libxml/list.h',
'include/libxml/nanoftp.h',
'include/libxml/nanohttp.h',
'include/libxml/parser.h',
'include/libxml/parserInternals.h',
'include/libxml/pattern.h',
'include/libxml/relaxng.h',
'include/libxml/SAX.h',
'include/libxml/SAX2.h',
'include/libxml/schemasInternals.h',
'include/libxml/schematron.h',
'include/libxml/threads.h',
'include/libxml/tree.h',
'include/libxml/uri.h',
'include/libxml/valid.h',
'include/libxml/xinclude.h',
'include/libxml/xlink.h',
'include/libxml/xmlautomata.h',
'include/libxml/xmlerror.h',
'include/libxml/xmlexports.h',
'include/libxml/xmlIO.h',
'include/libxml/xmlmemory.h',
'include/libxml/xmlmodule.h',
'include/libxml/xmlreader.h',
'include/libxml/xmlregexp.h',
'include/libxml/xmlsave.h',
'include/libxml/xmlschemas.h',
'include/libxml/xmlschemastypes.h',
'include/libxml/xmlstring.h',
'include/libxml/xmlunicode.h',
'include/libxml/xmlwriter.h',
'include/libxml/xpath.h',
'include/libxml/xpathInternals.h',
'include/libxml/xpointer.h',
'include/win32config.h',
'include/wsockcompat.h',
'linux/config.h',
'linux/include/libxml/xmlversion.h',
'mac/config.h',
'mac/include/libxml/xmlversion.h',
'win32/config.h',
'win32/include/libxml/xmlversion.h',
'acconfig.h',
'c14n.c',
'catalog.c',
'chvalid.c',
'debugXML.c',
'dict.c',
'DOCBparser.c',
'elfgcchack.h',
'encoding.c',
'entities.c',
'error.c',
'globals.c',
'hash.c',
'HTMLparser.c',
'HTMLtree.c',
'legacy.c',
'libxml.h',
'list.c',
'nanoftp.c',
'nanohttp.c',
'parser.c',
'parserInternals.c',
'pattern.c',
'relaxng.c',
'SAX.c',
'SAX2.c',
'schematron.c',
'threads.c',
'tree.c',
#'trio.c',
#'trio.h',
#'triodef.h',
#'trionan.c',
#'trionan.h',
#'triop.h',
#'triostr.c',
#'triostr.h',
'uri.c',
'valid.c',
'xinclude.c',
'xlink.c',
'xmlIO.c',
'xmlmemory.c',
'xmlmodule.c',
'xmlreader.c',
'xmlregexp.c',
'xmlsave.c',
'xmlschemas.c',
'xmlschemastypes.c',
'xmlstring.c',
'xmlunicode.c',
'xmlwriter.c',
'xpath.c',
'xpointer.c',
],
'defines': [
'LIBXML_STATIC',
],
'include_dirs': [
'<(os_include)',
'<(os_include)/include',
'include',
],
'dependencies': [
'../icu38/icu38.gyp:icuuc',
'../zlib/zlib.gyp:zlib',
],
'export_dependent_settings': [
'../icu38/icu38.gyp:icuuc',
],
'direct_dependent_settings': {
'defines': [
'LIBXML_STATIC',
],
'include_dirs': [
'<(os_include)/include',
'include',
],
},
'conditions': [
['OS=="mac"', {'defines': ['_REENTRANT']}],
['OS=="win"', {
'product_name': 'libxml2',
}, { # else: OS!="win"
'product_name': 'xml2',
}],
],
},
{
'target_name': 'xmlcatalog',
'type': 'executable',
'sources': [
'xmlcatalog.c',
],
'include_dirs': [
'<(os_include)',
],
'dependencies': [
'libxml',
],
},
{
'target_name': 'xmllint',
'type': 'executable',
'sources': [
'xmllint.c',
],
'include_dirs': [
'<(os_include)',
],
'dependencies': [
'libxml',
],
},
],
}

91
third_party/libxslt/libxslt.gyp vendored Normal file

@ -0,0 +1,91 @@
# 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.
{
'variables': {
'conditions': [
['OS=="linux"', {'os_include': 'linux'}],
['OS=="mac"', {'os_include': 'mac'}],
['OS=="win"', {'os_include': 'win32'}],
],
},
'includes': [
'../../build/common.gypi',
],
'targets': [
{
'target_name': 'libxslt',
'type': 'static_library',
'sources': [
'libxslt/attributes.c',
'libxslt/attributes.h',
'libxslt/attrvt.c',
'libxslt/documents.c',
'libxslt/documents.h',
'libxslt/extensions.c',
'libxslt/extensions.h',
'libxslt/extra.c',
'libxslt/extra.h',
'libxslt/functions.c',
'libxslt/functions.h',
'libxslt/imports.c',
'libxslt/imports.h',
'libxslt/keys.c',
'libxslt/keys.h',
'libxslt/libxslt.h',
'libxslt/namespaces.c',
'libxslt/namespaces.h',
'libxslt/numbers.c',
'libxslt/numbersInternals.h',
'libxslt/pattern.c',
'libxslt/pattern.h',
'libxslt/preproc.c',
'libxslt/preproc.h',
'libxslt/security.c',
'libxslt/security.h',
'libxslt/templates.c',
'libxslt/templates.h',
'libxslt/transform.c',
'libxslt/transform.h',
'libxslt/trio.h',
'libxslt/triodef.h',
'libxslt/variables.c',
'libxslt/variables.h',
'libxslt/win32config.h',
'libxslt/xslt.c',
'libxslt/xslt.h',
'libxslt/xsltconfig.h',
'libxslt/xsltexports.h',
'libxslt/xsltInternals.h',
'libxslt/xsltutils.c',
'libxslt/xsltutils.h',
'libxslt/xsltwin32config.h',
'linux/config.h',
'mac/config.h',
# TODO(port): Need a pregenerated win32/config.h?
],
'defines': [
'LIBXSLT_STATIC',
],
'include_dirs': [
'<(os_include)',
'.',
],
'dependencies': [
'../libxml/libxml.gyp:libxml',
],
'direct_dependent_settings': {
'defines': [
'LIBXSLT_STATIC',
],
'include_dirs': [
'.',
],
},
'conditions': [
['OS!="win"', {'product_name': 'xslt'}],
],
},
],
}

23
third_party/modp_b64/modp_b64.gyp vendored Normal file

@ -0,0 +1,23 @@
# 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': 'modp_b64',
'type': 'static_library',
'sources': [
'modp_b64.cc',
'modp_b64.h',
'modp_b64_data.h',
],
'include_dirs': [
'../..',
],
},
],
}

23
third_party/npapi/npapi.gyp vendored Normal file

@ -0,0 +1,23 @@
# 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': 'npapi',
'type': 'none',
'direct_dependent_settings': {
'include_dirs': [
# Some things #include "bindings/npapi.h" and others just #include
# "npapi.h". Account for both flavors.
'.',
'bindings',
],
},
},
],
}

174
third_party/sqlite/sqlite.gyp vendored Normal file

@ -0,0 +1,174 @@
# 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': 'sqlite',
'product_name': 'sqlite3',
'type': 'static_library',
'sources': [
# This list contains all .h, .c, and .cc files in the directories
# ext, preprocessed, and src, with the exception of src/shell* and
# src/test*. Exclusions are applied below in the sources/ and
# sources! sections.
'ext/fts1/ft_hash.c',
'ext/fts1/ft_hash.h',
'ext/fts1/fts1.c',
'ext/fts1/fts1.h',
'ext/fts1/fts1_hash.c',
'ext/fts1/fts1_hash.h',
'ext/fts1/fts1_porter.c',
'ext/fts1/fts1_tokenizer.h',
'ext/fts1/fts1_tokenizer1.c',
'ext/fts1/fulltext.c',
'ext/fts1/fulltext.h',
'ext/fts1/simple_tokenizer.c',
'ext/fts1/tokenizer.h',
'ext/fts2/fts2.c',
'ext/fts2/fts2.h',
'ext/fts2/fts2_hash.c',
'ext/fts2/fts2_hash.h',
'ext/fts2/fts2_icu.c',
'ext/fts2/fts2_porter.c',
'ext/fts2/fts2_tokenizer.c',
'ext/fts2/fts2_tokenizer.h',
'ext/fts2/fts2_tokenizer1.c',
'ext/fts3/fts3.c',
'ext/fts3/fts3.h',
'ext/fts3/fts3_hash.c',
'ext/fts3/fts3_hash.h',
'ext/fts3/fts3_icu.c',
'ext/fts3/fts3_porter.c',
'ext/fts3/fts3_tokenizer.c',
'ext/fts3/fts3_tokenizer.h',
'ext/fts3/fts3_tokenizer1.c',
'ext/icu/icu.c',
'ext/rtree/rtree.c',
'ext/rtree/rtree.h',
'preprocessed/keywordhash.h',
'preprocessed/opcodes.c',
'preprocessed/opcodes.h',
'preprocessed/parse.c',
'preprocessed/parse.h',
'preprocessed/sqlite3.h',
'src/alter.c',
'src/analyze.c',
'src/attach.c',
'src/auth.c',
'src/bitvec.c',
'src/btmutex.c',
'src/btree.c',
'src/btree.h',
'src/btreeInt.h',
'src/build.c',
'src/callback.c',
'src/complete.c',
'src/date.c',
'src/delete.c',
'src/expr.c',
'src/fault.c',
'src/func.c',
'src/global.c',
'src/hash.c',
'src/hash.h',
'src/hwtime.h',
'src/insert.c',
'src/journal.c',
'src/legacy.c',
'src/loadext.c',
'src/main.c',
'src/malloc.c',
'src/md5.c',
'src/mem1.c',
'src/mem2.c',
'src/mem3.c',
'src/mem4.c',
'src/mem5.c',
'src/mem6.c',
'src/mutex.c',
'src/mutex.h',
'src/mutex_os2.c',
'src/mutex_unix.c',
'src/mutex_w32.c',
'src/os.c',
'src/os.h',
'src/os_common.h',
'src/os_os2.c',
'src/os_symbian.cc',
'src/os_unix.c',
'src/os_win.c',
'src/pager.c',
'src/pager.h',
'src/pragma.c',
'src/prepare.c',
'src/printf.c',
'src/random.c',
'src/select.c',
'src/sqlite3ext.h',
'src/sqliteInt.h',
'src/sqliteLimit.h',
'src/status.c',
'src/table.c',
'src/tclsqlite.c',
'src/tokenize.c',
'src/trigger.c',
'src/update.c',
'src/utf.c',
'src/util.c',
'src/vacuum.c',
'src/vdbe.c',
'src/vdbe.h',
'src/vdbeInt.h',
'src/vdbeapi.c',
'src/vdbeaux.c',
'src/vdbeblob.c',
'src/vdbefifo.c',
'src/vdbemem.c',
'src/vtab.c',
'src/where.c',
],
'sources/': [
['exclude', '^ext/(fts[13]|rtree)/'],
['exclude', '(symbian|os2)\\.cc?$'],
],
'sources!': [
'src/journal.c',
'src/md5.c',
'src/tclsqlite.c',
],
'defines': [
'SQLITE_ENABLE_FTS2',
'SQLITE_ENABLE_BROKEN_FTS2',
'SQLITE_ENABLE_ICU',
'SQLITE_SECURE_DELETE',
'THREADSAFE',
'_HAS_EXCEPTIONS=0',
],
'include_dirs': [
'preprocessed',
'src',
],
'dependencies': [
'../icu38/icu38.gyp:icui18n',
'../icu38/icu38.gyp:icuuc',
],
'direct_dependent_settings': {
'include_dirs': [
'preprocessed',
],
},
'conditions': [
['OS=="win"', {
'sources/': [['exclude', '_unix\\.cc?$']],
}, { # else: OS!="win"
'sources/': [['exclude', '_(w32|win)\\.cc?$']],
}],
],
},
],
}

64
third_party/zlib/zlib.gyp vendored Normal file

@ -0,0 +1,64 @@
# 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': 'zlib',
'type': 'static_library',
'sources': [
'contrib/minizip/ioapi.c',
'contrib/minizip/ioapi.h',
'contrib/minizip/iowin32.c'
'contrib/minizip/iowin32.h',
'contrib/minizip/unzip.c',
'contrib/minizip/unzip.h',
'adler32.c',
'compress.c',
'crc32.c',
'crc32.h',
'deflate.c',
'deflate.h',
'gzio.c',
'infback.c',
'inffast.c',
'inffast.h',
'inffixed.h',
'inflate.c',
'inflate.h',
'inftrees.c',
'inftrees.h',
'mozzconf.h',
'trees.c',
'trees.h',
'uncompr.c',
'zconf.h',
'zlib.h',
'zutil.c',
'zutil.h',
],
'include_dirs': [
'.',
# For contrib/minizip
'../..',
],
'direct_dependent_settings': {
'include_dirs': [
'.',
],
},
'conditions': [
['OS!="win"', {
'product_name': 'z',
'sources!': [
'contrib/minizip/iowin32.c'
],
}],
],
},
],
}

@ -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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../../build/common.gypi',
],
'targets': [
{
'target_name': 'activex_shim',
'type': 'static_library',
'dependencies': [
'../../base/base.gyp:base',
'../../third_party/npapi/npapi.gyp:npapi',
'../../build/temp_gyp/googleurl.gyp:googleurl',
],
'sources': [
'activex_plugin.cc',
'activex_plugin.h',
'activex_shared.cc',
'activex_shared.h',
'activex_util.cc',
'activex_util.h',
'dispatch_object.cc',
'dispatch_object.h',
'ihtmldocument_impl.h',
'iwebbrowser_impl.h',
'npn_scripting.cc',
'npn_scripting.h',
'npp_impl.cc',
'npp_impl.h',
'README',
'web_activex_container.cc',
'web_activex_container.h',
'web_activex_site.cc',
'web_activex_site.h',
],
'libraries': [
'urlmon.lib',
],
},
],
}

@ -0,0 +1,28 @@
# 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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../../build/common.gypi',
],
'targets': [
{
'target_name': 'activex_shim_dll',
'type': 'shared_library',
'dependencies': [
'../../third_party/npapi/npapi.gyp:npapi',
'../activex_shim/activex_shim.gyp:activex_shim',
],
'sources': [
'activex_shim_dll.cc',
'activex_shim_dll.def',
'activex_shim_dll.rc',
'resource.h',
],
},
],
}

@ -0,0 +1,142 @@
#!/usr/bin/python
# 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.
# action_csspropertynames.py is a harness script to connect actions sections of
# gyp-based builds to makeprop.pl.
#
# usage: action_makenames.py OUTPUTS -- INPUTS
#
# Exactly two outputs must be specified: a path to each of CSSPropertyNames.cpp
# and CSSPropertyNames.h.
#
# Multiple inputs may be specified. One input must have a basename of
# makeprop.pl; this is taken as the path to makeprop.pl. All other inputs are
# paths to .in files that are used as input to makeprop.pl; at least one,
# CSSPropertyNames.in, is required.
import os
import posixpath
import shutil
import subprocess
import sys
def SplitArgsIntoSections(args):
sections = []
while len(args) > 0:
if not '--' in args:
# If there is no '--' left, everything remaining is an entire section.
dashes = len(args)
else:
dashes = args.index('--')
sections.append(args[:dashes])
# Next time through the loop, look at everything after this '--'.
if dashes + 1 == len(args):
# If the '--' is at the end of the list, we won't come back through the
# loop again. Add an empty section now corresponding to the nothingness
# following the final '--'.
args = []
sections.append(args)
else:
args = args[dashes + 1:]
return sections
def main(args):
(outputs, inputs) = SplitArgsIntoSections(args[1:])
# Make all output pathnames absolute so that they can be accessed after
# changing directory.
for index in xrange(0, len(outputs)):
outputs[index] = os.path.abspath(outputs[index])
output_dir = os.path.dirname(outputs[0])
# Look at the inputs and figure out which one is makeprop.pl and which are
# inputs to that script.
makeprop_input = None
in_files = []
for input in inputs:
# Make input pathnames absolute so they can be accessed after changing
# directory. On Windows, convert \ to / for inputs to the perl script to
# work around the intermix of activepython + cygwin perl.
input_abs = os.path.abspath(input)
input_abs_posix = input_abs.replace(os.path.sep, posixpath.sep)
input_basename = os.path.basename(input)
if input_basename == 'makeprop.pl':
assert makeprop_input == None
makeprop_input = input_abs
elif input_basename.endswith('.in'):
in_files.append(input_abs_posix)
else:
assert False
assert makeprop_input != None
assert len(in_files) >= 1
# Change to the output directory because makeprop.pl puts output in its
# working directory.
os.chdir(output_dir)
# Merge all in_files into a single file whose name will be the same as the
# first listed in_file, but in the output directory.
merged_path = os.path.basename(in_files[0])
merged = open(merged_path, 'wb') # 'wb' to get \n only on windows
# Make sure there aren't any duplicate lines in the in files.
line_dict = {}
for in_file_path in in_files:
in_file = open(in_file_path)
for line in in_file:
line = line.rstrip()
if line.startswith('#'):
line = ''
if line == '':
continue
if line in line_dict:
raise KeyError, 'Duplicate value %s' % line
line_dict[line] = True
print >>merged, line
in_file.close()
merged.close()
# Build up the command.
command = ['perl', makeprop_input]
# Do it. check_call is new in 2.5, so simulate its behavior with call and
# assert.
return_code = subprocess.call(command)
assert return_code == 0
# Don't leave behind the merged file or the .gperf file created by
# makeprop.
(root, ext) = os.path.splitext(merged_path)
gperf_path = root + '.gperf'
os.unlink(gperf_path)
os.unlink(merged_path)
# Go through the outputs. Any output that belongs in a different directory
# is moved. Do a copy and delete instead of rename for maximum portability.
# Note that all paths used in this section are still absolute.
for output in outputs:
this_output_dir = os.path.dirname(output)
if this_output_dir != output_dir:
output_basename = os.path.basename(output)
src = os.path.join(output_dir, output_basename)
dst = os.path.join(this_output_dir, output_basename)
shutil.copyfile(src, dst)
os.unlink(src)
return return_code
if __name__ == '__main__':
sys.exit(main(sys.argv))

@ -0,0 +1,144 @@
#!/usr/bin/python
# 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.
# action_cssvaluekeywords.py is a harness script to connect actions sections of
# gyp-based builds to makevalues.pl.
#
# usage: action_cssvaluekeywords.py OUTPUTS -- INPUTS
#
# Exactly two outputs must be specified: a path to each of CSSValueKeywords.c
# and CSSValueKeywords.h.
#
# Multiple inputs may be specified. One input must have a basename of
# makevalues.pl; this is taken as the path to makevalues.pl. All other inputs
# are paths to .in files that are used as input to makevalues.pl; at least
# one, CSSValueKeywords.in, is required.
import os
import posixpath
import shutil
import subprocess
import sys
def SplitArgsIntoSections(args):
sections = []
while len(args) > 0:
if not '--' in args:
# If there is no '--' left, everything remaining is an entire section.
dashes = len(args)
else:
dashes = args.index('--')
sections.append(args[:dashes])
# Next time through the loop, look at everything after this '--'.
if dashes + 1 == len(args):
# If the '--' is at the end of the list, we won't come back through the
# loop again. Add an empty section now corresponding to the nothingness
# following the final '--'.
args = []
sections.append(args)
else:
args = args[dashes + 1:]
return sections
def main(args):
(outputs, inputs) = SplitArgsIntoSections(args[1:])
# Make all output pathnames absolute so that they can be accessed after
# changing directory.
for index in xrange(0, len(outputs)):
outputs[index] = os.path.abspath(outputs[index])
output_dir = os.path.dirname(outputs[0])
# Look at the inputs and figure out which one is makevalues.pl and which are
# inputs to that script.
makevalues_input = None
in_files = []
for input in inputs:
# Make input pathnames absolute so they can be accessed after changing
# directory. On Windows, convert \ to / for inputs to the perl script to
# work around the intermix of activepython + cygwin perl.
input_abs = os.path.abspath(input)
input_abs_posix = input_abs.replace(os.path.sep, posixpath.sep)
input_basename = os.path.basename(input)
if input_basename == 'makevalues.pl':
assert makevalues_input == None
makevalues_input = input_abs
elif input_basename.endswith('.in'):
in_files.append(input_abs_posix)
else:
assert False
assert makevalues_input != None
assert len(in_files) >= 1
# Change to the output directory because makevalues.pl puts output in its
# working directory.
os.chdir(output_dir)
# Merge all in_files into a single file whose name will be the same as the
# first listed in_file, but in the output directory.
merged_path = os.path.basename(in_files[0])
merged = open(merged_path, 'wb') # 'wb' to get \n only on windows
# Make sure there aren't any duplicate lines in the in files. Lowercase
# everything because CSS values are case-insensitive.
line_dict = {}
for in_file_path in in_files:
in_file = open(in_file_path)
for line in in_file:
line = line.rstrip()
if line.startswith('#'):
line = ''
if line == '':
continue
line = line.lower()
if line in line_dict:
raise KeyError, 'Duplicate value %s' % line
line_dict[line] = True
print >>merged, line
in_file.close()
merged.close()
# Build up the command.
command = ['perl', makevalues_input]
# Do it. check_call is new in 2.5, so simulate its behavior with call and
# assert.
return_code = subprocess.call(command)
assert return_code == 0
# Don't leave behind the merged file or the .gperf file created by
# makevalues.
(root, ext) = os.path.splitext(merged_path)
gperf_path = root + '.gperf'
os.unlink(gperf_path)
os.unlink(merged_path)
# Go through the outputs. Any output that belongs in a different directory
# is moved. Do a copy and delete instead of rename for maximum portability.
# Note that all paths used in this section are still absolute.
for output in outputs:
this_output_dir = os.path.dirname(output)
if this_output_dir != output_dir:
output_basename = os.path.basename(output)
src = os.path.join(output_dir, output_basename)
dst = os.path.join(this_output_dir, output_basename)
shutil.copyfile(src, dst)
os.unlink(src)
return return_code
if __name__ == '__main__':
sys.exit(main(sys.argv))

47
webkit/build/action_jsconfig.py Executable file

@ -0,0 +1,47 @@
#!/usr/bin/python
# 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.
# usage: action_jsconfig.py JS_ENGINE OUTPUT_DIR CONFIG_H_IN FILES_TO_COPY
# JS_ENGINE may be v8 at present. jsc will be added in the future.
# CONFIG_H_DIR is the directory to put config.h in.
# OUTPUT_DIR is the directory to put other files in.
# CONFIG_H_IN is the path to config.h.in upon which config.h will be based.
# FILES_TO_COPY is a list of additional headers to be copied. It may be empty.
import errno
import os
import os.path
import shutil
import sys
assert len(sys.argv) >= 5
js_engine = sys.argv[1]
config_h_dir = sys.argv[2]
output_dir = sys.argv[3]
config_h_in_path = sys.argv[4]
files_to_copy = sys.argv[5:]
config_h_path = os.path.join(config_h_dir, 'config.h')
assert js_engine == 'v8'
config_h_in_file = open(config_h_in_path)
config_h_in_contents = config_h_in_file.read()
config_h_in_file.close()
config_h_file = open(config_h_path, 'w')
print >>config_h_file, config_h_in_contents
if js_engine == 'v8':
print >>config_h_file, '#define WTF_USE_V8_BINDING 1'
print >>config_h_file, '#define WTF_USE_NPOBJECT 1'
config_h_file.close()
for file in files_to_copy:
# This is not strictly right for jsc headers, which will want to be in one
# more subdirectory named JavaScriptCore.
basename = os.path.basename(file)
destination = os.path.join(output_dir, basename)
shutil.copy(file, destination)

147
webkit/build/action_makenames.py Executable file

@ -0,0 +1,147 @@
#!/usr/bin/python
# 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.
# action_makenames.py is a harness script to connect actions sections of
# gyp-based builds to make_names.pl.
#
# usage: action_makenames.py OUTPUTS -- INPUTS [-- OPTIONS]
#
# Multiple OUTPUTS, INPUTS, and OPTIONS may be listed. The sections are
# separated by -- arguments.
#
# The directory name of the first output is chosen as the directory in which
# make_names will run. If the directory name for any subsequent output is
# different, those files will be moved to the desired directory.
#
# Multiple INPUTS may be listed. An input with a basename matching
# "make_names.pl" is taken as the path to that script. Inputs with names
# ending in TagNames.in or tags.in are taken as tag inputs. Inputs with names
# ending in AttributeNames.in or attrs.in are taken as attribute inputs. There
# may be at most one tag input and one attribute input. A make_names.pl input
# is required and at least one tag or attribute input must be present.
#
# OPTIONS is a list of additional options to pass to make_names.pl. This
# section need not be present.
import os
import posixpath
import shutil
import subprocess
import sys
def SplitArgsIntoSections(args):
sections = []
while len(args) > 0:
if not '--' in args:
# If there is no '--' left, everything remaining is an entire section.
dashes = len(args)
else:
dashes = args.index('--')
sections.append(args[:dashes])
# Next time through the loop, look at everything after this '--'.
if dashes + 1 == len(args):
# If the '--' is at the end of the list, we won't come back through the
# loop again. Add an empty section now corresponding to the nothingness
# following the final '--'.
args = []
sections.append(args)
else:
args = args[dashes + 1:]
return sections
def main(args):
sections = SplitArgsIntoSections(args[1:])
assert len(sections) == 2 or len(sections) == 3
(outputs, inputs) = sections[:2]
if len(sections) == 3:
options = sections[2]
else:
options = []
# Make all output pathnames absolute so that they can be accessed after
# changing directory.
for index in xrange(0, len(outputs)):
outputs[index] = os.path.abspath(outputs[index])
output_dir = os.path.dirname(outputs[0])
# Look at the inputs and figure out which ones are make_names.pl, tags, and
# attributes. There can be at most one of each, and those are the only
# input types supported. make_names.pl is required and at least one of tags
# and attributes is required.
make_names_input = None
tag_input = None
attr_input = None
for input in inputs:
# Make input pathnames absolute so they can be accessed after changing
# directory. On Windows, convert \ to / for inputs to the perl script to
# work around the intermix of activepython + cygwin perl.
input_abs = os.path.abspath(input)
input_abs_posix = input_abs.replace(os.path.sep, posixpath.sep)
input_basename = os.path.basename(input)
if input_basename == 'make_names.pl':
assert make_names_input == None
make_names_input = input_abs
elif input_basename.endswith('TagNames.in') or \
input_basename.endswith('tags.in'):
assert tag_input == None
tag_input = input_abs_posix
elif input_basename.endswith('AttributeNames.in') or \
input_basename.endswith('attrs.in'):
assert attr_input == None
attr_input = input_abs_posix
else:
assert False
assert make_names_input != None
assert tag_input != None or attr_input != None
# scripts_path is a Perl include directory, located relative to
# make_names_input.
scripts_path = os.path.normpath(
os.path.join(os.path.dirname(make_names_input), os.pardir,
'bindings', 'scripts'))
# Change to the output directory because make_names.pl puts output in its
# working directory.
os.chdir(output_dir)
# Build up the command.
command = ['perl', '-I', scripts_path, make_names_input]
if tag_input != None:
command.extend(['--tags', tag_input])
if attr_input != None:
command.extend(['--attrs', attr_input])
command.extend(options)
# Do it. check_call is new in 2.5, so simulate its behavior with call and
# assert.
return_code = subprocess.call(command)
assert return_code == 0
# Go through the outputs. Any output that belongs in a different directory
# is moved. Do a copy and delete instead of rename for maximum portability.
# Note that all paths used in this section are still absolute.
for output in outputs:
this_output_dir = os.path.dirname(output)
if this_output_dir != output_dir:
output_basename = os.path.basename(output)
src = os.path.join(output_dir, output_basename)
dst = os.path.join(this_output_dir, output_basename)
shutil.copyfile(src, dst)
os.unlink(src)
return return_code
if __name__ == '__main__':
sys.exit(main(sys.argv))

@ -0,0 +1,72 @@
#!/usr/bin/python
# 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.
# usage: action_maketokenizer.py OUTPUTS -- INPUTS
#
# Multiple INPUTS may be listed. The sections are separated by -- arguments.
#
# OUTPUTS must contain a single item: a path to tokenizer.cpp.
#
# INPUTS must contain exactly two items. The first item must be the path to
# maketokenizer. The second item must be the path to tokenizer.flex.
import os
import subprocess
import sys
def SplitArgsIntoSections(args):
sections = []
while len(args) > 0:
if not '--' in args:
# If there is no '--' left, everything remaining is an entire section.
dashes = len(args)
else:
dashes = args.index('--')
sections.append(args[:dashes])
# Next time through the loop, look at everything after this '--'.
if dashes + 1 == len(args):
# If the '--' is at the end of the list, we won't come back through the
# loop again. Add an empty section now corresponding to the nothingness
# following the final '--'.
args = []
sections.append(args)
else:
args = args[dashes + 1:]
return sections
def main(args):
sections = SplitArgsIntoSections(args[1:])
assert len(sections) == 2
(outputs, inputs) = sections
assert len(outputs) == 1
output = outputs[0]
assert len(inputs) == 2
maketokenizer = inputs[0]
flex_input = inputs[1]
# Build up the command.
command = 'flex -t %s | perl %s > %s' % (flex_input, maketokenizer, output)
# Do it. check_call is new in 2.5, so simulate its behavior with call and
# assert.
# TODO(mark): Don't use shell=True, build up the pipeline directly.
p = subprocess.Popen(command, shell=True)
return_code = p.wait()
assert return_code == 0
return return_code
if __name__ == '__main__':
sys.exit(main(sys.argv))

@ -0,0 +1,74 @@
#!/usr/bin/python
# 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.
# usage: action_useragentstylesheets.py OUTPUTS -- INPUTS
#
# Multiple OUTPUTS and INPUTS may be listed. The sections are separated by
# -- arguments.
#
# OUTPUTS must contain two items, in order: a path to UserAgentStyleSheets.h
# and a path to UserAgentStyleSheetsData.cpp.
#
# INPUTS must contain at least two items. The first item must be the path to
# make-css-file-arrays.pl. The remaining items are paths to style sheets to
# be fed to that script.
import os
import subprocess
import sys
def SplitArgsIntoSections(args):
sections = []
while len(args) > 0:
if not '--' in args:
# If there is no '--' left, everything remaining is an entire section.
dashes = len(args)
else:
dashes = args.index('--')
sections.append(args[:dashes])
# Next time through the loop, look at everything after this '--'.
if dashes + 1 == len(args):
# If the '--' is at the end of the list, we won't come back through the
# loop again. Add an empty section now corresponding to the nothingness
# following the final '--'.
args = []
sections.append(args)
else:
args = args[dashes + 1:]
return sections
def main(args):
sections = SplitArgsIntoSections(args[1:])
assert len(sections) == 2
(outputs, inputs) = sections
assert len(outputs) == 2
output_h = outputs[0]
output_cpp = outputs[1]
make_css_file_arrays = inputs[0]
style_sheets = inputs[1:]
# Build up the command.
command = ['perl', make_css_file_arrays, output_h, output_cpp]
command.extend(style_sheets)
# Do it. check_call is new in 2.5, so simulate its behavior with call and
# assert.
return_code = subprocess.call(command)
assert return_code == 0
return return_code
if __name__ == '__main__':
sys.exit(main(sys.argv))

100
webkit/build/rule_binding.py Executable file

@ -0,0 +1,100 @@
#!/usr/bin/python
# 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.
# usage: rule_binding.py INPUT CPPDIR HDIR -- INPUTS -- OPTIONS
#
# INPUT is an IDL file, such as Whatever.idl.
#
# CPPDIR is the directory into which V8Whatever.cpp will be placed. HDIR is
# the directory into which V8Whatever.h will be placed.
#
# The first item in INPUTS is the path to generate-bindings.pl. Remaining
# items in INPUTS are used to build the Perl module include path.
#
# OPTIONS are passed as-is to generate-bindings.pl as additional arguments.
import errno
import os
import shutil
import subprocess
import sys
def SplitArgsIntoSections(args):
sections = []
while len(args) > 0:
if not '--' in args:
# If there is no '--' left, everything remaining is an entire section.
dashes = len(args)
else:
dashes = args.index('--')
sections.append(args[:dashes])
# Next time through the loop, look at everything after this '--'.
if dashes + 1 == len(args):
# If the '--' is at the end of the list, we won't come back through the
# loop again. Add an empty section now corresponding to the nothingness
# following the final '--'.
args = []
sections.append(args)
else:
args = args[dashes + 1:]
return sections
def main(args):
sections = SplitArgsIntoSections(args[1:])
assert len(sections) == 3
(base, inputs, options) = sections
assert len(base) == 3
input = base[0]
cppdir = base[1]
hdir = base[2]
assert len(inputs) > 1
generate_bindings = inputs[0]
perl_modules = inputs[1:]
include_dirs = []
for perl_module in perl_modules:
include_dir = os.path.dirname(perl_module)
if not include_dir in include_dirs:
include_dirs.append(include_dir)
# Build up the command.
command = ['perl', '-w']
for include_dir in include_dirs:
command.extend(['-I', include_dir])
command.append(generate_bindings)
command.extend(options)
command.extend(['--outputdir', cppdir, input])
# Do it. check_call is new in 2.5, so simulate its behavior with call and
# assert.
return_code = subprocess.call(command)
assert return_code == 0
# Both the .cpp and .h were generated in cppdir, but if hdir is different,
# the .h needs to move. Copy it instead of using os.rename for maximum
# portability in all cases.
if cppdir != hdir:
input_basename = os.path.basename(input)
(root, ext) = os.path.splitext(input_basename)
hname = 'V8%s.h' % root
hsrc = os.path.join(cppdir, hname)
hdst = os.path.join(hdir, hname)
shutil.copyfile(hsrc, hdst)
os.unlink(hsrc)
return return_code
if __name__ == '__main__':
sys.exit(main(sys.argv))

75
webkit/build/rule_bison.py Executable file

@ -0,0 +1,75 @@
#!/usr/bin/python
# 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.
# usage: rule_bison.py INPUT_FILE OUTPUT_DIR
# INPUT_FILE is a path to either CSSGrammar.y or XPathGrammar.y.
# OUTPUT_DIR is where the bison-generated .cpp and .h files should be placed.
import errno
import os
import os.path
import subprocess
import sys
assert len(sys.argv) == 3
input_file = sys.argv[1]
output_dir = sys.argv[2]
input_name = os.path.basename(input_file)
assert input_name == 'CSSGrammar.y' or input_name == 'XPathGrammar.y'
prefix = {'CSSGrammar.y': 'cssyy', 'XPathGrammar.y': 'xpathyy'}[input_name]
(input_root, input_ext) = os.path.splitext(input_name)
# The generated .h will be in a different location depending on the bison
# version.
output_h_tries = [
os.path.join(output_dir, input_root + '.cpp.h'),
os.path.join(output_dir, input_root + '.hpp'),
]
for output_h_try in output_h_tries:
try:
os.unlink(output_h_try)
except OSError, e:
if e.errno != errno.ENOENT:
raise
output_cpp = os.path.join(output_dir, input_root + '.cpp')
return_code = subprocess.call(['bison', '-d', '-p', prefix, input_file,
'-o', output_cpp])
assert return_code == 0
# Find the name that bison used for the generated header file.
output_h_tmp = None
for output_h_try in output_h_tries:
try:
os.stat(output_h_try)
output_h_tmp = output_h_try
break
except OSError, e:
if e.errno != errno.ENOENT:
raise
assert output_h_tmp != None
# Read the header file in under the generated name and remove it.
output_h_file = open(output_h_tmp)
output_h_contents = output_h_file.read()
output_h_file.close()
os.unlink(output_h_tmp)
# Rewrite the generated header with #include guards.
output_h = os.path.join(output_dir, input_root + '.h')
output_h_file = open(output_h, 'w')
print >>output_h_file, '#ifndef %s_h' % input_root
print >>output_h_file, '#define %s_h' % input_root
print >>output_h_file, output_h_contents
print >>output_h_file, '#endif'
output_h_file.close()

54
webkit/build/rule_gperf.py Executable file

@ -0,0 +1,54 @@
#!/usr/bin/python
# 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.
# usage: rule_gperf.py INPUT_FILE OUTPUT_DIR
# INPUT_FILE is a path to DocTypeStrings.gperf, HTMLEntityNames.gperf, or
# ColorData.gperf.
# OUTPUT_DIR is where the gperf-generated .cpp file should be placed. Because
# some users want a .c file instead of a .cpp file, the .cpp file is copied
# to .c when done.
import posixpath
import shutil
import subprocess
import sys
assert len(sys.argv) == 3
input_file = sys.argv[1]
output_dir = sys.argv[2]
gperf_commands = {
'DocTypeStrings.gperf': [
'-CEot', '-L', 'ANSI-C', '-k*', '-N', 'findDoctypeEntry',
'-F', ',PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards'
],
'HTMLEntityNames.gperf': [
'-a', '-L', 'ANSI-C', '-C', '-G', '-c', '-o', '-t', '-k*',
'-N', 'findEntity', '-D', '-s', '2'
],
'ColorData.gperf': [
'-CDEot', '-L', 'ANSI-C', '-k*', '-N', 'findColor', '-D', '-s', '2'
],
}
input_name = posixpath.basename(input_file)
assert input_name in gperf_commands
(input_root, input_ext) = posixpath.splitext(input_name)
output_cpp = posixpath.join(output_dir, input_root + '.cpp')
command = ['gperf', '--output-file', output_cpp]
command.extend(gperf_commands[input_name])
command.append(input_file)
# Do it. check_call is new in 2.5, so simulate its behavior with call and
# assert.
return_code = subprocess.call(command)
assert return_code == 0
output_c = posixpath.join(output_dir, input_root + '.c')
shutil.copyfile(output_cpp, output_c)

@ -0,0 +1,191 @@
# 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.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../../../build/common.gypi',
],
'targets': [
{
'target_name': 'test_shell_common',
'type': 'static_library',
'sources': [
'mac/DumpRenderTreePasteboard.h',
'mac/DumpRenderTreePasteboard.m',
'mac/KeystoneGlue.h',
'mac/KeystoneGlue.m',
'mac/test_shell_webview.h',
'mac/test_shell_webview.mm',
'mac/test_webview_delegate.mm',
'mac/webview_host.mm',
'mac/webwidget_host.mm',
'drag_delegate.cc',
'drag_delegate.h',
'drop_delegate.cc',
'drop_delegate.h',
'event_sending_controller.cc',
'event_sending_controller.h',
'foreground_helper.h',
'layout_test_controller.cc',
'layout_test_controller.h',
'resource.h',
'simple_resource_loader_bridge.cc',
'simple_resource_loader_bridge.h',
'test_navigation_controller.cc',
'test_navigation_controller.h',
'test_shell.cc',
'test_shell.h',
'test_shell_gtk.cc',
'test_shell_mac.mm',
'test_shell_platform_delegate.h',
'test_shell_platform_delegate_gtk.cc',
'test_shell_platform_delegate_mac.mm',
'test_shell_platform_delegate_win.cc',
'test_shell_request_context.cc',
'test_shell_request_context.h',
'test_shell_switches.cc',
'test_shell_switches.h',
'test_shell_win.cc',
'test_webview_delegate.cc',
'test_webview_delegate.h',
'test_webview_delegate_gtk.cc',
'test_webview_delegate_win.cc',
'text_input_controller.cc',
'text_input_controller.h',
'webview_host.h',
'webview_host_gtk.cc',
'webview_host_win.cc',
'webwidget_host.h',
'webwidget_host_gtk.cc',
'webwidget_host_win.cc',
],
'dependencies': [
'../../../base/base.gyp:base',
'../../../base/base.gyp:base_gfx',
'../../../testing/gtest.gyp:gtest',
'../../../skia/skia.gyp:skia',
'../../../third_party/npapi/npapi.gyp:npapi',
'../../webkit.gyp:glue',
],
'conditions': [
['OS!="linux"', {'sources/': [['exclude', '_gtk\\.cc$']]}],
['OS!="mac"', {
'sources/': [
['exclude', 'mac/[^/]*\\.(cc|mm?)$'],
['exclude', '_mac\\.(cc|mm?)$'],
]
}],
['OS=="win"', {
'include_dirs': [
'../../../breakpad/src',
],
'msvs_disabled_warnings': [ 4800 ],
}, { # OS!=win
'sources/': [
['exclude', '_win\\.cc$']
],
'sources!': [
'drag_delegate.cc',
'drop_delegate.cc',
],
}],
],
},
{
'target_name': 'test_shell',
'type': 'application',
'sources': [
'test_shell_main.cc',
],
'mac_bundle_resources': [
'../../data/test_shell/',
'mac/English.lproj/InfoPlist.strings',
'mac/English.lproj/MainMenu.nib',
'mac/Info.plist',
'mac/test_shell.icns',
'resources/AHEM____.TTF',
],
'mac_bundle_resources!': [
# TODO(mark): Come up with a fancier way to do this (mac_info_plist?)
# that automatically sets the correct INFOPLIST_FILE setting and adds
# the file to a source group.
'mac/Info.plist',
],
'dependencies': [
'test_shell_common',
'../../../base/base.gyp:base',
'../../../net/net.gyp:net',
'../../webkit.gyp:glue',
],
'xcode_settings': {
'INFOPLIST_FILE': 'mac/Info.plist',
},
'conditions': [
['OS=="mac"', {'product_name': 'TestShell'}],
],
},
{
'target_name': 'test_shell_tests',
'type': 'executable',
'sources': [
'../../../skia/ext/convolver_unittest.cc',
'../../../skia/ext/platform_canvas_unittest.cc',
'../../../skia/ext/vector_canvas_unittest.cc',
'../../glue/bookmarklet_unittest.cc',
'../../glue/context_menu_unittest.cc',
'../../glue/cpp_bound_class_unittest.cc',
'../../glue/cpp_variant_unittest.cc',
'../../glue/dom_operations_unittest.cc',
'../../glue/dom_serializer_unittest.cc',
'../../glue/glue_serialize_unittest.cc',
'../../glue/iframe_redirect_unittest.cc',
'../../glue/mimetype_unittest.cc',
'../../glue/multipart_response_delegate_unittest.cc',
'../../glue/password_autocomplete_listener_unittest.cc',
'../../glue/regular_expression_unittest.cc',
'../../glue/resource_fetcher_unittest.cc',
'../../glue/unittest_test_server.h',
'../../glue/webframe_unittest.cc',
'../../glue/webplugin_impl_unittest.cc',
'../webcore_unit_tests/BMPImageDecoder_unittest.cpp',
'../webcore_unit_tests/GKURL_unittest.cpp',
'../webcore_unit_tests/ICOImageDecoder_unittest.cpp',
'../webcore_unit_tests/UniscribeHelper_unittest.cpp',
'../webcore_unit_tests/XBMImageDecoder_unittest.cpp',
'image_decoder_unittest.cc',
'image_decoder_unittest.h',
'keyboard_unittest.cc',
'layout_test_controller_unittest.cc',
'node_leak_test.cc',
'plugin_tests.cc',
'run_all_tests.cc',
'test_shell_test.cc',
'test_shell_test.h',
'text_input_controller_unittest.cc',
],
'dependencies': [
'test_shell_common',
'../../../base/base.gyp:base',
'../../../net/net.gyp:net',
'../../../skia/skia.gyp:skia',
'../../../testing/gtest.gyp:gtest',
'../../webkit.gyp:glue',
],
'conditions': [
['OS=="win"', {
'msvs_disabled_warnings': [ 4800 ],
}, { # OS!=win
'sources!': [
'../../../skia/ext/vector_canvas_unittest.cc',
'../webcore_unit_tests/UniscribeHelper_unittest.cpp',
'plugin_tests.cc'
],
}],
],
},
],
}

4275
webkit/webkit.gyp Normal file

File diff suppressed because it is too large Load Diff