CARPLAY版本整理
This commit is contained in:
3
MXC_A27-PCB4.5-270T/lib/awtk/awtk/3rd/bgfx/.gitignore
vendored
Normal file
3
MXC_A27-PCB4.5-270T/lib/awtk/awtk/3rd/bgfx/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
bgfx
|
||||
bimg
|
||||
bx
|
25
MXC_A27-PCB4.5-270T/lib/awtk/awtk/3rd/bgfx/README.md
Normal file
25
MXC_A27-PCB4.5-270T/lib/awtk/awtk/3rd/bgfx/README.md
Normal file
@ -0,0 +1,25 @@
|
||||
# bgfx
|
||||
|
||||
使用bgfx需要手工去下列软件包:
|
||||
|
||||
* bx:https://github.com/bkaradzic/bx.git
|
||||
* bimg:https://github.com/bkaradzic/bimg.git
|
||||
* bgfx: https://github.com/bkaradzic/bgfx.git
|
||||
|
||||
```
|
||||
git clone https://github.com/bkaradzic/bx.git
|
||||
git clone https://github.com/bkaradzic/bimg.git
|
||||
git clone https://github.com/bkaradzic/bgfx.git
|
||||
|
||||
```
|
||||
|
||||
已知问题:
|
||||
|
||||
bgfx.h中的init函数,在部分编译器上有问题,可以按下列方式修改:
|
||||
|
||||
|
||||
```
|
||||
- bool init(const Init& _init = {});
|
||||
+ bool init(const Init& _init);
|
||||
```
|
||||
|
74
MXC_A27-PCB4.5-270T/lib/awtk/awtk/3rd/bgfx/SConscript
Normal file
74
MXC_A27-PCB4.5-270T/lib/awtk/awtk/3rd/bgfx/SConscript
Normal file
@ -0,0 +1,74 @@
|
||||
import os
|
||||
import platform
|
||||
BgCppPath=[]
|
||||
BgSources=[]
|
||||
env=DefaultEnvironment().Clone()
|
||||
OS_NAME=platform.system()
|
||||
LIB_DIR=os.environ['LIB_DIR'];
|
||||
CCFLAGS=os.environ['CCFLAGS'];
|
||||
|
||||
BgCppPath=['bx/3rdparty',
|
||||
'bx/include',
|
||||
'bimg/include',
|
||||
'bgfx/3rdparty',
|
||||
'bgfx/3rdparty/khronos',
|
||||
'bimg/3rdparty/astc-codec/include',
|
||||
'bimg/3rdparty/astc-codec/',
|
||||
'bgfx/include']
|
||||
BgSources=[
|
||||
'bx/src/allocator.cpp',
|
||||
'bx/src/bx.cpp',
|
||||
'bx/src/commandline.cpp',
|
||||
'bx/src/crtnone.cpp',
|
||||
'bx/src/debug.cpp',
|
||||
'bx/src/dtoa.cpp',
|
||||
'bx/src/easing.cpp',
|
||||
'bx/src/file.cpp',
|
||||
'bx/src/filepath.cpp',
|
||||
'bx/src/hash.cpp',
|
||||
'bx/src/math.cpp',
|
||||
'bx/src/mutex.cpp',
|
||||
'bx/src/os.cpp',
|
||||
'bx/src/process.cpp',
|
||||
'bx/src/semaphore.cpp',
|
||||
'bx/src/settings.cpp',
|
||||
'bx/src/string.cpp',
|
||||
'bx/src/sort.cpp',
|
||||
'bx/src/thread.cpp',
|
||||
'bx/src/timer.cpp',
|
||||
'bx/src/url.cpp',
|
||||
'bimg/src/image.cpp',
|
||||
'bimg/src/image_gnf.cpp',
|
||||
'bgfx/src/bgfx.cpp',
|
||||
'bgfx/src/debug_renderdoc.cpp',
|
||||
'bgfx/src/dxgi.cpp',
|
||||
'bgfx/src/glcontext_egl.cpp',
|
||||
'bgfx/src/glcontext_glx.cpp',
|
||||
'bgfx/src/glcontext_wgl.cpp',
|
||||
'bgfx/src/nvapi.cpp',
|
||||
'bgfx/src/renderer_d3d11.cpp',
|
||||
'bgfx/src/renderer_d3d12.cpp',
|
||||
'bgfx/src/renderer_d3d9.cpp',
|
||||
'bgfx/src/renderer_gl.cpp',
|
||||
'bgfx/src/renderer_nvn.cpp',
|
||||
'bgfx/src/renderer_gnm.cpp',
|
||||
'bgfx/src/renderer_noop.cpp',
|
||||
'bgfx/src/renderer_vk.cpp',
|
||||
'bgfx/src/shader.cpp',
|
||||
'bgfx/src/shader_dx9bc.cpp',
|
||||
'bgfx/src/shader_dxbc.cpp',
|
||||
'bgfx/src/shader_spirv.cpp',
|
||||
'bgfx/src/topology.cpp',
|
||||
'bgfx/src/vertexdecl.cpp'
|
||||
] + Glob("bimg/3rdparty/astc-codec/src/decoder/*.cc")
|
||||
|
||||
if OS_NAME == 'Windows':
|
||||
CCFLAGS = CCFLAGS + ' /std:c++14 ';
|
||||
BgCppPath = BgCppPath + ['bx/include/compat/msvc','bgfx/3rdparty/dxsdk/include']
|
||||
elif OS_NAME == 'Darwin':
|
||||
CCFLAGS = CCFLAGS + ' -std=c++14 '
|
||||
BgCppPath= BgCppPath + ['bx/include/compat/osx']
|
||||
BgSources= BgSources + ['bgfx/src/renderer_mtl.mm']
|
||||
|
||||
env.Library(os.path.join(LIB_DIR, 'bgfx'), BgSources, CPPPATH = BgCppPath,CCFLAGS = CCFLAGS)
|
||||
|
Reference in New Issue
Block a user