   (doto project
     crunch-resources package-resources
     create-apk sign-apk zipalign-apk))
+
+(defn build-library
+  "Metatask. Generate resources and compile the library project."
+  [project]
+  (doto project
+    code-gen compile crunch-resources))

;;
(defn create-dex
  "Creates a DEX file from the compiled .class files."
  [{{:keys [sdk-path out-dex-path]} :android,
    compile-path :compile-path :as project}]
  (info "Creating DEX....")
  (ensure-paths sdk-path)

        deps (unique-jars (resolve-dependencies :dependencies project))]
    (with-process [proc (map str
                             (flatten [dx-bin "--dex" "--output" out-dex-path
                                       compile-path annotations deps
                                       external-classes-paths]))]
      (.addShutdownHook (Runtime/getRuntime) (Thread. #(.destroy proc))))))

(defn build
