tpm_manager: Build from AOSP

This CL allows for tpm_manager to compile from its new source code
location.
This CL also modifies the MODULE_LICENSE to apache2.

Bug: 23900830
TEST=emerge-link tpm_manager

Change-Id: I2c62aab9c93f909b8b9ba8ee78c307f34b40e9b9
diff --git a/MODULE_LICENSE_BSD b/MODULE_LICENSE_APACHE2
similarity index 100%
rename from MODULE_LICENSE_BSD
rename to MODULE_LICENSE_APACHE2
diff --git a/tpm_manager.gyp b/tpm_manager.gyp
index af8bff5..aabcbab 100644
--- a/tpm_manager.gyp
+++ b/tpm_manager.gyp
@@ -16,7 +16,7 @@
 
 {
   'target_defaults': {
-    'includes': ['../common-mk/common.gypi'],
+    'includes': ['../../../platform2/common-mk/common.gypi'],
     'variables': {
       'deps': [  # This is a list of pkg-config dependencies
         'libchrome-<(libbase_ver)',
@@ -25,6 +25,11 @@
         'protobuf-lite',
       ],
     },
+    'include_dirs': [
+      # We need this include dir because we include all the local code as
+      # "tpm_manager/...".
+      '<(platform2_root)/../aosp/system/',
+    ],
     'defines': [ 'USE_TPM2=<(USE_tpm2)' ],
   },
   'targets': [
@@ -42,7 +47,7 @@
         'common/print_dbus_interface_proto.cc',
         'common/print_local_data_proto.cc',
       ],
-      'includes': ['../common-mk/protoc.gypi'],
+      'includes': ['../../../platform2/common-mk/protoc.gypi'],
     },
     # A shared library for clients.
     {
@@ -130,7 +135,7 @@
         {
           'target_name': 'tpm_manager_testrunner',
           'type': 'executable',
-          'includes': ['../common-mk/common_test.gypi'],
+          'includes': ['../../../platform2/common-mk/common_test.gypi'],
           'variables': {
             'deps': [
               'libchrome-test-<(libbase_ver)',