source: trunk/icedtea-web/Config.kmk@ 417

Last change on this file since 417 was 392, checked in by dmik, 13 years ago

iicedtea-web: More useful defaults for JAVA.EXE and plugin jars.

JAVA.EXE is searched in PATH, plugin jars -- in a dir containing the plugin DLL,
in a subdirectory equal to the plugin DLL base name.

  • Property svn:eol-style set to native
File size: 3.8 KB
Line 
1## @file
2# Global Project Configuration File
3#
4
5#------------------------------------------------------------------------------
6# Global definitions
7#------------------------------------------------------------------------------
8
9PACKAGE_NAME := icedtea-web
10PACKAGE_VER_MAJOR := 1
11PACKAGE_VER_MINOR := 1
12PACKAGE_VER_PATCH := 2
13PACKAGE_VERSION := $(PACKAGE_VER_MAJOR).$(PACKAGE_VER_MINOR).$(PACKAGE_VER_PATCH)
14PACKAGE_STRING := $(PACKAGE_NAME) $(PACKAGE_VERSION)
15PACKAGE_URL := http://icedtea.classpath.org/wiki/IcedTea-Web
16
17FULL_VERSION := $(PACKAGE_VERSION)
18
19IT_LANGUAGE_SOURCE_VERSION := 6
20IT_CLASS_TARGET_VERSION := 6
21IT_JAVAC_SETTINGS ?= -g -encoding utf-8 $(JAVACFLAGS) $(MEMORY_LIMIT) $(PREFER_SOURCE)
22IT_JAVACFLAGS ?= $(IT_JAVAC_SETTINGS) -source $(IT_LANGUAGE_SOURCE_VERSION) -target $(IT_CLASS_TARGET_VERSION)
23
24BOOTSTRAP_JDK_RUNTIME ?= $(PATH_BOOTSTRAP_JDK)/jre/lib/rt.jar;$(PATH_BOOTSTRAP_JDK)/jre/lib/jsse.jar
25
26INSTALL_DATA := install -m 644
27
28# @todo later
29#ICEDTEA_WEB_JRE_DIR := /@unixroot/usr/lib/jre
30#ICEDTEA_WEB_DATA_DIR := /@unixroot/usr/share/$(PACKAGE_NAME)
31
32ICEDTEA_WEB_JRE = icedtea_web_jre_dir()
33
34#
35# We need the jars in bootclasspath for a couple of reasons
36# - we use classes (in the sun.applet package) loaded by the bootclassloader
37# using another classloader to load classes from the same package causes an
38# IllegalAccessException
39# - we want full privileges
40#
41LAUNCHER_BOOTCLASSPATH = \"-Xbootclasspath/a:%s/netx.jar$(RHINO_RUNTIME)\", \
42 icedtea_web_data_dir()
43PLUGIN_BOOTCLASSPATH = \"-Xbootclasspath/a:%s/netx.jar;%s/plugin.jar$(RHINO_RUNTIME)\", \
44 icedtea_web_data_dir(), icedtea_web_data_dir()
45
46# Fake update version to work with the Deployment Toolkit script used by Oracle
47# http://download.oracle.com/javase/tutorial/deployment/deploymentInDepth/depltoolkit_index.html
48JDK_UPDATE_VERSION := 50
49
50#------------------------------------------------------------------------------
51# Tools
52#------------------------------------------------------------------------------
53
54#------------------------------------------------------------------------------
55# Common libraries referenced by components
56#------------------------------------------------------------------------------
57
58#------------------------------------------------------------------------------
59# General Stuff
60#------------------------------------------------------------------------------
61
62KBUILD_SDK_PATHS += $(PATH_ROOT)
63
64TEMPLATE_Cxx = C++ sources
65TEMPLATE_Cxx_USES =
66TEMPLATE_Cxx_TOOL = GXX3OMF
67TEMPLATE_Cxx_INCS =
68TEMPLATE_Cxx_DEFS = OS2EMX_PLAIN_CHAR
69
70ifn1of ($(EMXOMFLD_TYPE),WLINK wlink)
71TEMPLATE_Cxx_LDFLAGS = -Zlinker '"DISABLE 1121"'
72endif
73
74# generate .sym files but don't put them in a separate dir
75TEMPLATE_Cxx_LD_DEBUG = split
76TEMPLATE_Cxx_DEBUG_STAGE = nul
77
78#------------------------------------------------------------------------------
79# Other Stuff
80#------------------------------------------------------------------------------
81
82#
83# Include a site-specific config for local overrides
84#
85ifndef LOCALCFG
86 LOCALCFG := $(wildcard $(PATH_ROOT)/LocalConfig.kmk)
87 ifneq ($(LOCALCFG),)
88 include $(LOCALCFG)
89 endif
90endif
91
92#------------------------------------------------------------------------------
93# Defaults
94#------------------------------------------------------------------------------
95
96PATH_MOZILLA_INCS ?= $(PATH_ROOT)/../libs/mozilla/include
97MOZILLA_VERSION_COLLAPSED ?= 11000000 # 11.0.0.0
98
99PATH_GLIB_INCS ?= $(patsubst -I%,%,$(shell pkg-config --cflags-only-I glib-2.0 gthread-2.0))
100PATH_GLIB_LIBS ?= $(patsubst -l%,%,$(shell pkg-config --libs-only-l glib-2.0 gthread-2.0))
101PATH_GLIB_LIBPATH ?= $(patsubst -L%,%,$(shell pkg-config --libs-only-L glib-2.0 gthread-2.0))
Note: See TracBrowser for help on using the repository browser.