Skip to content

LuminousMonkey/Xcode_Project_Gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Xcode Project Generator for Jai

Overview

Automatically generates Xcode projects for Jai code to enable:

  • Code browsing and navigation
  • File organisation
  • Debugging support

Installation

Download Xcode_Generator.jai and place it in your project’s modules directory, or other modules path.

Usage

Command Line Plugin

Supports the Default_Metaprogram, just has to be able to find Xcode_Generator.jai as a module.

# From this test project directory
jai -import_dir ../modules src/test.jai +Xcode_Generator

Build Script Integration

See build_with_xcode.jai for an example of manual plugin integration in build scripts.

Features

  • Organises source files by directory structure
  • Groups system modules under “System Modules” folder
  • Groups user modules under project modules folder
  • Generates proper .xcscheme files for debugging
  • Creates unique project names based on executable name

Output

Creates {executable_name}.xcodeproj in the working directory containing:

  • project.pbxproj: Main project file with all source references
  • xcshareddata/xcschemes/{executable_name}.xcscheme: Debug/run scheme

Examples

Typical project structure:

my_project/
├── src/
│   └── test.jai
└── modules/
    ├── Xcode_Generator.jai
    └── UserModule/
        └── module.jai

Usage from project directory: jai -import_dir ../modules src/test.jai +Xcode_Generator

Notes

  • The generated Xcode project is for browsing and debugging only
  • Actual compilation still happens through Jai
  • Project names are based on executable name to avoid conflicts
  • Creates projects in the compiler’s working directory

About

Xcode project file generator for Jai projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages