Commit c55614b170f6bdf344474616ae95a58ba22998de

  • avatar
  • José Arcángel Salazar Delgado <arcangel @She…yl.(none)>
  • Tue Feb 23 07:03:32 CET 2010
added untested support to mac32
  
11#!/bin/bash
22
3for i in resources-linux32 resources-linux64 resources-win32 resources-win64; do
3for i in resources-linux32 resources-linux64 resources-win32 resources-win64 resources-mac32; do
44 rm -rf ${i}/src/main/resources
55done
  
77QTJAMBI_LINUX64_RELEASE=~/qtjambi/qtjambi-linux64-lgpl-4.5.2_01
88QTJAMBI_WIN32_RELEASE=~/qtjambi/qtjambi-win32-lgpl-4.5.2_01
99QTJAMBI_WIN64_RELEASE=~/qtjambi/qtjambi-win64-lgpl-4.5.2_01
10QTJAMBI_MAC_RELEASE=
10QTJAMBI_MAC32_RELEASE=~/qtjambi/qtjambi-mac-lgpl-4.5.2_01
1111
1212# Maven stuff
1313# TODO: this should be used as deploy-deploy file together with REPO in the future, now should stay install:install-file
  
11#!/bin/bash
22
3# TODO mac
4
53source env_releases
64source functions
75
2121
2222for i in bin/juic.exe bin/lupdate.exe bin/lrelease.exe bin/QtCore4.dll bin/QtXml4.dll; do
2323 cp ${QTJAMBI_WIN64_RELEASE}/${i} resources-win64/src/main/resources || die
24done
25
26for i in bin/juic bin/lupdate bin/lrelease lib/libQtCore.4.dylib lib/libQtXml.4.dylib; do
27 cp ${QTJAMBI_MAC32_RELEASE}/${i} resources-mac32/src/main/resources || die
2428done
  
77# prepare poms
88rm -rf tmp
99mkdir -p tmp
10for platform in linux32 linux64 win32 win64; do
10for platform in linux32 linux64 win32 win64 mac32; do
1111 cat misc/qtjambi-base.pom | sed s/%PLATFORM%/$platform/ | sed s/%QTJAMBI_VERSION%/$QTJAMBI_VERSION/ > tmp/qtjambi-base-$platform.pom || die
1212 cat misc/qtjambi-platform.pom | sed s/%PLATFORM%/$platform/ | sed s/%QTJAMBI_VERSION%/$QTJAMBI_VERSION/ > tmp/qtjambi-$platform.pom || die
1313done
2727
2828mvn ${MAVEN_ACTION}:${MAVEN_SUBACTION} -Dfile=${QTJAMBI_WIN64_RELEASE}/qtjambi-${QTJAMBI_VERSION}.jar -DpomFile=qtjambi-base-win64.pom $MAVEN_REPO || die
2929mvn ${MAVEN_ACTION}:${MAVEN_SUBACTION} -Dfile=${QTJAMBI_WIN64_RELEASE}/qtjambi-win64-msvc2005x64-${QTJAMBI_VERSION}.jar -DpomFile=qtjambi-win64.pom $MAVEN_REPO || die
30
31mvn ${MAVEN_ACTION}:${MAVEN_SUBACTION} -Dfile=${QTJAMBI_MAC32_RELEASE}/qtjambi-${QTJAMBI_VERSION}.jar -DpomFile=qtjambi-base-mac.pom $MAVEN_REPO || die
32mvn ${MAVEN_ACTION}:${MAVEN_SUBACTION} -Dfile=${QTJAMBI_MAC32_RELEASE}/qtjambi-mac32-gcc-${QTJAMBI_VERSION}.jar -DpomFile=qtjambi-mac.pom $MAVEN_REPO || die
3033
3134cd ..
3235rm -rf tmp
  
138138 </dependencies>
139139 </profile>
140140
141 <profile>
142 <id>mac32</id>
143 <activation>
144 <os>
145 <family>mac</family>
146 <arch>i386</arch>
147 </os>
148 </activation>
149 <dependencies>
150 <dependency>
151 <groupId>net.sf.qtjambi</groupId>
152 <artifactId>qtjambi-maven-plugin-mac32</artifactId>
153 <version>%QTJAMBI_VERSION%</version>
154 </dependency>
155 </dependencies>
156 </profile>
157
141158 </profiles>
142159
143160</project>
  
147147 platform = Platforms.LIN64;
148148 tool_files = new String[]{"juic", "lupdate", "lrelease", "libQtCore.so.4", "libQtXml.so.4"};
149149 } else if (platform_name.contains("mac") && platform_bits == 32) {
150 throw new MojoExecutionException("Platform mac32 not yet supported");
150 platform = Platforms.MAC32;
151 tool_files = new String[]{"juic", "lupdate", "lrelease", "libQtCore.4.dylib", "libQtXml.4.dylib"};
151152 } else if (platform_name.contains("mac") && platform_bits == 64) {
152153 throw new MojoExecutionException("Platform mac64 not yet supported");
153154 } else {
383383 // TODO what about mac?
384384 if (platform.equals(Platforms.LIN32) || platform.equals(Platforms.LIN64)) {
385385 b.environment().put("LD_LIBRARY_PATH", binariesDir.getAbsolutePath());
386 }
387
388 if (platform.equals(Platforms.MAC32) || platform.equals(Platforms.MAC64)) {
389 b.environment().put("DYLD_LIBRARY_PATH", binariesDir.getAbsolutePath());
386390 }
387391
388392 // run process
  
1717 <module>resources-win64</module>
1818 <module>resources-linux32</module>
1919 <module>resources-linux64</module>
20 <module>resources-mac32</module>
2021
2122 <!-- this project is the main library what applications should use.
2223 It handles dependency on qtjambi jars for each platform -->
  
105105 </dependencies>
106106 </profile>
107107
108 <profile>
109 <id>mac32</id>
110 <activation>
111 <os>
112 <name>Mac OS X</name>
113 <family>mac</family>
114 <arch>i386</arch>
115 <!-- <version>5.1.2600</version> -->
116 </os>
117 </activation>
118 <dependencies>
119 <dependency>
120 <groupId>net.sf.qtjambi</groupId>
121 <artifactId>qtjambi-base-mac32</artifactId>
122 <version>%QTJAMBI_VERSION%</version>
123 </dependency>
124 <dependency>
125 <groupId>net.sf.qtjambi</groupId>
126 <artifactId>qtjambi-platform-mac32</artifactId>
127 <version>%QTJAMBI_VERSION%</version>
128 </dependency>
129 </dependencies>
130 </profile>
131
108132 </profiles>
109133
110134</project>