2023-11-22

[vscode] arm or x64 launch

// tasks.json
{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "checkCrossCompile",
      "command": "bash",
      "args": ["-c", "if [ -n \"$CROSS_COMPILE\" ]; then echo 'true'; else echo 'false'; fi"],
      "type": "shell",
      "options": {
        "env": {
          "IS_CROSS_COMPILE": "${command:checkCrossCompile}"
        }
      }
    }
  ]
}

// launch.json
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "C++ Launch (x64)",
      "type": "cppdbg",
      "request": "launch",
      "program": "${workspaceFolder}/build_x64/executable",
      "env": {
        "IS_CROSS_COMPILE": "false"
      }
    },
    {
      "name": "C++ Launch (ARM)",
      "type": "cppdbg",
      "request": "launch",
      "program": "${workspaceFolder}/build_arm/executable",
      "env": {
        "IS_CROSS_COMPILE": "true"
      }
    }
  ]
}

댓글 없음:

댓글 쓰기

암호화 + base64 하고 쉘스크립트.

 #!/bin/bash # IV와 UserKey를 설정합니다 (아스키 문자열을 그대로 사용). IV="0123456789abcdef"  UserKey="0123456789abcdef" # IV와 UserKey를 16...