功能: 服务端生成完整报告并保护单任务
- 使用 libxlsxwriter 常量内存导出 Excel\n- 增加全局任务占用提示与原始数据持久化\n- 保留运行时任务数据并更新接口文档
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
###############################################################################
|
||||
#
|
||||
# Makefile for libxlsxwriter library.
|
||||
#
|
||||
# Copyright 2014-2022, John McNamara, jmcnamara@cpan.org
|
||||
#
|
||||
|
||||
# Keep the output quiet by default.
|
||||
Q=@
|
||||
ifdef V
|
||||
Q=
|
||||
endif
|
||||
|
||||
# Directory variables.
|
||||
INC_DIR = ../../../include
|
||||
LIB_DIR = ../../../src
|
||||
|
||||
# Flags passed to the C compiler.
|
||||
CFLAGS += -DTESTING -DCOLOR_OK -g -Wall -Wextra -Wno-unused-parameter $(GCOV)
|
||||
|
||||
# Make targets and objects.
|
||||
SRCS = $(wildcard test*.c)
|
||||
TESTS = $(patsubst %.c,%,$(SRCS))
|
||||
OBJS = $(patsubst %.c,%.o,$(SRCS))
|
||||
|
||||
# Libs to link.
|
||||
LIBS_A = $(LIB_DIR)/libxlsxwriter_test.a
|
||||
LIBS_O = -lz
|
||||
ifdef USE_SYSTEM_MINIZIP
|
||||
LIBS_O += -lminizip
|
||||
CFLAGS += -DUSE_SYSTEM_MINIZIP
|
||||
endif
|
||||
|
||||
# Link libcrypto if needed.
|
||||
ifdef USE_OPENSSL_MD5
|
||||
LIBS_O += -lcrypto
|
||||
endif
|
||||
|
||||
# Use a third party double number formatting function.
|
||||
ifdef USE_DTOA_LIBRARY
|
||||
CFLAGS += -DUSE_DTOA_LIBRARY
|
||||
endif
|
||||
|
||||
# Make all the individual tests.
|
||||
all : $(TESTS)
|
||||
|
||||
# Clean all the things!
|
||||
clean :
|
||||
$(Q)rm -f $(TESTS) test_all *.o *.gcno *.gcda
|
||||
|
||||
# Build the testscases.
|
||||
%.o: %.c
|
||||
$(Q)$(CC) -I$(INC_DIR) $(CFLAGS) -c $<
|
||||
|
||||
test_%: main.o test_%.o $(LIBS_A)
|
||||
$(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS_O)
|
||||
|
||||
# Link all the tests into one test executable.
|
||||
test_all : main.o $(OBJS) $(LIBS_A)
|
||||
$(Q)$(CC) $(CFLAGS) -o $@ $^ $(LIBS_O)
|
||||
|
||||
# Run the tests.
|
||||
test : all test_all
|
||||
$(Q)./test_all
|
||||
Reference in New Issue
Block a user