1. 29 Dec, 2021 5 commits
    • Julien Lepiller's avatar
      android: Import dexdump and dmtracedump. · 2c32b6f6
      Julien Lepiller authored
      * android/packages/android-sources.scm (android-platform-art-12-source):
      New variable.
      * android/packages/android-tools.scm (dexdump, dmtracedump, libartbase)
      (libartpalette, libdexfile, libdexfile-external-headers): New variables.
      2c32b6f6
    • Julien Lepiller's avatar
      soong: cc: Extend config for art, arch, codegen, target and soong. · 1efa4d15
      Julien Lepiller authored
      * android/build/soong/cc.scm (generate-cc-makefile): Extend for art,
      arch, codegen, target and soong.
      (cc-config): Support codegen.
      (resolve-conditional, resolve-codegen, resolve-arch, extend-art-config):
      New procedures.
      (resolve-target): Use resolve-conditional.
      1efa4d15
    • Julien Lepiller's avatar
      soong: cc: Fix installation for art_* types. · 2d8b73cd
      Julien Lepiller authored
      * android/build/soong/cc.scm (generate-cc-makefile): Ensure installation
      rules are added for art_* types too.
      2d8b73cd
    • Julien Lepiller's avatar
      soong: Use clangs's linker. · 721a5ad5
      Julien Lepiller authored
      GNU's ld has trouble linking some files compiled by clang.
      
      * android/build-system/soong.scm (default-lld): New variable.
      (lower): Accept lld argument.  Add lld to native inputs.
      * android/build/soong/cc.scm (generate-bin-rule, generate-dynamic-lib-rule):
      Use lld.
      721a5ad5
    • Julien Lepiller's avatar
      blueprint: Fix module record extension. · 3ba98afa
      Julien Lepiller authored
      * android/build/blueprint.scm (merge-alists, merge-values): New
      procedures.
      (define-module-record-type)[specs->updater]: Use them.
      3ba98afa
  2. 28 Dec, 2021 4 commits
  3. 27 Dec, 2021 15 commits
    • Julien Lepiller's avatar
      android: java: Ignore product-variables. · 8ccb127e
      Julien Lepiller authored
      * android/build/soong/java.scm (java-config): Add product-variables.
      8ccb127e
    • Julien Lepiller's avatar
      android: Import apksigner. · 63b47018
      Julien Lepiller authored
      * android/packages/android-sources.scm
      (android-platform-external-conscrypt-12-source)
      (android-platform-tools-apksig-12-source): New variables.
      * android/packages/android-tools.scm (apksig, apksigner)
      (conscrypt-generate-constants, conscrypt-unbundled)
      (conscrypt-unbundled-generated-constants, libconscrypt-openjdk-jni)
      (libcrypto-static): New variables.
      63b47018
    • Julien Lepiller's avatar
      soong: java: Add manifest, jni-libs and wrapper support. · 32e1abee
      Julien Lepiller authored
      * android/build/soong/java.scm (java-config): Add jni-libs and wrapper.
      (javac-rule): Copy manifest.  Copy resources.
      (fix-jni-libs-rule): New procedure.
      (generate-java-makefile): Use it.  Install wrapper when needed.
      32e1abee
    • Julien Lepiller's avatar
      soong: genrule: Support location. · 03be36db
      Julien Lepiller authored
      * android/build/soong/genrule.scm (get-location): New procedure.
      (cmd->line): Parse $(location ...) statements.
      03be36db
    • Julien Lepiller's avatar
      soong: cc: Ignore multilip configuration. · 9cde3aa5
      Julien Lepiller authored
      * android/build/soong/cc.scm (cc-config): Add multilib.
      9cde3aa5
    • Julien Lepiller's avatar
      soong: Ignore etc/ld.so.cache. · 6a6ba4eb
      Julien Lepiller authored
      * android/build/soong.scm (expand-src-list): Ignore etc/ld.so.cache from
      dependencies.
      6a6ba4eb
    • Julien Lepiller's avatar
      android: Import aidl. · ae7eba93
      Julien Lepiller authored
      * android/packages/bison.scm: New file.
      * android/packages/android-sources.scm
      (android-platform-system-tools-aidl-12-source): New variable.
      * android/packages/android-tools.scm (aidl, libaidl-common): New
      variables
      ae7eba93
    • Julien Lepiller's avatar
      soong: cc: Support lex and yacc properties. · e80cf5a2
      Julien Lepiller authored
      * android/build/soong/cc.scm (cc-config): Add lex and yacc.
      (generate-lex-rule, generate-yacc-rule): New procedures.
      (build-rules): Support flex and bison sources.
      e80cf5a2
    • Julien Lepiller's avatar
      android: Add libaapt2-jni. · b37d8fd2
      Julien Lepiller authored
      * android/packages/android-tools.scm (libaapt2-jni): New variable.
      b37d8fd2
    • Julien Lepiller's avatar
      android: Import aapt2. · 600ebd72
      Julien Lepiller authored
      * android/packages/android-sources.scm
      (android-platform-frameworks-base-12-source)[snippet]: Fix protobuf
      import statements.
      * android/packages/android-tools.scm (aapt2, jni-headers, libaapt2)
      (libidmap2-policies): New variables.
      600ebd72
    • Julien Lepiller's avatar
      doc: Document available tools. · ea65cc4e
      Julien Lepiller authored
      README.md: Document available tools.
      ea65cc4e
    • Julien Lepiller's avatar
      android: Import new package versions. · 535ff3a0
      Julien Lepiller authored
      * android/packages/android-headers.scm: Update headers to version 12.
      * android/packages/android-sources.scm: Import new sources for version
      12.  Fix adb sources.
      * android/packages/android-tools.scm: Import new tools and dependencies
      for version 12.  Manually fix some of them.
      535ff3a0
    • Julien Lepiller's avatar
      soong: Update build system. · 87051e7d
      Julien Lepiller authored
      * android/build/soong/makefile.scm: Makefiles also contain install
      dependency information.
      * android/build/soong-build-system.scm (reset-include-path): Update
      global header packages.  Use all Android.bp files in addition to the one
      specified in the package.
      * android/build/soong.scm (expand-src-list): Fix expansion.
      (get-makefile): Add dry-run? argument.
      (resolve-dep): Also use guix-name if necessary.
      * android/build/soong/cc.scm (cc-config): Add dummy support for tidy.
      (clang-extra-cflags): Add extra flag.
      (clang-extra-external-cflags): Add extra flag.
      (build-rules): Remove duplicate C and CPP flags.  Add missing object
      dependencies.
      (install-rules): Add dependencies to instal rule.
      (generate-cc-makefile):  Do not create files on dry-run.  Specify no
      dependencies on additional install rules.
      * android/build/soong/genrule.scm (generate-genrule-makefile): Specify
      install dependencies.
      * android/build/soong/java.scm (javac-rule): Add source dependencies.
      (generate-java-makefile): Specify install dependencies.
      87051e7d
    • Julien Lepiller's avatar
      import: repo: Improve import tool. · 36f4c93d
      Julien Lepiller authored
      * android/import/repo.scm (fetch-manifest-repositories): Do not copy or
      symlink additonal files.
      (android-name->guix-name): Remove duplicat function.
      (import-source): Get module directory from project information.
      (import-source, import-package): Fix package naming.
      (import-package): Use dependencies from source and install targets.
      (import-recursively): Sort packages.  Ensure header package sources are
      imported.  Import packages only once.
      36f4c93d
    • Julien Lepiller's avatar
      blueprint: Improve low-level procedures. · cad213a9
      Julien Lepiller authored
      * android/build/blueprint.scm (uniq): Take an optional equal? argument.
      (android-name->guix-name): New variable.
      * README.md: Document them.
      cad213a9
  4. 23 Dec, 2021 3 commits
    • Julien Lepiller's avatar
      soong: Add missing keys in soong cc. · 42318f4d
      Julien Lepiller authored
      * android/build/soong/cc: Suport llndk, vendor-ramdisk-available,
      product-available and pgo.
      42318f4d
    • Julien Lepiller's avatar
      soong: Use gexps. · 528c62f2
      Julien Lepiller authored
      * android/build-system/soong.scm (lower): Do not make source private.
      (soong-build, soong-cross-build): Use gexps.
      528c62f2
    • Julien Lepiller's avatar
      android: Update android versions. · 311208a6
      Julien Lepiller authored
      * android/build/blueprint.scm (%latest-android-12): New variable.
      (%latest-android-11, %latest-android-10): Update to latest.
      * android/import/repo.scm (get-manifest): Use version 12 by default.
      * android/build-system/soong.scm: Re-export version 12.
      * README.md: Update documentation accordingly.
      * android/packages/android-sources: Update source hash for new versions.
      311208a6
  5. 17 Sep, 2021 2 commits
    • Julien Lepiller's avatar
      android: Add kotlin-0.7.1189. · 7eb44184
      Julien Lepiller authored
      * android/packages/kotlin.scm (kotlin-0.7.1189): New variable.
      * patches/kotlin-0.7.1189.patch: New file.
      7eb44184
    • Julien Lepiller's avatar
      android: Continue kotlin bootstrap. · f93b6215
      Julien Lepiller authored
      * patches/sdk-135.patch: New file.
      * patches/kotlin-0.7.638.patch: New file.
      * patches/kotlin-0.7.333.patch: New file.
      * android/packages/kotlin.scm: Add intermediate kotlin.
      * android/packages/intellij.scm: Add sdk 135.
      f93b6215
  6. 16 Sep, 2021 1 commit
    • Julien Lepiller's avatar
      android: Continue kotlin bootstrap. · d1abe7a1
      Julien Lepiller authored
      * patches/sdk-134.patch: New file.
      * patches/kotlin-0.6.2451.patch: New file.
      * patches/kotlin-0.6.2107.patch: New file.
      * android/packages/kotlin.scm: Factorize kotlin packages.  Add
      kotlin-0.6.2451.
      * android/packages/intellij.scm: Add intellij-234.
      (package-intellij-for-explicit-version): New variable.
      d1abe7a1
  7. 15 Sep, 2021 2 commits
    • Julien Lepiller's avatar
      android: Add kotlin-0.6.1932. · ca36cc3b
      Julien Lepiller authored
      * android/packages/kotlin.scm (kotlin-0.6.1932): New variable.
      * patches/kotlin-0.6.1932.patch: New file.
      * android/packages/intellij.scm (intellij-sdk-133-jps-model-api)
      (intellij-sdk-133-jps-model-impl)
      (intellij-sdk-133-jps-model-serilization): New variables.
      ca36cc3b
    • Julien Lepiller's avatar
      android: Add kotlin-0.6.1364. · cfa03ff0
      Julien Lepiller authored
      This is the beginning of the kotlin bootstrap.  This version is from
      2012 and thanks to the work of Emmanuel Bourg, it should be relatively
      easy to package up to kotlin 0.12.470 from 2015.
      
      * patches/asm4-icedtea.patch: New file.
      * patches/kotlin-0.6.786.patch: New file.
      * patches/sdk-133.patch: New file.
      * android/packages/intellij.scm: New file.
      * android/packages/java.scm: New file.
      * android/packages/kotlin.scm: New file.
      cfa03ff0
  8. 12 Sep, 2021 8 commits