コード例 #1
0
    def __init__(self, toolchain, host, target):
        self.host = host

        if host.is_windows():
            self.exe_suffix = '.exe'
        else:
            self.exe_suffix = ''

        self.javaccmd = toolchain.mkdircmd(
            '$outpath'
        ) + ' && $javac -d $outpath -classpath $outpath -sourcepath $sourcepath -target 1.5 -bootclasspath $androidjar -g -source 1.5 -Xlint:-options $in'
        self.dexcmd = '$dex --dex --output $out $in'
        self.aaptcmd = toolchain.cdcmd(
            '$apkbuildpath'
        ) + ' && $aapt p -f -m -M AndroidManifest.xml -F $apk -I $androidjar -S res --debug-mode --no-crunch -J gen $aaptflags'
        self.aaptdeploycmd = toolchain.cdcmd(
            '$apkbuildpath'
        ) + ' && $aapt c -S res -C bin/res && $aapt p -f -m -M AndroidManifest.xml -F $apk -I $androidjar -S bin/res -S res -J gen $aaptflags'
        self.aaptaddcmd = toolchain.cdcmd(
            '$apkbuildpath') + ' && ' + toolchain.copycmd(
                '$apksource', '$apk') + ' && $aapt a $apk $apkaddfiles'
        self.zipcmd = '$zip -r -9 $out $in $implicitin'
        self.zipaligncmd = '$zipalign -f 4 $in $out'
        self.codesigncmd = 'build/ninja/codesign.py --target $target --prefs codesign.json --zipfile $in --config $config --jarsigner $jarsigner $out'

        if host.is_windows():
            self.codesigncmd = 'python ' + self.codesigncmd
コード例 #2
0
  def __init__(self, toolchain, host, target):
    self.host = host

    if host.is_windows():
      self.exe_suffix = '.exe'
    else:
      self.exe_suffix = ''

    self.javaccmd = toolchain.mkdircmd('$outpath') + ' && $javac -d $outpath -classpath $outpath -sourcepath $sourcepath -target 1.5 -bootclasspath $androidjar -g -source 1.5 -Xlint:-options $in'
    self.dexcmd = '$dex --dex --output $out $in'
    self.aaptcmd = toolchain.cdcmd('$apkbuildpath') + ' && $aapt p -f -m -M AndroidManifest.xml -F $apk -I $androidjar -S res --debug-mode --no-crunch -J gen $aaptflags'
    self.aaptdeploycmd = toolchain.cdcmd('$apkbuildpath') + ' && $aapt c -S res -C bin/res && $aapt p -f -m -M AndroidManifest.xml -F $apk -I $androidjar -S bin/res -S res -J gen $aaptflags'
    self.aaptaddcmd = toolchain.cdcmd('$apkbuildpath') + ' && $aapt a $apk $apkaddfiles'
    self.zipaligncmd = '$zipalign -f 4 $in $out'
    self.jarsignercmd = '$jarsigner $timestamp -sigalg SHA1withRSA -digestalg SHA1 -keystore $keystore -storepass $keystorepass -keypass $keypass -signedjar $out $in $keyalias $proxy'
    self.zipcmd = '$zip -r -9 $out $in $implicitin'
コード例 #3
0
ファイル: android.py プロジェクト: lamproae/foundation_lib
  def __init__(self, toolchain, host, target):
    self.host = host

    if host.is_windows():
      self.exe_suffix = '.exe'
    else:
      self.exe_suffix = ''

    self.javaccmd = toolchain.mkdircmd('$outpath') + ' && $javac -d $outpath -classpath $outpath -sourcepath $sourcepath -target 1.5 -bootclasspath $androidjar -g -source 1.5 -Xlint:-options $in'
    self.dexcmd = '$dex --dex --output $out $in'
    self.aaptcmd = toolchain.cdcmd('$apkbuildpath') + ' && $aapt p -f -m -M AndroidManifest.xml -F $apk -I $androidjar -S res --debug-mode --no-crunch -J gen $aaptflags'
    self.aaptdeploycmd = toolchain.cdcmd('$apkbuildpath') + ' && $aapt c -S res -C bin/res && $aapt p -f -m -M AndroidManifest.xml -F $apk -I $androidjar -S bin/res -S res -J gen $aaptflags'
    self.aaptaddcmd = toolchain.cdcmd('$apkbuildpath') + ' && ' + toolchain.copycmd('$apksource', '$apk' ) + ' && $aapt a $apk $apkaddfiles'
    self.zipaligncmd = '$zipalign -f 4 $in $out'
    self.jarsignercmd = '$jarsigner $timestamp -sigalg SHA1withRSA -digestalg SHA1 -keystore $keystore -storepass $keystorepass -keypass $keypass -signedjar $out $in $keyalias $proxy'
    self.zipcmd = '$zip -r -9 $out $in $implicitin'
コード例 #4
0
  def __init__(self, toolchain, host, target):
    self.host = host

    if host.is_windows():
      self.exe_suffix = '.exe'
    else:
      self.exe_suffix = ''

    self.javaccmd = toolchain.mkdircmd('$outpath') + ' && $javac -d $outpath -classpath $outpath -sourcepath $sourcepath -target 1.5 -bootclasspath $androidjar -g -source 1.5 -Xlint:-options $in'
    self.dexcmd = '$dex --dex --output $out $in'
    self.aaptcmd = toolchain.cdcmd('$apkbuildpath') + ' && $aapt p -f -m -M AndroidManifest.xml -F $apk -I $androidjar -S res --debug-mode --no-crunch -J gen $aaptflags'
    self.aaptdeploycmd = toolchain.cdcmd('$apkbuildpath') + ' && $aapt c -S res -C bin/res && $aapt p -f -m -M AndroidManifest.xml -F $apk -I $androidjar -S bin/res -S res -J gen $aaptflags'
    self.aaptaddcmd = toolchain.cdcmd('$apkbuildpath') + ' && ' + toolchain.copycmd('$apksource', '$apk' ) + ' && $aapt a $apk $apkaddfiles'
    self.zipcmd = '$zip -r -9 $out $in $implicitin'
    self.zipaligncmd = '$zipalign -f 4 $in $out'
    self.codesigncmd = 'build/ninja/codesign.py --target $target --prefs codesign.json --zipfile $in --config $config --jarsigner $jarsigner $out'

    if host.is_windows():
      self.codesigncmd = 'python ' + self.codesigncmd