This new structure provides several benefits:
* Allows us to install multiple CMake projects in the same destination
dir (without include path conflicts).
- This makes shipping the trading algo sdk a trivial excercise. Simply
copy the lib and include dirs from the install dest. That's it!
* Puts us in a position to break up the monolithic libspark into smaller
modules, which are easier to manage.
325 lines
8.7 KiB
JSON
325 lines
8.7 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": ".NET Core Attach",
|
|
"type": "coreclr",
|
|
"request": "attach"
|
|
},
|
|
{
|
|
"name": "Api Server",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"program": "",
|
|
"windows": {
|
|
"preLaunchTask": "Build Api Server (Debug)",
|
|
"program": "spark_api_server.exe",
|
|
"args": [
|
|
"run",
|
|
"--sparkd",
|
|
"http://127.0.0.1:8000/config"
|
|
],
|
|
"cwd": "build/Debug/bin/net7.0",
|
|
},
|
|
"stopAtEntry": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "Api Server (Skip Build)",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"program": "",
|
|
"windows": {
|
|
"program": "spark_api_server.exe",
|
|
"args": [
|
|
"run",
|
|
"--sparkd",
|
|
"http://127.0.0.1:8000/config"
|
|
],
|
|
"cwd": "build/Debug/bin/net7.0",
|
|
},
|
|
"stopAtEntry": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "Bts.DataStreamWebApp.Server",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "Build DataStream WebApp (Debug)",
|
|
"program": "${workspaceFolder}/build/Debug/bin/net7.0/Bts.DataStreamWebApp.Server.dll",
|
|
"cwd": "${workspaceFolder}/build/Debug/bin/net7.0",
|
|
"env": {
|
|
"ASPNETCORE_HTTP_PORT": "8080",
|
|
"ASPNETCORE_HTTPS_PORT": "8443",
|
|
"ASPNETCORE_ENVIRONMENT": "${input:dataStreamWebAppServerEnvironment}",
|
|
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy",
|
|
}
|
|
},
|
|
{
|
|
"name": "Bts.DataStreamWebApp.Server (Skip Build)",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/build/Debug/bin/net7.0/Bts.DataStreamWebApp.Server.dll",
|
|
"cwd": "${workspaceFolder}/build/Debug/bin/net7.0",
|
|
"env": {
|
|
"ASPNETCORE_HTTP_PORT": "8080",
|
|
"ASPNETCORE_HTTPS_PORT": "8443",
|
|
"ASPNETCORE_ENVIRONMENT": "${input:dataStreamWebAppServerEnvironment}",
|
|
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy",
|
|
}
|
|
},
|
|
{
|
|
"name": "DataStreamPublisher",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "Build DataStream (Debug)",
|
|
"program": "",
|
|
"linux": {
|
|
"program": "DataStreamPublisher",
|
|
},
|
|
"windows": {
|
|
"program": "DataStreamPublisher.exe",
|
|
},
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "${input:dataStreamPublisherEnvironment}",
|
|
},
|
|
"cwd": "${workspaceFolder}/build/Debug/bin/net7.0",
|
|
"stopAtEntry": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "DataStreamPublisher (Skip Build)",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"program": "",
|
|
"linux": {
|
|
"program": "DataStreamPublisher",
|
|
},
|
|
"windows": {
|
|
"program": "DataStreamPublisher.exe",
|
|
},
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "${input:dataStreamPublisherEnvironment}",
|
|
},
|
|
"cwd": "${workspaceFolder}/build/Debug/bin/net7.0",
|
|
"stopAtEntry": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "(gdb) Launch",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "/home/bts/spark/build/sparkd-debug-clang/server/sparkd",
|
|
"args": ["run"],
|
|
"stopAtEntry": false,
|
|
"cwd": "/home/bts/spark/build/sparkd-debug-clang/server",
|
|
"environment": [],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
},
|
|
{
|
|
"name": "DataStreamQueryAnalyzer",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "Build DataStreamQueryAnalyzer (Debug)",
|
|
"program": "",
|
|
"windows": {
|
|
"program": "DataStreamQueryAnalyzer.exe",
|
|
"args": [
|
|
"--config",
|
|
"${workspaceFolder}/src/DataStreamSuite/DataStreamQueryAnalyzer/Configurations/DataStreamQueryAnalyzer.json"
|
|
],
|
|
"cwd": "build/Debug/bin/net7.0-windows",
|
|
"env": {
|
|
"PYTHON_EXE": "${workspaceFolder}/.venv/Scripts/python.exe"
|
|
},
|
|
},
|
|
"stopAtEntry": false,
|
|
"console": "integratedTerminal",
|
|
},
|
|
{
|
|
"name": "PubSubServer",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "Build DataStream (Debug)",
|
|
"program": "",
|
|
"linux": {
|
|
"program": "PubSubServer",
|
|
},
|
|
"windows": {
|
|
"program": "PubSubServer.exe",
|
|
},
|
|
"cwd": "build/Debug/bin/net7.0",
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "${input:pubSubServerEnvironment}",
|
|
},
|
|
"stopAtEntry": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "PubSubServer (Skip Build)",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"program": "",
|
|
"linux": {
|
|
"program": "PubSubServer",
|
|
},
|
|
"windows": {
|
|
"program": "PubSubServer.exe",
|
|
},
|
|
"cwd": "build/Debug/bin/net7.0",
|
|
"env": {
|
|
"DOTNET_ENVIRONMENT": "${input:pubSubServerEnvironment}",
|
|
},
|
|
"stopAtEntry": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "Spark",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"program": "",
|
|
"windows": {
|
|
"preLaunchTask": "Build Spark (Debug)",
|
|
"program": "Spark.exe",
|
|
"args": [
|
|
"--sparkd",
|
|
"http://127.0.0.1:8000/config"
|
|
],
|
|
"cwd": "build/Debug/bin/net7.0-windows",
|
|
},
|
|
"stopAtEntry": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "Spark (Parameterized)",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "Build Spark (Debug)",
|
|
"program": "",
|
|
"windows": {
|
|
"program": "Spark.exe",
|
|
"args": [
|
|
"--sparkd",
|
|
"${input:sparkConfigServer}"
|
|
],
|
|
"cwd": "build/Debug/bin/net7.0-windows",
|
|
},
|
|
"stopAtEntry": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "Sparkd",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"preLaunchTask": "Build Sparkd (Debug | Clang)",
|
|
"program": "",
|
|
"linux": {
|
|
"program": "${workspaceFolder}/build/sparkd-debug-clang/src/app_sparkd/sparkd",
|
|
},
|
|
"args": [
|
|
"run"
|
|
],
|
|
"cwd": "${workspaceFolder}/build/sparkd-debug-clang/src/app_sparkd",
|
|
"stopAtEntry": false,
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
},
|
|
{
|
|
"description": "Set Disassembly Flavor to Intel",
|
|
"text": "-gdb-set disassembly-flavor intel",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Sparkd (Skip Build)",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "",
|
|
"linux": {
|
|
"program": "${workspaceFolder}/build/sparkd-debug-clang/src/app_sparkd/sparkd",
|
|
},
|
|
"args": [
|
|
"run"
|
|
],
|
|
"cwd": "${workspaceFolder}/build/sparkd-debug-clang/src/app_sparkd",
|
|
"stopAtEntry": false,
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
},
|
|
{
|
|
"description": "Set Disassembly Flavor to Intel",
|
|
"text": "-gdb-set disassembly-flavor intel",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
},
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "dataStreamPublisherEnvironment",
|
|
"type": "pickString",
|
|
"description": "Publisher Configuration",
|
|
"options": [
|
|
"Development",
|
|
"MarketData",
|
|
"Production",
|
|
"ProductionAws",
|
|
"Staging",
|
|
],
|
|
"default": "MarketDataPublisher",
|
|
},
|
|
{
|
|
"id": "pubSubServerEnvironment",
|
|
"type": "pickString",
|
|
"description": "PubSub Configuration",
|
|
"options": [
|
|
"Development",
|
|
"EchoServer",
|
|
"Production",
|
|
"ProductionAws",
|
|
"Staging",
|
|
],
|
|
"default": "Development",
|
|
},
|
|
{
|
|
"id": "dataStreamWebAppServerEnvironment",
|
|
"type": "pickString",
|
|
"description": "DataStream WebApp Environment",
|
|
"options": [
|
|
"Development",
|
|
"Production",
|
|
"ProductionAws",
|
|
"Staging",
|
|
]
|
|
},
|
|
{
|
|
"id": "sparkConfigServer",
|
|
"type": "promptString",
|
|
"description": "Config Server URL",
|
|
"default": "http://localhost:8000/config",
|
|
},
|
|
{
|
|
"id": "isSparkApiEnabled",
|
|
"type": "pickString",
|
|
"description": "Enable Spark Api (connect to sparkd)",
|
|
"options": [
|
|
"True",
|
|
"False",
|
|
],
|
|
"default": "True",
|
|
}
|
|
]
|
|
}
|