Commit b60decca authored by sergeyu@chromium.org's avatar sergeyu@chromium.org

Compile GURL for PNaCl

The new url_nacl target compiles GURL for PNaCl.

BUG=276739

Review URL: https://codereview.chromium.org/174553004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252886 0039d316-1c4b-4281-b951-d872f2087c98
parent 4cb9100c
......@@ -6,6 +6,9 @@
'variables': {
'chromium_code': 1,
},
'includes': [
'url_srcs.gypi',
],
'targets': [
{
# Note, this target_name cannot be 'url', because that will generate
......@@ -20,35 +23,7 @@
'../third_party/icu/icu.gyp:icuuc',
],
'sources': [
'gurl.cc',
'gurl.h',
'third_party/mozilla/url_parse.cc',
'third_party/mozilla/url_parse.h',
'url_canon.h',
'url_canon_etc.cc',
'url_canon_filesystemurl.cc',
'url_canon_fileurl.cc',
'url_canon_host.cc',
'url_canon_icu.cc',
'url_canon_icu.h',
'url_canon_internal.cc',
'url_canon_internal.h',
'url_canon_internal_file.h',
'url_canon_ip.cc',
'url_canon_ip.h',
'url_canon_mailtourl.cc',
'url_canon_path.cc',
'url_canon_pathurl.cc',
'url_canon_query.cc',
'url_canon_relative.cc',
'url_canon_stdstring.cc',
'url_canon_stdstring.h',
'url_canon_stdurl.cc',
'url_file.h',
'url_parse_file.cc',
'url_parse_internal.h',
'url_util.cc',
'url_util.h',
'<@(gurl_sources)',
],
'direct_dependent_settings': {
'include_dirs': [
......@@ -79,10 +54,7 @@
'url_util_unittest.cc',
],
'conditions': [
['os_posix==1 and OS!="mac" and OS!="ios"',
{
'conditions': [
['linux_use_tcmalloc==1',
['os_posix==1 and OS!="mac" and OS!="ios" and linux_use_tcmalloc==1',
{
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
......@@ -90,9 +62,6 @@
}
],
],
}
],
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [4267, ],
},
......
# Copyright 2014 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_untrusted.gypi',
'url_srcs.gypi',
],
'targets': [
{
'target_name': 'url_nacl',
'type': 'none',
'variables': {
'nlib_target': 'liburl_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_pnacl_newlib': 1,
},
'dependencies': [
'../third_party/icu/icu_nacl.gyp:icudata_nacl',
'../third_party/icu/icu_nacl.gyp:icui18n_nacl',
'../third_party/icu/icu_nacl.gyp:icuuc_nacl',
],
'export_dependent_settings': [
'../third_party/icu/icu_nacl.gyp:icui18n_nacl',
'../third_party/icu/icu_nacl.gyp:icuuc_nacl',
],
'sources': [
'<@(gurl_sources)',
],
}, # end of target 'url_nacl'
],
}
# Copyright 2014 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': {
'gurl_sources': [
'gurl.cc',
'gurl.h',
'third_party/mozilla/url_parse.cc',
'third_party/mozilla/url_parse.h',
'url_canon.h',
'url_canon_etc.cc',
'url_canon_filesystemurl.cc',
'url_canon_fileurl.cc',
'url_canon_host.cc',
'url_canon_icu.cc',
'url_canon_icu.h',
'url_canon_internal.cc',
'url_canon_internal.h',
'url_canon_internal_file.h',
'url_canon_ip.cc',
'url_canon_ip.h',
'url_canon_mailtourl.cc',
'url_canon_path.cc',
'url_canon_pathurl.cc',
'url_canon_query.cc',
'url_canon_relative.cc',
'url_canon_stdstring.cc',
'url_canon_stdurl.cc',
'url_file.h',
'url_parse_file.cc',
'url_parse_internal.h',
'url_util.cc',
'url_util.h',
],
},
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment