Skip to content

v1.4.6

Choose a tag to compare

@ravi688 ravi688 released this 26 Sep 23:57
· 19 commits to main since this release

What's Changed

  • 105 new add link with variable to link against libraries within the same mesonbuild file by @ravi688 in #106
  • Print git commit id for the build when --version is queried by @ravi688 in #107

Full Changelog: v1.4.5...v1.4.6

Example of build_master.json with link_with:

{
    "project_name": "NetSocket",
    "canonical_name": "netsocket",
    "dependencies" : [ "common", "spdlog" ],
    "include_dirs": "include",
    "debug_defines" : [ "-DNETSOCKET_DEBUG" ],
    "release_defines" : [ "-DNETSOCKET_RELEASE" ],
    "windows_link_args" : [ "-lws2_32", "-liphlpapi" ],
    "vars" :
    {
            "sources" : [
                    "source/netsocket.cpp",
                    "source/netinterface.cpp",
                    "source/assert.cpp"
            ]
    },
    "targets": [
       {
            "name" : "netsocket_static",
            "is_static_library" : true,
            "is_install" : true,
            "build_defines" : [ "-DNETSOCKET_BUILD_STATIC_LIBRARY" ],
            "use_defines" : [ "-DNETSOCKET_USE_STATIC_LIBRARY" ],
            "sources" : [ "$sources" ]
        },
        {
            "name" : "netsocket_shared",
            "is_shared_library" : true,
            "is_install" : true,
            "build_defines" : [ "-DNETSOCKET_BUILD_SHARED_LIBRARY" ],
            "use_defines" : [ "-DNETSOCKET_USE_SHARED_LIBRARY" ],
            "sources" : [ "$sources" ]
        },
        {
            "name": "test_server",
            "is_executable": true,
            "link_with" : [ "netsocket_static" ],
            "sources": [
                "source/main.server.cpp"
            ]
        },
        {
            "name" : "test_client",
            "is_executable" : true,
            "link_with" : [ "netsocket_static" ],
            "sources" : [
                "source/main.client.cpp"
            ]
        }
    ]
}