mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 04:49:06 +00:00
wip
This commit is contained in:
@@ -168,8 +168,6 @@ src/bun.js/bindings/Exception.zig
|
||||
src/bun.js/bindings/FetchHeaders.zig
|
||||
src/bun.js/bindings/FFI.zig
|
||||
src/bun.js/bindings/generated_classes_list.zig
|
||||
src/bun.js/bindings/GeneratedBindings.zig
|
||||
src/bun.js/bindings/GeneratedJS2Native.zig
|
||||
src/bun.js/bindings/GetterSetter.zig
|
||||
src/bun.js/bindings/HTTPServerAgent.zig
|
||||
src/bun.js/bindings/JSArray.zig
|
||||
|
||||
@@ -1,18 +1,26 @@
|
||||
# Since we already have Yoga cloned, just build it directly
|
||||
set(YOGA_PATH ${VENDOR_PATH}/yoga)
|
||||
register_repository(
|
||||
NAME
|
||||
yoga
|
||||
REPOSITORY
|
||||
facebook/yoga
|
||||
COMMIT
|
||||
dc2581f229cb05c7d2af8dee37b2ee0b59fd5326
|
||||
)
|
||||
|
||||
if(NOT EXISTS ${YOGA_PATH})
|
||||
message(FATAL_ERROR "Yoga not found at ${YOGA_PATH}. Please clone it manually.")
|
||||
endif()
|
||||
|
||||
# Build Yoga as a subdirectory
|
||||
add_subdirectory(${YOGA_PATH} ${BUILD_PATH}/yoga EXCLUDE_FROM_ALL)
|
||||
|
||||
# Set the include directories
|
||||
if(TARGET ${bun})
|
||||
target_include_directories(${bun} PRIVATE ${YOGA_PATH})
|
||||
target_link_libraries(${bun} PRIVATE yogacore)
|
||||
endif()
|
||||
|
||||
# Create a custom target for consistency with other dependencies
|
||||
add_custom_target(yoga DEPENDS yogacore)
|
||||
register_cmake_command(
|
||||
TARGET
|
||||
yoga
|
||||
TARGETS
|
||||
yogacore
|
||||
ARGS
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
-DYOGA_BUILD_TESTS=OFF
|
||||
-DYOGA_BUILD_SAMPLES=OFF
|
||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
||||
LIB_PATH
|
||||
lib
|
||||
LIBRARIES
|
||||
yogacore
|
||||
INCLUDES
|
||||
.
|
||||
)
|
||||
@@ -807,6 +807,7 @@ JSC_DEFINE_HOST_FUNCTION(functionFileURLToPath, (JSC::JSGlobalObject * globalObj
|
||||
redis BunObject_lazyPropCb_wrap_valkey DontDelete|PropertyCallback
|
||||
secrets constructSecretsObject DontDelete|PropertyCallback
|
||||
write BunObject_callback_write DontDelete|Function 1
|
||||
YOGA constructYogaObject DontDelete|ReadOnly|PropertyCallback
|
||||
zstdCompressSync BunObject_callback_zstdCompressSync DontDelete|Function 1
|
||||
zstdDecompressSync BunObject_callback_zstdDecompressSync DontDelete|Function 1
|
||||
zstdCompress BunObject_callback_zstdCompress DontDelete|Function 1
|
||||
|
||||
Reference in New Issue
Block a user