Coder Social home page Coder Social logo

Use unmodified SDL about b2 HOT 5 CLOSED

tom-seddon avatar tom-seddon commented on August 25, 2024
Use unmodified SDL

from b2.

Comments (5)

tom-seddon avatar tom-seddon commented on August 25, 2024

https://github.com/floooh/sokol ?

from b2.

tom-seddon avatar tom-seddon commented on August 25, 2024

sokol only supports one window, so a bit limiting for b2.

Might as well use github SDL, now it's there. Will have to add a 2nd SDL submodule though as the history is not the same :(

Updating the SDL fork is going to be too much work. Switch to bgfx, probably.

from b2.

tom-seddon avatar tom-seddon commented on August 25, 2024

Integrate bgfx and SDL: https://gist.github.com/zlash/abf8d4bc2efb795a02361e4820a2da10

from b2.

tom-seddon avatar tom-seddon commented on August 25, 2024

cmake snippets for bgfx

function(add_header_src TARGET PATH)
  target_sources(${TARGET} PRIVATE ${PATH})
  
  # Everything is included by the amalgamated file. Include it for
  # reference, but don't try to build it.
  set_source_files_properties(${PATH} PROPERTIES HEADER_FILE_ONLY TRUE)  
endfunction()

set(BX_SRC_FOLDER ${CMAKE_CURRENT_SOURCE_DIR}/bx)

add_library(bx_lib STATIC ${BX_SRC_FOLDER}/src/amalgamated.cpp)

add_header_src(bx_lib ${BX_SRC_FOLDER}/src/mutex.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/thread.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/os.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/process.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/crtnone.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/math.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/dtoa.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/timer.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/url.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/string.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/easing.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/sort.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/filepath.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/file.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/allocator.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/debug.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/hash.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/semaphore.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/bx_p.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/commandline.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/bx.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/src/settings.cpp)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/tinystl/unordered_map.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/tinystl/traits.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/tinystl/stddef.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/tinystl/new.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/tinystl/buffer.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/tinystl/allocator.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/tinystl/hash_base.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/tinystl/unordered_set.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/tinystl/vector.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/tinystl/hash.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/tinystl/string.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/msvc/inttypes.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/msvc/dirent.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/msvc/pre1600/stdint.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/msvc/alloca.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/msvc/stdbool.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/osx/malloc.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/ios/malloc.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/mingw/dirent.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/mingw/specstrings_strict.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/mingw/specstrings_undef.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/mingw/alloca.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/mingw/salieri.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/mingw/sal.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/freebsd/malloc.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/freebsd/signal.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/freebsd/dirent.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/compat/freebsd/alloca.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/uint32_t.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/semaphore.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/error.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/maputil.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/debug.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/simd_t.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/easing.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/bx.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/config.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/settings.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/endian.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/os.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/file.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/rng.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/handlealloc.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/timer.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/thread.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/allocator.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/spscqueue.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/url.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/macros.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/cpu.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/readerwriter.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/mpscqueue.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/process.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/float4x4_t.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/math.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/filepath.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/mutex.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/commandline.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/sort.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/platform.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/hash.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/ringbuffer.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/pixelformat.h)
add_header_src(bx_lib ${BX_SRC_FOLDER}/include/bx/string.h)

if(MSVC)
  target_include_directories(bx_lib PUBLIC ${BX_SRC_FOLDER}/include/compat/msvc)
elseif(APPLE)
  target_include_directories(bx_lib PUBLIC ${BX_SRC_FOLDER}/include/compat/osx)
endif()

target_compile_definitions(bx_lib PRIVATE "$<$<CONFIG:Debug>:BX_CONFIG_DEBUG=1>" )
target_include_directories(bx_lib PUBLIC ${BX_SRC_FOLDER}/include)
target_include_directories(bx_lib PUBLIC ${BX_SRC_FOLDER}/3rdparty)
target_compile_features(bx_lib PUBLIC cxx_std_11)

##########################################################################
##########################################################################

##########################################################################
##########################################################################

set(BIMG_SRC_FOLDER ${CMAKE_CURRENT_SOURCE_DIR}/bimg)

add_library(bimg_lib STATIC)

target_sources(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/include/bimg/bimg.h)
target_sources(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/include/bimg/encode.h)
target_sources(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/include/bimg/decode.h)
target_sources(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/src/image_decode.cpp)
target_sources(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/src/image.cpp)
target_sources(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/src/config.h)
target_sources(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/src/image_gnf.cpp)
target_sources(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/src/image_encode.cpp)
target_sources(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/src/image_cubemap_filter.cpp)
target_sources(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/src/bimg_p.h)
target_sources(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/3rdparty/tinyexr/tinyexr.h)
target_include_directories(bimg_lib PUBLIC ${BIMG_SRC_FOLDER}/include)
target_link_libraries(bimg_lib PUBLIC bx_lib bimg_astc_codec_lib bimg_iqa_lib)
target_include_directories(bimg_lib PRIVATE ${BIMG_SRC_FOLDER}/3rdparty)

