Skip to content

Commit

Permalink
Add rules to build glide as a .jar
Browse files Browse the repository at this point in the history
Makes glide not a library project by default,
although all that is really needed to use it
as a library project is to just add
android.library=true to project.properties again
  • Loading branch information
Sam Judd committed Aug 8, 2013
1 parent 76c7bc1 commit 4e9cdbf
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
setup:
jar:
git submodule init
git submodule update
cd library/volley && ant jar
cp library/volley/bin/volley.jar library/libs
cd library && ant jar

glide-minus-volley:
cd library && ant glide-minus-volley

update-ant: setup
android update project --path .. --library glide/library
2 changes: 1 addition & 1 deletion library/build.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="photos" default="help">
<project name="glide" default="help">

<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Expand Down
15 changes: 15 additions & 0 deletions library/custom_rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="glide-rules" default="help">
<target name="jar" depends="-compile">
<jar destfile="bin/glide.jar"
basedir="bin/classes" >
<zipgroupfileset dir="libs" includes="*.jar" />
</jar>
</target>
<target name="glide-minus-volley" depends="-compile">
<jar destfile="bin/glide-minus-volley.jar"
basedir="bin/classes" >
<zipgroupfileset dir="libs" includes="disklrucache*.jar" />
</jar>
</target>
</project>
4 changes: 3 additions & 1 deletion library/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

android.library=true
# Project target.
target=android-16

# https://code.google.com/p/android/issues/detail?id=40487
renderscript.opt.level=O0

0 comments on commit 4e9cdbf

Please sign in to comment.