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

check pkgconfig/cmake importfiles for package #6055

Merged
merged 4 commits into from
Jan 10, 2025
Merged

check pkgconfig/cmake importfiles for package #6055

merged 4 commits into from
Jan 10, 2025

Conversation

waruqi
Copy link
Member

@waruqi waruqi commented Jan 10, 2025

We can check pkgconfig/cmake importfiles

package("libxml2")
    on_test(function (package)
        assert(package:check_importfiles("pkgconfig::libxml-2.0"))
    end)

package("x264")
    on_test(function (package)
        assert(package:check_importfiles()) -- default: pkgconfig::x264
    end)

package("libcurl")
    on_test(function (package)
        assert(package:check_importfiles("cmake::CURL"))
    end)
> checking for pkgconfig/x264
checking for pkg-config ... /usr/local/bin/pkg-config
{
  includedirs = {
    "/Users/ruki/.xmake/packages/x/x264/v2024.02.27/7d8fe89a9dc648139ce022fac2728184/include"
  },
  version = "0.164.3192",
  links = {
    "x264",
    "pthread",
    "m",
    "dl"
  },
  linkdirs = {
    "/Users/ruki/.xmake/packages/x/x264/v2024.02.27/7d8fe89a9dc648139ce022fac2728184/lib"
  }
}

#5945

@waruqi waruqi added this to the v2.9.8 milestone Jan 10, 2025
@waruqi
Copy link
Member Author

waruqi commented Jan 10, 2025

We can check pkgconfig/cmake importfiles

@waruqi waruqi changed the title check pkgconfig for package check pkgconfig/cmake importfiles for package Jan 10, 2025
@waruqi waruqi merged commit ebc885c into dev Jan 10, 2025
38 checks passed
@waruqi waruqi deleted the pkgconfig branch January 10, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant