@@ -78,8 +78,6 @@ EmitExtractedDefines = \
78
78
# Remaining parameter(s) are named arguments:
79
79
# NATURE - Which Eclipse Workspace nature to generate for the Workspace. Can
80
80
# be one of JAVA, HOTSPOT, NATIVE, or MIXED.
81
- # SHARED - Workspace will share the same directory as the JDK if true. Can be
82
- # either true or false. Defaults to false if not specified.
83
81
SetupEclipseWorkspace = $(NamedParamsMacroTemplate)
84
82
define SetupEclipseWorkspaceBody
85
83
@@ -95,26 +93,12 @@ define SetupEclipseWorkspaceBody
95
93
$$(error Unrecognised nature $$($1_NATURE) specified for Eclipse Workspace)
96
94
endif
97
95
98
- ifeq ($$($1_SHARED), )
99
- $$(info Workspace sharing option not given, assuming non-shared Eclipse Workspace)
100
- $1_SHARED := false
101
- else ifeq ($$(findstring $$($1_SHARED), true false), )
102
- $$(error $$($1_NATURE) is not a boolean word)
103
- endif
104
-
105
- ifeq ($$($1_SHARED), true)
106
- $1_CLASSPATH_FILE := $(TOPDIR)/.classpath
107
- $1_WORKSPACE_FILE := $(TOPDIR)/.project
108
- $1_NATIVE_FILE := $(TOPDIR)/.cproject
109
- $1_SETTINGS_FILE := $(TOPDIR)/.settings/language.settings.xml
110
- else
111
- $1_IDE_OUTPUTDIR := $(OUTPUTDIR)/ide/eclipse
112
- $1_CLASSPATH_FILE := $$($1_IDE_OUTPUTDIR)/.classpath
113
- $1_WORKSPACE_FILE := $$($1_IDE_OUTPUTDIR)/.project
114
- $1_NATIVE_FILE := $$($1_IDE_OUTPUTDIR)/.cproject
115
- $1_SETTINGS_FILE := $$($1_IDE_OUTPUTDIR)/.settings/language.settings.xml
116
- $$(call MakeDir, $$($1_IDE_OUTPUTDIR))
117
- endif
96
+ $1_IDE_OUTPUTDIR := $(OUTPUTDIR)/ide/eclipse
97
+ $1_CLASSPATH_FILE := $$($1_IDE_OUTPUTDIR)/.classpath
98
+ $1_WORKSPACE_FILE := $$($1_IDE_OUTPUTDIR)/.project
99
+ $1_NATIVE_FILE := $$($1_IDE_OUTPUTDIR)/.cproject
100
+ $1_SETTINGS_FILE := $$($1_IDE_OUTPUTDIR)/.settings/language.settings.xml
101
+ $$(call MakeDir, $$($1_IDE_OUTPUTDIR))
118
102
119
103
ifneq ($$(findstring $$($1_NATURE), HOTSPOT NATIVE MIXED), )
120
104
ifeq ($$(call isCompiler, microsoft), true)
@@ -198,14 +182,11 @@ define SetupEclipseWorkspaceBody
198
182
$1_MAKE := $$(call FixPath, $(MAKE))
199
183
endif
200
184
201
- $1_MATCHING_MAKE_TARGETS :=
202
- $1_PLAIN_MAKE_TARGETS := update-build-docs docs gensrc gendata \
203
- copy java launchers libs hotspot jdk product-images all-images test-image clean
204
-
205
185
# make reconfigure omitted since it is sensitive to which make was used
206
- ifeq ($$($1_SHARED), true)
207
- $1_PLAIN_MAKE_TARGETS += dist-clean
208
- endif
186
+ # make dist-clean omitted since it would delete the Workspace as well
187
+ $1_MATCHING_MAKE_TARGETS :=
188
+ $1_PLAIN_MAKE_TARGETS := update-build-docs docs gensrc gendata copy java \
189
+ launchers libs hotspot jdk product-images product-bundles all-images test-image clean
209
190
210
191
$1_MATCHING_MAKE_TARGETS += $$(foreach name,$$($1_PLAIN_MAKE_TARGETS), \
211
192
<target name="$$(strip $$(name))" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> \
@@ -232,11 +213,7 @@ define SetupEclipseWorkspaceBody
232
213
233
214
TARGETS += $$($1_CREATE_NATIVE_FILE)
234
215
235
- ifeq ($$($1_SHARED), true)
236
- $$(call MakeDir, $(TOPDIR)/.settings)
237
- else
238
- $$(call MakeDir, $$($1_IDE_OUTPUTDIR)/.settings)
239
- endif
216
+ $$(call MakeDir, $$($1_IDE_OUTPUTDIR)/.settings)
240
217
241
218
$1_CSETTINGS :=
242
219
$1_CXXSETTINGS :=
@@ -314,40 +291,38 @@ define SetupEclipseWorkspaceBody
314
291
315
292
endif
316
293
317
- ifeq ($$($1_SHARED), false)
318
- ifneq ($$(findstring $$($1_NATURE), JAVA MIXED), )
319
- $1_LINKED_RESOURCES += $$(foreach src,$(JAVA_DIRS), \
320
- <link> \
321
- <name>$$(strip $$(src))</name> \
322
- <type>2</type> \
323
- <location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/$$(src)))</location> \
324
- </link>$$(NEWLINE))
325
- endif
294
+ ifneq ($$(findstring $$($1_NATURE), JAVA MIXED), )
295
+ $1_LINKED_RESOURCES += $$(foreach src,$(JAVA_DIRS), \
296
+ <link> \
297
+ <name>$$(strip $$(src))</name> \
298
+ <type>2</type> \
299
+ <location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/$$(src)))</location> \
300
+ </link>$$(NEWLINE))
301
+ endif
326
302
327
- ifneq ($$(findstring $$($1_NATURE), HOTSPOT NATIVE MIXED), )
328
- # CDT includes a Makefile editor, so if CDT support was indicated there's no harm in
329
- # including the make sources as well, since the cost of indexing them is miniscule
330
- $1_LINKED_RESOURCES += \
331
- <link> \
332
- <name>make</name> \
333
- <type>2</type> \
334
- <location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/make))</location> \
335
- </link> \
336
- <link> \
337
- <name>src/hotspot</name> \
338
- <type>2</type> \
339
- <location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/src/hotspot))</location> \
340
- </link>$$(NEWLINE)
341
- endif
303
+ ifneq ($$(findstring $$($1_NATURE), HOTSPOT NATIVE MIXED), )
304
+ # CDT includes a Makefile editor, so if CDT support was indicated there's no harm in
305
+ # including the make sources as well, since the cost of indexing them is miniscule
306
+ $1_LINKED_RESOURCES += \
307
+ <link> \
308
+ <name>make</name> \
309
+ <type>2</type> \
310
+ <location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/make))</location> \
311
+ </link> \
312
+ <link> \
313
+ <name>src/hotspot</name> \
314
+ <type>2</type> \
315
+ <location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/src/hotspot))</location> \
316
+ </link>$$(NEWLINE)
317
+ endif
342
318
343
- ifneq ($$(findstring $$($1_NATURE), NATIVE MIXED), )
344
- $1_LINKED_RESOURCES += $$(foreach src,$(NATIVE_DIRS), \
345
- <link> \
346
- <name>$$(strip $$(src))</name> \
347
- <type>2</type> \
348
- <location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/$$(src)))</location> \
349
- </link>$$(NEWLINE))
350
- endif
319
+ ifneq ($$(findstring $$($1_NATURE), NATIVE MIXED), )
320
+ $1_LINKED_RESOURCES += $$(foreach src,$(NATIVE_DIRS), \
321
+ <link> \
322
+ <name>$$(strip $$(src))</name> \
323
+ <type>2</type> \
324
+ <location>$$(subst \\,/,$$(call FixPath, $(TOPDIR)/$$(src)))</location> \
325
+ </link>$$(NEWLINE))
351
326
endif
352
327
353
328
$$(eval $$(call SetupTextFileProcessing, $1_CREATE_WORKSPACE_FILE, \
@@ -366,22 +341,18 @@ endef
366
341
ifeq ($(WORKSPACE), java)
367
342
$(eval $(call SetupEclipseWorkspace, SETUP_WORKSPACE, \
368
343
NATURE := JAVA, \
369
- SHARED := $(SHARED), \
370
344
))
371
345
else ifeq ($(WORKSPACE), hotspot)
372
346
$(eval $(call SetupEclipseWorkspace, SETUP_WORKSPACE, \
373
347
NATURE := HOTSPOT, \
374
- SHARED := $(SHARED), \
375
348
))
376
349
else ifeq ($(WORKSPACE), native)
377
350
$(eval $(call SetupEclipseWorkspace, SETUP_WORKSPACE, \
378
351
NATURE := NATIVE, \
379
- SHARED := $(SHARED), \
380
352
))
381
353
else
382
354
$(eval $(call SetupEclipseWorkspace, SETUP_WORKSPACE, \
383
355
NATURE := MIXED, \
384
- SHARED := $(SHARED), \
385
356
))
386
357
endif
387
358
0 commit comments