mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 18:05:35 -05:00
Compare commits
63 commits
8aeb5855ad
...
2794f21043
Author | SHA1 | Date | |
---|---|---|---|
|
2794f21043 | ||
|
d0eb881ebc | ||
|
6e2b08a2e2 | ||
|
ebd65401cb | ||
|
82668ee06c | ||
|
3704aa3009 | ||
|
deb379d760 | ||
|
28cceb16e5 | ||
|
7aac501905 | ||
|
edb0fd5b85 | ||
|
ec0fc78767 | ||
|
6fe0582fdf | ||
|
97b6a68b7d | ||
|
90676409ab | ||
|
4788df91da | ||
|
08463f2d0b | ||
|
a743d02bbc | ||
|
17e666b92d | ||
|
ac137d84c9 | ||
|
cd2fcdc078 | ||
|
4dc5ba07d0 | ||
|
807da4754f | ||
|
227ab28912 | ||
|
826054fa64 | ||
|
93793ac816 | ||
|
0005f4ed66 | ||
|
0fdc519c51 | ||
|
78e78e4c74 | ||
|
13b30ffbaf | ||
|
306a35f86d | ||
|
04ed383f95 | ||
|
37590e957f | ||
|
1d8a64f77e | ||
|
df0684aeb9 | ||
|
b2dcbe73bd | ||
|
2d13305dc5 | ||
|
08ccb5422b | ||
|
5eedc99b4f | ||
|
57e9e7f627 | ||
|
0bb056d08e | ||
|
193899bf3d | ||
|
e6fedb0be0 | ||
|
c5b1ba3af5 | ||
|
a4197cdf80 | ||
|
4643044ff3 | ||
|
b774debf1e | ||
|
913cdaa9d5 | ||
|
b4c9b62e32 | ||
|
3ac48d2c27 | ||
|
8d741e534e | ||
|
c0edf946ef | ||
|
21a5b21009 | ||
|
432fef707b | ||
|
48bd891398 | ||
|
3b8e14eaf7 | ||
|
05ab42c9b6 | ||
|
5b523aa2e1 | ||
|
36af716e36 | ||
|
41ecd8e892 | ||
|
2eca9dea9b | ||
|
6117ab36b3 | ||
|
65d0528729 | ||
|
62d37f52cb |
3 changed files with 29 additions and 22 deletions
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
|
@ -154,23 +154,20 @@ jobs:
|
||||||
has-sccache: ${{ inputs.use-ccache }}
|
has-sccache: ${{ inputs.use-ccache }}
|
||||||
if: inputs.build-debug-info
|
if: inputs.build-debug-info
|
||||||
|
|
||||||
- name: Setup caches
|
# due to very strange performance issues, sccache is currently disabled for macos. sorry
|
||||||
uses: ./.github/actions/setup-cache
|
|
||||||
with:
|
# - name: Setup caches
|
||||||
host: mac
|
# uses: ./.github/actions/setup-cache
|
||||||
target: mac
|
# with:
|
||||||
use-ccache: ${{ github.event_name != 'workflow_dispatch' || inputs.use-ccache }}
|
# host: mac
|
||||||
|
# target: mac
|
||||||
|
# use-ccache: ${{ github.event_name != 'workflow_dispatch' || inputs.use-ccache }}
|
||||||
|
|
||||||
- name: Setup Ninja
|
- name: Setup Ninja
|
||||||
uses: ./.github/actions/setup-ninja
|
uses: ./.github/actions/setup-ninja
|
||||||
with:
|
with:
|
||||||
host: mac
|
host: mac
|
||||||
|
|
||||||
- name: Install LLVM
|
|
||||||
run: |
|
|
||||||
brew install llvm
|
|
||||||
echo "/opt/homebrew/opt/llvm/bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Setup CLI
|
- name: Setup CLI
|
||||||
uses: geode-sdk/cli/.github/actions/setup@main
|
uses: geode-sdk/cli/.github/actions/setup@main
|
||||||
|
|
||||||
|
@ -180,9 +177,8 @@ jobs:
|
||||||
-DCMAKE_C_COMPILER=clang
|
-DCMAKE_C_COMPILER=clang
|
||||||
-DCMAKE_CXX_COMPILER=clang++
|
-DCMAKE_CXX_COMPILER=clang++
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
|
||||||
-DCMAKE_AR='/usr/bin/ar'
|
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
|
||||||
-DCMAKE_RANLIB='/usr/bin/ranlib'
|
-DGEODE_DISABLE_PRECOMPILED_HEADERS=OFF
|
||||||
-DGEODE_DISABLE_PRECOMPILED_HEADERS=Off
|
|
||||||
${{ steps.build-debug-info.outputs.extra-configure }}
|
${{ steps.build-debug-info.outputs.extra-configure }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
|
@ -132,19 +132,30 @@ endif()
|
||||||
|
|
||||||
if (DEFINED GEODE_CCACHE_VARIANT)
|
if (DEFINED GEODE_CCACHE_VARIANT)
|
||||||
if (NOT DEFINED GEODE_DISABLE_PRECOMPILED_HEADERS)
|
if (NOT DEFINED GEODE_DISABLE_PRECOMPILED_HEADERS)
|
||||||
if (${GEODE_CCACHE_VARIANT} STREQUAL "sccache" AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
if (${GEODE_CCACHE_VARIANT} STREQUAL "sccache" AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang"))
|
||||||
|
if (DEFINED CMAKE_OSX_ARCHITECTURES AND (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64;x86_64" OR CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64;arm64"))
|
||||||
|
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID} while building multiple architectures, PCH will be disabled due to issues with sccache.")
|
||||||
|
set(GEODE_DISABLE_PRECOMPILED_HEADERS ON)
|
||||||
|
else()
|
||||||
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID}, PCH will be enabled.")
|
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID}, PCH will be enabled.")
|
||||||
set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF)
|
set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF)
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID}, PCH will be disabled.")
|
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID}, PCH will be disabled.")
|
||||||
set(GEODE_DISABLE_PRECOMPILED_HEADERS ON)
|
set(GEODE_DISABLE_PRECOMPILED_HEADERS ON)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
else()
|
||||||
|
if (DEFINED CMAKE_OSX_ARCHITECTURES AND (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64;x86_64" OR CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64;arm64"))
|
||||||
|
# when building for multiple architectures, a caching compiler is not recommended
|
||||||
|
message(NOTICE "Not using a caching compiler (ccache/sccache).")
|
||||||
else()
|
else()
|
||||||
message(NOTICE "Not using a caching compiler (ccache/sccache). "
|
message(NOTICE "Not using a caching compiler (ccache/sccache). "
|
||||||
"It is recommended to install one to improve build times.")
|
"It is recommended to install one to improve build times.")
|
||||||
message(NOTICE "We recommend sccache, check its README for installation instructions, "
|
message(NOTICE "We recommend sccache, check its README for installation instructions, "
|
||||||
"normally you can just use your usual package manager (e.g. 'scoop install sccache').")
|
"normally you can just use your usual package manager (e.g. 'scoop install sccache').")
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT DEFINED GEODE_DISABLE_PRECOMPILED_HEADERS)
|
if (NOT DEFINED GEODE_DISABLE_PRECOMPILED_HEADERS)
|
||||||
message(NOTICE "Because of this, PCH will be enabled.")
|
message(NOTICE "Because of this, PCH will be enabled.")
|
||||||
set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF)
|
set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF)
|
||||||
|
|
|
@ -209,7 +209,7 @@ void SimpleTextArea::updateLinesNoWrap() {
|
||||||
|
|
||||||
void SimpleTextArea::updateLinesWordWrap(bool spaceWrap) {
|
void SimpleTextArea::updateLinesWordWrap(bool spaceWrap) {
|
||||||
this->charIteration([this, spaceWrap](CCLabelBMFont* line, const char c, const float top) {
|
this->charIteration([this, spaceWrap](CCLabelBMFont* line, const char c, const float top) {
|
||||||
static const std::string delimiters(spaceWrap ? " " : " `~!@#$%^&*()-_=+[{}];:'\",<.>/?\\|");
|
const std::string_view delimiters(spaceWrap ? " " : " `~!@#$%^&*()-_=+[{}];:'\",<.>/?\\|");
|
||||||
|
|
||||||
if (delimiters.find(c) == std::string_view::npos) {
|
if (delimiters.find(c) == std::string_view::npos) {
|
||||||
const std::string& text = line->getString();
|
const std::string& text = line->getString();
|
||||||
|
|
Loading…
Reference in a new issue