GYP files and their corresponding GN files

Generally, foo/bar/bar.gyp corresponds to foo/bar/BUILD.gn, while foo/bar/baz.gyp corresponds to either foo/bar/baz/BUILD.gn or foo/bar/BUILD.gn (depending on whether it made sense to combine baz.gyp with bar.gyp). foo/bar/quux.gypi typically corresponds to foo/bar/quux.gni. Here is a table of irregular correspondences:

GYP FileGN FileNotes
build/common.gypicobalt/build/config/base.gni, starboard/build/config/base.gni (variables)A few variables have been omitted, moved to BUILDCONFIG.gn instead, or refactored into configs. See the GYP -> GN cookbook for more info.
build/common.gypicobalt/build/config/BUILD.gn (target defaults)
cobalt/build/all.gypBUILD.gn (in root directory)GN requires this location to be used
cobalt/build/config/base.gypicobalt/build/config/base.gni, starboard/build/config/base.gni (variables)See comments for build/common.gypi
starboard/linux/shared/compiler_flags.gypistarboard/linux/shared/BUILD.gn“Compiler Defaults” section
starboard/linux/shared/starboard_base_symbolize.gypstarboard/linux/shared/BUILD.gn“starboard_platform Target” section
starboard/linux/shared/starboard_platform.gypistarboard/linux/shared/BUILD.gn“starboard_platform Target” section
starboard/linux/x64x11/libraries.gypistarboard/linux/x64x11/BUILD.gnlibs variable of the compiler_defaults config
starboard/starboard_base_target.gypistarboard/build/config/BUILD.gn“Compiler Defaults” section