GN: Replace mojo/system.gni with forwarding groups
commitbef0b9045da427c4f2212a5aeb0a878eddee0edc
authorjamesr <jamesr@chromium.org>
Tue, 16 Sep 2014 20:23:37 +0000 (16 13:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Sep 2014 20:23:55 +0000 (16 20:23 +0000)
treef8572af469188ab965fc0b2c076f7dc1f0a1e235
parentc8fad04c1e2119f9e8efc68f32d5268161d044d3
GN: Replace mojo/system.gni with forwarding groups

Many targets in mojo need to depend on different targets depending on if
they are building in the static or component build. In gyp, this is done
with variables (since that's the only thing you have) and the GN build
initially copied these variables into //mojo/system.gni. This worked, but
is not very idomatic in GN. This replaces the variables with groups that
forward to the correct depenedency depending on the build type and
target type (encoded in the target name).

R=brettw@chromium.org, viettrungluu@chromium.org

Review URL: https://codereview.chromium.org/554363005

Cr-Commit-Position: refs/heads/master@{#295137}
40 files changed:
media/mojo/services/BUILD.gn
mojo/apps/js/BUILD.gn
mojo/apps/js/bindings/gl/BUILD.gn
mojo/aura/BUILD.gn
mojo/cc/BUILD.gn
mojo/common/BUILD.gn
mojo/examples/apptest/BUILD.gn
mojo/examples/aura_demo/BUILD.gn
mojo/examples/browser/BUILD.gn
mojo/examples/compositor_app/BUILD.gn
mojo/examples/content_handler_demo/BUILD.gn
mojo/examples/dbus_echo/BUILD.gn
mojo/examples/demo_launcher/BUILD.gn
mojo/examples/echo/BUILD.gn
mojo/examples/embedded_app/BUILD.gn
mojo/examples/keyboard/BUILD.gn
mojo/examples/media_viewer/BUILD.gn
mojo/examples/nesting_app/BUILD.gn
mojo/examples/pepper_container_app/BUILD.gn
mojo/examples/png_viewer/BUILD.gn
mojo/examples/sample_app/BUILD.gn
mojo/examples/surfaces_app/BUILD.gn
mojo/examples/wget/BUILD.gn
mojo/examples/window_manager/BUILD.gn
mojo/examples/wm_flow/BUILD.gn
mojo/gles2/BUILD.gn
mojo/public/c/system/BUILD.gn
mojo/public/gles2/BUILD.gn
mojo/services/html_viewer/BUILD.gn
mojo/services/native_viewport/BUILD.gn
mojo/services/network/BUILD.gn
mojo/services/public/cpp/geometry/BUILD.gn
mojo/services/public/cpp/input_events/BUILD.gn
mojo/services/public/cpp/surfaces/BUILD.gn
mojo/services/public/cpp/view_manager/BUILD.gn
mojo/services/surfaces/BUILD.gn
mojo/services/test_service/BUILD.gn
mojo/services/view_manager/BUILD.gn
mojo/services/window_manager/BUILD.gn
mojo/system.gni [deleted file]