Beispiel #1
0
def get_framework_aidl():
  """Finds framework.aidl."""
  api_level = get_android_api_level()
  out = os.path.join(build_common.get_android_sdk_path(), 'platforms',
                     'android-%d' % api_level, 'framework.aidl')
  assert os.path.isfile(out), 'framework.aidl not found at: ' + out
  return out
Beispiel #2
0
def get_framework_aidl():
    """Finds framework.aidl."""
    api_level = get_android_api_level()
    out = os.path.join(build_common.get_android_sdk_path(), 'platforms',
                       'android-%d' % api_level, 'framework.aidl')
    assert os.path.isfile(out), 'framework.aidl not found at: ' + out
    return out
Beispiel #3
0
"""Build APK from C/C++ and java sources with Android SDK and NDK."""

import argparse
import os
import shutil
import subprocess
import sys

from src.build import build_common
from src.build import toolchain
from src.build.util import file_util


_ARC_ROOT = build_common.get_arc_root()
_NDK_PATH = os.path.join(_ARC_ROOT, 'third_party', 'ndk')
_SDK_PATH = build_common.get_android_sdk_path()
_TOOLS_ROOT = os.path.join(_ARC_ROOT, 'third_party', 'tools')


def _build_apk(source_path, use_ndk, use_clang, build_path,
               install_apk, debug, verbose):
  if not os.path.isdir(_SDK_PATH):
    raise Exception('Missing SDK path: ' + str(_SDK_PATH))

  print
  print '--------------------------'
  print 'Building ' + os.path.basename(install_apk)
  print '--------------------------'

  # We use this work directory in order to allow us to completely
  # create it from scratch every time we build.  We cannot do that
Beispiel #4
0
# found in the LICENSE file.
"""Build APK from C/C++ and java sources with Android SDK and NDK."""

import argparse
import os
import shutil
import subprocess
import sys

from src.build import build_common
from src.build import toolchain
from src.build.util import file_util

_ARC_ROOT = build_common.get_arc_root()
_NDK_PATH = os.path.join(_ARC_ROOT, 'third_party', 'ndk')
_SDK_PATH = build_common.get_android_sdk_path()
_TOOLS_ROOT = os.path.join(_ARC_ROOT, 'third_party', 'tools')


def _build_apk(source_path, use_ndk, use_clang, build_path, install_apk, debug,
               verbose):
    if not os.path.isdir(_SDK_PATH):
        raise Exception('Missing SDK path: ' + str(_SDK_PATH))

    print
    print '--------------------------'
    print 'Building ' + os.path.basename(install_apk)
    print '--------------------------'

    # We use this work directory in order to allow us to completely
    # create it from scratch every time we build.  We cannot do that