I share your concern about deficit spending, but I’m not familiar with it being included in any measures of GDP.
"GDP is calculated by adding consumption plus government expenditures plus investments plus exports minus imports. Consumption is personal consumption that includes durable goods (durable goods are goods that are expected to last more than three years), non-durable goods (such as food and clothing) and services. Government expenditures include things like defense and road construction. Investment spending includes plants and equipment, residential homes and business inventory. Finally, subtract imports from exports to get the net exports."
GDP = C + I + G + (EX - IM)
where
C = private consumption
I = private investment
G = government expenditure
EX = exports of goods and services
IM = imports of goods and services