1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
| { "version": "2.0.0", "tasks": [ { "label": "create-build-directories", "type": "shell", "command": "mkdir", "args": [ "-Force", "-Path", "${workspaceFolder}/build,", "${workspaceFolder}/build/obj,", "${workspaceFolder}/build/dist,", "${workspaceFolder}/src/binding" ], "options": { "cwd": "${fileDirname}", "shell": { "executable": "powershell.exe" } }, "problemMatcher": [], "detail": "用 PowerShell 自动创建 build 相关目录" }, { "type": "cppbuild", "label": "C/C++: cl.exe build pybind11 file", "command": "cl", "args": [ "/O2", "/LD", "/EHsc", "/source-charset:utf-8", "/I", "D:\\Environment\\Miniconda3\\envs\\p3_14_pybind\\Lib\\site-packages\\pybind11\\include", "/I", "D:\\Environment\\Miniconda3\\envs\\p3_14_pybind\\Include", "/Fo\"${workspaceFolder}\\build\\obj\\${fileBasenameNoExtension}.obj\"", "${workspaceFolder}\\src\\binding\\${fileBasenameNoExtension}.cpp", "/link", "/LIBPATH:\"D:\\Environment\\Miniconda3\\envs\\p3_14_pybind\\libs\"", "python314.lib", "/IMPLIB:\"${workspaceFolder}\\build\\obj\\${fileBasenameNoExtension}.lib\"", "/OUT:\"${workspaceFolder}\\build\\dist\\${fileBasenameNoExtension}.pyd\"", "/EXPORT:PyInit_${fileBasenameNoExtension}" ], "options": { "cwd": "${fileDirname}" }, "problemMatcher": [ "$msCompile" ], "group": { "kind": "build", "isDefault": false }, "dependsOn": "create-build-directories", "detail": "compiler: cl.exe" } ] }
|