From 1cd384140daa0f30a3df5170903018a761028397 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Wed, 5 Oct 2016 11:17:28 -0700 Subject: [PATCH] GN: Add default target This reduces the number of objects when not specifying a build target during compile. This is especially significant for Android where the number of objects decreases from 3322 to 1761. BUG=libyuv:644 R=fbarchard@google.com Review URL: https://codereview.chromium.org/2395743002 . --- BUILD.gn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 1765c13fd..01b023ee6 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -19,6 +19,23 @@ config("libyuv_config") { } } +# This target is built when no specific target is specified on the command line. +group("default") { + testonly = true + deps = [ + ":libyuv", + ] + if (libyuv_include_tests) { + deps += [ + ":compare", + ":convert", + ":cpuid", + ":libyuv_unittest", + ":psnr", + ] + } +} + static_library("libyuv") { sources = [ # Headers