axmol/cocos/ui/CMakeLists.txt

151 lines
4.1 KiB
CMake
Raw Normal View History

if(WINDOWS AND BUILD_SHARED_LIBS)
add_definitions(-D_USEGUIDLL)
endif()
if(WINDOWS)
set(COCOS_UI_SPECIFIC_HEADER
ui/UIEditBox/UIEditBoxImpl-win32.h
)
V3 android cmake support, add mac/ios support (#18646) * CMake build improvements * android cmake support * Enable proguard for cocos2d * examples & test cmake support * add android build type param to gradle.properties file * less warnings * update all android configs to recomended settings * fix network cmake error * fix js-tests cmake error * android build config, add cmake * android build config, add cmake * add lua share lib * android lua cmake build fix * fix * luajit test * run fail, still * fix js-warning * correct lua main include * lua test project cmake support android * try to add lua-template cmake support * lua template fix * js_tests support cmake on android * js-tests improve * cmake support js-template * test to realise prebuild * cmake improve, no feature * improve templates cmake * refactor cmake struct * correct cpp-tests cmake * cpp-templates cmake improve * typo fix * cmake struct refator * change default option * adapt new project struct * uniform cmake test style * add_dependencies to support make -j * little struct improve * little fix * adapt cmake bin dir * little improve about cmake version * change build all tests condition * add source_group for Xcode * add mark source files * add more mark source code * add template project to test * add macos info.plist template * add pak macos for all project * lua test icon fix * not consider lua project for now * modify pak method * add another ios toolchain * add ios system library * update ios toolchain, and reduce ios compile errors * reduce error * make ios engine lib compile pass * cpp-empty-test ios bundle * cpp-tests ios support * js-tests ios support * templates project support ios * fix the way of lua-tests package * try to fix lua-template on macOS * comment lua-template sim file * improve display on xcode * update cmake readme * check android compile again * fix android compile error * fix linux cmake res error * update deps version, for cmake * fix lua_template linux compile error * close android cmake support for now * review template android share library name * change PROP_BUILD_TOOLS_VERSION version to 27.0.1 * change android compile version * make `PROP_APP_PLATFORM` back, add comments for android native build * Revert "make `PROP_APP_PLATFORM` back, add comments for android native build" This reverts commit 272ddc19886891b9502cde070753a870c0fdb588.
2018-02-08 09:24:33 +08:00
set(COCOS_UI_SPECIFIC_SRC
ui/UIEditBox/UIEditBoxImpl-win32.cpp
)
elseif(APPLE)
if(MACOSX)
set(COCOS_UI_SPECIFIC_HEADER
ui/UIEditBox/UIEditBoxImpl-mac.h
ui/UIEditBox/Mac/CCUIPasswordTextField.h
ui/UIEditBox/Mac/CCUIMultilineTextField.h
ui/UIEditBox/Mac/CCUITextInput.h
ui/UIEditBox/Mac/CCUIEditBoxMac.h
ui/UIEditBox/Mac/CCUISingleLineTextField.h
ui/UIEditBox/Mac/CCUITextFieldFormatter.h
)
set(COCOS_UI_SPECIFIC_SRC
ui/UIEditBox/UIEditBoxImpl-mac.mm
ui/UIEditBox/Mac/CCUIEditBoxMac.mm
ui/UIEditBox/Mac/CCUIMultilineTextField.m
ui/UIEditBox/Mac/CCUIPasswordTextField.m
ui/UIEditBox/Mac/CCUISingleLineTextField.m
ui/UIEditBox/Mac/CCUITextFieldFormatter.m
)
elseif(IOS)
set(COCOS_UI_SPECIFIC_HEADER
ui/UIWebView.h
ui/UIVideoPlayer.h
ui/UIWebViewImpl-ios.h
ui/UIEditBox/UIEditBoxImpl-ios.h
ui/UIEditBox/iOS/CCUIEditBoxIOS.h
ui/UIEditBox/iOS/CCUIMultilineTextField.h
ui/UIEditBox/iOS/CCUITextInput.h
ui/UIEditBox/iOS/UITextView+CCUITextInput.h
ui/UIEditBox/iOS/UITextField+CCUITextInput.h
ui/UIEditBox/iOS/CCUISingleLineTextField.h
)
set(COCOS_UI_SPECIFIC_SRC
ui/UIWebView.mm
ui/UIVideoPlayer-ios.mm
ui/UIWebViewImpl-ios.mm
ui/UIEditBox/UIEditBoxImpl-ios.mm
ui/UIEditBox/iOS/CCUIEditBoxIOS.mm
ui/UIEditBox/iOS/CCUIMultilineTextField.mm
ui/UIEditBox/iOS/CCUISingleLineTextField.mm
ui/UIEditBox/iOS/UITextField+CCUITextInput.mm
ui/UIEditBox/iOS/UITextView+CCUITextInput.mm
)
endif()
elseif(LINUX)
set(COCOS_UI_SPECIFIC_HEADER
ui/UIEditBox/UIEditBoxImpl-linux.h
)
set(COCOS_UI_SPECIFIC_SRC
ui/UIEditBox/UIEditBoxImpl-linux.cpp
)
V3 android cmake support, add mac/ios support (#18646) * CMake build improvements * android cmake support * Enable proguard for cocos2d * examples & test cmake support * add android build type param to gradle.properties file * less warnings * update all android configs to recomended settings * fix network cmake error * fix js-tests cmake error * android build config, add cmake * android build config, add cmake * add lua share lib * android lua cmake build fix * fix * luajit test * run fail, still * fix js-warning * correct lua main include * lua test project cmake support android * try to add lua-template cmake support * lua template fix * js_tests support cmake on android * js-tests improve * cmake support js-template * test to realise prebuild * cmake improve, no feature * improve templates cmake * refactor cmake struct * correct cpp-tests cmake * cpp-templates cmake improve * typo fix * cmake struct refator * change default option * adapt new project struct * uniform cmake test style * add_dependencies to support make -j * little struct improve * little fix * adapt cmake bin dir * little improve about cmake version * change build all tests condition * add source_group for Xcode * add mark source files * add more mark source code * add template project to test * add macos info.plist template * add pak macos for all project * lua test icon fix * not consider lua project for now * modify pak method * add another ios toolchain * add ios system library * update ios toolchain, and reduce ios compile errors * reduce error * make ios engine lib compile pass * cpp-empty-test ios bundle * cpp-tests ios support * js-tests ios support * templates project support ios * fix the way of lua-tests package * try to fix lua-template on macOS * comment lua-template sim file * improve display on xcode * update cmake readme * check android compile again * fix android compile error * fix linux cmake res error * update deps version, for cmake * fix lua_template linux compile error * close android cmake support for now * review template android share library name * change PROP_BUILD_TOOLS_VERSION version to 27.0.1 * change android compile version * make `PROP_APP_PLATFORM` back, add comments for android native build * Revert "make `PROP_APP_PLATFORM` back, add comments for android native build" This reverts commit 272ddc19886891b9502cde070753a870c0fdb588.
2018-02-08 09:24:33 +08:00
elseif(ANDROID)
set(COCOS_UI_SPECIFIC_HEADER
ui/UIWebView.h
ui/UIVideoPlayer.h
ui/UIWebViewImpl-android.h
ui/UIEditBox/UIEditBoxImpl-android.h
)
set(COCOS_UI_SPECIFIC_SRC
ui/UIEditBox/UIEditBoxImpl-android.cpp
ui/UIVideoPlayer-android.cpp
ui/UIWebViewImpl-android.cpp
# it's special for android, not a common file
ui/UIWebView.cpp
)
endif()
set(COCOS_UI_HEADER
${COCOS_UI_SPECIFIC_HEADER}
ui/CocosGUI.h
ui/GUIDefine.h
ui/GUIExport.h
ui/UIAbstractCheckButton.h
ui/UIButton.h
ui/UICheckBox.h
ui/UIDeprecated.h
ui/UIHBox.h
ui/UIHelper.h
ui/UIImageView.h
ui/UILayout.h
ui/UILayoutComponent.h
ui/UILayoutManager.h
ui/UILayoutParameter.h
ui/UIListView.h
ui/UILoadingBar.h
ui/UIPageView.h
ui/UIPageViewIndicator.h
ui/UIRadioButton.h
ui/UIRelativeBox.h
ui/UIRichText.h
ui/UIScale9Sprite.h
ui/UIScrollView.h
ui/UIScrollViewBar.h
ui/UISlider.h
ui/UITabControl.h
ui/UIText.h
ui/UITextAtlas.h
ui/UITextBMFont.h
ui/UITextField.h
ui/UIVBox.h
ui/UIWidget.h
)
set(COCOS_UI_SRC
${COCOS_UI_SPECIFIC_SRC}
ui/CocosGUI.cpp
ui/UIButton.cpp
ui/UIAbstractCheckButton.cpp
ui/UICheckBox.cpp
ui/UIRadioButton.cpp
ui/UIDeprecated.cpp
ui/UIHBox.cpp
ui/UIHelper.cpp
ui/UIImageView.cpp
ui/UILayout.cpp
ui/UILayoutManager.cpp
ui/UILayoutParameter.cpp
ui/UIListView.cpp
ui/UILoadingBar.cpp
ui/UIPageView.cpp
ui/UIPageViewIndicator.cpp
ui/UIRelativeBox.cpp
ui/UIRichText.cpp
ui/UIScale9Sprite.cpp
ui/UIScrollView.cpp
ui/UIScrollViewBar.cpp
ui/UISlider.cpp
ui/UIText.cpp
ui/UITextAtlas.cpp
ui/UITextBMFont.cpp
ui/UITextField.cpp
ui/UIVBox.cpp
ui/UIWidget.cpp
ui/UIEditBox/UIEditBox.cpp
ui/UILayoutComponent.cpp
ui/UIEditBox/UIEditBoxImpl-common.cpp
ui/UITabControl.cpp
)