コード例 #1
0
ファイル: Makefile.py プロジェクト: lorsi96/esp32hello
import os
import sys
from os.path import basename
from pymakelib import MKVARS
from pymakelib import addon
from pymakelib.eclipse_addon import EclipseAddon
from pymakelib import toolchain as tool
from pymakelib import Define
from scripts import esp_vscode_addon

addon.add(EclipseAddon)
addon.add(esp_vscode_addon.vscode_init)

PROJECT_NAME = basename(os.getcwd())
IDF_PATH = os.getenv('IDF_PATH')


def getProjectSettings():
    return {'PROJECT_NAME': basename(os.getcwd()), 'FOLDER_OUT': 'build/'}


def getTargetsScript():
    FOLDER_OUT = 'build/'
    TARGET = FOLDER_OUT + PROJECT_NAME + '.elf'
    TARGET_BIN = FOLDER_OUT + PROJECT_NAME + '.bin'
    BOOTLOADER = FOLDER_OUT + 'bootloader/bootloader.bin'

    TARGETS = {
        'TARGET_32LD': {
            'LOGKEY':
            '32LD',
コード例 #2
0
import os
from os.path import basename
from pymakelib import git
from pymakelib import MKVARS
from pymakelib import toolchain as tool
from pymakelib import addon
from pymakelib.eclipse_addon import EclipseAddon
from scripts import vscode_addon
from pymakelib import Define as D
from scripts import config
from scripts import ciaa_addon

# Add addons for Eclipse and vscode
addon.add(EclipseAddon)
addon.add(vscode_addon.vscode_init)
addon.add(ciaa_addon.CIAAAddon)

PROJECT_NAME = basename(os.getcwd())
FOLDER_OUT = 'Release/ciaa_app/'
TARGET_ELF = FOLDER_OUT + PROJECT_NAME + ".elf"
TARGET_MAP = FOLDER_OUT + PROJECT_NAME + ".map"
TARGET_HEX = FOLDER_OUT + PROJECT_NAME + ".hex"
TARGET_BIN = FOLDER_OUT + PROJECT_NAME + ".bin"
TARGET_SIZE = FOLDER_OUT + PROJECT_NAME + ".size"
TARGET_LST = FOLDER_OUT + PROJECT_NAME + ".lst"
TARGET_CSV = FOLDER_OUT + PROJECT_NAME + "names.csv"


def getProjectSettings():
    return {'PROJECT_NAME': PROJECT_NAME, 'FOLDER_OUT': FOLDER_OUT}
コード例 #3
0
import os
from os.path import basename
from pymakelib import AbstractMake, Makeclass
from pymakelib import MKVARS
from pymakelib import toolchain as tool
from pymakelib import addon
from pymakelib.eclipse_addon import EclipseAddon
from pymakelib import Define as D
from pymakelib import pym

# Import addons
from scripts.vscode_addon import vscode_init

# Add addons
addon.add(EclipseAddon)
addon.add(vscode_init)

@Makeclass
class Project(AbstractMake):

    LIBRARIES = []

    def getProjectSettings(self, **kwargs):
        return {
            'PROJECT_NAME': basename(os.getcwd()),
            'FOLDER_OUT':   'Release',
            'TEST':         'TEST_HOLA'
        }

    def getTargetsScript(self, **kwargs):
        PROJECT_NAME = basename(os.getcwd())
コード例 #4
0
import os
import subprocess
from os.path import basename
from pymakelib import git
from pymakelib import MKVARS
from pymakelib import addon
from pymakelib import eclipse_addon

addon.add(eclipse_addon.EclipseAddon)


def getProjectSettings():
    return {
        'PROJECT_NAME': basename(os.getcwd()),
        'FOLDER_OUT': 'Release/Objects/'
    }


def getTargetsScript():
    PROJECT_NAME = basename(os.getcwd())
    FOLDER_OUT = 'Release/'
    TARGET = FOLDER_OUT + PROJECT_NAME + '.bin'

    TARGETS = {
        'TARGET': {
            'LOGKEY': 'OUT',
            'FILE': TARGET,
            'SCRIPT': [MKVARS.LD, '-o', '$@', MKVARS.OBJECTS, MKVARS.LDFLAGS]
        },
        'TARGET_ZIP': {
            'LOGKEY': 'ZIP',
コード例 #5
0
ファイル: Makefile.py プロジェクト: ericsonj/cpphello
import os
from os.path import basename
from pymakelib import MKVARS
from pymakelib import addon
from pymakelib.eclipse_addon import EclipseAddon
from pymakelib import toolchain

addon.add(EclipseAddon)

def getProjectSettings():
    return {
        'PROJECT_NAME': basename(os.getcwd()),
        'FOLDER_OUT':   'Release/Objects/'
    }


def getTargetsScript():
    PROJECT_NAME = basename(os.getcwd())
    FOLDER_OUT = 'Release/'
    TARGET = FOLDER_OUT + PROJECT_NAME

    TARGETS = {
        'TARGET': {
            'LOGKEY':  'OUT',
            'FILE':    TARGET,
            'SCRIPT':  [MKVARS.LD, '-o', '$@', MKVARS.OBJECTS, MKVARS.LDFLAGS]
        },
        'TARGET_ZIP': {
            'LOGKEY':   'ZIP',
            'FILE':     TARGET + '.zip',
            'SCRIPT':   ['zip', TARGET + '.zip', MKVARS.TARGET]