Add configuration for debugging the AES project
This commit is contained in:
parent
faffa17efe
commit
c0a2733cb3
2 changed files with 41 additions and 0 deletions
|
@ -77,7 +77,34 @@
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "${workspaceFolder:Solution Items}/scripts/delete.cmd",
|
"command": "${workspaceFolder:Solution Items}/scripts/delete.cmd",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build AES Project",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder:AES}"
|
||||||
|
},
|
||||||
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"launch": {
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "lldb",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Launch AES Project",
|
||||||
|
"program": "${workspaceFolder:AES}/bin/aes",
|
||||||
|
"args": [],
|
||||||
|
"cwd": "${workspaceFolder:AES}",
|
||||||
|
"preLaunchTask": "Build AES Project"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"compounds": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
14
aes/Makefile
Normal file
14
aes/Makefile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
CPPFLAGS = -g
|
||||||
|
|
||||||
|
BUILD_DIR = bin
|
||||||
|
|
||||||
|
$(BUILD_DIR)/aes: $(BUILD_DIR)/aes.o
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $< -o $@
|
||||||
|
|
||||||
|
$(BUILD_DIR)/%.o: %.cpp
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf $(BUILD_DIR)
|
Loading…
Reference in a new issue