Skip to content

Commit 5752df3

Browse files
committed
Providing multiplatform build
1 parent 3e11c95 commit 5752df3

File tree

2 files changed

+158
-22
lines changed

2 files changed

+158
-22
lines changed

it.baeyens.arduino.parent/pom.xml

Lines changed: 158 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@
4646
</configuration>
4747
</plugin>
4848

49+
50+
4951
</plugins>
5052

5153
<pluginManagement>
5254
<plugins>
53-
5455
<plugin>
5556
<groupId>org.eclipse.tycho</groupId>
5657
<artifactId>tycho-packaging-plugin</artifactId>
@@ -65,26 +66,162 @@
6566
</pluginManagement>
6667
</build>
6768

68-
<!-- (Kepler is a p2 repository containing Eclipse's annual release train) -->
69-
<repositories>
70-
<repository>
71-
<id>Nebula</id>
72-
<layout>p2</layout>
73-
<url> http://download.eclipse.org/technology/nebula/snapshot</url>
74-
</repository>
75-
76-
<repository>
77-
<id>platform</id>
78-
<layout>p2</layout>
79-
<url> http://download.eclipse.org/eclipse/updates/4.2</url>
80-
</repository>
81-
82-
<repository>
83-
<id>release-train</id>
84-
<layout>p2</layout>
85-
<url> http://download.eclipse.org/releases/juno</url>
86-
</repository>
87-
</repositories>
69+
70+
71+
72+
73+
<profiles>
74+
75+
<profile>
76+
<id>build-all</id>
77+
<build>
78+
<plugins>
79+
<plugin>
80+
<groupId>org.eclipse.tycho</groupId>
81+
<artifactId>target-platform-configuration</artifactId>
82+
<version>${tycho.version}</version>
83+
<configuration>
84+
<!-- configure the p2 target environments for multi-platform build -->
85+
<!-- The strings ("linux", "gtk", "x86"...) are defined by the OSGi
86+
spec -->
87+
<environments>
88+
89+
<!-- Linux -->
90+
<environment>
91+
<os>linux</os>
92+
<ws>gtk</ws>
93+
<arch>x86</arch>
94+
</environment>
95+
<environment>
96+
<os>linux</os>
97+
<ws>gtk</ws>
98+
<arch>x86_64</arch>
99+
</environment>
100+
101+
<!-- Windows -->
102+
<environment>
103+
<os>win32</os>
104+
<ws>win32</ws>
105+
<arch>x86</arch>
106+
</environment>
107+
<environment>
108+
<os>win32</os>
109+
<ws>win32</ws>
110+
<arch>x86_64</arch>
111+
</environment>
112+
113+
<!-- Mac -->
114+
<environment>
115+
<os>macosx</os>
116+
<ws>cocoa</ws>
117+
<arch>x86</arch>
118+
</environment>
119+
<environment>
120+
<os>macosx</os>
121+
<ws>cocoa</ws>
122+
<arch>x86_64</arch>
123+
</environment>
124+
125+
</environments>
126+
</configuration>
127+
</plugin>
128+
</plugins>
129+
</build>
130+
</profile>
131+
132+
<profile>
133+
<id>build-some</id>
134+
<build>
135+
<plugins>
136+
<plugin>
137+
<groupId>org.eclipse.tycho</groupId>
138+
<artifactId>target-platform-configuration</artifactId>
139+
<version>${tycho.version}</version>
140+
<configuration>
141+
<!-- configure the p2 target environments for multi-platform build -->
142+
<!-- The strings ("linux", "gtk", "x86"...) are defined by the OSGi
143+
spec -->
144+
<environments>
145+
146+
<!-- Linux -->
147+
<environment>
148+
<os>linux</os>
149+
<ws>gtk</ws>
150+
<arch>x86</arch>
151+
</environment>
152+
153+
<!-- Windows -->
154+
<environment>
155+
<os>win32</os>
156+
<ws>win32</ws>
157+
<arch>x86</arch>
158+
</environment>
159+
160+
<!-- Mac -->
161+
<environment>
162+
<os>macosx</os>
163+
<ws>cocoa</ws>
164+
<arch>x86_64</arch>
165+
</environment>
166+
167+
</environments>
168+
</configuration>
169+
</plugin>
170+
</plugins>
171+
</build>
172+
</profile>
173+
174+
<profile>
175+
<id>juno</id>
176+
<activation>
177+
<activeByDefault>true</activeByDefault>
178+
</activation>
179+
180+
<repositories>
181+
<repository>
182+
<id>Nebula</id>
183+
<layout>p2</layout>
184+
<url> http://download.eclipse.org/technology/nebula/snapshot</url>
185+
</repository>
186+
187+
<repository>
188+
<id>platform_juno</id>
189+
<layout>p2</layout>
190+
<url> http://download.eclipse.org/eclipse/updates/4.2</url>
191+
</repository>
192+
193+
<repository>
194+
<id>release-train_juno</id>
195+
<layout>p2</layout>
196+
<url> http://download.eclipse.org/releases/juno</url>
197+
</repository>
198+
</repositories>
199+
</profile>
200+
201+
<profile>
202+
<id>kepler</id>
203+
<repositories>
204+
<repository>
205+
<id>Nebula</id>
206+
<layout>p2</layout>
207+
<url> http://download.eclipse.org/technology/nebula/snapshot</url>
208+
</repository>
209+
210+
<repository>
211+
<id>platform_kepler</id>
212+
<layout>p2</layout>
213+
<url> http://download.eclipse.org/eclipse/updates/4.3</url>
214+
</repository>
215+
216+
<repository>
217+
<id>release-train_kepler</id>
218+
<layout>p2</layout>
219+
<url> http://download.eclipse.org/releases/kepler</url>
220+
</repository>
221+
</repositories>
222+
</profile>
223+
</profiles>
224+
88225

89226
</project>
90227

wim32x32.cmd

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)