Support CONFIG_INSPECTION in shared library builds.

Enable use of examples/inspect and
examples/analyzer when BUILD_SHARED_LIBS is enabled:

- Unconditionally export aom_free.
- Export ifd_init and ifd_inspect when CONFIG_INSPECTION
  is enabled.

BUG=aomedia:2161

Change-Id: Ide307b949c886fa8a0398e200980c80b58e3e74e
diff --git a/aom/exports_com b/aom/exports_com
index 2798bd5..cf99bc5 100644
--- a/aom/exports_com
+++ b/aom/exports_com
@@ -9,6 +9,7 @@
 text aom_codec_version
 text aom_codec_version_extra_str
 text aom_codec_version_str
+text aom_free
 text aom_img_alloc
 text aom_img_alloc_with_border
 text aom_img_flip
diff --git a/av1/exports_ident b/av1/exports_ident
new file mode 100644
index 0000000..b523a67
--- /dev/null
+++ b/av1/exports_ident
@@ -0,0 +1,2 @@
+text ifd_init
+text ifd_inspect
diff --git a/build/cmake/exports.cmake b/build/cmake/exports.cmake
index e0813dc..b6e14d9 100644
--- a/build/cmake/exports.cmake
+++ b/build/cmake/exports.cmake
@@ -35,6 +35,7 @@
                             -DAOM_XCODE=${XCODE} -DCONFIG_NAME=$<CONFIG>
                             -DCONFIG_AV1_DECODER=${CONFIG_AV1_DECODER}
                             -DCONFIG_AV1_ENCODER=${CONFIG_AV1_ENCODER}
+                            -DCONFIG_INSPECTION=${CONFIG_INSPECTION}
                             -DENABLE_TESTS=${ENABLE_TESTS} -P
                             "${AOM_ROOT}/build/cmake/generate_exports.cmake"
                     SOURCES ${AOM_EXPORTS_SOURCES}
diff --git a/build/cmake/exports_sources.cmake b/build/cmake/exports_sources.cmake
index 576920e..46bf001 100644
--- a/build/cmake/exports_sources.cmake
+++ b/build/cmake/exports_sources.cmake
@@ -19,6 +19,9 @@
 if(CONFIG_AV1_DECODER)
   list(APPEND AOM_EXPORTS_SOURCES "${AOM_ROOT}/aom/exports_dec"
               "${AOM_ROOT}/av1/exports_dec")
+  if(CONFIG_INSPECTION)
+    list(APPEND AOM_EXPORTS_SOURCES "${AOM_ROOT}/av1/exports_ident")
+  endif()
 endif()
 
 if(CONFIG_AV1_ENCODER)