X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=Makefile;h=74fb23f18d9196ba1c85b17a3a45bdad8ef958cc;hb=c0b17b772af41e1fd7b729695ad9d350c4db0a55;hp=ff9eec9dc9ca38625125222c16b14bcbed9da91e;hpb=0799d4663586bfd2fa8ea424dea1476f9a53318a;p=gpl%2Fargeo-slc.git diff --git a/Makefile b/Makefile index ff9eec9dc..74fb23f18 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,10 @@ BUNDLES = \ org.argeo.slc.api \ org.argeo.slc.factory \ org.argeo.slc.runtime \ +cms/org.argeo.slc.cms \ +swt/rap/org.argeo.tool.server \ +VPATH = .:cms:swt/rap clean: rm -rf $(BUILD_BASE) @@ -22,11 +25,34 @@ org.argeo.tp \ org.argeo.tp.sdk \ org.argeo.tp.apache \ org.argeo.tp.jetty \ -org.argeo.tp.eclipse.equinox \ -org.argeo.tp.eclipse.rap \ +osgi/api/org.argeo.tp.osgi \ +osgi/equinox/org.argeo.tp.eclipse \ +swt/rap/org.argeo.tp.swt \ +swt/rap/org.argeo.tp.swt.workbench \ org.argeo.tp.jcr \ org.argeo.tp.formats \ org.argeo.tp.gis \ org.argeo.cms \ +swt/rap/org.argeo.cms \ + +GRAALVM_HOME = /opt/graalvm-ce +A2_BUNDLES_CLASSPATH = $(subst $(space),$(pathsep),$(strip $(A2_BUNDLES))) + +graalvm-custom: + $(GRAALVM_HOME)/bin/java -jar $(ECJ_JAR) @$(SDK_SRC_BASE)/sdk/argeo-build/ecj.args -cp $(A2_CLASSPATH) \ + graalvm/org.argeo.slc.graalvm/src[-d $(SDK_BUILD_BASE)/$(A2_CATEGORY)/graalvm/bin] + +tool-server: osgi graalvm-custom + mkdir -p $(A2_OUTPUT)/libexec/$(A2_CATEGORY) + cd $(A2_OUTPUT)/libexec/$(A2_CATEGORY) && $(GRAALVM_HOME)/bin/native-image \ + -cp $(A2_CLASSPATH):$(A2_BUNDLES_CLASSPATH):$(SDK_BUILD_BASE)/$(A2_CATEGORY)/graalvm/bin \ + --features=org.argeo.slc.graalvm.feature.ArgeoToolFeature \ + --enable-url-protocols=http,https \ + -H:AdditionalSecurityProviders=sun.security.jgss.SunProvider,org.bouncycastle.jce.provider.BouncyCastleProvider,net.i2p.crypto.eddsa.EdDSASecurityProvider \ + --initialize-at-build-time=org.argeo.init.logging.ThinLogging,org.slf4j.LoggerFactory \ + --no-fallback \ + org.argeo.tool.server.ArgeoServer \ + argeo + include $(SDK_SRC_BASE)/sdk/argeo-build/osgi.mk \ No newline at end of file