michael@0: # Copyright (c) 2012 The Chromium Authors. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: # TODO(mark): Upstream this file to googleurl. michael@0: { michael@0: 'variables': { michael@0: 'chromium_code': 1, michael@0: }, michael@0: 'targets': [ michael@0: { michael@0: 'target_name': 'googleurl', michael@0: 'type': '<(component)', michael@0: 'dependencies': [ michael@0: '../../base/base.gyp:base', michael@0: '../../third_party/icu/icu.gyp:icudata', michael@0: '../../third_party/icu/icu.gyp:icui18n', michael@0: '../../third_party/icu/icu.gyp:icuuc', michael@0: ], michael@0: 'sources': [ michael@0: '../../googleurl/src/gurl.cc', michael@0: '../../googleurl/src/gurl.h', michael@0: '../../googleurl/src/url_canon.h', michael@0: '../../googleurl/src/url_canon_etc.cc', michael@0: '../../googleurl/src/url_canon_fileurl.cc', michael@0: '../../googleurl/src/url_canon_filesystemurl.cc', michael@0: '../../googleurl/src/url_canon_host.cc', michael@0: '../../googleurl/src/url_canon_icu.cc', michael@0: '../../googleurl/src/url_canon_icu.h', michael@0: '../../googleurl/src/url_canon_internal.cc', michael@0: '../../googleurl/src/url_canon_internal.h', michael@0: '../../googleurl/src/url_canon_internal_file.h', michael@0: '../../googleurl/src/url_canon_ip.cc', michael@0: '../../googleurl/src/url_canon_ip.h', michael@0: '../../googleurl/src/url_canon_mailtourl.cc', michael@0: '../../googleurl/src/url_canon_path.cc', michael@0: '../../googleurl/src/url_canon_pathurl.cc', michael@0: '../../googleurl/src/url_canon_query.cc', michael@0: '../../googleurl/src/url_canon_relative.cc', michael@0: '../../googleurl/src/url_canon_stdstring.h', michael@0: '../../googleurl/src/url_canon_stdurl.cc', michael@0: '../../googleurl/src/url_file.h', michael@0: '../../googleurl/src/url_parse.cc', michael@0: '../../googleurl/src/url_parse.h', michael@0: '../../googleurl/src/url_parse_file.cc', michael@0: '../../googleurl/src/url_parse_internal.h', michael@0: '../../googleurl/src/url_util.cc', michael@0: '../../googleurl/src/url_util.h', michael@0: ], michael@0: 'direct_dependent_settings': { michael@0: 'include_dirs': [ michael@0: '../..', michael@0: ], michael@0: }, michael@0: 'defines': [ michael@0: 'FULL_FILESYSTEM_URL_SUPPORT=1', michael@0: ], michael@0: 'conditions': [ michael@0: ['component=="shared_library"', { michael@0: 'defines': [ michael@0: 'GURL_DLL', michael@0: 'GURL_IMPLEMENTATION=1', michael@0: ], michael@0: 'direct_dependent_settings': { michael@0: 'defines': [ michael@0: 'GURL_DLL', michael@0: ], michael@0: }, michael@0: }], michael@0: ], michael@0: }, michael@0: { michael@0: 'target_name': 'googleurl_unittests', michael@0: 'type': 'executable', michael@0: 'dependencies': [ michael@0: 'googleurl', michael@0: '../../base/base.gyp:base_i18n', michael@0: '../../base/base.gyp:run_all_unittests', michael@0: '../../testing/gtest.gyp:gtest', michael@0: '../../third_party/icu/icu.gyp:icuuc', michael@0: ], michael@0: 'sources': [ michael@0: '../../googleurl/src/gurl_unittest.cc', michael@0: '../../googleurl/src/url_canon_unittest.cc', michael@0: '../../googleurl/src/url_parse_unittest.cc', michael@0: '../../googleurl/src/url_test_utils.h', michael@0: '../../googleurl/src/url_util_unittest.cc', michael@0: ], michael@0: 'defines': [ michael@0: 'FULL_FILESYSTEM_URL_SUPPORT=1', michael@0: ], michael@0: 'conditions': [ michael@0: ['os_posix==1 and OS!="mac" and OS!="ios"', { michael@0: 'conditions': [ michael@0: ['linux_use_tcmalloc==1', { michael@0: 'dependencies': [ michael@0: '../../base/allocator/allocator.gyp:allocator', michael@0: ], michael@0: }], michael@0: ], michael@0: }], michael@0: ], michael@0: }, michael@0: ], michael@0: }