Bug 1475210 - Do not generate rules to install test-specific libraries during artifact builds. draft
authorChris Manchester <cmanchester@mozilla.com>
Thu, 12 Jul 2018 12:37:46 -0700
changeset 817530 b50adbfdd530d287cdd2c5dc74250108b4a6b68e
parent 817312 fe17acc6e291e54463db3ea82697c714ae5a4b27
push id116093
push userbmo:cmanchester@mozilla.com
push dateThu, 12 Jul 2018 19:39:43 +0000
bugs1475210
milestone63.0a1
Bug 1475210 - Do not generate rules to install test-specific libraries during artifact builds. MozReview-Commit-ID: B25vvkhBUo2
mozglue/tests/gtest/Injector/moz.build
mozglue/tests/gtest/InjectorDLL/moz.build
--- 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']