CMakeLists.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. if(WINDOWS AND BUILD_SHARED_LIBS)
  2. add_definitions(-D_USEGUIDLL)
  3. endif()
  4. if(WINDOWS)
  5. set(COCOS_UI_SPECIFIC_HEADER
  6. ui/UIEditBox/UIEditBoxImpl-win32.h
  7. )
  8. set(COCOS_UI_SPECIFIC_SRC
  9. ui/UIEditBox/UIEditBoxImpl-win32.cpp
  10. )
  11. elseif(APPLE)
  12. if(MACOSX)
  13. set(COCOS_UI_SPECIFIC_HEADER
  14. ui/UIEditBox/UIEditBoxImpl-mac.h
  15. ui/UIEditBox/Mac/CCUIPasswordTextField.h
  16. ui/UIEditBox/Mac/CCUIMultilineTextField.h
  17. ui/UIEditBox/Mac/CCUITextInput.h
  18. ui/UIEditBox/Mac/CCUIEditBoxMac.h
  19. ui/UIEditBox/Mac/CCUISingleLineTextField.h
  20. ui/UIEditBox/Mac/CCUITextFieldFormatter.h
  21. )
  22. set(COCOS_UI_SPECIFIC_SRC
  23. ui/UIEditBox/UIEditBoxImpl-mac.mm
  24. ui/UIEditBox/Mac/CCUIEditBoxMac.mm
  25. ui/UIEditBox/Mac/CCUIMultilineTextField.m
  26. ui/UIEditBox/Mac/CCUIPasswordTextField.m
  27. ui/UIEditBox/Mac/CCUISingleLineTextField.m
  28. ui/UIEditBox/Mac/CCUITextFieldFormatter.m
  29. )
  30. elseif(IOS)
  31. set(COCOS_UI_SPECIFIC_HEADER
  32. ui/UIWebView.h
  33. ui/UIVideoPlayer.h
  34. ui/UIWebViewImpl-ios.h
  35. ui/UIEditBox/UIEditBoxImpl-ios.h
  36. ui/UIEditBox/iOS/CCUIEditBoxIOS.h
  37. ui/UIEditBox/iOS/CCUIMultilineTextField.h
  38. ui/UIEditBox/iOS/CCUITextInput.h
  39. ui/UIEditBox/iOS/UITextView+CCUITextInput.h
  40. ui/UIEditBox/iOS/UITextField+CCUITextInput.h
  41. ui/UIEditBox/iOS/CCUISingleLineTextField.h
  42. )
  43. set(COCOS_UI_SPECIFIC_SRC
  44. ui/UIWebView.mm
  45. ui/UIVideoPlayer-ios.mm
  46. ui/UIWebViewImpl-ios.mm
  47. ui/UIEditBox/UIEditBoxImpl-ios.mm
  48. ui/UIEditBox/iOS/CCUIEditBoxIOS.mm
  49. ui/UIEditBox/iOS/CCUIMultilineTextField.mm
  50. ui/UIEditBox/iOS/CCUISingleLineTextField.mm
  51. ui/UIEditBox/iOS/UITextField+CCUITextInput.mm
  52. ui/UIEditBox/iOS/UITextView+CCUITextInput.mm
  53. )
  54. endif()
  55. elseif(LINUX)
  56. set(COCOS_UI_SPECIFIC_HEADER
  57. ui/UIEditBox/UIEditBoxImpl-linux.h
  58. )
  59. set(COCOS_UI_SPECIFIC_SRC
  60. ui/UIEditBox/UIEditBoxImpl-linux.cpp
  61. )
  62. elseif(ANDROID)
  63. set(COCOS_UI_SPECIFIC_HEADER
  64. ui/UIWebView.h
  65. ui/UIVideoPlayer.h
  66. ui/UIWebViewImpl-android.h
  67. ui/UIEditBox/UIEditBoxImpl-android.h
  68. )
  69. set(COCOS_UI_SPECIFIC_SRC
  70. ui/UIEditBox/UIEditBoxImpl-android.cpp
  71. ui/UIVideoPlayer-android.cpp
  72. ui/UIWebViewImpl-android.cpp
  73. # it's special for android, not a common file
  74. ui/UIWebView.cpp
  75. )
  76. endif()
  77. set(COCOS_UI_HEADER
  78. ${COCOS_UI_SPECIFIC_HEADER}
  79. ui/CocosGUI.h
  80. ui/GUIDefine.h
  81. ui/GUIExport.h
  82. ui/UIAbstractCheckButton.h
  83. ui/UIButton.h
  84. ui/UICheckBox.h
  85. ui/UIDeprecated.h
  86. ui/UIHBox.h
  87. ui/UIHelper.h
  88. ui/UIImageView.h
  89. ui/UILayout.h
  90. ui/UILayoutComponent.h
  91. ui/UILayoutManager.h
  92. ui/UILayoutParameter.h
  93. ui/UIListView.h
  94. ui/UILoadingBar.h
  95. ui/UIPageView.h
  96. ui/UIPageViewIndicator.h
  97. ui/UIRadioButton.h
  98. ui/UIRelativeBox.h
  99. ui/UIRichText.h
  100. ui/UIScale9Sprite.h
  101. ui/UIScrollView.h
  102. ui/UIScrollViewBar.h
  103. ui/UISlider.h
  104. ui/UITabControl.h
  105. ui/UIText.h
  106. ui/UITextAtlas.h
  107. ui/UITextBMFont.h
  108. ui/UITextField.h
  109. ui/UIVBox.h
  110. ui/UIWidget.h
  111. )
  112. set(COCOS_UI_SRC
  113. ${COCOS_UI_SPECIFIC_SRC}
  114. ui/CocosGUI.cpp
  115. ui/UIButton.cpp
  116. ui/UIAbstractCheckButton.cpp
  117. ui/UICheckBox.cpp
  118. ui/UIRadioButton.cpp
  119. ui/UIDeprecated.cpp
  120. ui/UIHBox.cpp
  121. ui/UIHelper.cpp
  122. ui/UIImageView.cpp
  123. ui/UILayout.cpp
  124. ui/UILayoutManager.cpp
  125. ui/UILayoutParameter.cpp
  126. ui/UIListView.cpp
  127. ui/UILoadingBar.cpp
  128. ui/UIPageView.cpp
  129. ui/UIPageViewIndicator.cpp
  130. ui/UIRelativeBox.cpp
  131. ui/UIRichText.cpp
  132. ui/UIScale9Sprite.cpp
  133. ui/UIScrollView.cpp
  134. ui/UIScrollViewBar.cpp
  135. ui/UISlider.cpp
  136. ui/UIText.cpp
  137. ui/UITextAtlas.cpp
  138. ui/UITextBMFont.cpp
  139. ui/UITextField.cpp
  140. ui/UIVBox.cpp
  141. ui/UIWidget.cpp
  142. ui/UIEditBox/UIEditBox.cpp
  143. ui/UILayoutComponent.cpp
  144. ui/UIEditBox/UIEditBoxImpl-common.cpp
  145. ui/UITabControl.cpp
  146. )