mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +00:00
Add test Makefiles for IDEs
Add Wizard test script
This commit is contained in:
1 parent
5af2de635e
commit
f3cd74cb46
7 files changed
+173
-12
No files matched your search
@@ -0,0 +1,16 @@
|
||||
ROOT ?= $(realpath $(CURDIR)/../..)
|
||||
PROJECTS ?= $(wildcard ../../examples/nxp/*-xpresso-*)
|
||||
TARGET ?= Debug
|
||||
DOCKER = docker run --rm -v $(ROOT):$(ROOT) -v $(CURDIR):/root -w $(CURDIR)
|
||||
IMAGE ?= scaprile/xpresso
|
||||
HEADLESS_BUILD = /usr/local/mcuxpressoide/ide/mcuxpressoide --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild
|
||||
|
||||
all: $(PROJECTS)
|
||||
$(DOCKER) $(IMAGE) $(HEADLESS_BUILD) -data workspace -removeAll workspace
|
||||
|
||||
$(PROJECTS): FORCE
|
||||
(make -C $@ && make -C $@ clean) || ( \
|
||||
PROJNAME=`xq -r .projectDescription.name $@/.project` && \
|
||||
($(DOCKER) $(IMAGE) $(HEADLESS_BUILD) -data workspace -import wizard -cleanBuild $$PROJNAME/$(TARGET) || true) && \
|
||||
test -f $(@F)/$(TARGET)/$$PROJNAME.axf )
|
||||
FORCE:
|
||||
Reference in new issue
Block a user