cxx_project(
    name = 'supervisor',
    srcs = cxx_src_glob(['supervisor/src', 'transport'],
                        excludes = ['*_android.*',
                                    'android/**/*',
                                    'matlabVisionProcessor.*',
                                    'matlabVisualization.*',
                                    '*nvStorage.*',
                                    'sim_hal.*']),
    platform_srcs = [
    ],
    headers = cxx_header_glob([
        'supervisor/src', 
        'transport',
        'include/anki/cozmo/shared']),
    platform_headers = []
)


cxx_project(
    name = 'vic-robot',
    srcs = cxx_src_glob(['hal/src',],
                        excludes = ['hal.cpp', 'hal_motors.cpp', '*_android.*', 'android/**/*']),
    platform_srcs = [],
    headers = cxx_header_glob(['hal/src/**/*.h',]),
    platform_headers = []
)


cxx_project(
    name = 'spine',
    srcs = cxx_src_glob(['hal/spine'],
                        excludes = ['*_android.*', 'android/**/*']),
    platform_srcs = [
        ('android', glob(['hal/spine/**/android/**/*.c',
                          'hal/spine/**/*_android.c']))
    ],
    headers = cxx_header_glob(['hal/spine/**/*.h']),
    platform_headers = [
        ('android', glob(['hal/spine/**/android/**/*.h',
                          'hal/spine/**/*_android.h']))
    ]
)
