User scriptsΒΆ

The developer can add more python scripts and import into _mk.py files.

user_script

For example in func.py:

# File func.py

def log(msg):
    print(msg)

The func.py can import in app_mk.py:

from pymakelib.module import ModuleHandle
import scripts.func as f


def init(mh: ModuleHandle):
    f.log('Init module app')


def getSrcs(mh: ModuleHandle):
    return [
        'app/app.c'
    ]


def getIncs(mh: ModuleHandle):
    return [
        'app'
    ]