circuitpython/ports/unix/variants/coverage/mpconfigvariant.mk

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
2.0 KiB
Makefile
Raw Normal View History

PROG ?= micropython-coverage
# Disable optimisations and enable assert() on coverage builds.
DEBUG ?= 1
CFLAGS += \
-fprofile-arcs -ftest-coverage \
-Wformat -Wmissing-declarations -Wmissing-prototypes \
-Wold-style-definition -Wpointer-arith -Wshadow -Wuninitialized -Wunused-parameter \
-DMICROPY_UNIX_COVERAGE \
-DMODULE_CEXAMPLE_ENABLED=1 -DMODULE_CPPEXAMPLE_ENABLED=1
LDFLAGS += -fprofile-arcs -ftest-coverage
FROZEN_MANIFEST ?= $(VARIANT_DIR)/manifest.py
USER_C_MODULES = $(TOP)/examples/usercmodule
MICROPY_VFS_FAT = 1
MICROPY_VFS_LFS1 = 1
MICROPY_VFS_LFS2 = 1
SRC_QRIO := $(patsubst ../../%,%,$(wildcard ../../shared-bindings/qrio/*.c ../../shared-module/qrio/*.c ../../lib/quirc/lib/*.c))
SRC_C += $(SRC_QRIO)
CFLAGS += -DCIRCUITPY_QRIO=1
$(BUILD)/lib/quirc/lib/%.o: CFLAGS += -Wno-shadow -Wno-sign-compare -include shared-module/qrio/quirc_alloc.h
2021-11-12 11:30:40 -05:00
SRC_BITMAP := \
$(patsubst ../../%,%,$(wildcard ../../shared-bindings/gifio/*.c ../../shared-module/gifio/*.c)) \
shared/runtime/context_manager_helpers.c \
displayio_min.c \
2021-11-28 16:14:47 -05:00
shared-bindings/aesio/aes.c \
shared-bindings/aesio/__init__.c \
2021-11-12 18:07:00 -05:00
shared-bindings/bitmaptools/__init__.c \
2021-11-12 11:30:40 -05:00
shared-bindings/displayio/Bitmap.c \
2022-12-01 17:43:08 -05:00
shared-bindings/_environ/__init__.c \
2021-11-12 18:07:00 -05:00
shared-bindings/rainbowio/__init__.c \
2021-12-02 00:41:11 -05:00
shared-bindings/traceback/__init__.c \
2021-11-12 18:07:00 -05:00
shared-bindings/util.c \
2022-02-21 11:24:13 -05:00
shared-bindings/zlib/__init__.c \
2021-11-28 16:14:47 -05:00
shared-module/aesio/aes.c \
shared-module/aesio/__init__.c \
2021-11-12 18:07:00 -05:00
shared-module/bitmaptools/__init__.c \
2021-11-12 11:30:40 -05:00
shared-module/displayio/area.c \
shared-module/displayio/Bitmap.c \
shared-module/displayio/ColorConverter.c \
2021-11-12 18:07:00 -05:00
shared-module/displayio/ColorConverter.c \
2022-12-01 17:43:08 -05:00
shared-module/_environ/__init__.c \
2021-11-12 18:07:00 -05:00
shared-module/rainbowio/__init__.c \
2022-02-21 11:24:13 -05:00
shared-module/traceback/__init__.c \
shared-module/zlib/__init__.c \
2021-11-12 11:30:40 -05:00
SRC_C += $(SRC_BITMAP)
2021-12-02 00:41:11 -05:00
CFLAGS += \
-DCIRCUITPY_AESIO=1 \
-DCIRCUITPY_BITMAPTOOLS=1 \
-DCIRCUITPY_DISPLAYIO_UNIX=1 \
2022-12-01 17:43:08 -05:00
-DCIRCUITPY_ENVIRON=1 \
2021-12-02 00:41:11 -05:00
-DCIRCUITPY_GIFIO=1 \
-DCIRCUITPY_RAINBOWIO=1 \
2022-02-21 11:24:13 -05:00
-DCIRCUITPY_TRACEBACK=1 \
-DCIRCUITPY_ZLIB=1
SRC_C += coverage.c
SRC_CXX += coveragecpp.cpp