# astc-codec
set(BIMG__ASTC_CODEC_FOLDER ${BIMG_SRC_FOLDER}/3rdparty/astc-codec)
add_library(bimg_astc_codec_lib)
target_compile_features(bimg_astc_codec_lib PRIVATE cxx_std_14)
target_sources(bimg_astc_codec_lib PRIVATE
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/codec.cc
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/weight_infill.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/logical_astc_block.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/endpoint_codec.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/types.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/quantization.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/weight_infill.cc
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/footprint.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/endpoint_codec.cc
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/astc_file.cc
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/codec.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/quantization.cc
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/integer_sequence_codec.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/partition.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/physical_astc_block.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/physical_astc_block.cc
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/astc_file.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/intermediate_astc_block.cc
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/intermediate_astc_block.h
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/logical_astc_block.cc
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/footprint.cc
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/partition.cc
  ${BIMG__ASTC_CODEC_FOLDER}/src/decoder/integer_sequence_codec.cc
  ${BIMG__ASTC_CODEC_FOLDER}/include/astc-codec/astc-codec.h)
target_include_directories(bimg_astc_codec_lib PUBLIC ${BIMG__ASTC_CODEC_FOLDER}/include)
target_include_directories(bimg_astc_codec_lib PRIVATE ${BIMG__ASTC_CODEC_FOLDER})

# iqa
set(BIMG__IQA_FOLDER ${BIMG_SRC_FOLDER}/3rdparty/iqa)
add_library(bimg_iqa_lib)
target_sources(bimg_iqa_lib PRIVATE
  ${BIMG__IQA_FOLDER}/include/ssim.h
  ${BIMG__IQA_FOLDER}/include/decimate.h
  ${BIMG__IQA_FOLDER}/include/iqa_os.h
  ${BIMG__IQA_FOLDER}/include/convolve.h
  ${BIMG__IQA_FOLDER}/include/math_utils.h
  ${BIMG__IQA_FOLDER}/include/iqa.h
  ${BIMG__IQA_FOLDER}/source/math_utils.c
  ${BIMG__IQA_FOLDER}/source/decimate.c
  ${BIMG__IQA_FOLDER}/source/ssim.c
  ${BIMG__IQA_FOLDER}/source/mse.c
  ${BIMG__IQA_FOLDER}/source/ms_ssim.c
  ${BIMG__IQA_FOLDER}/source/convolve.c
  ${BIMG__IQA_FOLDER}/source/psnr.c)
target_include_directories(bimg_iqa_lib PUBLIC ${BIMG__IQA_FOLDER}/include)

##########################################################################
##########################################################################

set(BGFX_SRC_FOLDER ${CMAKE_CURRENT_SOURCE_DIR}/bgfx)

add_library(bgfx_lib STATIC)

if(OSX)
  target_sources(bgfx_lib PRIVATE ${BGFX_SRC_FOLDER}/src/amalgamated.mm)
else()
  target_sources(bgfx_lib PRIVATE ${BGFX_SRC_FOLDER}/src/amalgamated.cpp)
endif()

add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/shader_dxbc.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_gl.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/fs_debugfont.bin.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/version.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/shader.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_webgpu.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/vs_debugfont.bin.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/config.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_mtl.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/shader_dx9bc.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/charset.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/dxgi.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/glimports.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/emscripten.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/glcontext_glx.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/glcontext_html5.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/fs_clear0.bin.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/glcontext_eagl.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/glcontext_wgl.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_d3d.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/debug_renderdoc.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/fs_clear2.bin.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/fs_clear6.bin.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/glcontext_egl.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_d3d12.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/nvapi.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/fs_clear4.bin.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/vs_clear.bin.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/bgfx_p.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/fs_clear3.bin.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/glcontext_nsgl.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/topology.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/fs_clear1.bin.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/shader_spirv.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_d3d11.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/vertexlayout.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/fs_clear5.bin.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_vk.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/fs_clear7.bin.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_d3d9.h)
# add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/include/bgfx/c99/bgfx.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/include/bgfx/defines.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/include/bgfx/bgfx.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/include/bgfx/embedded_shader.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/include/bgfx/platform.h)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_d3d12.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_d3d11.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/nvapi.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/vertexlayout.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/glcontext_glx.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/glcontext_egl.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_vk.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_d3d9.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/shader_dx9bc.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_gnm.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/shader_spirv.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/shader_dxbc.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_webgpu.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/shader.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/bgfx.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/glcontext_html5.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/glcontext_wgl.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/topology.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/debug_renderdoc.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_noop.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/dxgi.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_nvn.cpp)
add_header_src(bgfx_lib ${BGFX_SRC_FOLDER}/src/renderer_gl.cpp)

target_compile_definitions(bgfx_lib PRIVATE "$<$<CONFIG:Debug>:BGFX_CONFIG_DEBUG=1>" )

if(OSX)
  # https://github.com/widberg/bgfx.cmake/blob/66f18daf5c380b34f4745ac0922b8a9853b51ad9/cmake/bgfx.cmake#L96
  find_library(COCOA_LIBRARY Cocoa)
  find_library(METAL_LIBRARY Metal)
  find_library(QUARTZCORE_LIBRARY QuartzCore)
  mark_as_advanced(COCOA_LIBRARY)
  mark_as_advanced(METAL_LIBRARY)
  mark_as_advanced(QUARTZCORE_LIBRARY)
  target_link_libraries(bgfx_lib PUBLIC ${COCOA_LIBRARY} ${METAL_LIBRARY} ${QUARTZCORE_LIBRARY})
endif()

target_include_directories(bgfx_lib PRIVATE ${BGFX_SRC_FOLDER}/3rdparty/khronos)
target_include_directories(bgfx_lib PUBLIC ${BGFX_SRC_FOLDER}/include)
target_link_libraries(bgfx_lib PUBLIC bx_lib bimg_lib)

from b2.

tom-seddon avatar tom-seddon commented on August 25, 2024

Fixed by fc18ec6

from b2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.