Bug 1475210 - Do not generate rules to install test-specific libraries during artifact builds.
MozReview-Commit-ID: B25vvkhBUo2
--- a/mozglue/tests/gtest/Injector/moz.build
+++ b/mozglue/tests/gtest/Injector/moz.build
@@ -1,9 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
DIST_INSTALL = False
SimplePrograms(['Injector'])
-TEST_HARNESS_FILES.gtest += ['!Injector.exe']
+if CONFIG['COMPILE_ENVIRONMENT']:
+ TEST_HARNESS_FILES.gtest += ['!Injector.exe']
--- a/mozglue/tests/gtest/InjectorDLL/moz.build
+++ b/mozglue/tests/gtest/InjectorDLL/moz.build
@@ -6,9 +6,10 @@
DIST_INSTALL = False
SharedLibrary('InjectorDLL')
UNIFIED_SOURCES = [
'InjectorDLL.cpp',
]
-TEST_HARNESS_FILES.gtest += ['!InjectorDLL.dll']
+if CONFIG['COMPILE_ENVIRONMENT']:
+ TEST_HARNESS_FILES.gtest += ['!InjectorDLL.dll']