Don't declare pigweed variables as globals

Require targets to explicitly import pigweed variable definitions. This
moves out some necessary logic from the BUILDCONFIG.gn file.

Change-Id: If9c9fe5a680cc9d897a0e8a55889873be618ed84
diff --git a/pw_build/target_types.gni b/pw_build/target_types.gni
index 9797763..98b6aca 100644
--- a/pw_build/target_types.gni
+++ b/pw_build/target_types.gni
@@ -12,6 +12,11 @@
 # License for the specific language governing permissions and limitations under
 # the License.
 
+# gn-format disable
+import("//build_overrides/pigweed.gni")
+
+import("$dir_pigweed/legacy_target.gni")
+
 # TODO(frolv): The code in all of the templates below is duplicated, with the
 # exception of the target type. This file could be auto-generated with Python.