Skip to content

Instantly share code, notes, and snippets.

@h1romas4
Last active February 10, 2023 15:41
Show Gist options
  • Save h1romas4/0d1860f864177cd7f72dcd688ff45790 to your computer and use it in GitHub Desktop.
Save h1romas4/0d1860f864177cd7f72dcd688ff45790 to your computer and use it in GitHub Desktop.
MAME 向け VS Code の c_cpp_properties

c_cpp_properties.json

{
    "configurations": [
        {
            "name": "Linux",
            "intelliSenseMode": "gcc-x64",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "includePath": [
                "${workspaceFolder}/src/**",
                "${workspaceFolder}/3rdparty/**",
                "${workspaceFolder}/build/generated/**"
            ],
            "defines": [
                "SDLMAME_UNIX=1"
            ],
            "compilerPath": "/usr/bin/gcc"
        }
    ],
    "version": 4
}

tasks.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "make vgmplay (clang debug)",
            "type": "shell",
            "command": "make",
            "args": [
                "-j8",
                "OPTIMIZE=0",
                "SYMBOLS=1",
                "OVERRIDE_CC=clang",
                "OVERRIDE_CXX=clang++",
                "SUBTARGET=vgmplay",
                "SOURCES=src/mame/virtual/vgmplay.cpp"
            ],
            "group": "build",
            "presentation": {
                "clear": true,
                "focus": true
            },
            "problemMatcher": "$gcc"
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment