Merge "[WFD]: Added WFD specific make files and Sharedlibraries." into ics-mr1
authorKeith Deacon <kdeacon@ti.com>
Tue, 26 Jun 2012 20:23:47 +0000 (15:23 -0500)
committerGerrit Code Review <gerrit2@git.omapzoom.org>
Tue, 26 Jun 2012 20:23:47 +0000 (15:23 -0500)
wfd/Android.mk [new file with mode: 0644]
wfd/LICENSE [new file with mode: 0644]
wfd/NOTICE [new file with mode: 0644]
wfd/lib/libwfd_mpeg2tsrtp.so [new file with mode: 0755]
wfd/lib/libwfdservice.so [new file with mode: 0755]

diff --git a/wfd/Android.mk b/wfd/Android.mk
new file mode 100644 (file)
index 0000000..db48d05
--- /dev/null
@@ -0,0 +1,46 @@
+BUILD_WFD_FROM_SOURCE := device/ti/common-open/wfd/wfd-products.mk
+#If the above path for source code is present, then the code
+#is used for build, otherwise the libraries are copied and used.
+ifeq ($(wildcard $(BUILD_WFD_FROM_SOURCE)),)
+
+LOCAL_PATH := $(call my-dir)
+
+
+
+define _add-wfd-lib
+    include $$(CLEAR_VARS)
+    $(if $(word 2,$1),$(error Invalid WFD module name $1))
+    LOCAL_MODULE := $(basename $(notdir $1))
+    LOCAL_SRC_FILES := $1
+    LOCAL_MODULE_TAGS := optional
+    LOCAL_MODULE_SUFFIX := $(suffix $1)
+    LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+    LOCAL_MODULE_PATH := $$(TARGET_OUT)$(abspath /$(dir $1))
+    LOCAL_STRIP_MODULE := false
+    OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_LIBRARIES)
+    include $$(BUILD_PREBUILT)
+endef
+
+prebuilt_wfd_libs := \
+    lib/libwfdservice.so \
+    lib/libwfd_mpeg2tsrtp.so \
+
+prebuilt_wfd_modules := \
+    $(foreach _file,$(prebuilt_wfd_libs),$(notdir $(basename $(_file))))
+
+
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := ti_wfd_libs
+LOCAL_MODULE_TAGS := optional
+LOCAL_REQUIRED_MODULES := $(prebuilt_wfd_modules)
+include $(BUILD_PHONY_PACKAGE)
+
+$(foreach _file,$(prebuilt_wfd_libs),\
+  $(eval $(call _add-wfd-lib,$(_file))))
+
+prebuilt_wfd_modules :=
+prebuilt_wfd_libs :=
+_add-wfd-lib :=
+
+endif
diff --git a/wfd/LICENSE b/wfd/LICENSE
new file mode 100644 (file)
index 0000000..0481cd4
--- /dev/null
@@ -0,0 +1,35 @@
+TECHNOLOGY AND SOFTWARE PUBLICLY AVAILABLE SOFTWARE LICENSE
+
+Copyright (c) 2012, Texas Instruments Incorporated.
+
+All rights reserved.
+
+Redistribution.
+
+Redistribution and use in binary form, without modification, are
+permitted provided that the following conditions are met:
+
+* Redistributions must preserve existing copyright notices and reproduce
+this license (including the above copyright notice and the disclaimer below)
+in the documentation and/or other materials provided with the distribution.
+
+* Neither the name of Texas Instruments Incorporated nor the names of
+its suppliers may be used to endorse or promote products derived
+from this software without specific prior written permission.
+
+* No reverse engineering, decompilation, or disassembly of this
+software is permitted.
+
+DISCLAIMER.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/wfd/NOTICE b/wfd/NOTICE
new file mode 100644 (file)
index 0000000..0481cd4
--- /dev/null
@@ -0,0 +1,35 @@
+TECHNOLOGY AND SOFTWARE PUBLICLY AVAILABLE SOFTWARE LICENSE
+
+Copyright (c) 2012, Texas Instruments Incorporated.
+
+All rights reserved.
+
+Redistribution.
+
+Redistribution and use in binary form, without modification, are
+permitted provided that the following conditions are met:
+
+* Redistributions must preserve existing copyright notices and reproduce
+this license (including the above copyright notice and the disclaimer below)
+in the documentation and/or other materials provided with the distribution.
+
+* Neither the name of Texas Instruments Incorporated nor the names of
+its suppliers may be used to endorse or promote products derived
+from this software without specific prior written permission.
+
+* No reverse engineering, decompilation, or disassembly of this
+software is permitted.
+
+DISCLAIMER.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/wfd/lib/libwfd_mpeg2tsrtp.so b/wfd/lib/libwfd_mpeg2tsrtp.so
new file mode 100755 (executable)
index 0000000..e422dc5
Binary files /dev/null and b/wfd/lib/libwfd_mpeg2tsrtp.so differ
diff --git a/wfd/lib/libwfdservice.so b/wfd/lib/libwfdservice.so
new file mode 100755 (executable)
index 0000000..93fc76c
Binary files /dev/null and b/wfd/lib/libwfdservice.so differ