[ttssh2-commit] [9410] プラグインを簡単に追加するためのフォルダを作成

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2021年 9月 11日 (土) 00:51:26 JST


Revision: 9410
          https://osdn.net/projects/ttssh2/scm/svn/commits/9410
Author:   zmatsuo
Date:     2021-09-11 00:51:25 +0900 (Sat, 11 Sep 2021)
Log Message:
-----------
プラグインを簡単に追加するためのフォルダを作成

Modified Paths:
--------------
    trunk/CMakeLists.txt

Added Paths:
-----------
    trunk/TTXAdditional/
    trunk/TTXAdditional/CMakeLists_sample.txt
    trunk/TTXAdditional/REAME.md

-------------- next part --------------
Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt	2021-09-10 15:51:15 UTC (rev 9409)
+++ trunk/CMakeLists.txt	2021-09-10 15:51:25 UTC (rev 9410)
@@ -180,6 +180,9 @@
 add_subdirectory(doc)
 add_subdirectory(doc_internal)
 add_subdirectory(tools)
+if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/TTXAdditional/CMakeLists.txt)
+  add_subdirectory(TTXAdditional)
+endif()
 
 ### create buildinfo.txt
 configure_file(

Added: trunk/TTXAdditional/CMakeLists_sample.txt
===================================================================
--- trunk/TTXAdditional/CMakeLists_sample.txt	                        (rev 0)
+++ trunk/TTXAdditional/CMakeLists_sample.txt	2021-09-10 15:51:25 UTC (rev 9410)
@@ -0,0 +1,46 @@
+set(PACKAGE_NAME "TTXtest2")
+
+project(${PACKAGE_NAME})
+
+add_library(
+  ${PACKAGE_NAME} SHARED
+  ../TTXSamples/ttxtest/ttxtest.c
+  )
+
+if(SUPPORT_OLD_WINDOWS)
+  target_link_libraries(
+    ${PACKAGE_NAME}
+    PRIVATE
+    layer_for_unicode
+    )
+  if(MSVC)
+    target_sources(
+      ${PACKAGE_NAME}
+      PRIVATE
+      ../teraterm/common/compat_w95_vs2005.c
+      )
+  endif()
+  if(MINGW)
+    target_sources(
+      ${PACKAGE_NAME}
+      PRIVATE
+      ../teraterm/libmingw/tlssup.c
+      )
+  endif()
+endif(SUPPORT_OLD_WINDOWS)
+
+set_target_properties(
+  ${PACKAGE_NAME}
+  PROPERTIES
+  PREFIX ""
+  RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/"
+  )
+
+target_include_directories(
+  ${PACKAGE_NAME}
+  PRIVATE
+  ../teraterm/teraterm
+  ../teraterm/common
+  )
+
+set_target_properties(${PACKAGE_NAME} PROPERTIES FOLDER TTXAdditional)

Added: trunk/TTXAdditional/REAME.md
===================================================================
--- trunk/TTXAdditional/REAME.md	                        (rev 0)
+++ trunk/TTXAdditional/REAME.md	2021-09-10 15:51:25 UTC (rev 9410)
@@ -0,0 +1,4 @@
+# 追加プラグインフォルダ
+
+- cmakeビルドでのみ有効
+- このフォルダに CMakeLists.txt を置くと自動的にビルドされる


ttssh2-commit メーリングリストの案内
Back to archive index