Commit Graph

257 Commits

Author SHA1 Message Date
halx99 a29f54316a Don't add .bin for glslcc shader compile output by default 2023-07-07 19:31:46 +08:00
halx99 a2645186b4 [CMake] Add find shader sources function:
Syntax: ax_find_shaders(dir shader_sources [RECURSE])
examples:
- ax_find_shaders("${CMAKE_CURRENT_LIST_DIR}/core/renderer/shaders" runtime_shader_sources)
 - ax_find_shaders("${CMAKE_CURRENT_LIST_DIR}/Source" custom_shader_sources RECURSE)
2023-07-06 21:15:28 +08:00
halx99 167b81d5cd Bump 1.1.0 2023-07-06 20:37:59 +08:00
halx99 90aa74cdfa Improve cmake script
- glslcc helper function
  - Rename ax_add_shader to ax_target_compile_shaders
  - Provide argument FILES for specify single or multi shader
    source files support, i.e.
       ax_target_compile_shaders(target_name FILES 1.frag 1.vert)
- Rename all _AX_ROOT_PATH to _AX_ROOT
2023-07-06 19:21:36 +08:00
halx99 4cf6060e42 [CMAKE] Add shader compile function: ax_add_shader [skip ci]
- ax_add_shader(${FILE}): output compiled shader to ${CMAKE_BINARY_DIR}/runtime/shaders/${SC_LANG}/xxx_fs.bin
- ax_add_shader(${FILE} CUSTOM): output compiled shader to ${CMAKE_BINARY_DIR}/runtime/shaders/${SC_LANG}/xxx_fs.bin
- ax_add_shader(${FILE} CVAR): the shader will compiled to c hex header for embed include by C/C++ use
2023-07-06 14:08:16 +08:00
halx99 5cbcb7fc0d Rename option `AX_USE_COMPAT_GL` to `AX_USE_ANGLE` 2023-07-03 20:35:55 +08:00
halx99 fc8b835447 Fix copy angle dll error 2023-07-03 20:28:55 +08:00
halx99 8c09b48f2d Fix prebuilt link [skip ci] 2023-07-02 01:08:04 +08:00
halx99 86015cea6d Forcing c99 when winsdk < 10.0.22000.0, refer #1246 2023-07-01 21:11:01 +08:00
Deal(一线灵) 5d4ba705f0
Almost pwsh for ci (#1244) 2023-06-29 19:46:52 +08:00
halx99 5d2c8b631d Download optional c-ares 2023-06-28 00:44:29 +08:00
halx99 30fa754221 Fix #1238 2023-06-20 20:48:52 +08:00
halx99 4e664e6681 Auto download vlc prebuilts if not found system
- For windows, can easy enable vlc media via `-DAX_ENABLE_VLC_MEDIA=ON`
2023-06-17 00:26:46 +08:00
halx99 75984449f1 Improve cmake 2023-06-13 20:30:57 +08:00
halx99 8da6990fff Improve cmake
If no system libvlc, try use prebuilt.
2023-06-13 00:10:53 +08:00
Deal(一线灵) d57706b8ae
Improve media-engine for android, linux (#1228)
* Improve media-engine
- Implement andorid,linux
- Improve local file uri scheme

* Fix ci

* Improve code style

* Improve

* Update VlcMediaEngine.cpp

* Update AvfMediaEngine.h

* Fix ci

* Improve code style

* Enable androidx gradle.properties [skip ci]

* Improve code style

* Remove unnecessary callbacks

* Rename VideoPlayer to MediaPlayer
2023-06-10 22:05:49 +08:00
Deal(一线灵) df15ad7fdb
Fix #1204 2023-05-10 13:45:40 +08:00
axmol-bot 902ee8cec0
Update thirdparty prebuilts to v51 (#1197) 2023-05-04 21:00:21 +08:00
Deal(一线灵) 7a24a89ca8
Building with ninja + official llvm-clang-cl support (#1159)
* Building with ninja + official llvm-clang-cl support

* Update gh ci for clang

* Fix ci

* Fix ci

* Fix ci

* FIx dll copy [skip ci]

* Fix ci warnings

* Update ci files and readme

* Update badges
2023-04-02 16:04:19 +08:00
Deal(一线灵) b48eb3d29f
Support clang-cl + ninja, refer to #1152 (#1153) 2023-04-01 23:11:58 +08:00
Deal(一线灵) 3d23eea8d0
Media engine video texture (#1133)
* VideoPlayer based on new MediaEngine[Win32/UWP]

* Improve MediaEngine interface

* Update readme

* Improve pixel format

* Improve MediaEngine interface

* Ready for PR UWP/Win32

* Ready for PR UWP,Win32

* Update reademe files

* Update readme files

* Update UIVideoPlayer-android.cpp [skip ci]

* Update UIVideoPlayer-ios.mm

* Update MFUtils.cpp

* Fix ci
2023-03-25 08:37:51 +08:00
halx99 1671ac462c [UWP] Add cmake option: AX_VS_DEPLOYMENT_TARGET
a. It's useful to specify UWP apps deploy target version, vs property is
TargetPlatformMinVersion
b. Use `CMAKE_VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION` possible
supported by cmake-3.27.0 or later
2023-03-14 08:24:27 +08:00
halx99 2709b459f6 Set default UWP min deploy target to 10.0.19041.0 2023-03-12 19:00:35 +08:00
halx99 1a537a7a98 [UWP] set VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION for all targets 2023-03-12 17:57:54 +08:00
Deal(一线灵) b46417809d
Windows Store UWP apps support (#1108)
* [BIG FEATURE] Windows Store UWP apps support

* Fix ci, add uwp for pr-ci

* Fix ci

* Improve ci script

* Fix ci

* Fix ci

* Fix ci

* Fix ci

* Upload uwp appx package artifacts [skip ci]

* Use d2d draw system font text

* Fix ci

* Improve code style
2023-03-11 22:10:18 +08:00
halx99 5e1dbf8561 Fix #1088 2023-03-04 15:38:39 +08:00
halx99 d72d21de81 Fix #1082 2023-02-27 15:43:35 +08:00
halx99 dcdbc83725 [CMake] Improve link prebuilts 2023-02-24 19:33:26 +08:00
Deal(一线灵) 1ae9cd33ae
Tidy project tree and full symlink support (#1072)
* Tidy project file tree and all symlink support
2023-02-23 21:57:30 +08:00
halx99 21c92c5434 [CMake] Add symlink support, refer to #1005
- Rename ax_<xxx>_copy_xxx to ax_<xxx>_sync_xxx
- Add optional arg `SYM_LINK`
2023-02-22 23:37:32 +08:00
halx99 4c2df9e581 Fix vs-ninja build 2023-01-14 16:33:35 +08:00
halx99 e9c1726c31 Use 1 line cmake command copy target runtime dlls 2023-01-06 19:11:10 +08:00
halx99 640dda61ec Fix dll linkage 2023-01-06 18:38:16 +08:00
halx99 9dec342a17 Fix ci 2023-01-03 15:20:11 +08:00
halx99 9a10ffbf5e Fix #991 2023-01-03 15:09:45 +08:00
CHP 6d5b0d9ee5
Update AXBuildHelpers.cmake (#1004) 2023-01-03 09:20:30 +08:00
CHP e25f4d4f77
Use standard cmake CMAKE_CXX_STANDARD instead of CXX_STD (#987)
* Update AXConfigDefine.cmake

* Use standard cmake CMAKE_CXX_STANDARD instead of CXX_STD

* Fix formatting

* remov empty line

* Update AXConfigDefine.cmake

Fix typo
2022-12-20 11:31:52 +08:00
RH ae9e79f62d
Fix axmol command search paths (#989)
* Committing genbindings changes

* Fix incorrect environment variable name and console folder path
2022-12-20 11:31:25 +08:00
CHP 2f54ecaf6d
Improve lua cmake (#986) 2022-12-17 16:35:20 +08:00
halx99 5424844c8b Fix ci 2022-12-17 14:31:23 +08:00
halx99 1868f3b7e3 Fix ci 2022-12-17 13:19:26 +08:00
halx99 0a4bf2b3fa Move SIMD detection to AXConfigDefine.cmake 2022-12-17 11:56:48 +08:00
AsakuraMizu e0feb20bbc fix linux prebuilt support
now lua-template can also use this feature
2022-11-17 23:20:26 +08:00
AsakuraMizu 8936e77bf6 experimental linux prebuilt support 2022-11-17 22:25:13 +08:00
AsakuraMizu 8387af1d34
Update AXLinkHelpers.cmake 2022-11-16 17:03:39 +08:00
halx99 6083ec053e Remove unnecessary platform macro define in cmake 2022-11-01 19:00:48 +08:00
halx99 9c7c80aafa Migrate [skip ci] 2022-10-18 19:13:40 +08:00
CHP 1af0d74430
Enable C++20 by default
Enable C++20 by default
2022-10-05 20:24:33 +02:00
一线灵|Deal 5645bb241e
Final migrate (#876) 2022-10-01 16:24:52 +08:00
halx99 bb6b62bf81 Update thirdparty prebuilt libs
- curl-7.85.0
- angle-2.1.19119 on branch `chromium/5195`
2022-09-12 22:46:35 +08:00