Compare commits

...

3 Commits

3 changed files with 34 additions and 24 deletions

View File

@ -58,6 +58,7 @@ endif
INCLUDE_PATHS = -I$(BELLA_SDK_PATH)/src -I$(LIBEFSW_PATH)/include -I$(LIBEFSW_PATH)/src INCLUDE_PATHS = -I$(BELLA_SDK_PATH)/src -I$(LIBEFSW_PATH)/include -I$(LIBEFSW_PATH)/src
SDK_LIB_PATH = $(BELLA_SDK_PATH)/lib SDK_LIB_PATH = $(BELLA_SDK_PATH)/lib
SDK_LIB_FILE = lib$(BELLA_SDK_NAME).$(SDK_LIB_EXT) SDK_LIB_FILE = lib$(BELLA_SDK_NAME).$(SDK_LIB_EXT)
USD_SDK_LIB_FILE = libdl_usd_ms.$(SDK_LIB_EXT)
EFSW_LIB_PATH = $(LIBEFSW_PATH)/build EFSW_LIB_PATH = $(LIBEFSW_PATH)/build
# Library flags # Library flags
LIB_PATHS = -L$(SDK_LIB_PATH) -L$(EFSW_LIB_PATH) LIB_PATHS = -L$(SDK_LIB_PATH) -L$(EFSW_LIB_PATH)
@ -90,6 +91,7 @@ $(OUTPUT_FILE): $(OBJECT_FILES)
$(CXX) -o $@ $(OBJECT_FILES) $(LINKER_FLAGS) $(LIB_PATHS) $(LIBRARIES) $(CXX) -o $@ $(OBJECT_FILES) $(LINKER_FLAGS) $(LIB_PATHS) $(LIBRARIES)
@echo "Copying libraries to $(BIN_DIR)..." @echo "Copying libraries to $(BIN_DIR)..."
@cp $(SDK_LIB_PATH)/$(SDK_LIB_FILE) $(BIN_DIR)/$(SDK_LIB_FILE) @cp $(SDK_LIB_PATH)/$(SDK_LIB_FILE) $(BIN_DIR)/$(SDK_LIB_FILE)
@cp $(SDK_LIB_PATH)/$(USD_SDK_LIB_FILE) $(BIN_DIR)/$(USD_SDK_LIB_FILE)
@cp $(EFSW_LIB_PATH)/$(EFSW_LIB_NAME) $(BIN_DIR)/$(EFSW_LIB_NAME) @cp $(EFSW_LIB_PATH)/$(EFSW_LIB_NAME) $(BIN_DIR)/$(EFSW_LIB_NAME)
@echo "Build complete: $(OUTPUT_FILE)" @echo "Build complete: $(OUTPUT_FILE)"

View File

@ -10,6 +10,7 @@ poomer-efsw --watchdir:/tmp --ext:zip --ext:bsz
# Build # Build
``` ```
workdir/ workdir/
├── cmake/ (macos)
├── build_engine_sdk/ ├── build_engine_sdk/
├── oom/ ├── oom/
├── efsw/ ├── efsw/
@ -17,29 +18,35 @@ workdir/
``` ```
## MacOS ## MacOS
Install Cmake to /Applications
```
curl -LO https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-macos-universal.dmg
open cmake-3.31.6-macos-universal.dmg
```
Download SDK for your OS and drag bella_engine_sdk into your workdir. On Windows rename unzipped folder by removing version ie bella_engine_sdk-24.6.0 -> bella_engine_sdk
- [bella_engine_sdk MacOS](https://downloads.bellarender.com/bella_engine_sdk-24.6.0.dmg)
- [bella_engine_sdk Linux](https://downloads.bellarender.com/bella_engine_sdk-24.6.0.tar.gz)
- [bella_engine_sdk Win](https://downloads.bellarender.com/bella_engine_sdk-24.6.0.zip)
``` ```
mkdir workdir # Install xcode
cd workdir xcode-select --install
git clone https://github.com/SpartanJ/efsw.git
mkdir -p efsw/build mkdir workdir && cd workdir
cd efsw/build mkdir cmake efsw poomer-efsw
/Applications/CMake.app/Contents/bin/cmake ..
make -j4 # Build cmake
cd ../.. cd cmake
git clone https://github.com/oomer/oom.git git clone https://github.com/Kitware/CMake.git .
git clone https://github.com/oomer/poomer-efsw.git ./configure
make -j$(sysctl -n hw.ncpu)
# Build efsw
cd ../efsw && git clone https://github.com/SpartanJ/efsw.git .
../cmake/bin/cmake -B ./build
../cmake/bin/cmake --build ./build -j$(sysctl -n hw.ncpu)
# Get bella sdk
cd ..
curl -LO https://downloads.bellarender.com/bella_engine_sdk-25.3.0-macos.zip
tar -xvf bella_engine_sdk-25.3.0-macos.zip
# Get oom
git clone https://git.indoodle.com/oomer/oom.git
# Build poomer-efsw
cd poomer-efsw cd poomer-efsw
make all -j4 git clone https://github.com/oomer/poomer-efsw.git .
make all -j$(sysctl -n hw.ncpu)
``` ```

View File

@ -12,6 +12,7 @@
#include "../oom/oom_file.h" // common misc code #include "../oom/oom_file.h" // common misc code
#include "../oom/oom_bella_long.h" // common misc code #include "../oom/oom_bella_long.h" // common misc code
#include "../oom/oom_bella_engine.h" // common misc code #include "../oom/oom_bella_engine.h" // common misc code
#include "../oom/oom_bella_misc.h" // Logging functionality
//============================================================================== //==============================================================================
// GLOBAL VARIABLES AND FUNCTIONS // GLOBAL VARIABLES AND FUNCTIONS
@ -99,7 +100,7 @@ int DL_main(dl::Args& args) {
// Check if we have files to delete // Check if we have files to delete
while (oomWatcher.getNextFileToDelete(filePath)) { while (oomWatcher.getNextFileToDelete(filePath)) {
dl::logInfo("Processing deletion: %s", filePath.string()); dl::logInfo("Processing deletion: %s", filePath.string().c_str());
// Handle file deletion // Handle file deletion
// Add your deletion logic here // Add your deletion logic here
} }