stx_libtool2.st
author Patrik Svestka <patrik.svestka@gmail.com>
Wed, 14 Nov 2018 12:07:51 +0100
branchjv
changeset 3630 5e718e0a754e
parent 3352 f8976cddeecf
child 3503 fa416ddb3ad8
permissions -rw-r--r--
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present

- All source *.st files are now Unicode UTF8 without BOM
Files are in two groups (fileOut works this way in Smalltalk/X):
- containing a unicode character have "{ Encoding: utf8 }" at the header
- ASCII only are without the header
     1 "
     2  COPYRIGHT (c) 1988 by Claus Gitinger / 2006 by eXept Software AG
     3               All Rights Reserved
     4 
     5  This software is furnished under a license and may be used
     6  only in accordance with the terms of that license and with the
     7  inclusion of the above copyright notice.   This software may not
     8  be provided or otherwise made available to, or used by, any
     9  other person.  No title to or ownership of the software is
    10  hereby transferred.
    11 "
    12 "{ Package: 'stx:libtool2' }"
    13 
    14 "{ NameSpace: Smalltalk }"
    15 
    16 LibraryDefinition subclass:#stx_libtool2
    17 	instanceVariableNames:''
    18 	classVariableNames:''
    19 	poolDictionaries:''
    20 	category:'* Projects & Packages *'
    21 !
    22 
    23 !stx_libtool2 class methodsFor:'documentation'!
    24 
    25 copyright
    26 "
    27  COPYRIGHT (c) 1988 by Claus Gitinger / 2006 by eXept Software AG
    28               All Rights Reserved
    29 
    30  This software is furnished under a license and may be used
    31  only in accordance with the terms of that license and with the
    32  inclusion of the above copyright notice.   This software may not
    33  be provided or otherwise made available to, or used by, any
    34  other person.  No title to or ownership of the software is
    35  hereby transferred.
    36 "
    37 !
    38 
    39 documentation
    40 "
    41     Package documentation:
    42 
    43     This library contains additional advanced ST/X development tools.
    44     This includes new improved browser, additional analysis, monitoring and profiling tools, 
    45     UI builders etc.
    46 
    47     Typically, these tools are not needed in end-user (standAlone) applications.    
    48 "
    49 ! !
    50 
    51 !stx_libtool2 class methodsFor:'description'!
    52 
    53 excludedFromPreRequisites
    54     "list all packages which should be ignored in the automatic
    55      preRequisites scan. See #preRequisites for more."
    56 
    57     ^ #(
    58         #'stx:clients/Demos'    "WindowTreeView - referenced by FlyByWindowInformation>>keyPress:x:y:view: "
    59         #'stx:goodies/webServer'    "HTTPServer - referenced by UIPainter>>doInstallAsWebPage "
    60         #'exept:httpPortal'    "WebApplicationModel - referenced by UIPainter>>canInstallAsWebPage "
    61         #'stx:goodies/communication'    "HTTPInterface - referenced by ImageEditor>>doLoadFromURL "
    62         #'stx:libview3'    "LineSegmentMorph - referenced by UIObjectView class>>isHorizontalResizable: "
    63     )
    64 !
    65 
    66 mandatoryPreRequisites
    67     "list all required mandatory packages.
    68      Packages are mandatory, if they contain superclasses of the package's classes
    69      or classes which are extended by this package.
    70      This list can be maintained manually or (better) generated and
    71      updated by scanning the superclass hierarchies
    72      (the browser has a menu function for that)
    73      However, often too much is found, and you may want to explicitely
    74      exclude individual packages in the #excludedFromPreRequisites method."
    75 
    76     ^ #(
    77         #'stx:libbasic'    "Array - superclass of DataSetBuilder::Row "
    78         #'stx:libview'    "GraphicsContext - superclass of UIGalleryView::Palette "
    79         #'stx:libview2'    "ResourceSpecEditor - superclass of TabListEditor "
    80         #'stx:libwidg'    "ListView - superclass of UIPainter::TreeView "
    81         #'stx:libwidg2'    "HierarchicalItem - superclass of MenuEditor::RegularMenuItem "
    82     )
    83 !
    84 
    85 referencedPreRequisites
    86     "list all packages containing classes referenced by the packages's members.
    87      This list can be maintained manually or (better) generated and
    88      updated by looking for global variable accesses
    89      (the browser has a menu function for that)
    90      However, often too much is found, and you may want to explicitely
    91      exclude individual packages in the #excludedFromPreRequisites method."
    92 
    93     ^ #(
    94         #'stx:libbasic2'    "TextStream - referenced by Tools::ProjectBuilder>>build "
    95         #'stx:libbasic3'    "CVSSourceCodeManager - referenced by Tools::ObjectModuleInformation>>showInfoForClassLib: "
    96         #'stx:libcomp'    "ObjectFileLoader - referenced by Tools::ObjectModuleInformation>>postBuildWith: "
    97         #'stx:libhtml'    "HTMLDocumentView - referenced by MethodFinderWindow>>openHTMLDocumentation "
    98         #'stx:libtool'    "SmalltalkCodeGeneratorTool - referenced by MenuEditor>>doGenerateAspectMethods "
    99         #'stx:libui'    "HorizontalPanelViewSpec - referenced by UIPainterView>>groupSelectionWithLayout: "
   100     )
   101 ! !
   102 
   103 !stx_libtool2 class methodsFor:'description - compilation'!
   104 
   105 additionalBaseAddressDefinition_bc_dot_mak
   106     "this is an optional definition, which (if present) may speed up the dll-loading a little
   107      on win32 systems."
   108 
   109     ^ '
   110 # see stdHeader_bc for LIBTOOL2_BASE
   111 LIB_BASE=$(LIBTOOL2_BASE)
   112 '
   113 !
   114 
   115 stcWarningOptions
   116     ^ '-warnNonStandard -warnUnused'
   117 ! !
   118 
   119 !stx_libtool2 class methodsFor:'description - contents'!
   120 
   121 classNamesAndAttributes
   122     "lists the classes which are to be included in the project.
   123      Each entry in the list may be: a single class-name (symbol),
   124      or an array-literal consisting of class name and attributes.
   125      Attributes are: #autoload or #<os> where os is one of win32, unix,..."
   126 
   127     ^ #(
   128         "<className> or (<className> attributes...) in load order"
   129         ColorEditDialog
   130         DataSetBuilder
   131         DirectoryView
   132         FlyByWindowInformation
   133         (HierarchicalListEditor autoload)
   134         ImageEditor
   135         MenuEditor
   136         MethodFinderWindow
   137         (MethodSelectionBrowser autoload)
   138         (ProjectBrowser autoload)
   139         (STXInstaller autoload)
   140         SelectionBrowser
   141         (ShellView autoload)
   142         (SnapShotImage autoload)
   143         (SnapShotImageMemory autoload)
   144         TabListEditor
   145         (#'Tools::InternationalLanguageTranslationEditor' autoload)
   146         (#'Tools::NewInspectorList' autoload)
   147         (#'Tools::NewInspectorListView' autoload)
   148         (#'Tools::NewInspectorPanelView' autoload)
   149         (#'Tools::NewInspectorView' autoload)
   150         #'Tools::ObjectModuleInformation'
   151         #'Tools::ProjectBuilder'
   152         #'Tools::ProjectBuilderAssistantApplication'
   153         (#'Tools::ProjectDefinitionEditor' autoload)
   154         (#'Tools::ViewTreeInspectorApplication' autoload)
   155         UIGalleryView
   156         UIHelpTool
   157         UILayoutTool
   158         UIListEditor
   159         UIObjectView
   160         UIPainter
   161         UISelectionPanel
   162         UISpecificationTool
   163         #'stx_libtool2'
   164         FileSelectionBrowser
   165         ResourceSelectionBrowser
   166         UIPainterView
   167     )
   168 !
   169 
   170 extensionMethodNames
   171     "lists the extension methods which are to be included in the project.
   172      Entries are pairwise elements, consisting of class-name and selector."
   173 
   174     ^ #(
   175         Image edit
   176     )
   177 ! !
   178 
   179 !stx_libtool2 class methodsFor:'description - project information'!
   180 
   181 companyName
   182     "Return a companyname which will appear in <lib>.rc"
   183 
   184     ^ 'Claus Gittinger / eXept Software AG'
   185 
   186     "Modified: / 18-11-2016 / 11:48:00 / cg"
   187 !
   188 
   189 description
   190     "Return a description string which will appear in nt.def / bc.def"
   191 
   192     ^ 'Smalltalk/X Additional Tools'
   193 !
   194 
   195 legalCopyright
   196     "Return a copyright string which will appear in <lib>.rc"
   197 
   198     ^ 'Copyright Claus Gittinger 1988\nCopyright eXept Software AG 2012'
   199 
   200     "Modified: / 18-11-2016 / 12:18:55 / cg"
   201 !
   202 
   203 productName
   204     "Return a product name which will appear in <lib>.rc"
   205 
   206     ^ 'Smalltalk/X'
   207 ! !
   208 
   209 !stx_libtool2 class methodsFor:'documentation'!
   210 
   211 version
   212     ^ '$Header$'
   213 !
   214 
   215 version_CVS
   216     ^ '$Header$'
   217 ! !
   218