Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meson: Update version requirement for GTest (>= 1.10.0) #1131

Merged
merged 1 commit into from Mar 25, 2023

Commits on Mar 25, 2023

  1. meson: Update version requirement for GTest (>= 1.10.0)

    GTestの依存関係を探す処理を更新してバージョン要件を1.10.0以上にします。
    また、ライブラリ 'gtest_main' を使うようにmeson.buildを変更します。
    
    変更前は dependency() の 'main' キーワード引数[1]を利用して
    GTestが提供する main() とリンクしていました。
    GTest 1.10.0のころから pkg-config のサポートが追加されているため
    'main' キーワードを使わなくてもテストをビルドできるようになりました。
    
    この修正でMeson実装の一つである muon[2] を使ってJDimのビルドやテストが
    可能になります。dependency() の 'main' キーワードは今のところ
    古いGTestのサポート以外では使われていないようです。
    
    [1]: https://mesonbuild.com/Dependencies.html#gtest-and-gmock
    [2]: https://sr.ht/~lattis/muon/
    ma8ma committed Mar 25, 2023
    Configuration menu
    Copy the full SHA
    436fb04 View commit details
    Browse the repository at this point in the history