소스 검색

build: a few Win32 build fixes.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@4881 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 10 년 전
부모
커밋
ea774e6a45
2개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  1. +2
    -2
      ThePimp/Makefile.am
  2. +7
    -7
      build-win32

+ 2
- 2
ThePimp/Makefile.am 파일 보기

@@ -1,6 +1,6 @@
# $Id: $

mypkglibdir = $(libdir)/ThePimp
pimplibdir = $(libdir)/ThePimp

pimp_sources = \
src/AssemblyInfo.cs \
@@ -32,7 +32,7 @@ image_sources = \
images/about.svg

if USE_CSHARP
mypkglib_DATA = ThePimp.exe
pimplib_DATA = ThePimp.exe
bin_SCRIPTS = pimp
endif



+ 7
- 7
build-win32 파일 보기

@@ -27,7 +27,7 @@ make distclean || true

cd "${BUILDDIR}"
# Build for win32
"${SRCDIR}/configure" --host=i586-mingw32msvc --prefix=/ --bindir=/bin --libdir=/lib CPPFLAGS="-I${SRCDIR}/win32/gdiplus/include" LIBS="-L${SRCDIR}/win32/gdiplus/lib" "$@"
"${SRCDIR}/configure" --host=i686-w64-mingw32 --prefix=/ --bindir=/bin --libdir=/lib CPPFLAGS="-I${SRCDIR}/win32/gdiplus/include" LIBS="-L${SRCDIR}/win32/gdiplus/lib" "$@"
make pkglibdir=/lib pkgdatadir=/data bindir=/bin
# Install into our private directory
make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/
@@ -35,13 +35,13 @@ make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/
cd "${SRCDIR}"
rm -Rf "${BUILDDIR}"

#i586-mingw32msvc-strip "${INSTALLDIR}/bin/"*.exe || true
#i586-mingw32msvc-strip "${INSTALLDIR}/lib/"*.dll || true
#i686-w64-mingw32-strip "${INSTALLDIR}/bin/"*.exe || true
#i686-w64-mingw32-strip "${INSTALLDIR}/lib/"*.dll || true

# Install pipi.exe
echo 'int main(int argc, char *argv[], char *envp[]) { argv[0] = ".\\bin\\pipi.exe"; execve(argv[0], argv, envp); return 0; }' > run.c
i586-mingw32msvc-gcc run.c -mwindows -o "${INSTALLDIR}/pipi.exe"
i586-mingw32msvc-strip "${INSTALLDIR}/pipi.exe"
i686-w64-mingw32-gcc run.c -mwindows -o "${INSTALLDIR}/pipi.exe"
i686-w64-mingw32-strip "${INSTALLDIR}/pipi.exe"

# Install gtk-sharp
cp -r "win32/gtksharp/"* "${INSTALLDIR}/"
@@ -54,8 +54,8 @@ rm -Rf "${INSTALLDIR}/lib/mono"
# Install The Pimp
mv "${INSTALLDIR}/lib/ThePimp.exe" "${INSTALLDIR}/bin/"
echo 'int main(int argc, char *argv[], char *envp[]) { argv[0] = ".\\bin\\ThePimp.exe"; execve(argv[0], argv, envp); return 0; }' > run.c
i586-mingw32msvc-gcc run.c -mwindows -o "${INSTALLDIR}/ThePimp.exe"
i586-mingw32msvc-strip "${INSTALLDIR}/ThePimp.exe"
i686-w64-mingw32-gcc run.c -mwindows -o "${INSTALLDIR}/ThePimp.exe"
i686-w64-mingw32-strip "${INSTALLDIR}/ThePimp.exe"

# Install documentation
mkdir "${INSTALLDIR}/doc"


불러오는 중...
취소
저장