aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/TCC/Tango.TCC.LoadTestLib/Exports.cpp
blob: 16015e8ad10cb2be2a6fcd0faa67fe4d34045f57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <cstdlib>
#include "Exports.h"
#include "ColorDetection.h"

#pragma once

#define EXPORT_API __declspec(dllexport)

using namespace std;

extern "C" EXPORT_API size_t __cdecl Detect(uint8_t* input_buffer, size_t input_buffer_size, uint8_t*& output_buffer)
{
	ColorDetection detector;
	return detector.DetectColorNew(input_buffer, input_buffer_size, output_buffer);
}
(GEN_SRC_DIR)/sysbios sysbios_LIB = $(GEN_SRC_DIR)/sysbios/sysbios.aem4f # # ======== dependencies ======== # all: $(sysbios_LIB) clean: .sysbios_clean # ======== convenient build goals ======== .PHONY: sysbios sysbios: $(GEN_SRC_DIR)/sysbios/sysbios.aem4f # CDT managed make executables depend on $(OBJS) OBJS += $(sysbios_LIB) # # ======== rules ======== # $(sysbios_LIB): .force @echo making $@ ... @$(MAKE) -C $(sysbios_SRC) .sysbios_clean: @echo cleaning $(sysbios_SRC) ... -@$(MAKE) --no-print-directory -C $(sysbios_SRC) clean