Skip to content

Commit 0e8942d

Browse files
committed
Write and open unity installers
1 parent 3b9b36e commit 0e8942d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+21964
-5
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.17)
22

33
project("UnityHubNative")
44
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR})
5-
set(CMAKE_CXX_STANDARD 14)
5+
set(CMAKE_CXX_STANDARD 17)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)
77
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<CONFIGURATION>)
88
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<CONFIGURATION>)
@@ -23,13 +23,17 @@ set(CPR_BUILD_TESTS OFF CACHE INTERNAL "")
2323
set(CPR_GENERATE_COVERAGE OFF CACHE INTERNAL "")
2424
add_subdirectory("cpr" EXCLUDE_FROM_ALL)
2525

26+
add_subdirectory("fmt" EXCLUDE_FROM_ALL)
27+
2628
target_link_libraries("${PROJECT_NAME}"
2729
PUBLIC
2830
wx::base
2931
wx::core
3032
wx::webview
3133
cpr
34+
fmt
3235
)
36+
target_include_directories(${PROJECT_NAME} PUBLIC "fmt/include")
3337

3438
# mac app
3539
set_target_properties("${PROJECT_NAME}" PROPERTIES

fmt/.clang-format

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Run manually to reformat a file:
2+
# clang-format -i --style=file <file>
3+
Language: Cpp
4+
BasedOnStyle: Google
5+
IndentPPDirectives: AfterHash
6+
IndentCaseLabels: false
7+
AlwaysBreakTemplateDeclarations: false
8+
DerivePointerAlignment: false

fmt/.travis.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
language: cpp
2+
dist: trusty
3+
sudo: false
4+
5+
os: linux
6+
7+
git:
8+
depth: 1
9+
10+
env:
11+
global:
12+
- secure: |-
13+
a1eovNn4uol9won7ghr67eD3/59oeESN+G9bWE+ecI1V6yRseG9whniGhIpC/YfMW/Qz5I
14+
5sxSmFjaw9bxCISNwUIrL1O5x2AmRYTnFcXk4dFsUvlZg+WeF/aKyBYCNRM8C2ndbBmtAO
15+
o1F2EwFbiso0EmtzhAPs19ujiVxkLn4=
16+
17+
matrix:
18+
include:
19+
# Documentation
20+
- env: BUILD=Doc
21+
sudo: required
22+
# g++ 6 on Linux with C++14
23+
- env: COMPILER=g++-6 BUILD=Debug STANDARD=14
24+
compiler: gcc
25+
addons:
26+
apt:
27+
update: true
28+
sources:
29+
- ubuntu-toolchain-r-test
30+
packages:
31+
- g++-6
32+
- env: COMPILER=g++-6 BUILD=Release STANDARD=14
33+
compiler: gcc
34+
addons:
35+
apt:
36+
update: true
37+
sources:
38+
- ubuntu-toolchain-r-test
39+
packages:
40+
- g++-6
41+
# g++ 8 on Linux with C++17
42+
- env: COMPILER=g++-8 BUILD=Debug STANDARD=17
43+
compiler: gcc
44+
addons:
45+
apt:
46+
update: true
47+
sources:
48+
- ubuntu-toolchain-r-test
49+
packages:
50+
- g++-8
51+
- env: COMPILER=g++-8 BUILD=Release STANDARD=17
52+
compiler: gcc
53+
addons:
54+
apt:
55+
update: true
56+
sources:
57+
- ubuntu-toolchain-r-test
58+
packages:
59+
- g++-8
60+
61+
# Apple clang on OS X with C++14
62+
- env: BUILD=Debug STANDARD=14
63+
compiler: clang
64+
os: osx
65+
- env: BUILD=Release STANDARD=14
66+
compiler: clang
67+
os: osx
68+
# clang 6.0 on Linux with C++14 (builds the fuzzers as well)
69+
- env: COMPILER=clang++-6.0 BUILD=Debug STANDARD=14 ENABLE_FUZZING=1
70+
compiler: clang
71+
addons:
72+
apt:
73+
update: true
74+
packages:
75+
- clang-6.0
76+
sources:
77+
- ubuntu-toolchain-r-test
78+
- llvm-toolchain-trusty
79+
- llvm-toolchain-trusty-6.0
80+
# clang 4.0 on Linux with C++14
81+
- env: COMPILER=clang++-4.0 BUILD=Debug STANDARD=11
82+
compiler: clang
83+
addons:
84+
apt:
85+
update: true
86+
packages:
87+
- clang-4.0
88+
sources:
89+
- ubuntu-toolchain-r-test
90+
- llvm-toolchain-trusty
91+
- llvm-toolchain-trusty-4.0
92+
# g++ 4.8 on Linux with C++11
93+
- env: COMPILER=g++-4.8 BUILD=Debug STANDARD=11
94+
compiler: gcc
95+
96+
before_script:
97+
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then export CXX=${COMPILER}; fi
98+
- if [[ "${BUILD}" != "Doc" ]]; then ${CXX} --version; fi
99+
100+
script:
101+
- support/travis-build.py

0 commit comments

Comments
 (0)