How to add definitions in hxcpp xml?

how to add definitions in hxcpp xml?

here is cmake file,how to add this in hxcpp?

check_type_size(“socklen_t” HAS_SOCKLEN_T BUILTIN_TYPES_ONLY)

if(HAS_SOCKLEN_T)
add_definitions(-DHAS_SOCKLEN_T=1)
endif()

//maybe like this ? or something else?

    <compilerflag value="-DHAS_SOCKLEN_T=1" if="HAS_SOCKLEN_T"/>

You are right on the path:

<compilerflag value='-DLINC_SDL_WITH_SDL_MAIN' if="android"/>

You don’t need to add that =1, the compiler does that automatically