15 lines
381 B
Python
15 lines
381 B
Python
import os
|
|
|
|
def setOutputDir(outputDir):
|
|
global OUTPUT_DIR
|
|
OUTPUT_DIR = outputDir
|
|
|
|
def getOutputDir():
|
|
return OUTPUT_DIR
|
|
|
|
def getHeaderInclude(headerPath):
|
|
outputDir = getOutputDir()
|
|
relPath = os.path.relpath(headerPath, outputDir)
|
|
path = relPath.replace('\\', '/') # Use forward slashes for includes
|
|
print(f" Including header: {path}")
|
|
return f'#include "{path}"' |