changeset 15126 | bceb690ccf35 |
parent 14596 | a1f29d55b5ee |
child 15676 | 291a66e841c2 |
14873:0d625373c69e | 15126:bceb690ccf35 |
---|---|
30 include JavaCompilation.gmk |
30 include JavaCompilation.gmk |
31 include NativeCompilation.gmk |
31 include NativeCompilation.gmk |
32 |
32 |
33 # Setup the java compilers for the JDK build. |
33 # Setup the java compilers for the JDK build. |
34 include Setup.gmk |
34 include Setup.gmk |
35 |
|
36 # Prepare the find cache. Only used if running on windows. |
|
37 $(eval $(call FillCacheFind,$(JDK_TOPDIR)/src)) |
|
35 |
38 |
36 # Append demo goals to this variable. |
39 # Append demo goals to this variable. |
37 BUILD_DEMOS= |
40 BUILD_DEMOS= |
38 |
41 |
39 # The demo structure and contents should really be cleaned up. |
42 # The demo structure and contents should really be cleaned up. |
183 $(eval $(call SetupDemo,SwingSet2,jfc,,SwingSet2,,closed/,README* *.html,,,.java COPYRIGHT,\ |
186 $(eval $(call SetupDemo,SwingSet2,jfc,,SwingSet2,,closed/,README* *.html,,,.java COPYRIGHT,\ |
184 SplashScreen-Image: resources/images/splash.png,true)) |
187 SplashScreen-Image: resources/images/splash.png,true)) |
185 |
188 |
186 BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%,\ |
189 BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%,\ |
187 $(JDK_OUTPUTDIR)/demo/nbproject/%,\ |
190 $(JDK_OUTPUTDIR)/demo/nbproject/%,\ |
188 $(shell $(FIND) $(JDK_TOPDIR)/src/closed/share/demo/nbproject/ -type f)) |
191 $(call CacheFind,$(JDK_TOPDIR)/src/closed/share/demo/nbproject)) |
189 $(JDK_OUTPUTDIR)/demo/nbproject/% : $(JDK_TOPDIR)/src/closed/share/demo/nbproject/% |
192 $(JDK_OUTPUTDIR)/demo/nbproject/% : $(JDK_TOPDIR)/src/closed/share/demo/nbproject/% |
190 $(MKDIR) -p $(@D) |
193 $(MKDIR) -p $(@D) |
191 $(CP) $< $@ |
194 $(CP) $< $@ |
192 $(CHMOD) -f ug+w $@ |
195 $(CHMOD) -f ug+w $@ |
193 endif |
196 endif |
315 |
318 |
316 ################################################################################################## |
319 ################################################################################################## |
317 |
320 |
318 # The jpda demo (com/sun/tools/example) is oddly enough stored in src/share/classes. |
321 # The jpda demo (com/sun/tools/example) is oddly enough stored in src/share/classes. |
319 # At least, we do not need to compile the jpda demo, just jar/zip up the sources. |
322 # At least, we do not need to compile the jpda demo, just jar/zip up the sources. |
320 JPDA_SOURCES:=$(shell $(FIND) $(JDK_TOPDIR)/src/share/classes/com/sun/tools/example -type f) |
323 JPDA_SOURCES:=$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/tools/example) |
321 # The number of files are few enough so that we can use echo safely below to list them. |
324 # The number of files are few enough so that we can use echo safely below to list them. |
322 JPDA_FILES:=$(subst $(JDK_TOPDIR)/src/share/classes/,,$(JPDA_SOURCES)) |
325 JPDA_FILES:=$(subst $(JDK_TOPDIR)/src/share/classes/,,$(JPDA_SOURCES)) |
323 |
326 |
324 $(JDK_OUTPUTDIR)/demo/jpda/src.zip : $(JPDA_SOURCES) |
327 $(JDK_OUTPUTDIR)/demo/jpda/src.zip : $(JPDA_SOURCES) |
325 $(MKDIR) -p $(@D) |
328 $(MKDIR) -p $(@D) |
361 ################################################################################################## |
364 ################################################################################################## |
362 |
365 |
363 # The netbeans project files are copied into the demo directory. |
366 # The netbeans project files are copied into the demo directory. |
364 BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/share/demo/nbproject/%,\ |
367 BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/share/demo/nbproject/%,\ |
365 $(JDK_OUTPUTDIR)/demo/nbproject/%,\ |
368 $(JDK_OUTPUTDIR)/demo/nbproject/%,\ |
366 $(shell $(FIND) $(JDK_TOPDIR)/src/share/demo/nbproject/ -type f)) |
369 $(call CacheFind,$(JDK_TOPDIR)/src/share/demo/nbproject)) |
367 |
370 |
368 $(JDK_OUTPUTDIR)/demo/nbproject/% : $(JDK_TOPDIR)/src/share/demo/nbproject/% |
371 $(JDK_OUTPUTDIR)/demo/nbproject/% : $(JDK_TOPDIR)/src/share/demo/nbproject/% |
369 $(MKDIR) -p $(@D) |
372 $(MKDIR) -p $(@D) |
370 $(CP) $< $@ |
373 $(CP) $< $@ |
371 $(CHMOD) -f ug+w $@ |
374 $(CHMOD) -f ug+w $@ |
437 endif |
440 endif |
438 |
441 |
439 ################################################################################################## |
442 ################################################################################################## |
440 |
443 |
441 ifndef OPENJDK |
444 ifndef OPENJDK |
442 DB_DEMO_ZIPFILE := $(shell $(FIND) $(JDK_TOPDIR)/src/closed/share/db -name "*demo*.zip") |
445 DB_DEMO_ZIPFILE := $(wildcard $(JDK_TOPDIR)/src/closed/share/db/*demo*.zip) |
443 |
446 |
444 $(JDK_OUTPUTDIR)/demo/_the.db.unzipped: $(DB_DEMO_ZIPFILE) |
447 $(JDK_OUTPUTDIR)/demo/_the.db.unzipped: $(DB_DEMO_ZIPFILE) |
445 $(MKDIR) -p $(@D) |
448 $(MKDIR) -p $(@D) |
446 $(RM) -r $(JDK_OUTPUTDIR)/demo/db $(JDK_OUTPUTDIR)/demo/demo |
449 $(RM) -r $(JDK_OUTPUTDIR)/demo/db $(JDK_OUTPUTDIR)/demo/demo |
447 $(CD) $(JDK_OUTPUTDIR)/demo && $(UNZIP) -q -o $< |
450 $(CD) $(JDK_OUTPUTDIR)/demo && $(UNZIP) -q -o $< |