• Jan-Marek Glogowski's avatar
    Bug 290526 Fix gtests build for WIN% targets r=rrelyea · ea9bf78d
    Jan-Marek Glogowski authored
    The google_test gtest build doesn't provide any exports for the
    shared library on Windows and the gyp build also builds just a
    static library. So build gtest and gtestutil libraries as static.
    For whatever reason, the Windows linker doesn't find the main
    function inside the gtestutil library, if we don't tell it to
    build a console executable. But linking works fine, if the object
    file is used directly. But since we can have different main()
    objects based on build flags, we enforce building console
    applications binaries.
    Differential Revision: https://phabricator.services.mozilla.com/D70665
    extra : moz-landing-system : lando