From: <jbo...@li...> - 2006-01-17 08:43:54
|
Author: mla...@jb... Date: 2006-01-17 03:43:48 -0500 (Tue, 17 Jan 2006) New Revision: 2118 Added: trunk/labs/jbosswebnp/src/windows/native/build/ trunk/labs/jbosswebnp/src/windows/native/build/NMAKEcommon.inc trunk/labs/jbosswebnp/src/windows/native/build/baseaddr.ref trunk/labs/jbosswebnp/src/windows/native/build/jboss.ico trunk/labs/jbosswebnp/src/windows/native/build/resource.h Log: Initial checkin. Added: trunk/labs/jbosswebnp/src/windows/native/build/NMAKEcommon.inc =================================================================== --- trunk/labs/jbosswebnp/src/windows/native/build/NMAKEcommon.inc 2006-01-17 08:41:54 UTC (rev 2117) +++ trunk/labs/jbosswebnp/src/windows/native/build/NMAKEcommon.inc 2006-01-17 08:43:48 UTC (rev 2118) @@ -0,0 +1,335 @@ +# Copyright 2001-2005 The Apache Software Foundation or its licensors, as +# applicable. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ==================================================================== +# +# NMAKEcommon.inc Master makefile definitions. +# This file defines CPU architecture and basic compiler +# and linker parameters. +# Common params: +# CPU Compile for specified CPU. Supported CPU's are: +# i386 +# AMD64 +# IA64 +# If not specified it will default to the +# PROCESSOR_ARCHITECTURE environment variable +# or to the i386 if not specified. +# WINVER Compile for specified Windows version +# WINNT for Windows 2000 and up(default) +# WINXP for Windows XP and up +# WIN2003 for Windows 2003 and up +# Deprecated targets (may not even compile): +# NT4 for Windows NT4 and up +# WIN9X for Windows 95, 98 and Me +# BUILD Build version +# RETAIL or RELEASE (default) +# DEBUG +# TARGET Build application target +# EXE Console executable (default) +# GUI Windows GUI executable +# DLL Dynamic Link Library +# LIB Static library +# Environment variables used: +# CFLAGS Added to the common CFLAGS +# CPPFLAGS Added to the common CPPFLAGS +# LIBS Added to the common LIBS +# INCLUDES Added to the common INCLUDES +# LFLAGS Added to the common LFLAGS +# RCFLAGS Added to the common RCFLAGS +# +# Originally contributed by Mladen Turk <mturk jboss.com> +# +# ==================================================================== +# + +!IF !DEFINED(CC) || "$(CC)" == "" +CC = cl.exe +!ENDIF + +!IF !DEFINED(LINK) || "$(LINK)" == "" +LINK = link.exe +!ENDIF + +!IF !DEFINED(RC) || "$(RC)" == "" +RC = rc.exe +!ENDIF + +!IF !DEFINED(MT) || "$(MT)" == "" +MT = mt.exe +!ENDIF + +!IF !DEFINED(MKDIR) || "$(MKDIR)" == "" +MKDIR = -mkdir +!ENDIF + +# Read the PROCESSOR_ARCHITECTURE environment value for a CPU type + +!IF !DEFINED(CPU) || "$(CPU)" == "" +!IF "$(PROCESSOR_ARCHITECTURE)" == "" +CPU = I386 +!ELSE +CPU = $(PROCESSOR_ARCHITECTURE) +!ENDIF +!ENDIF + +!IF "$(CPU)" == "i386" || "$(CPU)" == "x86" || "$(CPU)" == "i486" || "$(CPU)" == "i586" || "$(CPU)" == "i686" +CPU = I386 +!ENDIF + +!IF "$(CPU)" == "X64" +FAVOR = "-favor:blend" +CPU = AMD64 +!ELSEIF "$(CPU)" == "AMD64" +FAVOR = "-favor:AMD64" +!ELSEIF "$(CPU)" == "EMT64" +FAVOR = "-favor:EMT64" +CPU = AMD64 +!ENDIF + +!IF "$(CPU)" != "I386" +!IF "$(CPU)" != "AMD64" +!IF "$(CPU)" != "IA64" +!ERROR Must specify CPU environment variable (I386, X64, AMD64, EMT64, IA64) +!ENDIF +!ENDIF +!ENDIF + +!IF !DEFINED(TARGET) || "$(TARGET)" == "" +TARGET=EXE +!ENDIF + +!IF "$(TARGET)" != "EXE" +!IF "$(TARGET)" != "GUI" +!IF "$(TARGET)" != "DLL" +!IF "$(TARGET)" != "LIB" +!ERROR Must specify TARGET environment variable (EXE, GUI, DLL, LIB) +!ENDIF +!ENDIF +!ENDIF +!ENDIF + +!IF !DEFINED(WINVER) || "$(WINVER)" == "" +WINVER=WINNT +!ENDIF + + +!IF "$(WINVER)" != "WINNT" +!IF "$(WINVER)" != "WINXP" +!IF "$(WINVER)" != "WIN2003" +!IF "$(WINVER)" != "NT4" +!IF "$(WINVER)" != "WIN9X" +!ERROR Must specify WINVER environment variable (WINNT, WINXP, WIN2003, NT4, WIN9X) +!ENDIF +!ENDIF +!ENDIF +!ENDIF +!ENDIF + +!IF "$(WINVER)" == "WINNT" +NMAKE_WINVER = 0x0500 +!ELSEIF "$(WINVER)" == "WINXP" +NMAKE_WINVER = 0x0501 +!ELSEIF "$(WINVER)" == "WIN2003" +NMAKE_WINVER = 0x0502 +!ELSEIF "$(WINVER)" == "NT4" +NMAKE_WINVER = 0x0400 +!ENDIF + +!IF !DEFINED(NMAKE_WINVER) || "$(NMAKE_WINVER)" == "" +NMAKE_WINVER = 0x0400 +NMAKE_WINNT = /D_WIN95 /D_WIN32_WINDOWS=$(NMAKE_WINVER) +!ELSE +NMAKE_WINNT = /D_WINNT /D_WIN32_WINNT=$(NMAKE_WINVER) +!ENDIF + +!IF !DEFINED(BUILD) || "$(BUILD)" == "" +BUILD = RELEASE +!ENDIF + +!IFDEF RELEASE +BUILD = RELEASE +!ENDIF + +!IFDEF DEBUG +BUILD = DEBUG +!ENDIF + +!IFDEF NODEBUG +!ENDIF + +!IF "$(BUILD)" != "RELEASE" +!IF "$(BUILD)" != "DEBUG" +!ERROR Must specify BUILD environment variable (RELEASE, DEBUG) +!ELSE +BUILDEXT = D +!ENDIF +!ELSE +BUILDEXT = R +!ENDIF + +!IF "$(FRAMEWORKDIR)" == "" +!ERROR Unspecified FrameworkDir location +!ENDIF + +!IF "$(FRAMEWORKVERSION)" == "" +!ERROR Unspecified FrameworkVersion environment variable +!ENDIF + +!IF "$(FRAMEWORKSDKDIR)" == "" +!ERROR Unspecified FrameworkSDKDir location +!ENDIF + +NET_FRAMEWORK_DIR=$(FRAMEWORKDIR)\$(FRAMEWORKVERSION) +NET_FRAMEWORK_SDK=$(FRAMEWORKSDKDIR) + +# Common flags for all platforms +CMN_CFLAGS = /c /nologo /DWIN32 /D_WIN32 /D_WINDOWS $(NMAKE_WINNT) /W3 + +!IFDEF CLR +!IF "$(CLR)" == "" +!ERROR Must specify CLR option (/clr, /clr:strict, /clr:pure) +!ENDIF + +CMN_CFLAGS = $(CLR) $(CMN_CFLAGS) + +CLR_ASSEMBLIES = \ + /AI "$(NET_FRAMEWORK_DIR)" \ + /FU "System.dll" \ + /FU "System.Configuration.dll" \ + /FU "System.Configuration.Install.dll" \ + /FU "System.Data.dll" \ + /FU "System.Data.OracleClient.dll" \ + /FU "System.DirectoryServices.dll" \ + /FU "System.DirectoryServices.Protocols.dll" \ + /FU "System.Drawing.dll" \ + /FU "System.EnterpriseServices.dll" \ + /FU "System.Messaging.dll" \ + /FU "System.Runtime.Remoting.dll" \ + /FU "System.Security.dll" \ + /FU "System.Transactions.dll" \ + /FU "System.Web.dll" \ + /FU "System.Web.RegularExpressions.dll" \ + /FU "System.Web.Services.dll" \ + /FU "System.Windows.Forms.dll" \ + /FU "System.Xml.dll" + +!ENDIF + +!IF "$(CPU)" == "I386" +CPU_CFLAGS = /D_X86_=1 +!ELSEIF "$(CPU)" == "AMD64" +CPU_CFLAGS = /D_AMD64_=1 /DWIN64 /D_WIN64 /Wp64 /FIPRE64PRA.H +!ELSEIF "$(CPU)" == "IA64" +CPU_CFLAGS = /D_IA64_=1 /DWIN64 /D_WIN64 /Wp64 /Ap64 /FIPRE64PRA.H +!ENDIF + +!IF "$(BUILD)" == "RELEASE" +OPT_CFLAGS = /O2 /Ob2 /Oy- /Zi /DNDEBUG +!ELSE +OPT_CFLAGS = /Od /Zi /DDEBUG /D_DEBUG +!ENDIF + +!IF DEFINED(STATIC_CRT) +CRT_CFLAGS = /D_MT /MT +!ELSE +CRT_CFLAGS = /D_MT /MD +!ENDIF + +!IF "$(BUILD)" == "DEBUG" +CRT_CFLAGS = $(CRT_CFLAGS)d +!ENDIF + +CFLAGS = $(CMN_CFLAGS) $(CPU_CFLAGS) $(OPT_CFLAGS) $(CRT_CFLAGS) $(CFLAGS) + +!IF DEFINED(EXTRA_CFLAGS) +CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) +!ENDIF + +!IFDEF CLR +CFLAGS = $(CFLAGS) $(CLR_ASSEMBLIES) +!IF "$(BUILD)" == "DEBUG" +LIBS = msvcmrtd.lib $(LIBS) +!ELSE +LIBS = msvcmrt.lib $(LIBS) +!ENDIF +!ENDIF + +# Linker section +LIBS = kernel32.lib advapi32.lib ws2_32.lib mswsock.lib ole32.lib shell32.lib rpcrt4.lib bufferoverflowu.lib $(LIBS) + +!IF DEFINED(EXTRA_LIBS) +LIBS = $(LIBS) $(EXTRA_LIBS) +!ENDIF + +COMMON_LFLAGS = /NOLOGO /DEBUG + +!IFDEF CLR +COMMON_LFLAGS = $(COMMON_LFLAGS) /ERRORREPORT:NONE +!ENDIF + +# Always add debugging to the linker +OPT_LFLAGS = /INCREMENTAL:NO /DEBUG +!IF "$(BUILD)" == "RELEASE" +OPT_LFLAGS = /OPT:REF +!ENDIF + +!IF "$(TARGET)" == "EXE" +LFLAGS = $(COMMON_LFLAGS) /SUBSYSTEM:CONSOLE /MACHINE:$(CPU) +!ELSEIF "$(TARGET)" == "GUI" +LFLAGS = $(COMMON_LFLAGS) /SUBSYSTEM:WINDOWS /MACHINE:$(CPU) +!ELSEIF "$(TARGET)" == "DLL" +LFLAGS = $(COMMON_LFLAGS) /DLL /SUBSYSTEM:WINDOWS /MACHINE:$(CPU) +!ELSEIF "$(TARGET)" == "LIB" +LFLAGS = -lib $(COMMON_LFLAGS) +!ENDIF + +!IF DEFINED(EXTRA_LFLAGS) +LFLAGS = $(LFLAGS) $(EXTRA_LFLAGS) +!ENDIF + +!IF "$(TARGET)" != "LIB" +LFLAGS = $(LFLAGS) $(OPT_LFLAGS) +!ENDIF + +# Resource compiler flags + +BASE_RCFLAGS = /l 0x409 /n +!IF "$(BUILD)" == "RELEASE" +BASE_RCFLAGS = $(BASE_RCFLAGS) /d "NDEBUG" +!ELSE +BASE_RCFLAGS = $(BASE_RCFLAGS) /d "_DEBUG" /d "DEBUG" +!ENDIF +RCFLAGS = $(BASE_RCFLAGS) $(RCFLAGS) + +# Build Target dir e.g. WINNT_I386_RELEASE_DLL +!IF !DEFINED(BUILDIR) || "$(BUILDIR)" == "" +!IF !DEFINED(BUILDIR_EXT) || "$(BUILDIR_EXT)" == "" +BUILDIR = $(WINVER)_$(CPU)_$(TARGET)_$(BUILDEXT) +!ELSE +BUILDIR = $(WINVER)_$(CPU)_$(BUILDIR_EXT)_$(BUILDEXT) +!ENDIF +!ENDIF + +!IF "$(OS)" == "Windows_NT" +CLEANTARGET = if exist "$(BUILDIR)/$(NULL)" rd /s /q $(BUILDIR) +!ELSE +CLEANTARGET = deltree /y $(BUILDIR) +!ENDIF + +MAKETARGET = $(MKDIR) $(BUILDIR) + +!IF DEFINED(JAVA_HOME) && "$(JAVA_HOME)" != "" +JAVA_INCLUDES = /I "$(JAVA_HOME)/include" /I "$(JAVA_HOME)/include/win32" +!ENDIF Added: trunk/labs/jbosswebnp/src/windows/native/build/baseaddr.ref =================================================================== --- trunk/labs/jbosswebnp/src/windows/native/build/baseaddr.ref 2006-01-17 08:41:54 UTC (rev 2117) +++ trunk/labs/jbosswebnp/src/windows/native/build/baseaddr.ref 2006-01-17 08:43:48 UTC (rev 2118) @@ -0,0 +1,15 @@ +; contains the central repository of all module base addresses +; to avoid relocation +; +; WARNING: Update this file by reviewing the image size +; of the debug-generated dll files; release images +; should fit in the larger debug-sized space. +; +; module name base-address max-size + +JNI.core 0x50000000 0x00020000 +JNI.rt 0x50020000 0x00C00000 +JNI.servlet 0x50C20000 0x00080000 +JNI.mscorlib 0x50CA0000 0x01000000 +JMI.core 0x51CA0000 0x00060000 +JMI.mscorlib 0x51D00000 0x01000000 Added: trunk/labs/jbosswebnp/src/windows/native/build/jboss.ico =================================================================== (Binary files differ) Property changes on: trunk/labs/jbosswebnp/src/windows/native/build/jboss.ico ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/labs/jbosswebnp/src/windows/native/build/resource.h =================================================================== --- trunk/labs/jbosswebnp/src/windows/native/build/resource.h 2006-01-17 08:41:54 UTC (rev 2117) +++ trunk/labs/jbosswebnp/src/windows/native/build/resource.h 2006-01-17 08:43:48 UTC (rev 2118) @@ -0,0 +1,48 @@ +/* + * JBoss, the OpenSource J2EE webOS + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ + +#ifndef MAIN_RESOURCE_H +#define MAIN_RESOURCE_H + +#define PRIVATE_BUILD 1 +#define PRERELEASE_BUILD 1 + +#define STR_COPYRIGHT "Copyright 2006 JBoss inc. " \ + "or its licensors, as applicable." + +#define STR_LICENSE "Distributable under LGPL license. " \ + "See terms of license at gnu.org." + +#define STR_COMPANY "JBoss, Inc." +#define STR_TRADEMARK " JBoss Inc." +#define STR_PRODUCT "VM Interoperability Project" + +#if PRIVATE_BUILD +#define STR_PRIVATE "Initial Prerelease" +#define STR_SPECIAL "Basic functionality" +#define STD_FILEFLAGS VS_FF_PRIVATEBUILD | VS_FF_SPECIALBUILD +#else +#define STD_FILEFLAGS 0x0L +#endif + +#if PRERELEASE_BUILD +#define PSTD_FILEFLAGS STD_FILEFLAGS | VS_FF_PRERELEASE +#else +#define PSTD_FILEFLAGS STD_FILEFLAGS +#endif + + +#define STR_VERISON "0.9.1.0" +#define CSV_VERISON 0,9,1,0 + +#ifdef _DEBUG +#define DLL_FILEFLAGS STD_FILEFLAGS | VS_FF_DEBUG +#else +#define DLL_FILEFLAGS STD_FILEFLAGS +#endif + +#endif // MAIN_RESOURCE_H |