Commit Graph

377 Commits

Author SHA1 Message Date
halx99 b4daabcf74 Fix prebuilt preprocessor mismatch 2024-12-05 01:13:09 +08:00
halx99 cfcdddd89b
Enable cache render data for webgl by default (#2151)
* Remove unused static function
2024-09-15 06:00:48 +08:00
halx99 b25b702d97 Release 2.1.5 (#2076)
* Fix  unexpected libpng used

* Fix string format incorrect for tests

* Fix #1751, use coroutine control AutoTest flow

* Update CHANGELOG.md

* Added OpenType font (.otf) to the noCompress list. (#2077)

* Update 1k & copyright notice in some sources

* Move doctest to axmol 3rdparty

* Fix ci

* Update 1kdist to v90

* Update 1kiss.ps1

* DrawNodeV2 0.95.1 (#2079)

* Rename remaining legacy engine related spells and improve code style

* Update 3rdparty README.md

* Fix checkReallySupportsASTC does not work on ios device

reported by @BIGCATDOG in https://github.com/axmolengine/axmol/issues/2078

* Fix ci

* FastRNG: add missing include for AXASSERT (#2081)

* Delete unused files

* Improve FileUtils

- Rename FileUtils::createDirectory to FileUtils::createDirectories
- Use splitpath_cb to optimize FileUtils::createDirectories
- Rename FileUtils::getFileShortName to FileUtils::getPathBaseName
- Rename FileUtils::getFileExtension to FileUtils::getPathExtension
- Add FileUtils::getPathDirName
- Add FileUtils::getPathBaseNameNoExtension
- Mark all renamed FileUtils stubs old name deprecated
- Mark all FileUtils offthread APIs deprecated

* Update box2d to v2.4.2

* Disable /sdl checks explicitly for winuwp

For axmol deprecated policy, we need disable /sdl checks explicitly to avoid compiler traits invoking deprecated functions as error

* Update cppwinrt to 2.0.240405.15

* Update simdjson to 3.10.0

* Fix box2d testbed compile error

* Improve file path to url

* Fix FileUtils::createDirectories unix logic

* axmol-cmdline: remove arch suffix for host build output directory

* Update CHANGELOG.md

* Update lua bindings

---------

Co-authored-by: Dani Alias <danielgutierrezalias@gmail.com>
Co-authored-by: aismann <icesoft@freenet.de>
Co-authored-by: smilediver <smilediver@outlook.com>
2024-08-11 23:51:35 +08:00
halx99 8fd2a551e8
Refactor math simd (#2070) 2024-08-04 09:46:36 +08:00
halx99 687874c11b Fix prebuilt openssl dll path incorrect for winuwp 2024-08-01 01:11:11 +08:00
Purple 15531218a0
Pre-built CMake configuration fixes (#2058) 2024-07-29 06:37:45 +08:00
halx99 0b2e9d07c9 Fix #1943, Make extension luabinding can be controlled by AX_EXT_HINT 2024-07-08 23:17:25 +08:00
iAndyHD3 6daa6c755e
fix prebuilt, add ax_link_ext macro (#2022) 2024-07-08 20:14:01 +08:00
halx99 210ad64668 Update emsdk to 3.1.61 and add cmake option AX_WASM_INITIAL_MEMORY 2024-06-12 23:13:49 +08:00
halx99 6304c88e14 Fix char8_t not disable on msvc 2024-06-10 23:16:49 +08:00
halx99 3abf136a62 Fix emsdk 3.1.60 compile errors 2024-05-24 04:17:04 +08:00
smilediver ddeb14c160
Fix shaders not copying to final build on macOS for non Xcode builds (2) (#1908)
* Fix shaders not copying to final build on macOS for non Xcode builds

* Fix macOS build after adding minimum CMake 3.20 requirement

* Refactor "Fix macOS build after adding minimum CMake 3.20 requirement"
2024-05-22 01:51:09 +08:00
halx99 b122a1b96a Fix linking prebuilt error
- Add missing preprocessors
- Use plain name for zlib & png to avoid linking prebuilt axmol error
2024-05-02 20:59:29 +08:00
halx99 d50b7aad0b Improve AXGLSLCC for winrt 2024-05-01 01:16:51 +08:00
halx99 4c59349ac7 Improve cmake scripts 2024-04-30 00:43:54 +08:00
smilediver 354f3abed9
Add ability to create console apps (#1859)
* Print cmake build command when running `axmol build`

* Add option to `ax_setup_app_config()` for building console applications

* Fix console app entrypoint

---------

Co-authored-by: halx99 <halx99@live.com>
2024-04-29 00:24:06 +08:00
RH 3916a2367b
Cross-platform media controller for video playback (#1845)
* Initial work on media controller

* Media player controller for WMF media engine

* Add getDuration and getCurrentTime methods to media engines

* Fix compilation

* Fix Android media timeline issues

* Fix compilation issue

* Fix WinRT compilation issue

* Fix compilation issue

* Add missing header include

* Make it simpler to create a custom media controller

* Ensure the basic media controller widget size is the same size as the media player on initialization

* Add dark media control underlay to give more contrast to the controls
ADd copyright notices

* Removing existing media controller from parent if required

* Adjust for view scaling since embedded resources are created for a scale of 1.

* Scale central media controls if required on content size change

* Remove pointless fast forward and fast reverse buttons
Ensure media controller correctly resizes on full-screen media playback

* Allow enable vlc on windows

* Improve media macro detect

* Add media controls drawn by DrawNode into single texture
Add fullscreen enter and exit controls
setUserInputEnabled and isUserInputEnabled replaced by setMediaControllerEnabled and isMediaControllerEnabled

* Update function calls to new names

* Revert back to setUserInputEnabled and isUserInputEnabled

* Remove embedded circle image and create it with DrawNode

* Change radius of drawn circle to half the total image size

---------

Co-authored-by: halx99 <halx99@live.com>
2024-04-24 22:28:59 +08:00
halx99 1fff0fa746 Add experimental wasm64 support
really experimental, just build, can't run yet
2024-04-12 20:34:59 +08:00
halx99 197f2adfcd Add create isolated project support (#1801)
axmol new HelloCpp -i
2024-04-10 22:11:42 +08:00
Deal 5a03fa2b21
Fix #1805 2024-04-09 23:26:29 +08:00
halx99 e8b070c84c Remove unnecessary cmake option AX_VS_DEPLOYMENT_TARGET since we require cmake >= 3.28 2024-04-03 03:57:59 +08:00
Deal 0957069957
Fix ci 2024-03-30 08:54:21 +08:00
halx99 3ca370525b Explicit link pthread on non-win platforms 2024-03-30 01:42:17 +08:00
halx99 284f088074 Move rpath control to 1k/platforms.cmake 2024-03-30 01:27:13 +08:00
halx99 ab0633ce6e Fix c compiler flags warnings 2024-03-30 01:04:58 +08:00
halx99 6f81d69c01 Merge branch 'dev' of https://github.com/axmolengine/axmol into dev 2024-03-28 20:58:05 +08:00
halx99 62584966af Improve cmake 2024-03-28 20:58:03 +08:00
RH 4fb845244f
Allow certain code modules to be removed from build process (#1769)
* Add support for disabling code sections from build process

* Add support for disabling built-in audio

* No need to add definition here

* Remove extra blank lines

* Add required copyright notice

* Document new options
2024-03-28 10:45:20 +08:00
halx99 d514f88cb1 Fix mac & linux rpath settings 2024-03-27 22:57:32 +08:00
halx99 3555f97a7b Fix ci 2024-03-24 05:20:59 +08:00
halx99 f6061ee1ba Improve build system again 2024-03-23 00:51:46 +08:00
halx99 d1ec623bb5 Rename folder thirdparty ==> 3rdparty 2024-03-19 21:33:02 +08:00
halx99 45d302c49e Disable c++20 char8_t 2024-03-15 21:22:00 +08:00
halx99 4595ab5171 Change default wasm threads to 4 2024-03-11 01:22:07 +08:00
halx99 5e6b865215 Update cppwinrt: 2.0.230706.1 ==> 2.0.240111.5 2024-02-22 20:03:16 +08:00
Deal f22cc4be68
Don't use fmt header only (#1707) 2024-02-20 05:37:28 +08:00
Deal 31da0f2917
Improve dll support (#1706)
* Improve dll support

* Tidy header include path

* Fix android build & symbol dup issue

* Fix android compile error

* Fixup
2024-02-20 05:37:12 +08:00
Deal adbffdf4a2
Fix #1704, control android cmake options by engine axutils.gradle (#1705) 2024-02-20 00:58:47 +08:00
halx99 a3bdfa0724 Fix typo 2024-02-19 14:48:03 +08:00
RH 7f3bf21ee3
Remove duplicate CODE_SIGN_IDENTITY that is setting invalid value (#1666) 2024-02-10 20:15:27 +08:00
RH 7dd7dc4ada
LUA build fix for Android, iOS and Windows (#1650)
* Update paths to lua bindings

* Update target include directories due to new extension dir structure

* Add missing libraries and paths for prebuilt option

* Current FairyGUI requires paths to parent and source directory

* Add required thirdparty search path to LUA library
2024-02-04 22:09:36 +08:00
RH 9f8962d47d
Change extension folder structure to reduce file name conflicts (#1647)
* Restructure extension folder structure to reduce conflicts with project source files

* Do not include SDFGen headers for Android builds

* Ensure correct paths are included for the relevant targets

* ImGui is not be enabled for WinUWP, tvOS and iOS

* Fix LUA auto binding generator to work with updated extension folder structure

* Fix path and linker issues for yasio when using prebuilt option
Set correct paths to extensions for prebuilt option
2024-02-03 10:08:22 +08:00
halx99 df165fec4b Prepare release v2.1.1 2024-02-02 00:00:06 +08:00
halx99 74189ffa24 Slient no shader discovered [skip ci][skip appveyor] 2024-01-25 22:20:04 +08:00
smilediver f90aaec0a9
Fix shaders not copying to final build on macOS for non Xcode builds (#1631) 2024-01-24 21:40:15 +08:00
halx99 83bc0b1de9 Fixup
- Don't build draft pull-request
- Delete update-prebuilts ci, since prebuilts managed by manifest.json
- genbindings now will create a pull-request automatically
- Fix build-site download unexpected artifacts from appveyor
- Fix build win32 with clang error
2024-01-22 21:46:55 +08:00
Deal 9ec7c54c57
release 2.1.0 finally (#1621) [release 2.1.0]
* Delete deprecated prop `buildconfig` from gradle.properties

* Delete unnecessary props since it's value same with defaults

* Don't need config debug keystore, will auto signed by default debug.keystore

* Update funding [skip ci]

* Fix axmol cmdline tool command 'new'

* Refix c99 for winsdk < 10.0.22000.0

* Fix powershell 3 condition statement: 'xxx = if(c) { v1 } else { v2 }' will lost switch parameter semantic

* Improve code style

* Improve code style

* Fixup
2024-01-20 16:16:53 +08:00
halx99 8ee68b58c9 Bump 2.1.0 2024-01-19 20:39:08 +08:00
smilediver 729cc80351
Allow to override AX_USE_COMPAT_GL from user's CMakeLists.txt (#1610) 2024-01-15 23:45:37 +08:00
aismann 00d7b95af0
using AX_EX_DLL (#1578) 2024-01-05 05:35:05 +08:00