diff options
Diffstat (limited to 'contrib/gitian-descriptors/protobuf-win32.yml')
-rw-r--r-- | contrib/gitian-descriptors/protobuf-win32.yml | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/contrib/gitian-descriptors/protobuf-win32.yml b/contrib/gitian-descriptors/protobuf-win32.yml index 492b21e7f5..ad676e5654 100644 --- a/contrib/gitian-descriptors/protobuf-win32.yml +++ b/contrib/gitian-descriptors/protobuf-win32.yml @@ -17,21 +17,23 @@ script: | export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 export FAKETIME=$REFERENCE_DATETIME export TZ=UTC + export INSTALLPREFIX=$OUTDIR/staging/deps + export HOST=i586-mingw32msvc # + # + mkdir -p $INSTALLPREFIX + tar xjf protobuf-2.5.0.tar.bz2 cd protobuf-2.5.0 # First: build a native (linux) protoc ./configure --enable-shared=no --disable-dependency-tracking make - mkdir -p host - cp src/protoc host + mkdir -p $INSTALLPREFIX/host/bin + cp src/protoc $INSTALLPREFIX/host/bin # Now recompile with the mingw cross-compiler: make distclean - ./configure --enable-shared=no --disable-dependency-tracking --with-protoc=$(pwd)/host/protoc --host=i586-mingw32msvc CXXFLAGS=-frandom-seed=11 + ./configure --prefix=$INSTALLPREFIX --enable-shared=no --disable-dependency-tracking --with-protoc=$INSTALLPREFIX/host/bin/protoc --host=$HOST CXXFLAGS=-frandom-seed=11 make - cd .. - mkdir -p protobuf-win32 - cp protobuf-2.5.0/host/protoc protobuf-win32/protoc - cp protobuf-2.5.0/src/.libs/libprotobuf.a protobuf-win32/libprotobuf.a - cp -r protobuf-2.5.0/src/google protobuf-win32/ - zip -r $OUTDIR/protobuf-win32-2.5.0-gitian-r1.zip protobuf-win32 + make install + cd $INSTALLPREFIX + zip -r $OUTDIR/protobuf-win32-2.5.0-gitian-r2.zip include lib host |