Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

For C++ support use platform version >= 1.0.2.471 and toolset version >= 7.8
In the project specific makefile, the following modifications are needed:

include $(DEFINES_MIN)

BUILD_MODS = CPPproject

CPPproject_CPP_SRCS = file1 file2

# uncomment these if the variant selected is armgcc.
#CPPproject_C_SRCS +=
# glibc_stubs \
# mod_malloc

# uncomment these if the variant selected is RVCT/ADS.
#CPPproject_C_SRCS +=
# mod_malloc

CPPproject_INCDIRS= \
$(SYSTEM_DIR)/inc \
$(SECURITY_DIR)/inc \
$(MEDIA_DIR)/inc \
$(NETWORKING_DIR)/inc \
$(TELEPHONY_DIR)/inc \
$(UI_DIR)/inc \
$(DEPRECATED_DIR)/inc

# uncomment these if CPPproject is referring to glibc_stubs.c or mod_malloc.c.
#VPATH += $(BREWMP_PLATFORM_DIR)/system/src/

include $(RULES_MIN)

Known issues:
You may receive warnings while building glibc_stubs for CodeSourcery compilation.
The workaround is to open the glibc_stubs.c file in /platform /system/src and add the following lines of code.

struct stat *st;
struct tms *buf;