diff options
author | crupest <crupest@outlook.com> | 2018-09-25 01:38:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-25 01:38:56 +0800 |
commit | 2acd4830d71715054338126d7968762b0bf06cf6 (patch) | |
tree | 6f82ddf4caf838d6e68e44ffbfc6e7385dacab0a | |
parent | 8e50d97e6e9c53ff49d37bd52f7431aa4e73dd82 (diff) | |
download | cru-2acd4830d71715054338126d7968762b0bf06cf6.tar.gz cru-2acd4830d71715054338126d7968762b0bf06cf6.tar.bz2 cru-2acd4830d71715054338126d7968762b0bf06cf6.zip |
Develop ci.
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .gitlab-ci.yml | 14 | ||||
-rw-r--r-- | CruUI/CMakeLists.txt | 33 | ||||
-rw-r--r-- | script/build.ps1 | 6 |
4 files changed, 53 insertions, 2 deletions
@@ -330,3 +330,5 @@ ASALocalRun/ # Local History for Visual Studio .localhistory/ + +build/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fc7ac29f..0407fdc4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,2 +1,12 @@ -test: - script: echo "Hello world!" +before_script: + - vcpkg.exe install folly:x64-windows fmt:x64-windows + +stages: + - build + - test + - deploy + +build: + stage: build + script: + - ./script/build.ps1 diff --git a/CruUI/CMakeLists.txt b/CruUI/CMakeLists.txt new file mode 100644 index 00000000..5384b113 --- /dev/null +++ b/CruUI/CMakeLists.txt @@ -0,0 +1,33 @@ +cmake_minimum_required(VERSION 3.12) +project(CruUI) + +if (MSVC_VERSION GREATER_EQUAL "1900") + include(CheckCXXCompilerFlag) + CHECK_CXX_COMPILER_FLAG("/std:c++latest" _cpp_latest_flag_supported) + if (_cpp_latest_flag_supported) + add_compile_options("/std:c++latest") + endif() +endif() + +include_directories(.) + +add_executable(CruUI + graph/graph.cpp + ui/animations/animation.cpp + ui/controls/button.cpp + ui/controls/linear_layout.cpp + ui/controls/margin_container.cpp + ui/controls/text_block.cpp + ui/controls/text_box.cpp + ui/controls/text_control.cpp + ui/controls/toggle_button.cpp + ui/events/ui_event.cpp + ui/control.cpp + ui/layout_base.cpp + ui/ui_base.cpp + ui/window.cpp + application.cpp + base.cpp + exception.cpp + main.cpp + timer.cpp) diff --git a/script/build.ps1 b/script/build.ps1 new file mode 100644 index 00000000..fb928555 --- /dev/null +++ b/script/build.ps1 @@ -0,0 +1,6 @@ +cd ..\CruUI +Remove-Item build -Recurse -ErrorAction Ignore +New-Item build -ItemType Directory +cd .\build +cmake -G "Visual Studio 15 2017 Win64" .. +cmake --build . |