Added documentation 64/183664/3 accepted/tizen/5.0/unified/20181102.021941 accepted/tizen/unified/20180914.073211 submit/tizen/20180913.130633 submit/tizen_5.0/20181101.000004
authorr.tyminski <r.tyminski@partner.samsung.com>
Mon, 9 Jul 2018 15:12:39 +0000 (17:12 +0200)
committerRafa? Tymi?ski <r.tyminski@partner.samsung.com>
Fri, 13 Jul 2018 09:54:05 +0000 (09:54 +0000)
Added doc directory and CMakeLists.txt file with example
unified-ta-devkit usage.

Change-Id: I9795b590def1f0c599e29c98699efc29912a61ab

doc/CMakeLists.txt [new file with mode: 0644]

diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644 (file)
index 0000000..f6939f4
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+#
+#    Licensed under the Apache License, Version 2.0 (the "License");
+#    you may not use this file except in compliance with the License.
+#    You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
+# @file
+# @author  Rafał Tymiński (r.tyminski@partner.samsung.com)
+# @brief   CMakeLists for example TA
+#
+
+############# Entry defines #############
+
+SET(TARGET_TA 00000000-1234-5678-8765-432123456789.elf)
+
+SET(TA_SOURCES
+    src/example.c
+    )
+
+SET(TA_HEADERS
+    include/example_defines.h
+    )
+
+INCLUDE(FindPkgConfig)
+
+PKG_CHECK_MODULES(TA_DEPS REQUIRED
+    unified-ta-devkit
+    )
+
+INCLUDE(UnifiedTADevkit)
+
+ADD_EXECUTABLE(${TARGET_TA}
+    ${TA_SOURCES}
+    )
+
+TARGET_LINK_LIBRARIES(${TARGET_TA}
+    ${TA_DEPS_LIBRARIES}
+    ${TA_DEPS_STATIC_LIBRARIES}
+    )
+
+GENERATE_TA_IMAGE(SIGNED_TA ${TARGET_TA} ${TA_PATH}/example.xml ${TA_NAME})
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${TA_NAME} DESTINATION ${TASTORE_DIR})
+INSTALL(FILES ${TA_HEADERS} DESTINATION ${INCLUDE_DIR})