]> Pileus Git - aweather/commitdiff
Tighten up win32 installer size
authorAndy Spencer <andy753421@gmail.com>
Wed, 8 Jun 2011 16:10:16 +0000 (16:10 +0000)
committerAndy Spencer <andy753421@gmail.com>
Wed, 8 Jun 2011 16:10:16 +0000 (16:10 +0000)
- Use shared libs only

Makefile.am
gen-win32.sh

index 5b262835077adf4d29748129a0e1ef57866ba9e1..af95b2b0806b67b80cb135a03c20112b7b05c048 100644 (file)
@@ -16,6 +16,10 @@ build: all
        make -C ../aweather-win32 install; \
        make -C ../grits-win32 install; \
        make -C ../rsl-win32 install;
        make -C ../aweather-win32 install; \
        make -C ../grits-win32 install; \
        make -C ../rsl-win32 install;
+       find build -name '*.a'  -delete
+       find build -name '*.la' -delete
+       rm -rf build/share/rsl/colors
+       rm -rf build/include
        touch $@
 
 installers: $(PACKAGE)-$(VERSION).exe $(PACKAGE)-$(VERSION)-gtk.exe
        touch $@
 
 installers: $(PACKAGE)-$(VERSION).exe $(PACKAGE)-$(VERSION)-gtk.exe
index d2c7eb149ada796400aa7dc4f079fdfc81f70b5b..f9f3b593a209f6c378d777f4ce2c3fabf50849c2 100755 (executable)
@@ -6,4 +6,7 @@ export PKG_CONFIG_PATH="$GRITS"
 export LIBS="-L$GRITS"
 export CPPFLAGS="-I$GRITS"
 export CFLAGS="-g -Werror -Wno-unused -O3"
 export LIBS="-L$GRITS"
 export CPPFLAGS="-I$GRITS"
 export CFLAGS="-g -Werror -Wno-unused -O3"
-./autogen.sh --host=i686-pc-mingw32
+./autogen.sh \
+       --enable-shared \
+       --disable-static \
+       --host=i686-pc-mingw32