Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: third_party/mojo/src/mojo/edk/test/BUILD.gn

Issue 1535863002: Only set -rpath=$ORIGIN in component builds by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/common/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mojo/src/mojo/edk/test/BUILD.gn
diff --git a/third_party/mojo/src/mojo/edk/test/BUILD.gn b/third_party/mojo/src/mojo/edk/test/BUILD.gn
index 73351a0ffba64f232c202853bab04a54f94721f7..474e144aa0f3fdd9f82492f9c639bb818dd7dbda 100644
--- a/third_party/mojo/src/mojo/edk/test/BUILD.gn
+++ b/third_party/mojo/src/mojo/edk/test/BUILD.gn
@@ -102,6 +102,12 @@ test("mojo_public_bindings_unittests") {
":run_all_unittests",
"//mojo/public/cpp/bindings/tests",
]
+
+ if (is_linux && !is_component_build) {
+ # This tests dynamically loads libmojo_test_support even in non-component
+ # builds.
+ configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
+ }
}
test("mojo_public_bindings_perftests") {
@@ -109,6 +115,12 @@ test("mojo_public_bindings_perftests") {
":run_all_perftests",
"//mojo/public/cpp/bindings/tests:perftests",
]
+
+ if (is_linux && !is_component_build) {
+ # This tests dynamically loads libmojo_test_support even in non-component
+ # builds.
+ configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
+ }
}
test("mojo_public_environment_unittests") {
@@ -116,6 +128,12 @@ test("mojo_public_environment_unittests") {
":run_all_unittests",
"//mojo/public/cpp/environment/tests",
]
+
+ if (is_linux && !is_component_build) {
+ # This tests dynamically loads libmojo_test_support even in non-component
+ # builds.
+ configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
+ }
}
test("mojo_public_system_perftests") {
@@ -123,6 +141,12 @@ test("mojo_public_system_perftests") {
":run_all_perftests",
"//mojo/public/c/system/tests:perftests",
]
+
+ if (is_linux && !is_component_build) {
+ # This tests dynamically loads libmojo_test_support even in non-component
+ # builds.
+ configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
+ }
}
test("mojo_public_system_unittests") {
@@ -130,6 +154,12 @@ test("mojo_public_system_unittests") {
":run_all_unittests",
"//mojo/public/cpp/system/tests",
]
+
+ if (is_linux && !is_component_build) {
+ # This tests dynamically loads libmojo_test_support even in non-component
+ # builds.
+ configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
+ }
}
test("mojo_public_utility_unittests") {
@@ -137,4 +167,10 @@ test("mojo_public_utility_unittests") {
":run_all_unittests",
"//mojo/public/cpp/utility/tests",
]
+
+ if (is_linux && !is_component_build) {
+ # This tests dynamically loads libmojo_test_support even in non-component
+ # builds.
+ configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
+ }
}
« no previous file with comments | « mojo/common/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698