Changeset 360


Ignore:
Timestamp:
May 9, 2012, 11:52:50 PM (13 years ago)
Author:
dmik
Message:

icedtea-web: Add proper build steps for .java and .jar files.

Location:
trunk/icedtea-web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/icedtea-web/netx/Makefile.kmk

    r356 r360  
    1010BUILD_PROPERTIES = $(netx_0_OUTDIR)/net/sourceforge/jnlp/build.properties
    1111BLDDIRS += $(dir $(BUILD_PROPERTIES))
     12OTHER_CLEAN += $(BUILD_PROPERTIES)
    1213
    13 OTHER_CLEAN += $(BUILD_PROPERTIES) $(netx_0_OUTDIR)/files.txt
     14MANIFEST = $(netx_0_OUTDIR)/netx.manifest
     15BLDDIRS += $(dir $(MANIFEST))
     16OTHER_CLEAN += $(MANIFEST)
     17
     18JAVASRCLIST += $(netx_0_OUTDIR)/javasrc.list
     19BLDDIRS += $(dir $(JAVASRCLIST))
     20OTHER_CLEAN += $(JAVASRCLIST) $(JAVASRCLIST).rsp $(JAVASRCLIST).stamp
     21
     22JARFILE = $(PATH_STAGE)/lib/netx.jar
     23BLDDIRS += $(dir $(JARFILE))
     24OTHER_CLEAN += $(JARFILE)
    1425
    1526$$(BUILD_PROPERTIES): $(PATH_ROOT)/build.properties.in | $$(call DIRDEP,$$(dir $$(@)))
    1627        sed "s/@RHINO_AVAILABLE@/$(if $(WITH_RHINO),true,false)/g" < $^ > $@
    1728
    18 netx: $$(BUILD_PROPERTIES) | $$(call DIRDEP,$$(netx_0_OUTDIR))
    19         find $(PATH_SUB_CURRENT) -name '*.java' | sort > $(netx_0_OUTDIR)/files.txt
    20 ifndef WITH_RHINO
    21         sed -i '/RhinoBasedPacEvaluator/ d' $(netx_0_OUTDIR)/files.txt
    22 endif
     29$$(MANIFEST): $(PATH_ROOT)/netx.manifest.in | $$(call DIRDEP,$$(dir $$(@)))
     30        sed "s/@PACKAGE_NAME@/$(PACKAGE_NAME)/g; \
     31         s/@FULL_VERSION@/$(FULL_VERSION)/g; " < $^ > $@
     32
     33$$(JAVASRCLIST): $(MAKEFILE) | $$(call DIRDEP,$$(dir $$(@)))
     34        @echo 'JAVASRC = \' > $@
     35        find $(PATH_SUB_CURRENT) -name '*.java' \
     36        $(if $(WITH_RHINO),,! -name '*RhinoBasedPacEvaluator*') \
     37        -printf '%p \\\n' >> $@
     38
     39$$(JAVASRCLIST).stamp: $$(JAVASRC) | $$(call DIRDEP,$$(dir $$(@)))
     40        $(call MSG_COMPILE,netx,$(words $?) sources,$@,JAVA)
     41        @echo $? > $(JAVASRCLIST).rsp
    2342        $(PATH_BOOTSTRAP_JDK)/bin/javac $(IT_JAVACFLAGS) \
    2443        -d "$(netx_0_OUTDIR)" \
    2544        -sourcepath "$(PATH_SUB_CURRENT)" \
    2645        -bootclasspath "$(BOOTSTRAP_JDK_RUNTIME)" \
    27         @$(netx_0_OUTDIR)/files.txt
     46        @"$(JAVASRCLIST).rsp"
     47        @touch "$@"
     48
     49$$(JARFILE): $$(BUILD_PROPERTIES) $$(MANIFEST) $$(JAVASRCLIST).stamp
    2850        (cd $(PATH_SUB_CURRENT)/net/sourceforge/jnlp/resources; \
    2951        for files in $$(find . -path ./.svn -prune -o -type f -print); \
     
    3456        cp -a $(PATH_SUB_CURRENT)/net/sourceforge/jnlp/runtime/pac-funcs.js \
    3557        $(netx_0_OUTDIR)/net/sourceforge/jnlp/runtime
     58        (cd $(netx_0_OUTDIR); \
     59        $(PATH_BOOTSTRAP_JDK)/bin/jar cfm $(JARFILE) \
     60            $(MANIFEST) javax/jnlp net)
    3661
     62netx: $$(JARFILE) | $$(call DIRDEP,$$(netx_0_OUTDIR))
    3763
    3864include $(FILE_KBUILD_SUB_FOOTER)
    3965
    40 #$(error --$(PATH_OUT))
     66-include $(JAVASRCLIST)
  • TabularUnified trunk/icedtea-web/plugin/icedteanp/Makefile.kmk

    r357 r360  
    3131    $(PATH_ROOT)/extra/OS.cc
    3232
    33 # Unsorted stuff from Makefile.in
     33OTHERS += liveconnect
     34BLDDIRS += $(liveconnect_0_OUTDIR)
    3435
    35 #@ENABLE_PLUGIN_TRUE@ICEDTEAPLUGIN_CLEAN = clean-IcedTeaPlugin
    36 #@ENABLE_PLUGIN_TRUE@LIVECONNECT_DIR = netscape sun/applet
    37 #@ENABLE_PLUGIN_TRUE@PLUGIN_DIR = $(abs_top_builddir)/plugin/icedteanp
    38 #@ENABLE_PLUGIN_TRUE@PLUGIN_SRCDIR = $(abs_top_srcdir)/plugin/icedteanp
    39 #@ENABLE_PLUGIN_TRUE@LIVECONNECT_SRCS = $(PLUGIN_SRCDIR)/java
    40 #@ENABLE_PLUGIN_TRUE@ICEDTEAPLUGIN_TARGET = $(PLUGIN_DIR)/IcedTeaPlugin.so stamps/liveconnect-dist.stamp
    41 #@ENABLE_PLUGIN_TRUE@PLUGIN_PKGS = sun.applet netscape.security netscape.javascript
     36JAVASRCLIST += $(liveconnect_0_OUTDIR)/javasrc.list
     37BLDDIRS += $(dir $(JAVASRCLIST))
     38OTHER_CLEAN += $(JAVASRCLIST) $(JAVASRCLIST).rsp $(JAVASRCLIST).stamp
    4239
    43 #@ENABLE_PLUGIN_TRUE@   ${INSTALL_PROGRAM} $(PLUGIN_DIR)/IcedTeaPlugin.so $(DESTDIR)$(libdir)
    44 #@ENABLE_PLUGIN_TRUE@   ${INSTALL_DATA} $(abs_top_builddir)/liveconnect/lib/classes.jar $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/plugin.jar
     40JARFILE = $(PATH_STAGE)/lib/plugin.jar
     41BLDDIRS += $(dir $(JARFILE))
     42OTHER_CLEAN += $(JARFILE)
    4543
    46 #@ENABLE_PLUGIN_TRUE@stamps/plugin-tests.stamp: $(PLUGIN_TEST_SRCS) stamps/plugin.stamp
    47 #@ENABLE_PLUGIN_TRUE@   mkdir -p plugin/tests/LiveConnect
    48 #@ENABLE_PLUGIN_TRUE@   $(BOOT_DIR)/bin/javac $(IT_JAVACFLAGS) \
    49 #@ENABLE_PLUGIN_TRUE@    -d plugin/tests/LiveConnect \
    50 #@ENABLE_PLUGIN_TRUE@    -classpath liveconnect/lib/classes.jar \
    51 #@ENABLE_PLUGIN_TRUE@    $(PLUGIN_TEST_SRCS) ;
    52 #@ENABLE_PLUGIN_TRUE@   $(BOOT_DIR)/bin/jar cf plugin/tests/LiveConnect/PluginTest.jar \
    53 #@ENABLE_PLUGIN_TRUE@     plugin/tests/LiveConnect/*.class ;
    54 #@ENABLE_PLUGIN_TRUE@   cp -pPR $(SRC_DIR_LINK) $(abs_top_srcdir)/plugin/tests/LiveConnect/*.{js,html} \
    55 #@ENABLE_PLUGIN_TRUE@     plugin/tests/LiveConnect ;
    56 #@ENABLE_PLUGIN_TRUE@   echo "Done. Now launch \"firefox file://`pwd`/index.html\"" ;
    57 #@ENABLE_PLUGIN_TRUE@   mkdir -p stamps
    58 #@ENABLE_PLUGIN_TRUE@   touch stamps/plugin-tests.stamp
     44$$(JAVASRCLIST): $(MAKEFILE) | $$(call DIRDEP,$$(dir $$(@)))
     45        @echo 'JAVASRC = \' > $@
     46        find $(PATH_SUB_CURRENT) -name '*.java' \
     47        -printf '%p \\\n' >> $@
     48
     49$$(JAVASRCLIST).stamp: $$(JAVASRC) | $$(call DIRDEP,$$(dir $$(@)))
     50        $(call MSG_COMPILE,liveconnect,$(words $?) sources,$@,JAVA)
     51        @echo $? > $(JAVASRCLIST).rsp
     52        $(PATH_BOOTSTRAP_JDK)/bin/javac $(IT_JAVACFLAGS) \
     53        -d "$(liveconnect_0_OUTDIR)" \
     54        -sourcepath "$(PATH_SUB_CURRENT)/icedteanp/java" \
     55        -bootclasspath "$(BOOTSTRAP_JDK_RUNTIME);$(PATH_STAGE)/lib/netx.jar" \
     56        @"$(JAVASRCLIST).rsp"
     57        @touch "$@"
     58
     59$$(JARFILE): $$(JAVASRCLIST).stamp
     60        (cd $(liveconnect_0_OUTDIR); \
     61        $(PATH_BOOTSTRAP_JDK)/bin/jar cf $(JARFILE) \
     62            netscape sun/applet)
     63
     64liveconnect: $$(JARFILE) | $$(call DIRDEP,$$(liveconnect_0_OUTDIR))
    5965
    6066include $(FILE_KBUILD_SUB_FOOTER)
     67
     68-include $(JAVASRCLIST)
Note: See TracChangeset for help on using the changeset viewer.