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