home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / liteness.mak < prev    next >
Encoding:
Text File  |  1998-04-08  |  5.5 KB  |  155 lines

  1. # The contents of this file are subject to the Netscape Public License
  2. # Version 1.0 (the "NPL"); you may not use this file except in
  3. # compliance with the NPL.  You may obtain a copy of the NPL at
  4. # http://www.mozilla.org/NPL/
  5. #
  6. # Software distributed under the NPL is distributed on an "AS IS" basis,
  7. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  8. # for the specific language governing rights and limitations under the
  9. # NPL.
  10. #
  11. # The Initial Developer of this code under the NPL is Netscape
  12. # Communications Corporation.  Portions created by Netscape are
  13. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  14. # Reserved.
  15. ################################################################################
  16. #
  17. # MOZ_LITE and MOZ_MEDIUM stuff
  18. #
  19. # Does two things 1) Sets environment variables for use by other build scripts.
  20. #                 2) Sets MOZ_LITENESS_FLAGS to be appended to the command lines
  21. #                    for calling the compilers/tools, CFLAGS, RCFLAGS, etc.
  22. #
  23. ################################################################################
  24.  
  25.  
  26. # Under the new system for MOZ_LITE, MOZ_MEDIUM.  There should be no references to
  27. # MOZ_LITE or MOZ_MEDIUM in the code, either as an #ifdef, or as some other conditional
  28. # if in the build scripts.  Instead, all #ifdefs, !if, etc. should be based on the
  29. # module-specific tag.  E.g. #ifdef MOZ_MAIL_NEWS, #ifdef MOZ_LDAP, etc.
  30. # The reason for this is that we can decide what goes into the LITE and MEDIUM
  31. # builds by just tweaking this file (and the appropriate file for MAC and UNIX).
  32. #
  33. # Originally, I planned on defining MOZ_MEDIUM as being the same as MOZ_LITE + EDITOR,
  34. # but there were still many cases in the code and build scripts where I would have had 
  35. # to do something ugly like "#if !defined(MOZ_LITE) || defined(MOZ_MEDIUM)".  This 
  36. # would be very error prone and difficult to maintain.  I believe defining and
  37. # using a bunch of new symbols reduces the total amount of pain in both the short and
  38. # long term.
  39. #
  40. # IMPORTANT!!  The method of running a build has not changed.  You define 
  41. # MOZ_LITE or MOZ_MEDIUM (not both) in your environment, and start the build.
  42. # You do not have to define the symbols for every module.  E.g. you should never
  43. # have to define EDITOR, or MOZ_MAIL_NEWS in your environment.  The build scripts
  44. # will do this for you, via the file you are looking at right now.
  45.  
  46.  
  47.  
  48. ### Here is the list of all possible modules under control of MOZ_LITE/MOZ_MEDIUM,
  49. ### Some only affect the build scripts, so are only set as environment variables, and
  50. ### not added to MOZ_LITENESS_FLAGS
  51. #
  52. # MOZ_MAIL_NEWS  
  53. # Enables mail and news.
  54. #
  55. # EDITOR
  56. # Enables the editor
  57. #
  58. # MOZ_OFFLINE
  59. # Enables go offline/go online
  60. #
  61. # MOZ_LOC_INDEP
  62. # Location independence
  63. #
  64. # MOZ_TASKBAR
  65. # The "taskbar" or "component bar"
  66. #
  67. # MOZ_LDAP
  68. # Enable LDAP, MOZ_NO_LDAP has been depreciated
  69. #
  70. # MOZ_ADMIN_LIB
  71. # Mission Control
  72. #
  73. # MOZ_COMMUNICATOR_NAME
  74. # Use "Communicator" as opposed to "Navigator" in strings,
  75. # Use the Communicator icon, splash screen, etc. instead of the Navigator one.
  76. # *** IMPORTANT ***  This also controls whether the user agent string has " ;Nav"
  77. # appended to it.  i.e. only append " ;Nav" if MOZ_COMMUNICATOR_NAME is not set.
  78. #
  79. # MOZ_JSD
  80. # Build JS debug code, needs to be turned off when we remove java from build.
  81. #
  82. # MOZ_IFC_TOOLS
  83. # Build ns/ifc/tools.  Should this be the same as MOZ_JSD??
  84. #
  85. # MOZ_NETCAST
  86. # Build netcaster.
  87. #
  88. # MOZ_COMMUNICATOR_IIDS
  89. # For windows, use the COM IIDs for Communicator, as opposed to those for the 
  90. # Navigator-only version. We must have a different set so that multiple versions can
  91. # be installed on the same machine.  We need a more general solution to the problem of
  92. # multiple versions of the interface IDs.
  93. #
  94. # MOZ_COMMUNICATOR_ABOUT
  95. # Use the about: information from Communicator, as opposed to that for the Navigator-only
  96. # version.  We will probably have to make another one for the source-only release.
  97. # MOZ_NAV_BUILD_PREFIX
  98. # For building multiple versions with varying degree of LITEness in the same tree.  
  99. # If true, use "Nav" as the prefix for the directory under ns/dist, else use "WIN".
  100. # Also, if true, build client in, say, NavDbg as oppposed to x86Dbg.
  101. #
  102. # MOZ_COMMUNICATOR_CONFIG_JS
  103. # Use "config.js" instead of the one specific to the Navigator-only version.
  104. #
  105. # MOZ_COPY_ALL_JARS
  106. # Copy all JAR files to the destination directory, else just copy the JARS appropriate for the
  107. # Navigator-only version.
  108. #
  109. # MOZ_SPELLCHK
  110. # Enable the spellchecker.
  111.  
  112.  
  113. ### MOZ_LITE ###
  114. # NOTE: Doesn't need -DMOZ_LITE anymore.
  115. !if defined(MOZ_LITE)
  116. MOZ_LITENESS_FLAGS=
  117. MOZ_JSD=1
  118. MOZ_NAV_BUILD_PREFIX=1
  119.  
  120.  
  121. ### MOZ_MEDIUM ###
  122. !elseif defined(MOZ_MEDIUM)
  123. MOZ_LITENESS_FLAGS=-DEDITOR -DMOZ_COMMUNICATOR_IIDS
  124. EDITOR=1
  125. MOZ_JSD=1
  126. MOZ_COMMUNICATOR_IIDS=1
  127. MOZ_COMMUNICATOR_CONFIG_JS=1
  128. MOZ_COPY_ALL_JARS=1
  129.  
  130.  
  131. ### Full build ###
  132. !else
  133. MOZ_LITENESS_FLAGS=-DMOZ_MAIL_NEWS -DEDITOR -DMOZ_OFFLINE -DMOZ_LOC_INDEP \
  134.                    -DMOZ_TASKBAR -DMOZ_LDAP -DMOZ_ADMIN_LIB \
  135.                    -DMOZ_COMMUNICATOR_NAME -DMOZ_COMMUNICATOR_IIDS \
  136.                    -DMOZ_NETCAST -DMOZ_COMMUNICATOR_ABOUT -DMOZ_SPELLCHK
  137. MOZ_MAIL_NEWS=1
  138. EDITOR=1
  139. MOZ_OFFLINE=1
  140. MOZ_LOC_INDEP=1
  141. MOZ_TASKBAR=1
  142. MOZ_LDAP=1
  143. MOZ_ADMIN_LIB=1
  144. MOZ_COMMUNICATOR_NAME=1
  145. MOZ_JSD=1
  146. MOZ_IFC_TOOLS=1
  147. MOZ_NETCAST=1
  148. MOZ_COMMUNICATOR_IIDS=1
  149. MOZ_COMMUNICATOR_ABOUT=1
  150. MOZ_COMMUNICATOR_CONFIG_JS=1
  151. MOZ_COPY_ALL_JARS=1
  152. MOZ_SPELLCHK=1
  153. !endif
  154.