Hi,
How do I compile objective-c++ using BJAM?

Thanks!

Below is an example of what I'm trying to do:


import modules ;
import os ;

SOURCES =
    audio
;

DARWIN_SOURCES_MM =
avcapture_video_capture
;

DARWIN_SOURCES_CPP =
coreaudio_audio
;

WINDOWS_SOURCES =
wasapi_audio
;

local usage-requirements = 
<include>./include
<include>./../../deps
<include>./../media/include
;

project media ;

lib media

: # sources
src/$(SOURCES).cpp

: # requirements
<threading>multi
<toolset>darwin:<source>src/$(DARWIN_SOURCES_CPP).cpp
<toolset>darwin:<source>src/$(DARWIN_SOURCES_MM).mm
<toolset>msvc:<source>src/$(WINDOWS_SOURCES).cpp
$(usage-requirements)

: # default build
<link>static

: # usage requirements
$(usage-requirements)
;