Bug 1302028 - part 7 - conditionally add bindgen features to gkrust* libraries; r=gps
authornfroyd@mozilla.com <nfroyd@mozilla.com>
Fri, 20 Jan 2017 16:33:04 +0000
changeset 375373 b356280b20663fd0523ce7b62cde1fd4f3f5438d
parent 375372 e44e0b52a83293429000c1b89d91f2d77c0ccd26
child 375374 1781d98423dbf8a6cfd5602913d4a2cc40f5452c
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1302028
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1302028 - part 7 - conditionally add bindgen features to gkrust* libraries; r=gps
toolkit/library/gtest/rust/moz.build
toolkit/library/rust/moz.build
--- a/toolkit/library/gtest/rust/moz.build
+++ b/toolkit/library/gtest/rust/moz.build
@@ -1,7 +1,11 @@
 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
 # vim: set filetype=python:
 # 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/.
 
-RustLibrary('gkrust-gtest')
+features = []
+if CONFIG['MOZ_STYLO'] and CONFIG['MOZ_STYLO_BINDGEN']:
+    features += ['bindgen']
+
+RustLibrary('gkrust-gtest', features)
--- a/toolkit/library/rust/moz.build
+++ b/toolkit/library/rust/moz.build
@@ -1,7 +1,11 @@
 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
 # vim: set filetype=python:
 # 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/.
 
-RustLibrary('gkrust')
+features = []
+if CONFIG['MOZ_STYLO'] and CONFIG['MOZ_STYLO_BINDGEN']:
+    features += ['bindgen']
+
+RustLibrary('gkrust', features)