metrics: Create a standalone ebuild for system_api

system_api is required by a lot of platform2 packages. We need it to be in a
standalone ebuild in order for other packages to depend on it.

This package installs the common headers and compiles the protobufs into static

TEST=FEATURES=test emerge-amd64-generic platform2.
TEST=trybot run on daisy, link, duck, x86-mario.
TEST=trybot run on lumpy-incremental-release.


Change-Id: If0b601576593855cbc21a6358977d6e313cf696e
Reviewed-by: Mike Frysinger <>
Tested-by: Bertrand Simonnet <>
Commit-Queue: Bertrand Simonnet <>
diff --git a/metrics.gyp b/metrics.gyp
index b8dccf6..3df31ff 100644
--- a/metrics.gyp
+++ b/metrics.gyp
@@ -24,7 +24,6 @@
       'type': 'static_library',
       'dependencies': [
-        '<(platform_root)/system_api/system_api.gyp:system_api-headers',
       'link_settings': {
         'libraries': [