Skip to content

[Query]: How will I use pkg-config with 'nob.c' ? #240

@pritam12426

Description

@pritam12426
int main(int argc, char **argv)
{
        GO_REBUILD_URSELF(argc, argv);

        Cmd cmd = {0};
        nob_cc(&cmd);
        nob_cc_flags(&cmd);
        nob_cmd_append(&cmd, "-std="C_STANDARD);

        // I wish to use pkg-config how will i ?

        nob_cc_output(&cmd, MAIN_BINARY_FILE);
        nob_cc_inputs(&cmd, MAIN_FUNCTION_FILE);
        if (!cmd_run(&cmd)) return 1;
        
        return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions