Commit f6ef3693 authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

Remove some obsolete TODO(GYP)s.

Since we didn't do them yet, they probably weren't important.

Bug: none
Change-Id: Ifbb2da04f2f6b0f3b125a7dbaa8ab732bd77fc6b
Reviewed-on: https://chromium-review.googlesource.com/1187013Reviewed-by: default avataragrieve <agrieve@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585578}
parent 7ffe5dae
...@@ -71,8 +71,8 @@ copy("cpplib_unstripped") { ...@@ -71,8 +71,8 @@ copy("cpplib_unstripped") {
action("cpplib_stripped") { action("cpplib_stripped") {
_strip_bin = "${android_tool_prefix}strip" _strip_bin = "${android_tool_prefix}strip"
_soname = "libc++_shared.so" _soname = "libc++_shared.so"
_input_so = "${root_shlib_dir}/lib.unstripped/${_soname}" _input_so = "${root_out_dir}/lib.unstripped/${_soname}"
_output_so = "${root_shlib_dir}/${_soname}" _output_so = "${root_out_dir}/${_soname}"
deps = [ deps = [
":cpplib_unstripped", ":cpplib_unstripped",
......
...@@ -2272,7 +2272,7 @@ if (enable_java_templates) { ...@@ -2272,7 +2272,7 @@ if (enable_java_templates) {
if (_native_libs_deps != []) { if (_native_libs_deps != []) {
if (_use_chromium_linker) { if (_use_chromium_linker) {
_extra_native_libs += _extra_native_libs +=
[ "$root_shlib_dir/libchromium_android_linker$shlib_extension" ] [ "$root_out_dir/libchromium_android_linker$shlib_extension" ]
_extra_native_libs_deps += _extra_native_libs_deps +=
[ "//base/android/linker:chromium_android_linker" ] [ "//base/android/linker:chromium_android_linker" ]
} }
......
...@@ -65,11 +65,7 @@ config("symbol_visibility_default") { ...@@ -65,11 +65,7 @@ config("symbol_visibility_default") {
config("rpath_for_built_shared_libraries") { config("rpath_for_built_shared_libraries") {
if (!is_android) { if (!is_android) {
# Note: Android doesn't support rpath. # Note: Android doesn't support rpath.
if (shlib_subdir != ".") { rpath_link = "."
rpath_link = "${shlib_subdir}/"
} else {
rpath_link = "."
}
if (current_toolchain != default_toolchain || gcc_target_rpath == "") { if (current_toolchain != default_toolchain || gcc_target_rpath == "") {
ldflags = [ ldflags = [
# Want to pass "\$". GN will re-escape as required for ninja. # Want to pass "\$". GN will re-escape as required for ninja.
...@@ -112,9 +108,6 @@ config("executable_ldconfig") { ...@@ -112,9 +108,6 @@ config("executable_ldconfig") {
# relative to the build directory. ${root_out_dir} will be a # relative to the build directory. ${root_out_dir} will be a
# subdirectory of ${root_build_dir} when cross compiling. # subdirectory of ${root_build_dir} when cross compiling.
_rpath_link = rebase_path(root_out_dir, root_build_dir) _rpath_link = rebase_path(root_out_dir, root_build_dir)
if (shlib_subdir != ".") {
_rpath_link += "/$shlib_subdir"
}
ldflags += [ ldflags += [
"-Wl,-rpath-link=$_rpath_link", "-Wl,-rpath-link=$_rpath_link",
......
...@@ -402,9 +402,6 @@ template("gcc_toolchain") { ...@@ -402,9 +402,6 @@ template("gcc_toolchain") {
default_output_extension = default_shlib_extension default_output_extension = default_shlib_extension
default_output_dir = "{{root_out_dir}}" default_output_dir = "{{root_out_dir}}"
if (shlib_subdir != ".") {
default_output_dir += "/$shlib_subdir"
}
output_prefix = "lib" output_prefix = "lib"
...@@ -465,9 +462,6 @@ template("gcc_toolchain") { ...@@ -465,9 +462,6 @@ template("gcc_toolchain") {
} }
default_output_dir = "{{root_out_dir}}" default_output_dir = "{{root_out_dir}}"
if (shlib_subdir != ".") {
default_output_dir += "/$shlib_subdir"
}
output_prefix = "lib" output_prefix = "lib"
......
...@@ -63,18 +63,6 @@ declare_args() { ...@@ -63,18 +63,6 @@ declare_args() {
assert(!use_xcode_clang || target_os == "ios", assert(!use_xcode_clang || target_os == "ios",
"Using Xcode's clang is only supported in iOS builds") "Using Xcode's clang is only supported in iOS builds")
# Subdirectory within root_out_dir for shared library files.
# TODO(agrieve): GYP sets this to "lib" for Linux & Android, but this won't work
# in GN until support for loadable_module() is added.
# See: https://codereview.chromium.org/1236503002/
shlib_subdir = "."
# Root out dir for shared library files.
root_shlib_dir = root_out_dir
if (shlib_subdir != ".") {
root_shlib_dir += "/$shlib_subdir"
}
# Extension for shared library files (including leading dot). # Extension for shared library files (including leading dot).
if (is_mac || is_ios) { if (is_mac || is_ios) {
shlib_extension = ".dylib" shlib_extension = ".dylib"
......
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