当前位置: 首页 > 工具软件 > Dub > 使用案例 >

dub配置示例.

丁俊智
2023-12-01
{
    "name": "rps-explosion",
    "dependencies": {
        "jsoniopipe": "~>0.1.3",
        "enet-d": "~>0.0.1",
        "raylib-d": "~>3.1.0"
    },
    "libs": ["enet", "raylib", "ws2_32", "winmm", "msvcrt", "user32", "gdi32"],
    "lflags": ["/LIBPATH:C:\\dprojects\\enet-1.3.17",
        "/LIBPATH:C:\\dprojects\\raylib-3.7.0_win64_msvc16\\lib", "/NODEFAULTLIB:libcmt", "/NODEFAULTLIB:libvcruntime"]
}

dub配置示例,可在里面加lflags,dflags,上个dmd不好编译,直接用ldc2就行了

 类似资料: