#NEWLINE# def create_target( self , binary , gentarget ) : #NEWLINE# #INDENT# 'Create a JavaLibrary target for the R.java files created by the aapt tool.\n\n    :param AndroidBinary binary: AndroidBinary target whose target_sdk is used.\n    :param AndroidTarget gentarget: AndroidBinary or Library that owns the processed resources.\n\n    :returns new_target: Synthetic target for the R.java output of the aapt tool.\n    :rtype::class:`pants.backend.jvm.targets.java_library.JavaLibrary`\n    ' #NEWLINE# spec_path = os . path . join ( os . path . relpath ( self . aapt_out ( binary ) , get_buildroot ( ) ) ) #NEWLINE# address = Address ( spec_path = spec_path , target_name = gentarget . id ) #NEWLINE# new_target = self . context . add_new_target ( address , JavaLibrary , derived_from = gentarget , sources = [ self . _relative_genfile ( gentarget ) ] , dependencies = [ ] ) #NEWLINE# return new_target