Skip to content

Working in-progress v3 #2387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 88 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
289654d
Bump 3.0.0
halx99 Oct 4, 2024
8b90ce0
Remove deprecated stubs
halx99 Oct 4, 2024
b3b29df
Implement drawArraysInstanced and make instanced draw more common use
halx99 Oct 4, 2024
a792714
Mark DrawNode::clear as virtual function
halx99 Oct 4, 2024
26c0c45
Make box2d 3.0 works and remove all chipmunk related
halx99 Oct 4, 2024
f24ed5f
Change underlaying color type to Color4F aka ax::Color
halx99 Oct 5, 2024
aadeeb4
Improve DrawNode, don't create backend::Buffer always
halx99 Oct 5, 2024
e209bfa
Fix ci
halx99 Oct 5, 2024
74f1b04
Improve code style
halx99 Oct 5, 2024
11cc03b
Fix assetion fail in drawOrder enabled
halx99 Oct 5, 2024
7164776
Make DrawNodeTest CandyMixEffect behavior same with 2.x
halx99 Oct 5, 2024
46a246c
Tidy vertex format
halx99 Oct 5, 2024
24b379a
All typo: ax::Color4F ==> ax::Color
halx99 Oct 9, 2024
f13f399
Fix LayerGradient not adapte float4 color format
halx99 Oct 13, 2024
5ab2821
Delete unused files
halx99 Oct 19, 2024
a9a0ca3
Fix preprocessor checks
halx99 Dec 2, 2024
6b874e5
Update openal-soft to 1.24.1
halx99 Dec 2, 2024
f4496f6
Fix #2254
halx99 Dec 5, 2024
0db475d
Rename all XXX_C4F_T2F_XXX to XXX_T2F_C4F_XXX
halx99 Dec 5, 2024
96bf311
Still use V3F_T2F_C4B for sprite render
halx99 Dec 14, 2024
1f32331
Update lua bindings
halx99 Dec 27, 2024
b02f4a9
Merge axmol dev into 3.x
halx99 Jan 5, 2025
9e087d8
Update Android & iOS minmal OS support
halx99 Jan 7, 2025
6f1b504
AxmolActivity will extend AppCompatActivity
rh101 Jan 6, 2025
5694967
Update simdjson to v3.11.4
halx99 Jan 8, 2025
8867954
Remove dependency rapidjson for JsonWriter
halx99 Jan 10, 2025
957d3c2
Update openal-soft to 1.24.2
halx99 Jan 14, 2025
674b004
Update simdjson to v3.11.5
halx99 Jan 14, 2025
7e7a2b3
Fix #2330 and improve code style
halx99 Jan 14, 2025
3a1c70e
Improve code style
halx99 Jan 14, 2025
734288a
Fix linux link error
halx99 Jan 14, 2025
20dbaf8
Rename Color4B to Color32
halx99 Jan 15, 2025
542b64d
Fix wasm64 build
halx99 Jan 15, 2025
3780823
Fix wasm64 runtime exception for imgui glfw backend
halx99 Jan 17, 2025
556f62e
Add wasm64 build to ci
halx99 Jan 17, 2025
b15e9e0
Improve Console::Utility::trim and move to StringUtils
halx99 Jan 17, 2025
2cb3263
Add lib: fast_float
halx99 Jan 18, 2025
4db0733
Improve c3t, c3b load
halx99 Jan 19, 2025
b975e08
Fix android appcompat not set in template project
halx99 Feb 5, 2025
b01924a
Fix wasm compiling warnigs and errors
halx99 Feb 5, 2025
b6b8aed
Update simdjson and fast_float
halx99 Feb 9, 2025
ac68022
Fixup merge issue cause compile errors
halx99 Feb 11, 2025
5ce18f2
Improve type Color32
halx99 Mar 7, 2025
938eb47
Improve FileUtils removeDirectory implementation, see #2208
halx99 Apr 4, 2025
dbb278f
Update openal-soft to 1.24.3
halx99 Apr 4, 2025
da9cba7
Update codebase to c++23
halx99 Apr 27, 2025
6de48a8
[WIP] Implement Physics2D with box2d-v3
halx99 Feb 27, 2025
c549b60
Fix possibile conflict
halx99 May 7, 2025
18298bc
Update simdjson: 3.12.0 => 3.13.0
halx99 Jun 5, 2025
9364aec
Update fast_float: 8.0.0 => 8.0.2
halx99 Jun 7, 2025
7f5cfd8
Fix box2d-v3 shape instancing draw for metal render backend
halx99 Jun 12, 2025
6d0e729
Catch Bundle3D binary read exception
halx99 Jun 18, 2025
d38f23b
Fix LayerGradient color
halx99 Jun 18, 2025
e87a35d
Remove the default pixel format, fix rendering of grayscale PNGs (#2573)
j-jorge Jun 23, 2025
1922d83
Fix merging issues due to imgui updated to 1.92.0
halx99 Jul 6, 2025
bc39bc5
Update plainlua to 5.5.0-beta
halx99 Jul 10, 2025
8fb355b
Fix luabindings for physics2d
halx99 Jul 13, 2025
f66212d
Fix merging issues
halx99 Jul 16, 2025
819d134
Add common API to setup programState for sprite shader based Node, fi…
halx99 Jul 18, 2025
f9b908c
Fix chooseSpriteProgramType log message typo
halx99 Jul 21, 2025
43f9e1e
Implment some physics2d joints, rename PhysicsJointXXX::construct to …
halx99 Jul 21, 2025
9d100e6
Enable physics 2d lua bindings
halx99 Jul 21, 2025
c5cb447
Better lua 5.5 support
halx99 Jul 21, 2025
127ddac
🔥Remove Color3B (#2607)
halx99 Jul 23, 2025
77886cf
🛠 ️Remove redundant virtual marks (#2610)
halx99 Jul 23, 2025
5a25f4e
Update ndk: r27c => r27d
halx99 Jul 23, 2025
194b2cd
🔥 Remove deprecated StringUtils::format (#2613)
halx99 Jul 23, 2025
2a6495e
🛠 Improve code style
halx99 Jul 23, 2025
1c7a580
🛠 Fix lua bindings
halx99 Jul 23, 2025
0c9d289
🛠 Update llvm to 20.1.8 in build.profiles
halx99 Jul 24, 2025
4b6ff6f
🛠 Fix label color set
halx99 Jul 25, 2025
311d817
Fix merging issues
halx99 Jul 25, 2025
e2c63df
Merge LayoutHelper to ui::Helper
halx99 Jul 26, 2025
6f6f0b7
🛠 Fix ui:Helper lint warnings
halx99 Jul 26, 2025
ad7ddd7
🔥 Optimize RichText::handleTextRenderer to reduce memory copies using…
halx99 Jul 26, 2025
a2dd8c3
Fix lint issues
halx99 Jul 27, 2025
caf89a3
Fix merging issues
halx99 Jul 27, 2025
1028ba5
Remove deprecated stubs
halx99 Jul 30, 2025
1512ed7
Fix merging issues
halx99 Aug 8, 2025
766e972
Implement d3d11 renderer backend (#2631)
halx99 Aug 13, 2025
ef51831
Remove OpenGL ES 2.0 support (#2633)
halx99 Aug 13, 2025
6a73cbd
Rename renderer/backend to core/rhi
halx99 Aug 14, 2025
0733baf
Rename folder core => axmol (step.1)
halx99 Aug 14, 2025
738334a
Rename folder core => axmol (step.2)
halx99 Aug 14, 2025
83ef14b
Rename folder core => axmol (step.3)
halx99 Aug 14, 2025
98f75f0
Restrict vs_inst buffer to read-only usage in vertex shader
halx99 Aug 15, 2025
33a515f
Fix lint warnings
halx99 Aug 15, 2025
ce642e5
[RHI] Unify several descriptor type names
halx99 Aug 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:
env:
__1K_CXXSTD: '${{ inputs.cxxstd }}'

run-name: 'build@c++${{ inputs.cxxstd || 20 }}'
run-name: 'build@c++${{ inputs.cxxstd || 23 }}'

jobs:
win32:
Expand Down Expand Up @@ -180,3 +180,12 @@ jobs:
token: ${{ secrets.AX_TRIGGER_SITE_TOKEN }}
repository: axmolengine/axmol.dev
event-type: forward-push
wasm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build
shell: pwsh
run: ./tools/cmdline/axmol -p wasm64 -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2 -t 'cpp-tests,fairygui-tests,lua-tests'
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ gen/
assets/
local.properties

/core/axmolver.h
/core/renderer/RenderConsts.h
/axmol/axmolver.h
/axmol/renderer/RenderConsts.h

# Ignore python compiled files
*.pyc
Expand Down
14 changes: 9 additions & 5 deletions 1k/1kiss.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ function download_and_expand($url, $out, $dest) {
$1k.mkdirs($dest)
if ($out.EndsWith('.zip')) {
if ($IsWin) {
Expand-Archive -Path $out -DestinationPath $dest
Expand-Archive -Path $out -DestinationPath $dest -Force
}
else {
unzip -d $dest $out | Out-Null
Expand Down Expand Up @@ -995,6 +995,11 @@ function setup_axslcc() {
return $axslcc_prog
}

$axslcc_prog = (Join-Path $axslcc_bin "axslcc$EXE_SUFFIX")
if($1k.isfile($axslcc_prog)) {
$1k.del($axslcc_prog)
}

$suffix = @('win64.zip', 'linux.tar.gz', 'osx{0}.tar.gz')[$HOST_OS_INT]
if ($IsMacOS) {
if ([System.VersionEx]$axslcc_ver -ge [System.VersionEx]'1.9.4.1') {
Expand All @@ -1008,7 +1013,6 @@ function setup_axslcc() {
$glscc_base_url = $mirror_current.axslcc
fetch_pkg "$mirror_url_base$glscc_base_url/v$axslcc_ver/axslcc-$axslcc_ver-$suffix" -exrep "axslcc"

$axslcc_prog = (Join-Path $axslcc_bin "axslcc$EXE_SUFFIX")
if ($1k.isfile($axslcc_prog)) {
$1k.println("Using axslcc: $axslcc_prog, version: $axslcc_ver")
} else {
Expand Down Expand Up @@ -1211,7 +1215,7 @@ function setup_unzip() {
$unzip_cmd_info = Get-Command 'unzip' -ErrorAction SilentlyContinue
if (!$unzip_cmd_info) {
if ($IsLinux) {
if ($(which dpkg)) {
if ($(which dpkg)) {
sudo apt install unzip
}
elseif($(which pacman)) {
Expand Down Expand Up @@ -1323,7 +1327,7 @@ function setup_android_sdk() {
return $null
}
$1k.println("Looking require $ndk_ver$IsGraterThan in $sdk_dir")

$ndk_major = ($ndk_ver -replace '[^0-9]', '')
$ndk_minor_off = "$ndk_major".Length + 1
$ndk_minor = if ($ndk_minor_off -lt $ndk_ver.Length) { "$([int][char]$ndk_ver.Substring($ndk_minor_off) - $ndk_minor_base)" } else { '0' }
Expand Down Expand Up @@ -1367,7 +1371,7 @@ function setup_android_sdk() {
}

$ndk_root = &$find_ndk_in $selected_sdk_root

$sdk_comps = @()

### cmdline-tools ###
Expand Down
12 changes: 7 additions & 5 deletions 1k/build.profiles
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

# --- region platfom:common

# The axmol shader compiler, legacy name is 'glslcc' before axmol-2.3.0
axslcc=1.9.6+
# The axmol shader compiler,
# before axmol-2.3.0, it's 'glslcc'
# before axmol-3.0.0, it's 'axslcc'
axslcc=1.11.0+

# The cmake, @gradle @axmol-cmdline
# as latest as possible
Expand All @@ -27,7 +29,7 @@ nuget=5.5.1.*
vs=17.0+

# as stable and latest as possible, @axmol-cmdline @genbindings.ps1
llvm=19.0.0~19.1.7+
llvm=20.1.8+

# --- endregion

Expand All @@ -46,15 +48,15 @@ cmdlinetools=19.0
# - https://developer.android.google.cn/about/versions/15/behavior-changes-all?hl=zh-cn#16-kb
# In China Mainland, please download from https://pan.baidu.com/s/1neJydxOGTT7aCQvLLwbicw?pwd=qqiq
# to $AX_ROOT/cache/, then run `setup.ps1 -p android`
ndk=r23d
ndk=r27d

# The android target sdk version, @gradle
# as latest as possible
target_sdk=36

# The android min sdk version, @gradle
# as min as possible
min_sdk=17
min_sdk=21

# The gradle version, @setup.ps1
# as latest as possible
Expand Down
2 changes: 1 addition & 1 deletion 1k/ios.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if(NOT DEFINED DEPLOYMENT_TARGET)
if(XCODE_VERSION LESS "14.3.0")
set(DEPLOYMENT_TARGET "11.0" CACHE STRING "" FORCE)
else() # xcode 14.3+ require 12.0 for c++ std::get
set(DEPLOYMENT_TARGET "12.0" CACHE STRING "" FORCE)
set(DEPLOYMENT_TARGET "13.0" CACHE STRING "" FORCE)
endif()
endif()
elseif(PLAT STREQUAL "tvOS")
Expand Down
2 changes: 1 addition & 1 deletion 1k/manifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $manifest['cmdlinetools'] = $build_profiles['cmdlinetools']
$Global:build_profiles = $build_profiles

$Global:download_path = $1k.realpath("$PSScriptRoot/../cache")

# add or overwrite tool version like follow
if ($Global:is_axmol_app -or $Global:is_axmol_engine) {
$manifest['axslcc'] = $build_profiles['axslcc']
Expand Down
20 changes: 2 additions & 18 deletions 3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,22 +162,6 @@ if(AX_ENABLE_PHYSICS)
ax_add_3rd(box2d OPTIONS ${box2d_opts})
endif()

if(AX_ENABLE_PHYSICS)
ax_add_3rd(chipmunk OPTIONS
"CP_BUILD_SHARED OFF"
"CP_BUILD_STATIC ON"
"CP_BUILD_DEMOS OFF"
"CP_INSTALL_STATIC OFF"
)
set_target_properties(chipmunk PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/chipmunk/include"
)

# !important axmol not use double precision
target_compile_definitions(chipmunk PUBLIC CP_USE_CGTYPES=0)
target_compile_definitions(chipmunk PUBLIC CP_USE_DOUBLES=0)
endif()

ax_add_3rd(freetype OPTIONS
"DISABLE_FORCE_DEBUG_POSTFIX ON"
"SKIP_INSTALL_ALL TRUE"
Expand Down Expand Up @@ -301,11 +285,11 @@ if(AX_ENABLE_AUDIO)
set(ALSOFT_CPPWINRT_VERSION ${AX_CPPWINRT_VERSION} CACHE STRING "" FORCE)
endif()

ax_add_3rd(openal EXCLUDE_FROM_ALL TARGETS alcommon;OpenAL OPTIONS ${alsoft_opts})
ax_add_3rd(openal EXCLUDE_FROM_ALL TARGETS OpenAL;alsoft.common OPTIONS ${alsoft_opts})

target_include_directories(3rdparty INTERFACE openal)
target_compile_definitions(3rdparty INTERFACE AX_USE_ALSOFT=1)
set_target_properties(OpenAL alcommon PROPERTIES CXX_STANDARD ${_AX_CXX_STD})
set_target_properties(OpenAL alsoft.common PROPERTIES CXX_STANDARD ${_AX_CXX_STD})

if(AX_USE_ALSOFT_STATIC)
target_compile_definitions(3rdparty INTERFACE AL_LIBTYPE_STATIC=1)
Expand Down
22 changes: 13 additions & 9 deletions 3rdparty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## Box2D
- [![Upstream](https://img.shields.io/github/v/release/erincatto/box2d?label=Upstream)](https://github.com/erincatto/box2d)
- Version: 2.4.2
- Version: 3.1.1
- License: MIT

## Bullet
Expand All @@ -25,11 +25,6 @@
- Version: 1.34.5
- License: MIT

## Chipmunk2D
- [![Upstream](https://img.shields.io/github/v/tag/slembcke/Chipmunk2D?label=Upstream)](https://github.com/slembcke/Chipmunk2D)
- Version: git 7.0.3-0cb05e7 {until Dec 16, 2021}
- License: MIT

## Clipper2
- [![Upstream](https://img.shields.io/github/v/tag/AngusJohnson/Clipper2?label=Upstream)](https://github.com/AngusJohnson/Clipper2)
- Version: 1.5.4
Expand Down Expand Up @@ -60,6 +55,11 @@
- Version: git 344eb40 (121)
- License: MIT

## fast_float
- [![Upstream](https://img.shields.io/github/v/release/fastfloat/fast_float?label=Upstream)](https://github.com/fastfloat/fast_float)
- Version: 8.0.2
- License: MIT

## flatbuffers
- [![Upstream](https://img.shields.io/github/v/release/google/flatbuffers?label=Upstream)](https://github.com/google/flatbuffers)
- Version: 25.2.10
Expand All @@ -86,7 +86,7 @@
- Version: 3.4 with modified for create as win32 child window support
- License: zlib

## GHC (iOS devices only)
## ghc (iOS < 13 ONLY)
- [![Upstream](https://img.shields.io/github/v/release/gulrak/filesystem?label=Upstream)](https://github.com/gulrak/filesystem)
- Version: 1.5.14
- License: MIT
Expand Down Expand Up @@ -180,7 +180,11 @@

## OpenAL Soft
- [![Upstream](https://img.shields.io/github/v/tag/kcat/openal-soft?label=Upstream)](https://github.com/kcat/openal-soft)
- Version: 1.23.1-e714c8f (8659)
- Version: 1.24.3
- Modifications:
- Remove `-Werror=undef`
- Linking `fmt::fmt` instead `alsoft::fmt`
- Exclude target `alsoft::excommon`
- License: LGPL-2.1

## OpenSSL
Expand Down Expand Up @@ -225,7 +229,7 @@

## simdjson
- [![Upstream](https://img.shields.io/github/v/tag/simdjson/simdjson?label=Upstream)](https://github.com/simdjson/simdjson)
- Version: 3.10.1
- Version: 3.13.0
- License: Apache-2.0

## stb (stb_image)
Expand Down
120 changes: 23 additions & 97 deletions 3rdparty/box2d/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,105 +4,31 @@ set(target_name ${lib_name})

project(${lib_name})

set(BOX2D_SOURCE_FILES
src/collision/b2_broad_phase.cpp
src/collision/b2_chain_shape.cpp
src/collision/b2_circle_shape.cpp
src/collision/b2_collide_circle.cpp
src/collision/b2_collide_edge.cpp
src/collision/b2_collide_polygon.cpp
src/collision/b2_collision.cpp
src/collision/b2_distance.cpp
src/collision/b2_dynamic_tree.cpp
src/collision/b2_edge_shape.cpp
src/collision/b2_polygon_shape.cpp
src/collision/b2_time_of_impact.cpp
src/common/b2_block_allocator.cpp
src/common/b2_draw.cpp
src/common/b2_math.cpp
src/common/b2_settings.cpp
src/common/b2_stack_allocator.cpp
src/common/b2_timer.cpp
src/dynamics/b2_body.cpp
src/dynamics/b2_chain_circle_contact.cpp
src/dynamics/b2_chain_circle_contact.h
src/dynamics/b2_chain_polygon_contact.cpp
src/dynamics/b2_chain_polygon_contact.h
src/dynamics/b2_circle_contact.cpp
src/dynamics/b2_circle_contact.h
src/dynamics/b2_contact.cpp
src/dynamics/b2_contact_manager.cpp
src/dynamics/b2_contact_solver.cpp
src/dynamics/b2_contact_solver.h
src/dynamics/b2_distance_joint.cpp
src/dynamics/b2_edge_circle_contact.cpp
src/dynamics/b2_edge_circle_contact.h
src/dynamics/b2_edge_polygon_contact.cpp
src/dynamics/b2_edge_polygon_contact.h
src/dynamics/b2_fixture.cpp
src/dynamics/b2_friction_joint.cpp
src/dynamics/b2_gear_joint.cpp
src/dynamics/b2_island.cpp
src/dynamics/b2_island.h
src/dynamics/b2_joint.cpp
src/dynamics/b2_motor_joint.cpp
src/dynamics/b2_mouse_joint.cpp
src/dynamics/b2_polygon_circle_contact.cpp
src/dynamics/b2_polygon_circle_contact.h
src/dynamics/b2_polygon_contact.cpp
src/dynamics/b2_polygon_contact.h
src/dynamics/b2_prismatic_joint.cpp
src/dynamics/b2_pulley_joint.cpp
src/dynamics/b2_revolute_joint.cpp
src/dynamics/b2_weld_joint.cpp
src/dynamics/b2_wheel_joint.cpp
src/dynamics/b2_world.cpp
src/dynamics/b2_world_callbacks.cpp
src/rope/b2_rope.cpp)
file(GLOB_RECURSE box2d_sources *.h;*.c)

set(BOX2D_HEADER_FILES
include/box2d/b2_api.h
include/box2d/b2_block_allocator.h
include/box2d/b2_body.h
include/box2d/b2_broad_phase.h
include/box2d/b2_chain_shape.h
include/box2d/b2_circle_shape.h
include/box2d/b2_collision.h
include/box2d/b2_common.h
include/box2d/b2_contact.h
include/box2d/b2_contact_manager.h
include/box2d/b2_distance.h
include/box2d/b2_distance_joint.h
include/box2d/b2_draw.h
include/box2d/b2_dynamic_tree.h
include/box2d/b2_edge_shape.h
include/box2d/b2_fixture.h
include/box2d/b2_friction_joint.h
include/box2d/b2_gear_joint.h
include/box2d/b2_growable_stack.h
include/box2d/b2_joint.h
include/box2d/b2_math.h
include/box2d/b2_motor_joint.h
include/box2d/b2_mouse_joint.h
include/box2d/b2_polygon_shape.h
include/box2d/b2_prismatic_joint.h
include/box2d/b2_pulley_joint.h
include/box2d/b2_revolute_joint.h
include/box2d/b2_rope.h
include/box2d/b2_settings.h
include/box2d/b2_shape.h
include/box2d/b2_stack_allocator.h
include/box2d/b2_time_of_impact.h
include/box2d/b2_timer.h
include/box2d/b2_time_step.h
include/box2d/b2_types.h
include/box2d/b2_weld_joint.h
include/box2d/b2_wheel_joint.h
include/box2d/b2_world.h
include/box2d/b2_world_callbacks.h
include/box2d/box2d.h)
add_library(${target_name} ${box2d_sources})

add_library(${target_name} STATIC ${BOX2D_SOURCE_FILES} ${BOX2D_HEADER_FILES})
if(MSVC)
if(BUILD_SHARED_LIBS)
# this is needed by DLL users to import Box2D symbols
target_compile_definitions(box2d INTERFACE BOX2D_DLL)
endif()
endif()

# Atomics are still considered experimental in Visual Studio 17.8
if(FULL_MSVC)
target_compile_options(box2d PRIVATE /experimental:c11atomics)
endif()

set_target_properties(${target_name} PROPERTIES C_STANDARD 17 C_STANDARD_REQUIRED TRUE)

if(_simdc_defines)
target_compile_definitions(${target_name} PRIVATE ${_simdc_defines})

if(_simdc_options)
target_compile_options(${target_name} PRIVATE ${_simdc_options})
endif()
endif()

target_include_directories(${target_name}
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include"
Expand Down
Loading
Loading