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

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

Issue 1525773002: Only set -rpath=$ORIGIN in component builds by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | « ppapi/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 05e5904fe97167659fbba2f902e564dadfa0089a..2232a5e49f323f4f3097a9834e09a1877add6959 100644
--- a/third_party/mojo/src/mojo/edk/test/BUILD.gn
+++ b/third_party/mojo/src/mojo/edk/test/BUILD.gn
@@ -96,6 +96,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") {
@@ -103,6 +109,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") {
@@ -110,6 +122,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") {
@@ -117,6 +135,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") {
@@ -124,6 +148,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") {
@@ -131,4 +161,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 | « ppapi/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698