blob: 26a2e4e337ca7aff525bc6bc8902004f452f7132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
$(eval $(call import.MODULE.rules,TEST))
build: test.build
install: test.install
install-strip: test.install-strip
uninstall: test.uninstall
clean: test.clean
xclean: test.xclean
test.build: $(TEST.exe)
ifeq (1,$(FEATURE.flatpak))
test.build: $(TEST.metainfo)
endif
########################################
# sync with ../macosx/module.rules #
########################################
test.install-strip: | $(dir $(TEST.install.exe))
$(CP.exe) $(TEST.exe) $(TEST.install.exe)
$(STRIP.exe) $(TEST.install.exe)
ifeq (1,$(FEATURE.flatpak))
$(TEST.metainfo): $(TEST.metainfo.template)
sed -e 's^RELEASE_TAG^<release version="$(HB.version)" date="$(word 1,$(HB.repo.date))" />^' $< > $@
$(TEST.install.metainfo): $(TEST.metainfo)
test.install: | $(dir $(TEST.install.metainfo))
endif
test.install: | $(dir $(TEST.install.exe))
$(CP.exe) $(TEST.exe) $(TEST.install.exe)
ifeq (1,$(FEATURE.flatpak))
$(CP.exe) $(TEST.metainfo) $(TEST.install.metainfo)
endif
test.uninstall:
$(RM.exe) -f $(TEST.install.exe)
test.clean:
$(RM.exe) -f $(TEST.out)
test.xclean: test.clean
########################################
$(TEST.exe): | $(dir $(TEST.exe))
$(TEST.exe): $(TEST.c.o)
$(call TEST.GCC.EXE++,$@,$^ $(TEST.libs))
ifeq (none,$(FFMPEG.GCC.g))
ifeq (1-mingw,$(HOST.cross)-$(HOST.system))
$(STRIP.exe) -s $(TEST.exe)
else
$(STRIP.exe) $(TEST.exe)
endif
endif
$(TEST.c.o): $(LIBHB.a)
$(TEST.c.o): | $(dir $(TEST.c.o))
$(TEST.c.o): $(BUILD/)%.o: $(SRC/)%.c
$(call TEST.GCC.C_O,$@,$<)
|