# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

for var in ('ANDROID_PACKAGE_NAME',
            'ANDROID_TARGET_SDK'):
    DEFINES[var] = CONFIG[var]

for var in ('MOZ_ANDROID_MIN_SDK_VERSION',
            'MOZ_ANDROID_MAX_SDK_VERSION'):
    if CONFIG[var]:
        DEFINES[var] = CONFIG[var]

ANDROID_APK_NAME = 'robocop-debug'
ANDROID_APK_PACKAGE = 'org.mozilla.roboexample.test'
ANDROID_ASSETS_DIRS += ['assets']

TEST_HARNESS_FILES.testing.mochitest += [
    'robocop.ini',
    'robocop_autophone2.ini',
]
TEST_HARNESS_FILES.testing.mochitest.tests.robocop += [
    '*.html',
    '*.jpg',
    '*.mp4',
    '*.ogg',
    '*.sjs',
    '*.swf',
    '*.webm',
    '*.xml',
    'reader_mode_pages/**', # The ** preserves directory structure.
    'robocop*.js',
    'test*.js',
]

DEFINES['MOZ_ANDROID_SHARED_ID'] = CONFIG['MOZ_ANDROID_SHARED_ID']
OBJDIR_PP_FILES.mobile.android.tests.browser.robocop += [
    'AndroidManifest.xml.in',
]
