Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Build directories
build/
bin/
lib/
*.o
*.obj
*.a
*.la
*.lo
*.dylib
*.so
*.dll

# Backup files
*~
*.bak
*.backup
*.swp
*.old
*.tmp
*.temp

# IDE files
.vscode/
.idea/
*.sublime-*
*.code-workspace

# macOS files
.DS_Store
.AppleDouble
.LSOverride
._*

# Logs
*.log
logs/
37 changes: 27 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,52 @@ cmake_minimum_required(VERSION 3.13)
project(RobloxExecutor VERSION 1.0.0 LANGUAGES C CXX)

# Set C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Enable CI build detection
add_definitions(-DCI_BUILD)

# Set output directories - use standard directories that should already exist
# Output directories
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)

# Include existing sources
# Include directories
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/source
${CMAKE_SOURCE_DIR}/source/cpp
)

# Main source files
set(SOURCES
source/library.cpp
source/lfs.c
)

# Build the dynamic library directly - minimal changes
add_library(roblox_executor SHARED source/library.cpp)
# Create the dynamic library
add_library(roblox_executor SHARED ${SOURCES})

# Set output name
# Set library properties
set_target_properties(roblox_executor PROPERTIES
OUTPUT_NAME "libmylibrary"
PREFIX ""
)

# Copy to the expected output location
# Set include directories for the target
target_include_directories(roblox_executor PRIVATE
${CMAKE_SOURCE_DIR}/source/cpp
${CMAKE_SOURCE_DIR}/source/cpp/ios
${CMAKE_SOURCE_DIR}/source/cpp/memory
)

# Copy the library to output for workflow check
add_custom_command(TARGET roblox_executor POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_SOURCE_DIR}/output
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:roblox_executor> ${CMAKE_SOURCE_DIR}/output/libmylibrary.dylib
COMMENT "Copying library to output directory"
)

# Create AI data directories
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/output/Resources/AIData)
file(WRITE ${CMAKE_SOURCE_DIR}/output/Resources/AIData/config.json "{\"version\":\"1.0.0\"}")

message(STATUS "Building iOS Roblox Executor")
Loading
Loading