How does GDP get measured?

If I buy a banana for 20 cents does that get added?

If the US exports $1000 worth of tires does that get added?

If someone from Mexico buys a tee-shirt from a US retailer online for $10 does that get added? IF they paid $6 to FedEx (American company) does that get added?

If I paid Ford $45 an hour for 2 hours to fix my car does that get added?

GDP is the market value of all final goods and services produced in a time period. So it's anything a consumer buys. A consumer can be you or me, a hospital, a business, the government, the French government, the canadian people, etc.

Or. GDP can be measured by the total income of everyone in a country during a time period

Yes to all of your examples