Beispiel #1
0
def write_tool_android_mk(target_dir, var_dict, place_in_local_tmp):
    """Write Android.mk for a Skia tool.

  Args:
    target_dir: Destination for the makefile. Must not be None.
    var_dict: VarsDict containing variables for the makefile.
    place_in_local_tmp: If True, the executable will be synced to
      /data/local/tmp.
  """
    target_file = os.path.join(target_dir, 'Android.mk')
    with open(target_file, 'w') as f:
        f.write(makefile_writer.AUTOGEN_WARNING)

        if place_in_local_tmp:
            f.write('local_target_dir := $(TARGET_OUT_DATA)/local/tmp\n')

        makefile_writer.write_local_path(f)
        makefile_writer.write_clear_vars(f)

        makefile_writer.write_local_vars(f, var_dict, False, None)

        if place_in_local_tmp:
            f.write('LOCAL_MODULE_PATH := $(local_target_dir)\n')

        makefile_writer.write_include_stlport(f)
        f.write('include $(BUILD_EXECUTABLE)\n')
def write_tool_android_mk(target_dir, var_dict, place_in_local_tmp):
  """Write Android.mk for a Skia tool.

  Args:
    target_dir: Destination for the makefile. Must not be None.
    var_dict: VarsDict containing variables for the makefile.
    place_in_local_tmp: If True, the executable will be synced to
      /data/local/tmp.
  """
  target_file = os.path.join(target_dir, 'Android.mk')
  with open(target_file, 'w') as f:
    f.write(makefile_writer.AUTOGEN_WARNING)

    if place_in_local_tmp:
      f.write('local_target_dir := $(TARGET_OUT_DATA)/local/tmp\n')

    makefile_writer.write_local_path(f)
    makefile_writer.write_clear_vars(f)

    makefile_writer.write_local_vars(f, var_dict, False, None)

    if place_in_local_tmp:
      f.write('LOCAL_MODULE_PATH := $(local_target_dir)\n')

    f.write('include $(BUILD_EXECUTABLE)\n')
def write_tool_android_mk(target_dir, var_dict):
  """Write Android.mk for a Skia tool.

  Args:
    target_dir: Destination for the makefile. Must not be None.
    var_dict: VarsDict containing variables for the makefile.
  """
  target_file = os.path.join(target_dir, 'Android.mk')
  with open(target_file, 'w') as f:
    f.write(makefile_writer.AUTOGEN_WARNING)
    makefile_writer.write_local_path(f)
    makefile_writer.write_clear_vars(f)

    makefile_writer.write_local_vars(f, var_dict, False, None)

    makefile_writer.write_include_stlport(f)
    f.write('include $(BUILD_EXECUTABLE)\n')
def write_tool_android_mk(target_dir, var_dict):
    """Write Android.mk for a Skia tool.

  Args:
    target_dir: Destination for the makefile. Must not be None.
    var_dict: VarsDict containing variables for the makefile.
  """
    target_file = os.path.join(target_dir, 'Android.mk')
    with open(target_file, 'w') as f:
        f.write(makefile_writer.AUTOGEN_WARNING)
        makefile_writer.write_local_path(f)
        makefile_writer.write_clear_vars(f)

        makefile_writer.write_local_vars(f, var_dict, False, None)

        makefile_writer.write_include_stlport(f)
        f.write('include $(BUILD_EXECUTABLE)\n')
Beispiel #5
0
def write_tool_android_mk(target_dir, var_dict):
  """Write Android.mk for a Skia tool.

  Args:
    target_dir: Destination for the makefile. Must not be None.
    var_dict: VarsDict containing variables for the makefile.
  """
  target_file = os.path.join(target_dir, 'Android.mk')
  with open(target_file, 'w') as f:
    f.write(makefile_writer.AUTOGEN_WARNING)

    makefile_writer.write_local_path(f)
    makefile_writer.write_clear_vars(f)

    makefile_writer.write_local_vars(f, var_dict, False, None)

    makefile_writer.write_group(f, 'LOCAL_PICKUP_FILES',
                                ['$(LOCAL_PATH)/../resources'], False)

    f.write('include $(BUILD_NATIVE_TEST)\n')
def write_tool_android_mk(target_dir, var_dict):
    """Write Android.mk for a Skia tool.

  Args:
    target_dir: Destination for the makefile. Must not be None.
    var_dict: VarsDict containing variables for the makefile.
  """
    target_file = os.path.join(target_dir, 'Android.mk')
    with open(target_file, 'w') as f:
        f.write(makefile_writer.AUTOGEN_WARNING)

        makefile_writer.write_local_path(f)
        makefile_writer.write_clear_vars(f)

        makefile_writer.write_local_vars(f, var_dict, False, None)

        makefile_writer.write_group(f, 'LOCAL_PICKUP_FILES',
                                    ['$(LOCAL_PATH)/../resources'], False)

        f.write('include $(BUILD_NATIVE_TEST)\n')