blob: bbdc0e68fd46a797b8a48f319749b2f4f028897c [file] [log] [blame]
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# The autoconf code needs to be migrated from AC_PATH_PROG to
# AC_PATH_TOOL. http://code.google.com/p/googlemock/issues/detail?id=150
cros_pre_src_configure_gtest_config() {
[[ $(cros_target) != "board_sysroot" ]] && return 0
export ac_cv_path_GTEST_CONFIG=${CROS_BUILD_BOARD_BIN}/${CHOST}-gtest-config
}
# gmock can be used to throw exceptions with testing::Throw().
cros_pre_src_prepare_enable_cxx_exceptions() {
cros_enable_cxx_exceptions
}